0ad/binaries/data/mods/public/gui/splashscreen/splashscreen.xml

46 lines
2.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<objects>
<script file="gui/common/functions_global_object.js"/>
<script file="gui/splashscreen/splashscreen.js"/>
<!-- Add a translucent black background to fade out the menu page -->
<object type="image" z="0" sprite="ModernFade"/>
<object type="image" style="ModernDialog" size="50%-274 50%-200 50%+274 50%+200">
<object type="text" style="TitleText" size="50%-128 0%-16 50%+128 16">
<translatableAttribute id="caption">Welcome to 0 A.D. !</translatableAttribute>
</object>
<object type="image" sprite="ModernDarkBoxGold" size="20 20 100%-20 100%-52">
<object name="mainText" type="text" style="textPanel"/>
<object size="8 100%-60 100% 100%">
<object size="0 20 100% 100%">
<object name="displaySplashScreenText" size="20 0 100% 100%" type="text" style="ModernLeftLabelText">
<translatableAttribute id="caption">Show this message in the future</translatableAttribute>
</object>
<object name="displaySplashScreen" size="0 50%-8 16 50%+8" type="checkbox" style="ModernTickBox"/>
</object>
</object>
</object>
<object name="btnOK" type="button" style="StoneButton" tooltip_style="snToolTip" size="20 100%-42 184 100%-14">
<translatableAttribute id="caption">OK</translatableAttribute>
<action on="Press"><![CDATA[
if (Engine.GetGUIObjectByName("displaySplashScreen").checked)
Engine.ConfigDB_CreateValue("user", "splashscreenversion", 0);
else
Engine.ConfigDB_CreateValue("user", "splashscreenversion", Engine.GetFileMTime("gui/splashscreen/splashscreen.txt"));
Engine.ConfigDB_WriteFile("user", "config/user.cfg");
Engine.PopGuiPageCB();
]]></action>
</object>
<object type="button" style="StoneButton" size="188 100%-42 352 100%-14">
<translatableAttribute id="caption">Known issues (web)</translatableAttribute>
<action on="Press"><![CDATA[
openURL("http://www.wildfiregames.com/forum/index.php?showtopic=15796");
]]></action>
</object>
</object>
</objects>