1
0
forked from 0ad/0ad

Modest additions to the in-game editor GUI layout.

This was SVN commit r1581.
This commit is contained in:
Acumen 2004-12-28 01:58:28 +00:00
parent 05c4ec0365
commit 7ce95fdaa4
8 changed files with 180 additions and 53 deletions

Binary file not shown.

View File

@ -15,22 +15,73 @@
<!-- 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"/>
<!-- LEFT SELECTION PANE -->
<object type="empty" name="atlas_left_pane" size="0 0 100% 100%" z="1" hidden="false">
<!-- LEFT SELECTION PANE BACKGROUND -->
<object type="text" name="atlas_left_pane_bkg" sprite="atlas_window_rt_border" z="60" hidden="false">
<action on="Load"><![CDATA[
setSizeCoord("atlas_left_pane_bkg", crd_atlas_left_pane_bkg_x, crd_atlas_left_pane_bkg_y, crd_atlas_left_pane_bkg_x+crd_atlas_left_pane_bkg_width, -crd_atlas_left_pane_bkg_height, left_screen, top_screen, left_screen, bottom_screen);
]]></action>
</object>
</object>
<!-- BOTTOM SELECTION PANE -->
<object type="empty" name="atlas_bottom_pane" size="0 0 100% 100%" z="1" hidden="false">
<!-- BOTTOM SELECTION BACKGROUND -->
<object type="text" name="atlas_bottom_pane_bkg" sprite="atlas_window_rt_border" z="60" hidden="false">
<action on="Load"><![CDATA[
setSizeCoord("atlas_bottom_pane_bkg", crd_atlas_bottom_pane_bkg_x, -crd_atlas_bottom_pane_bkg_y-crd_atlas_bottom_pane_bkg_height, crd_atlas_bottom_pane_bkg_x+crd_atlas_bottom_pane_bkg_width, 0, left_screen, bottom_screen, right_screen, bottom_screen);
]]></action>
</object>
<!-- LEFT/BOTTOM SELECTION PANE CORNER -->
<object type="text" name="atlas_lb_corner" sprite="atlas_lb_corner" z="60" hidden="false">
<action on="Load"><![CDATA[
setSizeCoord("atlas_lb_corner", crd_atlas_lb_corner_x, -crd_atlas_lb_corner_y-crd_atlas_lb_corner_height, crd_atlas_lb_corner_x+crd_atlas_lb_corner_width, -crd_atlas_lb_corner_y, left_screen, bottom_screen, left_screen, bottom_screen);
]]></action>
</object>
<!-- RB: MINIMAP BACKGROUND -->
<object type="text" name="atlas_minimap_bkg" sprite="atlas_window_t_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>
<!-- RIGHT/BOTTOM SELECTION PANE CORNER -->
<object type="text" name="atlas_rb_corner" sprite="atlas_rb_corner_x2" z="60" hidden="false">
<action on="Load"><![CDATA[
setSizeCoord("atlas_rb_corner", -crd_atlas_rb_corner_x-crd_atlas_rb_corner_width, -crd_atlas_rb_corner_y-crd_atlas_rb_corner_height, -crd_atlas_rb_corner_x, -crd_atlas_rb_corner_y, right_screen, bottom_screen, right_screen, bottom_screen);
]]></action>
</object>
</object>
<!-- RB: MINIMAP -->
<!-- Later change this to type minimap, no sprite (doesn't do anything if not in simulation mode). -->
<object type="text" name="atlas_minimap" sprite="atlas_window" 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>
<!-- TOP: MENU -->
<object type="button" name="atlas_mainborder_menu_bkg" sprite="atlas_menubar_bkg" z="60" hidden="false">
<object type="text" 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">
<object type="text" 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">
<object type="text" name="atlas_mainborder_lt_corner" sprite="atlas_mainborder_lt_corner" tooltip-style="atlas_tooltip" tooltip="Mmm, nothing like the smell of blatant self-promotion in the morning ..." 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>
@ -43,16 +94,10 @@
]]></action>
</object>
<!-- RB: MINIMAP -->
<object type="button" name="atlas_minimap_bkg" sprite="atlas_border" z="60" hidden="false">
<!-- TOOLTIP WINDOW -->
<object type="text" name="atlas_tooltip" sprite="atlas_tooltip_background" font="tahoma10" textcolor="0 0 0" z="104" hidden="true" ghost="true">
<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);
setSizeCoord("atlas_tooltip", -crd_atlas_tooltip_x-crd_atlas_tooltip_width, -crd_atlas_tooltip_y-crd_atlas_tooltip_height, -crd_atlas_tooltip_x, -crd_atlas_tooltip_y, right_screen, bottom_screen, right_screen, bottom_screen);
]]></action>
</object>
</object>

