1
0
forked from 0ad/0ad

Packing it in for tonight.

This was SVN commit r1562.
This commit is contained in:
Acumen 2004-12-23 21:21:02 +00:00
parent 9dc183c9a5
commit 1c89ab78f0
5 changed files with 95 additions and 4 deletions

View File

@ -80,7 +80,7 @@
<object type="button" name="pregame_mp_ip" sprite="0ad_window" z="106" hidden="true">
<action on="Load"><![CDATA[
setSizeCoord("pregame_mp_ip", crd_pregame_iphost_bkg_x, crd_pregame_iphost_bkg_y, crd_pregame_iphost_bkg_x+crd_pregame_iphost_bkg_width, crd_pregame_iphost_bkg_y+crd_pregame_iphost_bkg_height, mid_screen, mid_screen, mid_screen, mid_screen);
setSizeCoord("pregame_mp_ip", crd_pregame_iphost_bkg_x, crd_pregame_iphost_bkg_y, crd_pregame_iphost_bkg_x+crd_pregame_iphost_bkg_width, crd_pregame_iphost_bkg_y+crd_pregame_iphost_bkg_height, mid_screen, mid_screen, mid_screen, mid_screen);
]]></action>
<object type="button" name="pregame_ip_host_titlebar" sprite="0ad_window_title" font="prospero18" z="165" text-align="center" text-valign="center">
@ -103,7 +103,7 @@
<object type="text" name="pregame_ip_infotext">
<action on="Load"><![CDATA[
getGUIObjectByName("pregame_ip_infotext").caption = "You can start a multiplayer game by Direct-IP connect from here. Either \n- enter a map name and click 'Host Game' to host a game or \n- enter an IP and click 'Join Game' to join a game on the entered IP.";
setSizeCoord("pregame_ip_infotext", crd_pregame_iphost_bkg_x, crd_pregame_iphost_bkg_y, crd_pregame_iphost_bkg_x+crd_pregame_iphost_bkg_width, crd_pregame_iphost_bkg_y+crd_pregame_iphost_bkg_height, mid_screen, mid_screen, mid_screen, mid_screen);
setSizeCoord("pregame_ip_infotext", crd_pregame_iphost_bkg_x, crd_pregame_iphost_bkg_y, crd_pregame_iphost_bkg_x+crd_pregame_iphost_bkg_width, crd_pregame_iphost_bkg_y+crd_pregame_iphost_bkg_height, mid_screen, mid_screen, mid_screen, mid_screen);
]]></action>
</object>

View File

