1
0
forked from 0ad/0ad

Updated GUI with overlays for main menu.

This was SVN commit r1120.
This commit is contained in:
Acumen 2004-09-05 10:21:56 +00:00
parent 3b15f3f1e4
commit e29fd0deba
2 changed files with 63 additions and 9 deletions

View File

@ -98,12 +98,46 @@
<!-- TEST -->
<object type="image" name="pregame-mainmenu-background-image" sprite="pregame-mainmenu-background" size="0 0 100% 100%" z="100" hidden="false" />
<object type="button" name="pregame-mainmenu-sp-button" sprite-over="pregame-mainmenu-spbt" size="52.9296875% 23.95833333% 67.578125% 42.317708333%" z="101" hidden="false"> <action on="Press"><![CDATA[
<object type="button" name="pregame-mainmenu-sp-button" sprite-over="pregame-mainmenu-spbt" size="52.9296875% 23.95833333% 67.578125% 42.317708333%" z="101" hidden="false">
<action on="Press"><![CDATA[
startGame();
GUIObjectUnhide("session_gui");
GUIObjectHide("pregame_gui")
GUIObjectUnhide("End_Game_Button")
]]></action>
<action on="MouseEnter"><![CDATA[
tooltipObject = getGUIObjectByName("pregame-mainmenu-tooltip");
tooltipObject.caption = "Want to move some Dudes around or test something ? Click here to start a new game on the default map.";
GUIObjectUnhide("pregame-mainmenu-tooltip");
]]></action>
<action on="MouseLeave"><![CDATA[
GUIObjectHide("pregame-mainmenu-tooltip");
]]></action>
</object>
<object type="image" name="pregame-mainmenu-0ad-logo" sprite="pregame-mainmenu-0ad-logo-480x218" size="21.1914062% 3.125% 68.0664062% 31.5104166%" z="102" hidden="false">
</object>
<object type="text" name="pregame-mainmenu-versionnumber" size="43% 24% 43%+282 24%+25" z="103" textcolor="237 227 167" font="prospero16" hidden="false">
{buildTime}
<action on="Load"><![CDATA[
this.caption = "Build: " + buildTime(0);
]]></action>
</object>
<object type="text" name="pregame-mainmenu-tooltip" sprite="tooltip-background" size="69% 6.3802% 97.0703125% 28.125%" font="prospero16" textcolor="255 255 255" z="104" hidden="true">
tooltipText
</object>
<object type="image" name="pregame-mainmenu-wfg-logo" sprite="pregame-mainmenu-wfg-logo-256x64" size="10 91.666666%-30 25.9765% 100%-30" z="102" hidden="false">
<action on="MouseEnter"><![CDATA[
tooltipObject = getGUIObjectByName("pregame-mainmenu-tooltip");
tooltipObject.caption = "These are the guys who made this game. Visit them at http://www.wildfiregames.com/0ad/";
GUIObjectUnhide("pregame-mainmenu-tooltip");
]]></action>
<action on="MouseLeave"><![CDATA[
GUIObjectHide("pregame-mainmenu-tooltip");
]]></action>
</object>
<object type="button" name="End_Game_Button" sprite="sprite1" sprite-over="sprite1-over" sprite-pressed="sprite1-pressed" size="100%-150 32 100%-30 53" z="100" textcolor="0 0 0" hidden="true">
@ -135,6 +169,14 @@
<action on="Press"><![CDATA[
exit();
]]></action>
<action on="MouseEnter"><![CDATA[
tooltipObject = getGUIObjectByName("pregame-mainmenu-tooltip");
tooltipObject.caption = "Tired of 0 A.D. ? Click here to leave and reenter the real world.";
GUIObjectUnhide("pregame-mainmenu-tooltip");
]]></action>
<action on="MouseLeave"><![CDATA[
GUIObjectHide("pregame-mainmenu-tooltip");
]]></action>
</object>
</object>

View File

@ -23,14 +23,14 @@
<image texture="wfg_logo_128.tga" texture-size="0 0 128 128" size="0 0 128 128" />
</sprite>
<!-- Some more temps /Gee -->
<sprite name="test">
<image size="0 0 100% 100%" backcolor="100 100 250" />
</sprite>
<!-- Some more temps /Gee -->
<sprite name="test">
<image size="0 0 100% 100%" backcolor="100 100 250" />
</sprite>
<sprite name="test2">
<image size="0 0 100% 100%" backcolor="200 100 050" />
</sprite>
<sprite name="test2">
<image size="0 0 100% 100%" backcolor="200 100 050" />
</sprite>
<!--
==========================================
@ -41,9 +41,21 @@
<sprite name="pregame-mainmenu-background">
<image texture="ui_pregame_mainmenu_background.png" real-texture-placement="0 0 1024 768" size="0 0 100% 100%" />
</sprite>
<sprite name="pregame-mainmenu-0ad-logo-480x218">
<image texture="ui_pregame_mainmenu_0ad_logo.png" real-texture-placement="0 0 480 218" size="0 0 100% 100%" />
</sprite>
<sprite name="pregame-mainmenu-wfg-logo-256x64">
<image texture="ui_pregame_mainmenu_wfg_logo.png" real-texture-placement="0 0 256 64" size="0 0 100% 100%" />
</sprite>
<sprite name="pregame-mainmenu-spbt">
<image texture="ui_pregame_mainmenu_spbt_over.png" real-texture-placement="1 1 151 142" size="0 0 100% 100%" />
<image texture="ui_pregame_mainmenu_spbt_over.png" real-texture-placement="1 1 151 142" size="0 0 100% 100%" />
</sprite>
<sprite name="tooltip-background">
<image texture="black_16x16.png" texture-size="0 0 16 16" size="0 0 100% 100%" />
</sprite>
<!--