View File

@ -25,13 +25,19 @@ function initAtlas()
// 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_height = 20;
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;
// Left-hand selection pane.
crd_atlas_left_pane_bkg_width = 187;
crd_atlas_left_pane_bkg_height = crd_atlas_mainborder_toolbar_bkg_y-crd_atlas_mainborder_toolbar_bkg_height;
crd_atlas_left_pane_bkg_x = crd_atlas_mainborder_lt_corner_x;
crd_atlas_left_pane_bkg_y = crd_atlas_mainborder_toolbar_bkg_y+crd_atlas_mainborder_toolbar_bkg_height;
// Bottom-right Mini Map Background.
crd_atlas_minimap_bkg_width = 180;
crd_atlas_minimap_bkg_height = 180;
crd_atlas_minimap_bkg_width = 182;
crd_atlas_minimap_bkg_height = 182;
crd_atlas_minimap_bkg_x = 0;
crd_atlas_minimap_bkg_y = 0;
@ -40,6 +46,30 @@ function initAtlas()
crd_atlas_minimap_height = 140;
crd_atlas_minimap_x = 20;
crd_atlas_minimap_y = 20;
// Bottom selection pane.
crd_atlas_bottom_pane_bkg_width = crd_atlas_left_pane_bkg_x-crd_atlas_left_pane_bkg_width-crd_atlas_minimap_bkg_x-crd_atlas_minimap_bkg_width+6;
crd_atlas_bottom_pane_bkg_height = 148;
crd_atlas_bottom_pane_bkg_x = crd_atlas_left_pane_bkg_x+crd_atlas_left_pane_bkg_width-3;
crd_atlas_bottom_pane_bkg_y = crd_atlas_left_pane_bkg_height;
// Left-Bottom selection pane corner.
crd_atlas_lb_corner_width = 20;
crd_atlas_lb_corner_height = 20;
crd_atlas_lb_corner_x = crd_atlas_left_pane_bkg_x+crd_atlas_left_pane_bkg_width-3;
crd_atlas_lb_corner_y = crd_atlas_bottom_pane_bkg_height-4;
// Right-Bottom selection pane corner.
crd_atlas_rb_corner_width = (crd_atlas_minimap_bkg_height-crd_atlas_bottom_pane_bkg_height)+3;
crd_atlas_rb_corner_height = crd_atlas_rb_corner_width;
crd_atlas_rb_corner_x = crd_atlas_minimap_bkg_width-2;
crd_atlas_rb_corner_y = crd_atlas_bottom_pane_bkg_height-4;
// Atlas tooltip window.
crd_atlas_tooltip_width = crd_atlas_minimap_bkg_width-20;
crd_atlas_tooltip_height = 82;
crd_atlas_tooltip_x = crd_atlas_minimap_bkg_x+10;
crd_atlas_tooltip_y = crd_atlas_minimap_bkg_y+crd_atlas_minimap_bkg_height+4;
}
// ====================================================================

View File

@ -92,7 +92,7 @@ function startLoadingScreen()
getGUIObjectByName("loading_screen_tip").caption = "Wise man once say ...\nHe who thinks slow, he act in haste, be rash and quick and foolish. But he that thinks too much, acts too slowly. The stupid always win, Commandersan. Remember that. You are tiny grasshopper.";
// Begin game session.
setTimeout( loadSession, 10 );
setTimeout( loadSession, 20 );
}
// ====================================================================

View File

@ -76,6 +76,12 @@
delay="0"
/>
<tooltip name="atlas_tooltip"
use-object="atlas_tooltip"
hide-object="true"
delay="0"
/>
<tooltip name="session-tooltip"
maxwidth="300"
offset="16 32"

View File

