Ticket #2116: patch_splashscreen.6.diff
File patch_splashscreen.6.diff, 3.3 KB (added by , 10 years ago) |
---|
-
binaries/data/config/default.cfg
22 22 23 23 ; Enable/disable the splashscreen 24 24 splashscreenenable = true 25 ; Splashscreen version (date of last modification). By default, 0 to force splashscreen to appear at first launch. 26 splashscreenversion = 0 25 27 26 28 ; Pause the game on window focus loss (Only applicable to single player mode) 27 29 pauseonfocusloss = true -
binaries/data/mods/public/gui/options/options.js
7 7 [ 8 8 [translate("Windowed Mode"), translate("Start 0 A.D. in a window"), {"config":"windowed"}, "boolean"], 9 9 [translate("Background Pause"), translate("Pause single player games when window loses focus"), {"config":"pauseonfocusloss"}, "boolean"], 10 [translate("Enable Notifications"), translate("If you disable notifications completely, you may miss important announcements"), {"config":"splashscreenenable"}, "boolean"], 10 11 [translate("Developer Overlay"), translate("Show overlay in-game with options such as reveal map, control all units, and change perspective. Designed for use by developers"), {"config":"developeroverlay.enable"}, "boolean"], 11 12 ], 12 13 "graphicsSetting": -
binaries/data/mods/public/gui/pregame/mainmenu.js
158 158 { 159 159 g_ShowSplashScreens = false; 160 160 161 if (Engine.ConfigDB_GetValue("user", "splashscreenenable") !== "false") 162 Engine.PushGuiPage("page_splashscreen.xml", { "page": "splashscreen", callback : "SplashScreenClosedCallback" } ); 161 if (Engine.ConfigDB_GetValue("user", "splashscreenenable") !== "false" 162 && Engine.ConfigDB_GetValue("user", "splashscreenversion") < Engine.GetFileMTime("gui/splashscreen/splashscreen.txt")) 163 Engine.PushGuiPage("page_splashscreen.xml", { "page": "splashscreen", callback : "SplashScreenClosedCallback" } ); 163 164 else 164 165 ShowRenderPathMessage(); 165 166 } -
binaries/data/mods/public/gui/splashscreen/splashscreen.xml
26 26 <object name="btnOK" type="button" style="StoneButton" tooltip_style="snToolTip" size="20 100%-42 184 100%-14"> 27 27 <translatableAttribute id="caption">OK</translatableAttribute> 28 28 <action on="Press"><![CDATA[ 29 Engine.ConfigDB_CreateValue("user", "splashscreenenable", Engine.GetGUIObjectByName("displaySplashScreen").checked ? "true" : "false"); 29 if (!Engine.GetGUIObjectByName("displaySplashScreen").checked) 30 Engine.ConfigDB_CreateValue("user", "splashscreenversion", Engine.GetFileMTime("gui/splashscreen/splashscreen.txt")); 30 31 Engine.ConfigDB_WriteFile("user", "config/user.cfg"); 31 32 Engine.PopGuiPageCB(); 32 33 ]]></action>