Fixed 0 A.D.-style windows from yesterday to use sprite collages. Made another one as background to future hosting screen.
This was SVN commit r1496.
This commit is contained in:
parent
6194fdb400
commit
01443e4785
@ -36,6 +36,7 @@
|
||||
<object type="button" name="pregame-mainmenu-mp-button" sprite-over="pregame-mainmenu-mpbt" size="61.00% 48.50% 74.45% 66.55%" z="101" hidden="false">
|
||||
<action on="Press"><![CDATA[
|
||||
getGUIObjectByName("pregame_subwindow_bkg").hidden = false;
|
||||
getGUIObjectByName("pregame_ip_host").hidden = false;
|
||||
]]></action>
|
||||
<action on="MouseEnter"><![CDATA[
|
||||
tooltipObject = getGUIObjectByName("pregame-mainmenu-tooltip");
|
||||
@ -100,9 +101,27 @@
|
||||
|
||||
<object type="image" name="pregame_subwindow_bkg" sprite="tooltip-background" size="0 0 100% 100%" z="105" hidden="true"/>
|
||||
|
||||
<object type="empty" name="pregame_ip_host" size="0 0 100% 100%" z="1" hidden="false">
|
||||
</object>
|
||||
<object type="button" name="pregame_ip_host" sprite="0ad_window" z="106" hidden="true">Mary had a little lamb; her fleece was white as snow (the lamb's fleece; that is. Not Mary's. It'd be pretty silly if Mary had a fleece. Though I guess it's possible. I mean in this modern avant-garde world of ours, who am I to say that Mary doesn't come with a fleece at no additional cost? Ah, forget it.)
|
||||
<action on="Load"><![CDATA[
|
||||
setSizeCoord("pregame_ip_host", 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_exit_button" sprite="exit_sprite" sprite-over="exit_sprite-over">
|
||||
<action on="Load"><![CDATA[
|
||||
setSizeCoord("pregame_ip_host_exit_button", crd_pregame_iphost_exit_button_x, crd_pregame_iphost_exit_button_y, crd_pregame_iphost_exit_button_x+crd_pregame_iphost_exit_button_width, crd_pregame_iphost_exit_button_y+crd_pregame_iphost_exit_button_height, mid_screen, mid_screen, mid_screen, mid_screen);
|
||||
]]></action>
|
||||
<action on="Press"><![CDATA[
|
||||
getGUIObjectByName("pregame_subwindow_bkg").hidden = true;
|
||||
getGUIObjectByName("pregame_ip_host").hidden = true;
|
||||
]]></action>
|
||||
</object>
|
||||
|
||||
<object type="button" name="pregame_ip_host_titlebar" sprite="0ad_window_title" size="15%+54 4 85%-54 32" font="prospero18" z="165" text-align="center" text-valign="center">Direct IP Connect
|
||||
<action on="Load"><![CDATA[
|
||||
setSizeCoord("pregame_ip_host_titlebar", crd_pregame_iphost_titlebar_x, crd_pregame_iphost_titlebar_y, crd_pregame_iphost_titlebar_x+crd_pregame_iphost_titlebar_width, crd_pregame_iphost_titlebar_y+crd_pregame_iphost_titlebar_height, mid_screen, mid_screen, mid_screen, mid_screen);
|
||||
]]></action>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
|
||||
</objects>
|
||||
|
@ -1506,7 +1506,7 @@
|
||||
<object type="empty" name="session_gui_subwindow_ingame_menu" size="0 0 100% 100%" z="1" hidden="true">
|
||||
|
||||
<!-- Background -->
|
||||
<object type="image" name="subwindow_ingame_menu_bkg" sprite="message_box-gen-background" z="100" hidden="false" ghost="true">
|
||||
<object type="image" name="subwindow_ingame_menu_bkg" sprite="0ad_window" z="100" hidden="false" ghost="true">
|
||||
<action on="Load"><![CDATA[
|
||||
AddSizeCoord(this.name,
|
||||
crd_ingame_menu_bkg_x, crd_ingame_menu_bkg_y, crd_ingame_menu_bkg_x+crd_ingame_menu_bkg_width, crd_ingame_menu_bkg_y+crd_ingame_menu_bkg_height, mid_screen, mid_screen, mid_screen, mid_screen,
|
||||
@ -1514,68 +1514,6 @@
|
||||
]]></action>
|
||||
</object>
|
||||
|
||||
<!-- top -->
|
||||
<object type="image" name="subwindow_ingame_menu_border_corner_lt" sprite="message_box-corner" z="161" ghost="true" hidden="false">
|
||||
<action on="Load"><![CDATA[
|
||||
AddSizeCoord(this.name,
|
||||
crd_ingame_menu_border_corner_lt_x, crd_ingame_menu_border_corner_lt_y, crd_ingame_menu_border_corner_lt_x+crd_ingame_menu_border_corner_lt_width, crd_ingame_menu_border_corner_lt_y+crd_ingame_menu_border_corner_lt_height, mid_screen, mid_screen, mid_screen, mid_screen,
|
||||
crd_ingame_menu_border_corner_lt_x, crd_ingame_menu_border_corner_lt_y, crd_ingame_menu_border_corner_lt_x+crd_ingame_menu_border_corner_lt_width, crd_ingame_menu_border_corner_lt_y+crd_ingame_menu_border_corner_lt_height, mid_screen, mid_screen, mid_screen, mid_screen);
|
||||
]]></action>
|
||||
</object>
|
||||
<object type="image" name="subwindow_ingame_menu_border_top" sprite="message_box-border-top" z="161" ghost="true" hidden="false">
|
||||
<action on="Load"><![CDATA[
|
||||
AddSizeCoord(this.name,
|
||||
crd_ingame_menu_border_top_x, crd_ingame_menu_border_top_y, crd_ingame_menu_border_top_x+crd_ingame_menu_border_top_width, crd_ingame_menu_border_top_y+crd_ingame_menu_border_top_height, mid_screen, mid_screen, mid_screen, mid_screen,
|
||||
crd_ingame_menu_border_top_x, crd_ingame_menu_border_top_y, crd_ingame_menu_border_top_x+crd_ingame_menu_border_top_width, crd_ingame_menu_border_top_y+crd_ingame_menu_border_top_height, mid_screen, mid_screen, mid_screen, mid_screen);
|
||||
]]></action>
|
||||
</object>
|
||||
<object type="image" name="subwindow_ingame_menu_border_corner_rt" sprite="message_box-corner" z="161" ghost="true" hidden="false">
|
||||
<action on="Load"><![CDATA[
|
||||
AddSizeCoord(this.name,
|
||||
crd_ingame_menu_border_corner_rt_x, crd_ingame_menu_border_corner_rt_y, crd_ingame_menu_border_corner_rt_x+crd_ingame_menu_border_corner_rt_width, crd_ingame_menu_border_corner_rt_y+crd_ingame_menu_border_corner_rt_height, mid_screen, mid_screen, mid_screen, mid_screen,
|
||||
crd_ingame_menu_border_corner_rt_x, crd_ingame_menu_border_corner_rt_y, crd_ingame_menu_border_corner_rt_x+crd_ingame_menu_border_corner_rt_width, crd_ingame_menu_border_corner_rt_y+crd_ingame_menu_border_corner_rt_height, mid_screen, mid_screen, mid_screen, mid_screen);
|
||||
]]></action>
|
||||
</object>
|
||||
|
||||
<!-- left/right -->
|
||||
<object type="image" name="subwindow_ingame_menu_border_left" sprite="message_box-border-left" z="162" hidden="false">
|
||||
<action on="Load"><![CDATA[
|
||||
AddSizeCoord(this.name,
|
||||
crd_ingame_menu_border_left_x, crd_ingame_menu_border_left_y, crd_ingame_menu_border_left_x+crd_ingame_menu_border_left_width, crd_ingame_menu_border_left_y+crd_ingame_menu_border_left_height, mid_screen, mid_screen, mid_screen, mid_screen,
|
||||
crd_ingame_menu_border_left_x, crd_ingame_menu_border_left_y, crd_ingame_menu_border_left_x+crd_ingame_menu_border_left_width, crd_ingame_menu_border_left_y+crd_ingame_menu_border_left_height, mid_screen, mid_screen, mid_screen, mid_screen);
|
||||
]]></action>
|
||||
</object>
|
||||
<object type="image" name="subwindow_ingame_menu_border_right" sprite="message_box-border-right" z="161" hidden="false">
|
||||
<action on="Load"><![CDATA[
|
||||
AddSizeCoord(this.name,
|
||||
crd_ingame_menu_border_right_x, crd_ingame_menu_border_right_y, crd_ingame_menu_border_right_x+crd_ingame_menu_border_right_width, crd_ingame_menu_border_right_y+crd_ingame_menu_border_right_height, mid_screen, mid_screen, mid_screen, mid_screen,
|
||||
crd_ingame_menu_border_right_x, crd_ingame_menu_border_right_y, crd_ingame_menu_border_right_x+crd_ingame_menu_border_right_width, crd_ingame_menu_border_right_y+crd_ingame_menu_border_right_height, mid_screen, mid_screen, mid_screen, mid_screen);
|
||||
]]></action>
|
||||
</object>
|
||||
|
||||
<!-- bottom -->
|
||||
<object type="image" name="subwindow_ingame_menu_border_corner_lb" sprite="message_box-corner" absolute="false" z="161" hidden="false">
|
||||
<action on="Load"><![CDATA[
|
||||
AddSizeCoord(this.name,
|
||||
crd_ingame_menu_border_corner_lb_x, crd_ingame_menu_border_corner_lb_y, crd_ingame_menu_border_corner_lb_x+crd_ingame_menu_border_corner_lb_width, crd_ingame_menu_border_corner_lb_y+crd_ingame_menu_border_corner_lb_height, mid_screen, mid_screen, mid_screen, mid_screen,
|
||||
crd_ingame_menu_border_corner_lb_x, crd_ingame_menu_border_corner_lb_y, crd_ingame_menu_border_corner_lb_x+crd_ingame_menu_border_corner_lb_width, crd_ingame_menu_border_corner_lb_y+crd_ingame_menu_border_corner_lb_height, mid_screen, mid_screen, mid_screen, mid_screen);
|
||||
]]></action>
|
||||
</object>
|
||||
<object type="image" name="subwindow_ingame_menu_border_bottom" sprite="message_box-border-bottom" absolute="false" z="162" hidden="false">
|
||||
<action on="Load"><![CDATA[
|
||||
AddSizeCoord(this.name,
|
||||
crd_ingame_menu_border_bottom_x, crd_ingame_menu_border_bottom_y, crd_ingame_menu_border_bottom_x+crd_ingame_menu_border_bottom_width, crd_ingame_menu_border_bottom_y+crd_ingame_menu_border_bottom_height, mid_screen, mid_screen, mid_screen, mid_screen,
|
||||
crd_ingame_menu_border_bottom_x, crd_ingame_menu_border_bottom_y, crd_ingame_menu_border_bottom_x+crd_ingame_menu_border_bottom_width, crd_ingame_menu_border_bottom_y+crd_ingame_menu_border_bottom_height, mid_screen, mid_screen, mid_screen, mid_screen);
|
||||
]]></action>
|
||||
</object>
|
||||
<object type="image" name="subwindow_ingame_menu_border_corner_rb" sprite="message_box-corner" absolute="false" z="161" hidden="false">
|
||||
<action on="Load"><![CDATA[
|
||||
AddSizeCoord(this.name,
|
||||
crd_ingame_menu_border_corner_rb_x, crd_ingame_menu_border_corner_rb_y, crd_ingame_menu_border_corner_rb_x+crd_ingame_menu_border_corner_rb_width, crd_ingame_menu_border_corner_rb_y+crd_ingame_menu_border_corner_rb_height, mid_screen, mid_screen, mid_screen, mid_screen,
|
||||
crd_ingame_menu_border_corner_rb_x, crd_ingame_menu_border_corner_rb_y, crd_ingame_menu_border_corner_rb_x+crd_ingame_menu_border_corner_rb_width, crd_ingame_menu_border_corner_rb_y+crd_ingame_menu_border_corner_rb_height, mid_screen, mid_screen, mid_screen, mid_screen);
|
||||
]]></action>
|
||||
</object>
|
||||
|
||||
<!-- End Game button -->
|
||||
<object type="button" name="subwindow_ingame_menu_End_Game_Button" sprite="message_box-button-normal" sprite-over="message_box-button-over" hotkey="endgame" text-align="center" text-valign="center" z="170" hidden="false">
|
||||
<action on="Load"><![CDATA[
|
||||
|
@ -12,59 +12,23 @@ function initPreGame()
|
||||
|
||||
function initIPHost()
|
||||
{
|
||||
// In-Game Menu background.
|
||||
crd_pregame_iphost_bkg_x = -150;
|
||||
// IP Host Window background.
|
||||
crd_pregame_iphost_bkg_x = -350;
|
||||
crd_pregame_iphost_bkg_y = -200;
|
||||
crd_pregame_iphost_bkg_width = (crd_pregame_iphost_bkg_x * -1) * 2;
|
||||
crd_pregame_iphost_bkg_height = (crd_pregame_iphost_bkg_y * -1) * 2;
|
||||
|
||||
// Border corner lt.
|
||||
crd_pregame_iphost_border_corner_lt_x = crd_pregame_iphost_bkg_x;
|
||||
crd_pregame_iphost_border_corner_lt_y = crd_pregame_iphost_bkg_y;
|
||||
crd_pregame_iphost_border_corner_lt_width = 15;
|
||||
crd_pregame_iphost_border_corner_lt_height = crd_pregame_iphost_border_corner_lt_width;
|
||||
// IP Host Window exit button.
|
||||
crd_pregame_iphost_exit_button_width = 16;
|
||||
crd_pregame_iphost_exit_button_height = crd_pregame_iphost_exit_button_width;
|
||||
crd_pregame_iphost_exit_button_x = crd_pregame_iphost_bkg_x+crd_pregame_iphost_bkg_width+10;
|
||||
crd_pregame_iphost_exit_button_y = crd_pregame_iphost_bkg_y-25;
|
||||
|
||||
// Border corner top.
|
||||
crd_pregame_iphost_border_top_x = crd_pregame_iphost_border_corner_lt_x + crd_pregame_iphost_border_corner_lt_width;
|
||||
crd_pregame_iphost_border_top_y = crd_pregame_iphost_border_corner_lt_y;
|
||||
crd_pregame_iphost_border_top_width = crd_pregame_iphost_bkg_width-crd_pregame_iphost_border_corner_lt_width-crd_pregame_iphost_border_corner_lt_width;
|
||||
crd_pregame_iphost_border_top_height = 32;
|
||||
|
||||
// Border corner rt.
|
||||
crd_pregame_iphost_border_corner_rt_x = crd_pregame_iphost_border_top_x+crd_pregame_iphost_border_top_width;
|
||||
crd_pregame_iphost_border_corner_rt_y = crd_pregame_iphost_border_corner_lt_y;
|
||||
crd_pregame_iphost_border_corner_rt_width = crd_pregame_iphost_border_corner_lt_width;
|
||||
crd_pregame_iphost_border_corner_rt_height = crd_pregame_iphost_border_corner_lt_height;
|
||||
|
||||
// Border corner left.
|
||||
crd_pregame_iphost_border_left_x = crd_pregame_iphost_border_corner_lt_x;
|
||||
crd_pregame_iphost_border_left_y = crd_pregame_iphost_border_corner_lt_y+crd_pregame_iphost_border_corner_lt_height;
|
||||
crd_pregame_iphost_border_left_width = 20;
|
||||
crd_pregame_iphost_border_left_height = (crd_pregame_iphost_bkg_y+crd_pregame_iphost_bkg_height-crd_pregame_iphost_border_corner_lt_height)*2;
|
||||
|
||||
// Border corner right.
|
||||
crd_pregame_iphost_border_right_width = crd_pregame_iphost_border_left_width*2;
|
||||
crd_pregame_iphost_border_right_height = crd_pregame_iphost_border_left_height;
|
||||
crd_pregame_iphost_border_right_x = crd_pregame_iphost_bkg_x+crd_pregame_iphost_bkg_width-crd_pregame_iphost_border_top_height;
|
||||
crd_pregame_iphost_border_right_y = crd_pregame_iphost_border_left_y;
|
||||
|
||||
// Border corner lb.
|
||||
crd_pregame_iphost_border_corner_lb_x = crd_pregame_iphost_border_corner_lt_x;
|
||||
crd_pregame_iphost_border_corner_lb_y = crd_pregame_iphost_bkg_y+crd_pregame_iphost_bkg_height-crd_pregame_iphost_border_corner_lt_height;
|
||||
crd_pregame_iphost_border_corner_lb_width = crd_pregame_iphost_border_corner_lt_width;
|
||||
crd_pregame_iphost_border_corner_lb_height = crd_pregame_iphost_border_corner_lb_width;
|
||||
|
||||
// Border corner bottom.
|
||||
crd_pregame_iphost_border_bottom_width = crd_pregame_iphost_border_top_width;
|
||||
crd_pregame_iphost_border_bottom_height = crd_pregame_iphost_border_top_height;
|
||||
crd_pregame_iphost_border_bottom_x = crd_pregame_iphost_border_top_x;
|
||||
crd_pregame_iphost_border_bottom_y = crd_pregame_iphost_bkg_y+crd_pregame_iphost_bkg_height-crd_pregame_iphost_border_bottom_height;
|
||||
|
||||
// Border corner rb.
|
||||
crd_pregame_iphost_border_corner_rb_x = crd_pregame_iphost_border_corner_rt_x;
|
||||
crd_pregame_iphost_border_corner_rb_y = crd_pregame_iphost_border_corner_lb_y;
|
||||
crd_pregame_iphost_border_corner_rb_width = crd_pregame_iphost_border_corner_rt_width;
|
||||
crd_pregame_iphost_border_corner_rb_height = crd_pregame_iphost_border_corner_rt_height;
|
||||
// IP Host Window titlebar.
|
||||
crd_pregame_iphost_titlebar_width = crd_pregame_iphost_bkg_width;
|
||||
crd_pregame_iphost_titlebar_height = 16;
|
||||
crd_pregame_iphost_titlebar_x = crd_pregame_iphost_bkg_x;
|
||||
crd_pregame_iphost_titlebar_y = crd_pregame_iphost_bkg_y-25;
|
||||
}
|
||||
|
||||
// ====================================================================
|
@ -69,6 +69,19 @@ function setSize(objectName, sizeString)
|
||||
|
||||
// ====================================================================
|
||||
|
||||
function setSizeCoord(objectName, left, top, right, bottom, rleft, rtop, rright, rbottom)
|
||||
{
|
||||
// Use this function as a shortcut to change the size of a GUI control, specifying individual coordinates.
|
||||
|
||||
// Get GUI object
|
||||
GUIObject = getGUIObjectByName(objectName);
|
||||
|
||||
// Set size
|
||||
GUIObject.size = new GUISize(left, top, right, bottom, rleft, rtop, rright, rbottom);
|
||||
}
|
||||
|
||||
// ====================================================================
|
||||
|
||||
function FlipGUI(NewGUIType)
|
||||
{
|
||||
// Sets the GUI coordinates and graphics so that the panel is either at the top or bottom of the screen.
|
||||
|
@ -1,64 +1,16 @@
|
||||
function initSubWindows()
|
||||
{
|
||||
// In-Game Menu background.
|
||||
crd_ingame_menu_bkg_x = -150;
|
||||
crd_ingame_menu_bkg_y = -200;
|
||||
crd_ingame_menu_bkg_x = -100;
|
||||
crd_ingame_menu_bkg_y = -150;
|
||||
crd_ingame_menu_bkg_width = (crd_ingame_menu_bkg_x * -1) * 2;
|
||||
crd_ingame_menu_bkg_height = (crd_ingame_menu_bkg_y * -1) * 2;
|
||||
|
||||
// Border corner lt.
|
||||
crd_ingame_menu_border_corner_lt_x = crd_ingame_menu_bkg_x;
|
||||
crd_ingame_menu_border_corner_lt_y = crd_ingame_menu_bkg_y;
|
||||
crd_ingame_menu_border_corner_lt_width = 15;
|
||||
crd_ingame_menu_border_corner_lt_height = crd_ingame_menu_border_corner_lt_width;
|
||||
|
||||
// Border corner top.
|
||||
crd_ingame_menu_border_top_x = crd_ingame_menu_border_corner_lt_x + crd_ingame_menu_border_corner_lt_width;
|
||||
crd_ingame_menu_border_top_y = crd_ingame_menu_border_corner_lt_y;
|
||||
crd_ingame_menu_border_top_width = crd_ingame_menu_bkg_width-crd_ingame_menu_border_corner_lt_width-crd_ingame_menu_border_corner_lt_width;
|
||||
crd_ingame_menu_border_top_height = 32;
|
||||
|
||||
// Border corner rt.
|
||||
crd_ingame_menu_border_corner_rt_x = crd_ingame_menu_border_top_x+crd_ingame_menu_border_top_width;
|
||||
crd_ingame_menu_border_corner_rt_y = crd_ingame_menu_border_corner_lt_y;
|
||||
crd_ingame_menu_border_corner_rt_width = crd_ingame_menu_border_corner_lt_width;
|
||||
crd_ingame_menu_border_corner_rt_height = crd_ingame_menu_border_corner_lt_height;
|
||||
|
||||
// Border corner left.
|
||||
crd_ingame_menu_border_left_x = crd_ingame_menu_border_corner_lt_x;
|
||||
crd_ingame_menu_border_left_y = crd_ingame_menu_border_corner_lt_y+crd_ingame_menu_border_corner_lt_height;
|
||||
crd_ingame_menu_border_left_width = 20;
|
||||
crd_ingame_menu_border_left_height = (crd_ingame_menu_bkg_y+crd_ingame_menu_bkg_height-crd_ingame_menu_border_corner_lt_height)*2;
|
||||
|
||||
// Border corner right.
|
||||
crd_ingame_menu_border_right_width = crd_ingame_menu_border_left_width*2;
|
||||
crd_ingame_menu_border_right_height = crd_ingame_menu_border_left_height;
|
||||
crd_ingame_menu_border_right_x = crd_ingame_menu_bkg_x+crd_ingame_menu_bkg_width-crd_ingame_menu_border_top_height;
|
||||
crd_ingame_menu_border_right_y = crd_ingame_menu_border_left_y;
|
||||
|
||||
// Border corner lb.
|
||||
crd_ingame_menu_border_corner_lb_x = crd_ingame_menu_border_corner_lt_x;
|
||||
crd_ingame_menu_border_corner_lb_y = crd_ingame_menu_bkg_y+crd_ingame_menu_bkg_height-crd_ingame_menu_border_corner_lt_height;
|
||||
crd_ingame_menu_border_corner_lb_width = crd_ingame_menu_border_corner_lt_width;
|
||||
crd_ingame_menu_border_corner_lb_height = crd_ingame_menu_border_corner_lb_width;
|
||||
|
||||
// Border corner bottom.
|
||||
crd_ingame_menu_border_bottom_width = crd_ingame_menu_border_top_width;
|
||||
crd_ingame_menu_border_bottom_height = crd_ingame_menu_border_top_height;
|
||||
crd_ingame_menu_border_bottom_x = crd_ingame_menu_border_top_x;
|
||||
crd_ingame_menu_border_bottom_y = crd_ingame_menu_bkg_y+crd_ingame_menu_bkg_height-crd_ingame_menu_border_bottom_height;
|
||||
|
||||
// Border corner rb.
|
||||
crd_ingame_menu_border_corner_rb_x = crd_ingame_menu_border_corner_rt_x;
|
||||
crd_ingame_menu_border_corner_rb_y = crd_ingame_menu_border_corner_lb_y;
|
||||
crd_ingame_menu_border_corner_rb_width = crd_ingame_menu_border_corner_rt_width;
|
||||
crd_ingame_menu_border_corner_rb_height = crd_ingame_menu_border_corner_rt_height;
|
||||
|
||||
// Return button.
|
||||
crd_ingame_menu_return_button_width = crd_ingame_menu_border_right_x-crd_ingame_menu_border_left_x-30;
|
||||
crd_ingame_menu_return_button_width = crd_ingame_menu_bkg_width;
|
||||
crd_ingame_menu_return_button_height = 34;
|
||||
crd_ingame_menu_return_button_x = crd_ingame_menu_border_left_x+crd_ingame_menu_border_left_width+10;
|
||||
crd_ingame_menu_return_button_y = crd_ingame_menu_border_bottom_y+crd_ingame_menu_border_bottom_height-(crd_ingame_menu_return_button_height*2);
|
||||
crd_ingame_menu_return_button_x = crd_ingame_menu_bkg_x;
|
||||
crd_ingame_menu_return_button_y = crd_ingame_menu_bkg_y+crd_ingame_menu_bkg_height-crd_ingame_menu_return_button_height;
|
||||
crd_ingame_menu_button_span = 5;
|
||||
|
||||
// Exit button.
|
||||
@ -72,8 +24,6 @@ function initSubWindows()
|
||||
crd_ingame_menu_end_button_height = crd_ingame_menu_exit_button_height;
|
||||
crd_ingame_menu_end_button_x = crd_ingame_menu_exit_button_x;
|
||||
crd_ingame_menu_end_button_y = crd_ingame_menu_exit_button_y-crd_ingame_menu_exit_button_height-crd_ingame_menu_button_span;
|
||||
|
||||
// End Game button.
|
||||
}
|
||||
|
||||
// ====================================================================
|
@ -159,6 +159,28 @@
|
||||
<image backcolor="0 0 0" size="100% 0 100%+1 100%" />
|
||||
</sprite>
|
||||
|
||||
<!-- Standard 0 A.D.-style framed window -->
|
||||
<sprite name="0ad_window">
|
||||
<!-- middle -->
|
||||
<image texture="global/ui_gen_background_paper.png" texture-size="0 0 128 128" size="0%-10 0%-10 100%+10 100%+10" />
|
||||
<!-- Starting with top left corner continuing in a clockwise manner -->
|
||||
<image texture="global/ui_gen_border-corner-15px.png" real-texture-placement="0 0 15 15" size="0%-25 0%-25 0%-10 0%-10" />
|
||||
<image texture="global/ui_gen_border-top-20px.png" texture-size="0 0 128 32" size="0%-10 0%-25 100%+10 0%+7" />
|
||||
<image texture="global/ui_gen_border-corner-15px.png" real-texture-placement="0 0 15 15" size="100%+10 0%-25 100%+25 0%-10" />
|
||||
<image texture="global/ui_gen_border-right-20px.png" texture-size="0 0 32 128" size="100%-6 0%-10 100%+26 100%+10" />
|
||||
<image texture="global/ui_gen_border-corner-15px.png" real-texture-placement="0 0 15 15" size="100%+10 100%+10 100%+25 100%+25" />
|
||||
<image texture="global/ui_gen_border-bottom-20px.png" texture-size="0 0 128 32" size="0%-10 100%-7 100%+10 100%+25" />
|
||||
<image texture="global/ui_gen_border-corner-15px.png" real-texture-placement="0 0 15 15" size="0%-25 100%+10 0%-10 100%+25" />
|
||||
<image texture="global/ui_gen_border-left-20px.png" texture-size="0 0 32 128" size="0%-25 0%-10 0%+7 100%+10" />
|
||||
</sprite>
|
||||
|
||||
<!-- Standard 0 A.D.-style window's title bar -->
|
||||
<sprite name="0ad_window_title">
|
||||
<image texture="global/ui_gen_titlebar-left.png" real-texture-placement="0 0 64 32" size="0%+0 0%-10 5%+64 0%+22" />
|
||||
<image texture="global/ui_gen_titlebar-middle.png" real-texture-placement="0 0 64 32" size="5%+64 0%-10 95%-64 0%+22" />
|
||||
<image texture="global/ui_gen_titlebar-right.png" real-texture-placement="0 0 64 32" size="95%-64 0%-10 100%+0 0%+22" />
|
||||
</sprite>
|
||||
|
||||
<!--
|
||||
==========================================
|
||||
PREGAME GUI
|
||||
|
Loading…
Reference in New Issue
Block a user