This was SVN commit r1582.
This commit is contained in:
parent
7ce95fdaa4
commit
7c390625c9
@ -15,7 +15,7 @@
|
||||
<!-- 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 -->
|
||||
<!-- LEFT SELECTION PANE: Context panel along the left-hand side of the screen. -->
|
||||
<object type="empty" name="atlas_left_pane" size="0 0 100% 100%" z="1" hidden="false">
|
||||
|
||||
<!-- LEFT SELECTION PANE BACKGROUND -->
|
||||
@ -26,7 +26,7 @@
|
||||
</object>
|
||||
</object>
|
||||
|
||||
<!-- BOTTOM SELECTION PANE -->
|
||||
<!-- BOTTOM SELECTION PANE: Context panel along the bottom of the screen. -->
|
||||
<object type="empty" name="atlas_bottom_pane" size="0 0 100% 100%" z="1" hidden="false">
|
||||
|
||||
<!-- BOTTOM SELECTION BACKGROUND -->
|
||||
@ -58,7 +58,7 @@
|
||||
</object>
|
||||
</object>
|
||||
|
||||
<!-- RB: MINIMAP -->
|
||||
<!-- RB: MINIMAP: Displays whole map. Identical functionality to session map, just a little smaller. -->
|
||||
<!-- 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[
|
||||
@ -87,14 +87,24 @@
|
||||
]]></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>
|
||||
<!-- RT: INFO WINDOW: Displays editor information such as FPS and map name. -->
|
||||
<object type="empty" name="atlas_info_window_pane" size="0 0 100% 100%" z="1" hidden="false">
|
||||
<!-- RT: INFO WINDOW BACKGROUND -->
|
||||
<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>
|
||||
<!-- RT: INFO WINDOW BAR -->
|
||||
<object type="button" name="atlas_info_window" sprite="atlas_window_white" font="tahoma10" textcolor="0 0 0" text-align="left" text-valign="center" tooltip-style="atlas_tooltip" tooltip="Information about the current scenario." z="60" hidden="false">
|
||||
<action on="Load"><![CDATA[
|
||||
setSizeCoord("atlas_info_window", crd_atlas_info_window_x, crd_atlas_info_window_y, crd_atlas_info_window_x+crd_atlas_info_window_width, crd_atlas_info_window_y+crd_atlas_info_window_height, right_screen, top_screen, right_screen, top_screen);
|
||||
setInterval(atlasUpdateInfoWindow, 500);
|
||||
]]></action>
|
||||
</object>
|
||||
</object>
|
||||
|
||||
<!-- TOOLTIP WINDOW -->
|
||||
<!-- TOOLTIP WINDOW: Displays current tooltip above the Mini Map. -->
|
||||
<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_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);
|
||||
|
@ -17,6 +17,12 @@ function initAtlas()
|
||||
crd_atlas_mainborder_rt_corner_x = -crd_atlas_mainborder_rt_corner_width;
|
||||
crd_atlas_mainborder_rt_corner_y = crd_atlas_mainborder_lt_corner_y;
|
||||
|
||||
// Info window in top-right corner.
|
||||
crd_atlas_info_window_width = crd_atlas_mainborder_rt_corner_width-30-6;
|
||||
crd_atlas_info_window_height = crd_atlas_mainborder_rt_corner_height-9;
|
||||
crd_atlas_info_window_x = -crd_atlas_info_window_width-3;
|
||||
crd_atlas_info_window_y = crd_atlas_mainborder_rt_corner_y+3;
|
||||
|
||||
// Top menu bar.
|
||||
crd_atlas_mainborder_menu_bkg_width = crd_atlas_mainborder_rt_corner_width;
|
||||
crd_atlas_mainborder_menu_bkg_height = 19;
|
||||
@ -72,4 +78,11 @@ function initAtlas()
|
||||
crd_atlas_tooltip_y = crd_atlas_minimap_bkg_y+crd_atlas_minimap_bkg_height+4;
|
||||
}
|
||||
|
||||
// ====================================================================
|
||||
|
||||
function atlasUpdateInfoWindow()
|
||||
{
|
||||
getGUIObjectByName("atlas_info_window").caption = "File: something.map\nOwner: Someone\nFPS: " + getFPS();
|
||||
}
|
||||
|
||||
// ====================================================================
|
@ -80,7 +80,7 @@
|
||||
use-object="atlas_tooltip"
|
||||
hide-object="true"
|
||||
delay="0"
|
||||
/>
|
||||
/>
|
||||
|
||||
<tooltip name="session-tooltip"
|
||||
maxwidth="300"
|
||||
|
@ -746,6 +746,28 @@
|
||||
<image backcolor="184 190 201" size="0 3 100% 100%"/>
|
||||
</sprite>
|
||||
|
||||
<sprite name="atlas_window_white">
|
||||
<!-- 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 -->
|
||||
<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%+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="255 255 255" size="3 3 100%-3 100%-3"/>
|
||||
</sprite>
|
||||
|
||||
<sprite name="atlas_input_box">
|
||||
<!-- Starting with top left corner continuing in a clockwise manner -->
|
||||
<!-- Top border -->
|
||||
|
Loading…
Reference in New Issue
Block a user