@ -698,25 +698,54 @@
<sprite name="atlas_window">
<!-- Starting with top left corner continuing in a clockwise manner -->
<!-- Top border -->
<image backcolor="129 134 142" size="0%+0 0%+0 100%-1 0%+0" />
<image backcolor="255 255 255" size="0%+1 0%+1 100%-1 0%+1" />
<image backcolor="80 97 127" size="2 0%+2 100%-2 0%+2" />
<image backcolor="129 134 142" size="0%+0 0%+0 100%-1 0%+1" />
<image backcolor="255 255 255" size="0%+1 0%+1 100%-1 0%+2" />
<image backcolor="80 97 127" size="2 0%+2 100%-2 0%+3" />
<!-- Right border -->
<image backcolor="80 97 127" size="100% 0%+0 100% 100%" />
<image backcolor="255 255 255" size="100%-1 0%+1 100%-1 100%-1" />
<image backcolor="129 134 142" size="100%-2 0%+3 100%-2 100%-2" />
<image backcolor="80 97 127" size="100%-1 0%+0 100% 100%" />
<image backcolor="255 255 255" size="100%-1 0%+1 100%-2 100%-1" />
<image backcolor="129 134 142" size="100%-2 0%+3 100%-3 100%-2" />
<!-- Bottom border -->
<image backcolor="80 97 127" size="0%+1 100% 100% 100%" />
<image backcolor="255 255 255" size="0%+1 100%-1 100%-1 100%-1" />
<image backcolor="129 134 142" size="0%+2 100%-2 100%-2 100%-2" />
<image backcolor="80 97 127" size="0%+1 100%-1 100% 100%" />
<image backcolor="255 255 255" size="0%+1 100%-1 100%-1 100%-2" />
<image backcolor="129 134 142" size="0%+2 100%-2 100%-2 100%-3" />
<!-- Left border -->
<image backcolor="129 134 142" size="0%+0 0%+0 0%+0 100%" />
<image backcolor="255 255 255" size="0%+1 0%+1 0%+1 100%-1" />
<image backcolor="80 97 127" size="0%+2 0%+2 0%+2 100%-3" />
<image backcolor="129 134 142" size="0%+0 0%+0 0%+1 100%" />
<image backcolor="255 255 255" size="0%+1 0%+1 0%+2 100%-1" />
<image backcolor="80 97 127" size="0%+2 0%+2 0%+3 100%-3" />
<!-- middle -->
<image backcolor="184 190 201" size="3 3 100%-3 100%-3"/>
</sprite>
<sprite name="atlas_window_rt_border">
<!-- Starting with top left corner continuing in a clockwise manner -->
<!-- Top border -->
<image backcolor="129 134 142" size="0%+0 0%+0 100%-1 0%+1" />
<image backcolor="255 255 255" size="0%+1 0%+1 100%-1 0%+2" />
<image backcolor="80 97 127" size="2 0%+2 100%-2 0%+3" />
<!-- Right border -->
<image backcolor="80 97 127" size="100%-1 0%+0 100% 100%" />
<image backcolor="255 255 255" size="100%-1 0%+1 100%-2 100%-1" />
<image backcolor="129 134 142" size="100%-2 0%+3 100%-3 100%-2" />
<!-- Bottom border -->
<!-- Left border -->
<!-- middle -->
<image backcolor="184 190 201" size="0 3 100%-3 100%"/>
</sprite>
<sprite name="atlas_window_t_border">
<!-- Starting with top left corner continuing in a clockwise manner -->
<!-- Top border -->
<image backcolor="129 134 142" size="0%+0 0%+0 100%-1 0%+1" />
<image backcolor="255 255 255" size="0%+1 0%+1 100%-1 0%+2" />
<image backcolor="80 97 127" size="2 0%+2 100%-2 0%+3" />
<!-- Right border -->
<!-- Bottom border -->
<!-- Left border -->
<!-- middle -->
<image backcolor="184 190 201" size="0 3 100% 100%"/>
</sprite>
<sprite name="atlas_input_box">
<!-- Starting with top left corner continuing in a clockwise manner -->
<!-- Top border -->
@ -775,47 +804,47 @@
<sprite name="atlas_toolbar_bkg">
<image backcolor="184 190 201" size="0 0 100% 100%-3" />
<image backcolor="109 122 146" size="0 100%-2 100% 100%-2" />
<image backcolor="220 223 228" size="0 100%-1 100% 100%-1" />
<image backcolor="147 152 161" size="0 100% 100% 100%" />
<image backcolor="109 122 146" size="0 100%-2 100% 100%-1" />
<image backcolor="220 223 228" size="0 100% 100% 100%-1" />
<image backcolor="147 152 161" size="0 100%-1 100% 100%" />
</sprite>
<sprite name="atlas_menubar_bkg">
<image backcolor="184 190 201" size="0 0 100% 100%-1" />
<image backcolor="0 0 0" size="0 100% 100% 100%" />
<image backcolor="0 0 0" size="0 100%-1 100% 100%" />
</sprite>
<sprite name="atlas_border">
<!-- Starting with top left corner continuing in a clockwise manner -->
<!-- Top border -->
<image backcolor="109 122 146" size="1 0 100%-1 0" />
<image backcolor="220 223 228" size="1 1 100%-3 1" />
<image backcolor="184 190 201" size="100%-2 1 100%-2 1" />
<image backcolor="109 122 146" size="1 0 100%-1 1" />
<image backcolor="220 223 228" size="1 1 100%-3 2" />
<image backcolor="184 190 201" size="100%-1 1 100%-2 2" />
<!-- Right border -->
<image backcolor="220 223 228" size="100% 0 100% 100%" />
<image backcolor="109 122 146" size="100%-1 0 100%-1 100%-1" />
<image backcolor="220 223 228" size="100%-1 0 100% 100%" />
<image backcolor="109 122 146" size="100%-1 0 100%-2 100%-1" />
<!-- Bottom border -->
<image backcolor="220 223 228" size="0% 100% 100% 100%" />
<image backcolor="109 122 146" size="0% 100%-1 100% 100%-1" />
<image backcolor="220 223 228" size="0% 100%-1 100% 100%" />
<image backcolor="109 122 146" size="0% 100%-1 100% 100%-2" />
<!-- Left border -->
<image backcolor="109 122 146" size="0 1 0 100%-2" />
<image backcolor="220 223 228" size="1 1 1 100%-2" />
<image backcolor="109 122 146" size="0 1 1 100%-2" />
<image backcolor="220 223 228" size="1 1 2 100%-2" />
</sprite>
<sprite name="atlas_button">
<!-- Starting with top left corner continuing in a clockwise manner -->
<!-- Top border -->
<image backcolor="184 190 201" size="0 0 100%-1 0" />
<image backcolor="220 223 228" size="1 1 100%-2 1" />
<image backcolor="184 190 201" size="0 0 100%-1 1" />
<image backcolor="220 223 228" size="1 1 100%-2 2" />
<!-- Right border -->
<image backcolor="0 0 0" size="100% 0 100% 100%" />
<image backcolor="109 122 146" size="100%-1 1 100%-1 100%-1" />
<image backcolor="0 0 0" size="100%-1 0 100% 100%" />
<image backcolor="109 122 146" size="100%-1 1 100%-2 100%-1" />
<!-- Bottom border -->
<image backcolor="0 0 0" size="0 100% 100% 100%" />
<image backcolor="109 122 146" size="1 100%-1 100%-1 100%-1" />
<image backcolor="0 0 0" size="0 100%-1 100% 100%" />
<image backcolor="109 122 146" size="1 100%-1 100%-1 100%" />
<!-- Left border -->
<image backcolor="184 190 201" size="0 0 0 100%-1" />
<image backcolor="220 223 228" size="1 1 1 100%-1" />
<image backcolor="184 190 201" size="0 0 1 100%-1" />
<image backcolor="220 223 228" size="1 1 2 100%-1" />
<!-- middle -->
<image backcolor="184 190 201" size="2 2 100%-2 100%-2"/>
</sprite>
@ -824,6 +853,10 @@
<image backcolor="184 190 201" size="0 0 100% 100%"/>
</sprite>
<sprite name="atlas_tooltip_background">
<image backcolor="255 255 255 95" size="0 0 100% 100%"/>
</sprite>
<!--
==========================================
EDITOR GUI - TEXTURED SPRITES
@ -838,6 +871,16 @@
<image texture="atlas/atlas_mainborder_rt_corner.png" texture-size="0 0 256 64" size="0 0 100% 100%"/>
</sprite>
<sprite name="atlas_lb_corner">
<image texture="atlas/atlas_global_corner_lb.png" texture-size="0 0 32 32" size="0 0 100% 100%"/>
</sprite>
<sprite name="atlas_rb_corner_x2">
<image texture="atlas/atlas_global_corner_rb_x2.png" texture-size="0 0 100% 100%" size="0 0 100% 100%"/>
<image backcolor="184 190 201" size="0 100%-1 100% 100%"/>
<image backcolor="184 190 201" size="100%-1 0 100% 100%"/>
</sprite>
<!--
==========================================
TEMPORARY IMAGES