@ -11,6 +11,50 @@
<objects>
<object type="empty" name="atlas_gui" size="0 0 100% 100%" z="1" hidden="true">
<!-- Simply black out the lowest level of the GUI, until such time as we're capable of starting an editor session of a scenario. -->
<object type="text" name="atlas_gui_bkg" sprite="black" size="0 0 100% 100%" z="1" ghost="true" hidden="false"/>
<!-- TOP: MENU -->
<object type="button" name="atlas_mainborder_menu_bkg" sprite="atlas_menubar_bkg" z="60" hidden="false">
<action on="Load"><![CDATA[
setSizeCoord("atlas_mainborder_menu_bkg", crd_atlas_mainborder_menu_bkg_x, crd_atlas_mainborder_menu_bkg_y, -crd_atlas_mainborder_menu_bkg_width, crd_atlas_mainborder_menu_bkg_y+crd_atlas_mainborder_menu_bkg_height, left_screen, top_screen, right_screen, top_screen);
]]></action>
</object>
<!-- TOP: TOOLBAR -->
<object type="button" name="atlas_mainborder_toolbar_bkg" sprite="atlas_toolbar_bkg" z="60" hidden="false">
<action on="Load"><![CDATA[
setSizeCoord("atlas_mainborder_toolbar_bkg", crd_atlas_mainborder_toolbar_bkg_x, crd_atlas_mainborder_toolbar_bkg_y, -crd_atlas_mainborder_toolbar_bkg_width, crd_atlas_mainborder_toolbar_bkg_y+crd_atlas_mainborder_toolbar_bkg_height, left_screen, top_screen, right_screen, top_screen);
]]></action>
</object>
<!-- LT: LOGO -->
<object type="text" name="atlas_mainborder_lt_corner" sprite="atlas_mainborder_lt_corner" z="60" hidden="false">
<action on="Load"><![CDATA[
setSizeCoord("atlas_mainborder_lt_corner", crd_atlas_mainborder_lt_corner_x, crd_atlas_mainborder_lt_corner_y, crd_atlas_mainborder_lt_corner_x+crd_atlas_mainborder_lt_corner_width, crd_atlas_mainborder_lt_corner_y+crd_atlas_mainborder_lt_corner_height, left_screen, top_screen, left_screen, top_screen);
]]></action>
</object>
<!-- RT: INFO -->
<object type="text" name="atlas_mainborder_rt_corner" sprite="atlas_mainborder_rt_corner" z="60" hidden="false">
<action on="Load"><![CDATA[
setSizeCoord("atlas_mainborder_rt_corner", crd_atlas_mainborder_rt_corner_x, crd_atlas_mainborder_rt_corner_y, crd_atlas_mainborder_rt_corner_x+crd_atlas_mainborder_rt_corner_width, crd_atlas_mainborder_rt_corner_y+crd_atlas_mainborder_rt_corner_height, right_screen, top_screen, right_screen, top_screen);
]]></action>
</object>
<!-- RB: MINIMAP -->
<object type="button" name="atlas_minimap_bkg" sprite="atlas_border" z="60" hidden="false">
<action on="Load"><![CDATA[
setSizeCoord("atlas_minimap_bkg", -crd_atlas_minimap_bkg_x-crd_atlas_minimap_bkg_width, -crd_atlas_minimap_bkg_y-crd_atlas_minimap_bkg_height, -crd_atlas_minimap_bkg_x, -crd_atlas_minimap_bkg_y, right_screen, bottom_screen, right_screen, bottom_screen);
]]></action>
</object>
<!-- Later change this to type minimap, no sprite (doesn't do anything if not in simulation mode). -->
<object type="button" name="atlas_minimap" sprite="grey" z="60" hidden="false">
<action on="Load"><![CDATA[
setSizeCoord("atlas_minimap", -crd_atlas_minimap_x-crd_atlas_minimap_width, -crd_atlas_minimap_y-crd_atlas_minimap_height, -crd_atlas_minimap_x, -crd_atlas_minimap_y, right_screen, bottom_screen, right_screen, bottom_screen);
]]></action>
</object>
</object>
</objects>

View File

@ -5,6 +5,41 @@
function initAtlas()
{
// Top-left corner piece of main editor frame.
crd_atlas_mainborder_lt_corner_width = 42;
crd_atlas_mainborder_lt_corner_height = 42;
crd_atlas_mainborder_lt_corner_x = 0;
crd_atlas_mainborder_lt_corner_y = 0;
// Top-right corner piece of main editor frame ("Info Selection Box").
crd_atlas_mainborder_rt_corner_width = 203;
crd_atlas_mainborder_rt_corner_height = 54;
crd_atlas_mainborder_rt_corner_x = -crd_atlas_mainborder_rt_corner_width;
crd_atlas_mainborder_rt_corner_y = crd_atlas_mainborder_lt_corner_y;
// Top menu bar.
crd_atlas_mainborder_menu_bkg_width = crd_atlas_mainborder_rt_corner_width;
crd_atlas_mainborder_menu_bkg_height = 19;
crd_atlas_mainborder_menu_bkg_x = crd_atlas_mainborder_lt_corner_x+crd_atlas_mainborder_lt_corner_width;
crd_atlas_mainborder_menu_bkg_y = crd_atlas_mainborder_lt_corner_y;
// Top tool bar.
crd_atlas_mainborder_toolbar_bkg_width = crd_atlas_mainborder_rt_corner_width-crd_atlas_mainborder_lt_corner_width;
crd_atlas_mainborder_toolbar_bkg_height = 22;
crd_atlas_mainborder_toolbar_bkg_x = crd_atlas_mainborder_lt_corner_x;
crd_atlas_mainborder_toolbar_bkg_y = crd_atlas_mainborder_menu_bkg_y+crd_atlas_mainborder_menu_bkg_height;
// Bottom-right Mini Map Background.
crd_atlas_minimap_bkg_width = 180;
crd_atlas_minimap_bkg_height = 180;
crd_atlas_minimap_bkg_x = 0;
crd_atlas_minimap_bkg_y = 0;
// Bottom-right Mini Map.
crd_atlas_minimap_width = 140;
crd_atlas_minimap_height = 140;
crd_atlas_minimap_x = 20;
crd_atlas_minimap_y = 20;
}
// ====================================================================

View File

@ -83,6 +83,10 @@
<image backcolor="243 242 240" size="0 0 100% 100%" />
</sprite>
<sprite name="black">
<image backcolor="0 0 0" size="0 0 100% 100%" />
</sprite>
<sprite name="white-border">
<image backcolor="100 70 120" size="0 0 100% 100%" />
<image backcolor="255 255 255" size="-1 -1 100%+1 0" />
@ -826,6 +830,14 @@
==========================================
-->
<sprite name="atlas_mainborder_lt_corner">
<image texture="atlas/atlas_mainborder_lt_corner.png" texture-size="0 0 64 64" size="0 0 100% 100%"/>
</sprite>
<sprite name="atlas_mainborder_rt_corner">
<image texture="atlas/atlas_mainborder_rt_corner.png" texture-size="0 0 256 256" size="0 0 100% 100%"/>
</sprite>
<!--
==========================================
TEMPORARY IMAGES