Initial work on GUI coordinate revision (implemented for Manual and Editor, anyway), though Editor currently has a strange infinite loop on startup I'm too tired to squash right now. Broke Editor script so game'll work in the meantime; will fix ASAP.

This was SVN commit r1834.
This commit is contained in:
Acumen 2005-01-27 11:33:27 +00:00
parent ef6358b187
commit 59227899dc
17 changed files with 1454 additions and 2506 deletions

View File

@ -92,11 +92,12 @@
]]></script>
<script file="gui/test/functions_session.js"><![CDATA[
initSession();
initCoord();
initGlobal();
initPreGame();
initAtlas();
initSession();
initManual();
initAtlas();
]]></script>
</objects>

View File

@ -1,233 +0,0 @@
<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
<!DOCTYPE objects SYSTEM "../gui.dtd">
<objects>
<!--
==========================================
- MAIN MENU -
==========================================
-->
<object type="empty" name="pregame_gui" size="0 0 100% 100%" z="1" hidden="false">
<action on="Load"><![CDATA[
// Play main 0 A.D. theme when the main menu starts.
curr_music = newRandomSound("music", "theme");
curr_music.loop();
]]></action>
<object type="image" name="pregame_mainmenu_background_image" sprite="pregame_mainmenu_background" size="0 0 100% 100%" z="100" hidden="false" ghost="true"/>
<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"
tooltip_style="pregame_mainmenu_tooltip" tooltip="Want to move some Dudes around or test something? Click here to start a new game on the default map.">
<action on="Press"><![CDATA[
GUIObjectUnhide("pregame_subwindow_bkg");
GUIObjectUnhide("pregame_sp_mapsel");
]]></action>
</object>
<object type="button" name="pregame_mainmenu_mp_button" sprite_over="pregame_mainmenu_mpbt" size="60.80% 48.50% 74.40% 66.55%" z="101" hidden="false"
tooltip_style="pregame_mainmenu_tooltip" tooltip="Tired of playing with yourself? Fight against one or more human players in a multiplayer game.">
<action on="Press"><![CDATA[
getGUIObjectByName("pregame_subwindow_bkg").hidden = false;
getGUIObjectByName("pregame_mp_ip").hidden = false;
]]></action>
</object>
<object type="button" name="pregame_mainmenu_ed_button" sprite_over="pregame_mainmenu_edbt" size="44.00% 61.50% 63.75% 83.55%" z="101" hidden="false"
tooltip_style="pregame_mainmenu_tooltip" tooltip="Come forth and witness a totally non-functioning Editor, a mere shadow of its potential self!">
<action on="Press"><![CDATA[
GUIObjectHide("pregame_gui");
GUIObjectUnhide("atlas_gui");
]]></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" ghost="true"/>
<object type="text" name="pregame_mainmenu_versionnumber" size="43% 24% 43%+282 24%+25" z="103" textcolor="237 227 167" font="prospero16" hidden="false" ghost="true">
{buildTime}
<action on="Load"><![CDATA[
this.caption = "Build: " + buildTime(0) + " " + getLanguageID();
]]></action>
</object>
<object type="button" name="pregame_mainmenu_wfg_logo" sprite="pregame_mainmenu_wfg_logo_256x64" size="10 91.666666%-30 25.9765% 100%-30" z="102" hidden="false"
tooltip_style="pregame_mainmenu_tooltip" tooltip="These are the guys who made this game. Visit them at http://www.wildfiregames.com/0ad/">
<action on="Press"><![CDATA[
btCode = new Array("GUIObjectHide('mb_main');");
messageBox(420, 420, "[icon=0ad_icon] A.D. - History Is Yours For The Taking\nby Wildfire Games, 2002-2005\n\nVersion 0.1.2 (PASAP II)\n\n" +
"This is a confidental pre-release version of the game!\n\nVisit http://www.wildfiregames.com/0ad/ " +
"to learn more about [icon=0ad_icon] A.D., participate in the community and meet the developers.\n\n", "About [icon=0ad_icon] A.D.", 2, new Array(), btCode);
]]></action>
</object>
<object type="text" name="pregame_mainmenu_tooltip" sprite="pregame_mainmenu_tooltip_background" size="69% 6.3802% 97.0703125% 28.125%" font="prospero16" textcolor="255 255 255" z="104" hidden="true" ghost="true">tooltipText</object>
<object type="button" name="exit_button" sprite="exit_sprite" sprite_over="exit_sprite_over" size="100%-18 2 100%-2 18" z="104" hidden="false"
tooltip_style="pregame_mainmenu_tooltip" tooltip="Tired of 0 A.D. ? Click here to leave and reenter the real world.">
<action on="Press"><![CDATA[
btCaptions = new Array("Yes, let me out!", "Nooooo!");
btCode = new Array("exit();", "");
messageBox(400, 200, "Do you really want to quit [icon=0ad_icon] A.D.? This will cause a sudden return to reality.", "Confirmation", 0, btCaptions, btCode);
]]></action>
</object>
</object>
<object type="empty" name="pregame_subwindows" size="0 0 100% 100%" z="1" hidden="false">
<object type="image" name="pregame_subwindow_bkg" sprite="translucent_background" size="0 0 100% 100%" z="105" hidden="true"/>
<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);
]]></action>
<object type="button" name="pregame_ip_host_titlebar" sprite="0ad_window_title" font="prospero18" z="165" text_align="center" text_valign="center">
<action on="Load"><![CDATA[
getGUIObjectByName("pregame_ip_host_titlebar").caption = "Direct IP Connect";
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 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_mp_ip").hidden = true;
]]></action>
</object>
<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);
]]></action>
</object>
<object type="image" name="pregame_mp_ip_divider1" sprite="only_black_border">
<action on="Load"><![CDATA[
setSizeCoord("pregame_mp_ip_divider1", -230, -130, 230, -130, mid_screen, mid_screen, mid_screen, mid_screen);
]]></action>
</object>
<!-- PLAYER NAME controls -->
<object type="text" name="pregame_mp_ip_playername_txt" absolute="false" size="45 80 200 100" textcolor="0 0 0">
Player Name (temporary):
</object>
<object type="input" name="pregame_mp_ip_playername" sprite="only_black" absolute="false" size="220 80 350 100" textcolor="255 255 255">
Player
</object>
<!-- END PLAYER NAME controls -->
<!-- HOST GAME controls -->
<object type="image" name="pregame_mp_ip_divider2" sprite="only_black_border">
<action on="Load"><![CDATA[
setSizeCoord("pregame_mp_ip_divider2", -230, -75, 230, -75, mid_screen, mid_screen, mid_screen, mid_screen);
]]></action>
</object>
<object type="text" name="pregame_mp_ip_mapname_txt" absolute="false" size="45 130 200 150" textcolor="0 0 0">
Map Name:
</object>
<object type="input" name="pregame_mp_ip_host_mapname" sprite="only_black" absolute="false" size="50 150 200 170" textcolor="255 255 255">
test01.pmp
</object>
<object type="button" name="pregame_mp_ip_host_bt" sprite="message_box_button_normal" sprite_over="message_box_button_over" text_align="center" text_valign="center">
Host Game
<action on="Load"><![CDATA[
setSizeCoord("pregame_mp_ip_host_bt", 50, -60, 150, -30, mid_screen, mid_screen, mid_screen, mid_screen);
]]></action>
<action on="Press"><![CDATA[
initMPSessionHost(getGUIObjectByName("pregame_mp_ip_playername").caption, getGUIObjectByName("pregame_mp_ip_host_mapname").caption);
]]></action>
</object>
<!-- END HOST GAME controls -->
<!-- JOIN GAME controls -->
<object type="image" name="pregame_mp_ip_divider3" sprite="only_black_border">
<action on="Load"><![CDATA[
setSizeCoord("pregame_mp_ip_divider3", -230, -20, 230, -20, mid_screen, mid_screen, mid_screen, mid_screen);
]]></action>
</object>
<object type="text" name="pregame_mp_ip_joinip_txt" absolute="false" size="45 190 200 210" textcolor="0 0 0">
IP address:
</object>
<object type="input" name="pregame_mp_ip_joinip" sprite="only_black" absolute="false" size="50 210 200 230" textcolor="255 255 255">
127.0.0.1
</object>
<object type="button" name="pregame_mp_ip_join_bt" sprite="message_box_button_normal" sprite_over="message_box_button_over" text_align="center" text_valign="center">
Join Game
<action on="Load"><![CDATA[
setSizeCoord("pregame_mp_ip_join_bt", 50, 0, 150, 30, mid_screen, mid_screen, mid_screen, mid_screen);
]]></action>
<action on="Press"><![CDATA[
initMPSessionClient(getGUIObjectByName("pregame_mp_ip_playername").caption, getGUIObjectByName("pregame_mp_ip_joinip").caption);
]]></action>
</object>
<!-- END JOIN GAME controls -->
</object>
<!-- SINGLEPLAYER TEMPORARY MAP SELECTION DIALOG -->
<object type="button" name="pregame_sp_mapsel" sprite="0ad_window" z="106" hidden="true" size="50%-150 50%-90 50%+150 50%+90">
<!-- The placement of this titlebar object is VERY hackish (see y-placement), but it doesn't work any other way so far, and this dialog will be temporary anyway -->
<object type="button" name="pregame_sp_mapsel_titlebar" sprite="0ad_window_title" font="prospero18" z="165" text_align="center" text_valign="center" absolute="false" size="50%-130 0%-22 50%+130 0%-14">
Map selection
</object>
<object type="text" name="pregame_sp_infotext" absolute="false" size="10 10 290 60">
Type the name of the map you want to start into the box. The name is relative to /data/mods/official/maps/scenarios/.
</object>
<object type="text" name="pregame_sp_mapname_txt" absolute="false" textcolor="0 0 0" size="10 90 120 110">
Map Name:
</object>
<object type="input" name="pregame_sp_mapname" sprite="only_black" absolute="false" size="130 90 290 110" textcolor="255 255 255">
nm_playercolors.pmp
</object>
<object type="button" name="pregame_sp_start_bt" sprite="message_box_button_normal" sprite_over="message_box_button_over" text_align="center" text_valign="center" absolute="false" size="50%-100 100%-50 50%-10 100%-20">
Start Game
<action on="Press"><![CDATA[
// Check wheter we have a correct file extension, to avoid crashes
var mapName = getGUIObjectByName("pregame_sp_mapname").caption;
var extension = mapName.substring(mapName.length, mapName.length-4);
if(extension != ".pmp") {
// Add .pmp to the file name - shouldn't help if the name is mistyped, but may be useful in some cases
mapName = mapName + ".pmp";
console.write("Trying to fix the map name (probably missing extension).");
}
// Set up game
GUIObjectHide("pregame_subwindow_bkg");
GUIObjectHide("pregame_sp_mapsel");
g_GameAttributes.mapFile = mapName;
startLoadingScreen();
]]></action>
</object>
<object type="button" name="pregame_sp_mapsel_abort_button" sprite="message_box_button_normal" sprite_over="message_box_button_over" text_align="center" text_valign="center" absolute="false" size="50%+10 100%-50 50%+90 100%-20">
Abort
<action on="Press"><![CDATA[
GUIObjectHide("pregame_subwindow_bkg");
GUIObjectHide("pregame_sp_mapsel");
]]></action>
</object>
</object>
</object>
</objects>

View File

@ -10,7 +10,7 @@
<objects>
<object type="empty" name="session_gui" hotkey="flipgui.toggle" size="0 0 100% 100%" z="1" hidden="true">
<object type="empty" name="SESSION_GUI" hotkey="flipgui.toggle" size="0 0 100% 100%" z="1" hidden="true">
<action on="Press"><![CDATA[
FlipGUI();
]]></action>

View File

@ -10,60 +10,38 @@
<objects>
<object type="empty" name="manual_gui" size="0 0 100% 100%" z="1" hotkey="onlinehelp" hidden="true">
<object type="empty" name="MANUAL_GUI" size="0 0 100% 100%" z="1" hotkey="onlinehelp" hidden="true">
<action on="Press"><![CDATA[
// Toggle manual if something selected.
if (selection.length)
{
GUIObjectToggle("manual_gui");
GUIObjectToggle("session_gui");
GUIObjectToggle("MANUAL_GUI");
GUIObjectToggle("SESSION_GUI");
}
]]></action>
<object type="text" name="manual_bkg" sprite="0ad_window" font="prospero16" textcolor="0 0 0" z="100" hidden="false" ghost="true">
<action on="Load"><![CDATA[
setSizeArray("manual_bkg", sessionCoord[MANUAL_BKG], left_screen, top_screen, right_screen, bottom_screen);
]]></action>
<object type="text" name="MANUAL_BKG" sprite="0ad_window" font="prospero16" textcolor="0 0 0" z="100" hidden="false" ghost="true"><action on="Load"><![CDATA[ setSizeArray(this.name, Crd[MANUAL_BKG]); ]]></action>
<action on="Tick"><![CDATA[
if (selection.length && !( getGUIObjectByName( "manual_gui" ).hidden ))
if (selection.length && !( getGUIObjectByName( "MANUAL_GUI" ).hidden ))
manualDisplay();
]]></action>
</object>
<object type="button" name="manual_portrait" style="portrait" z="100" ghost="true">
<action on="Load"><![CDATA[
setSizeArray("manual_portrait", sessionCoord[MANUAL_PORTRAIT], left_screen, top_screen, left_screen, top_screen);
]]></action>
</object>
<object type="button" name="MANUAL_PORTRAIT" style="portrait" z="100" ghost="true"><action on="Load"><![CDATA[ setSizeArray(this.name, Crd[MANUAL_PORTRAIT]); ]]></action></object>
<!-- Gee needs to implement text clipping, so long text doesn't get clipped to these scroll windows yet. Scroll bars also don't block world input yet. -->
<object type="text" name="manual_rollover" scrollbar="true" scrollbar_style="manual_scrollbar" sprite="0ad_indent" font="trebuchet12" textcolor="0 0 0" z="100" ghost="false">
<action on="Load"><![CDATA[
setSizeArray("manual_rollover", sessionCoord[MANUAL_ROLLOVER], left_screen, top_screen, right_screen, top_screen);
]]></action>
</object>
<object type="text" name="MANUAL_ROLLOVER" scrollbar="true" scrollbar_style="manual_scrollbar" sprite="0ad_indent" font="trebuchet12" textcolor="0 0 0" z="100" ghost="false"><action on="Load"><![CDATA[ setSizeArray(this.name, Crd[MANUAL_ROLLOVER]); ]]></action></object>
<object type="text" name="manual_name" sprite="0ad_indent" font="trebuchet14" textcolor="0 0 0" z="100" ghost="true">
<action on="Load"><![CDATA[
setSizeArray("manual_name", sessionCoord[MANUAL_NAME], left_screen, top_screen, right_screen, bottom_screen);
]]></action>
</object>
<object type="text" name="MANUAL_NAME" sprite="0ad_indent" font="trebuchet14" textcolor="0 0 0" z="100" ghost="true"><action on="Load"><![CDATA[ setSizeArray(this.name, Crd[MANUAL_NAME]); ]]></action></object>
<!-- Gee needs to implement text clipping, so long text doesn't get clipped to these scroll windows yet. Scroll bars also don't block world input yet. -->
<object type="text" name="manual_history" scrollbar="true" scrollbar_style="manual_scrollbar" sprite="0ad_indent" font="trebuchet12" textcolor="0 0 0" z="100" ghost="false">
<action on="Load"><![CDATA[
setSizeArray("manual_history", sessionCoord[MANUAL_HISTORY], left_screen, bottom_screen, right_screen, bottom_screen);
]]></action>
</object>
<object type="text" name="MANUAL_HISTORY" scrollbar="true" scrollbar_style="manual_scrollbar" sprite="0ad_indent" font="trebuchet12" textcolor="0 0 0" z="100" ghost="false"><action on="Load"><![CDATA[ setSizeArray(this.name, Crd[MANUAL_HISTORY]); ]]></action></object>
<object type="button" name="manual_exit_button" sprite="exit_sprite" sprite_over="exit_sprite_over" ghost="false" z="100" hidden="false">
<action on="Load"><![CDATA[
setSizeArray("manual_exit_button", sessionCoord[MANUAL_EXIT_BUTTON], right_screen, top_screen, right_screen, top_screen);
]]></action>
<object type="button" name="MANUAL_EXIT_BUTTON" sprite="exit_sprite" sprite_over="exit_sprite_over" ghost="false" z="100" hidden="false"><action on="Load"><![CDATA[ setSizeArray(this.name, Crd[MANUAL_EXIT_BUTTON]); ]]></action>
<action on="Press"><![CDATA[
// Close manual.
GUIObjectHide("manual_gui");
GUIObjectUnhide("session_gui");
GUIObjectHide("MANUAL_GUI");
GUIObjectUnhide("SESSION_GUI");
]]></action>
</object>
</object>

File diff suppressed because it is too large Load Diff

View File

@ -117,20 +117,12 @@
==========================================
-->
<object type="empty" name="watermark" hotkey="screenshot.watermark" size="0 0 100% 100%" z="200" ghost="true" hidden="true">
<object type="empty" name="GLOBAL_WATERMARK" hotkey="screenshot.watermark" size="0 0 100% 100%" z="200" ghost="true" hidden="true">
<action on="Press"><![CDATA[
GUIObjectToggle("watermark");
GUIObjectToggle("GLOBAL_WATERMARK");
]]></action>
<object type="image" name="watermark_product_logo" sprite="watermark_product" hidden="false">
<action on="Load"><![CDATA[
setSizeArray("watermark_product_logo", globalCoord[GLOBAL_WATERMARK_PRODUCT_LOGO], left_screen, bottom_screen, left_screen, bottom_screen);
]]></action>
</object>
<object type="image" name="watermark_company_logo" sprite="watermark_company" hidden="false">
<action on="Load"><![CDATA[
setSizeArray("watermark_company_logo", globalCoord[GLOBAL_WATERMARK_COMPANY_LOGO], right_screen, bottom_screen, right_screen, bottom_screen);
]]></action>
</object>
<object type="image" name="GLOBAL_WATERMARK_PRODUCT_LOGO" sprite="watermark_product" hidden="false"><action on="Load"><![CDATA[ setSizeArray(this.name, Crd[GLOBAL_WATERMARK_PRODUCT_LOGO]); ]]></action></object>
<object type="image" name="GLOBAL_WATERMARK_COMPANY_LOGO" sprite="watermark_company" hidden="false"><action on="Load"><![CDATA[ setSizeArray(this.name, Crd[GLOBAL_WATERMARK_COMPANY_LOGO]); ]]></action></object>
</object>
</objects>

View File

@ -5,17 +5,13 @@
function initAtlas()
{
// Initialise coordinate set for this page.
atlasCoord = new Array();
atlasCoord_Last = 0;
// ============================================= GLOBALS =================================================
// ============================================ CONSTANTS =================================================
ATLAS_COUNTER_BOX = new Object();
ATLAS_COUNTER_BOX.width = 9;
ATLAS_COUNTER_BOX.height = 5;
// ============================================= SECTIONS ================================================
// ============================================= GLOBALS ==================================================
initAtlasMainScreen();
initAtlasSectionMapCreator();
@ -28,115 +24,120 @@ function initAtlas()
function initAtlasMainScreen()
{
// Top-left corner piece of main editor frame.
ATLAS_MAINBORDER_LT_CORNER = addSizeArrayWH(atlasCoord, atlasCoord_Last,
42,
42
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
0,
0
);
ATLAS_MAINBORDER_LT_CORNER = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = 42;
Crd[Crd.last-1].height = 42;
Crd[Crd.last-1].x = 0;
Crd[Crd.last-1].y = 0;
// Top-right corner piece of main editor frame ("Info Selection Box").
ATLAS_MAINBORDER_RT_CORNER = addSizeArrayWH(atlasCoord, atlasCoord_Last,
203,
54
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
0,
atlasCoord[ATLAS_MAINBORDER_LT_CORNER].y
);
ATLAS_MAINBORDER_RT_CORNER = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = right_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = right_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = 203;
Crd[Crd.last-1].height = 54;
Crd[Crd.last-1].x = 0;
Crd[Crd.last-1].y = Crd[ATLAS_MAINBORDER_LT_CORNER].y;
// Info window in top-right corner.
ATLAS_INFO_WINDOW = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_MAINBORDER_RT_CORNER].width-30-6,
atlasCoord[ATLAS_MAINBORDER_RT_CORNER].height-9
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
3,
atlasCoord[ATLAS_MAINBORDER_RT_CORNER].y+3
);
ATLAS_INFO_WINDOW = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = right_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = right_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = Crd[ATLAS_MAINBORDER_RT_CORNER].width-30-6;
Crd[Crd.last-1].height = Crd[ATLAS_MAINBORDER_RT_CORNER].height-9;
Crd[Crd.last-1].x = 3;
Crd[Crd.last-1].y = Crd[ATLAS_MAINBORDER_RT_CORNER].y+3;
// Top menu bar.
ATLAS_MAINBORDER_MENU_BKG = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_MAINBORDER_RT_CORNER].width,
19
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_MAINBORDER_LT_CORNER].x+atlasCoord[ATLAS_MAINBORDER_LT_CORNER].width,
atlasCoord[ATLAS_MAINBORDER_LT_CORNER].y
);
ATLAS_MAINBORDER_MENU_BKG = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = right_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = Crd[ATLAS_MAINBORDER_RT_CORNER].width;
Crd[Crd.last-1].height = 19;
Crd[Crd.last-1].x = Crd[ATLAS_MAINBORDER_LT_CORNER].x+Crd[ATLAS_MAINBORDER_LT_CORNER].width;
Crd[Crd.last-1].y = Crd[ATLAS_MAINBORDER_LT_CORNER].y;
// Menu buttons.
ATLAS_MAINBORDER_MENU_BUTTON = new Object();
ATLAS_MAINBORDER_MENU_BUTTON.span = 0;
ATLAS_MAINBORDER_MENU_BUTTON.max = 12;
for (ATLAS_MAINBORDER_MENU_BUTTON.last = 1; ATLAS_MAINBORDER_MENU_BUTTON.last <= ATLAS_MAINBORDER_MENU_BUTTON.max; ATLAS_MAINBORDER_MENU_BUTTON.last++)
{
ATLAS_MAINBORDER_MENU_BUTTON[ATLAS_MAINBORDER_MENU_BUTTON.last] = atlasCoord_Last;
atlasCoord[atlasCoord_Last] = new Object();
atlasCoord[atlasCoord_Last].width = 60;
atlasCoord[atlasCoord_Last].height = atlasCoord[ATLAS_MAINBORDER_MENU_BKG].height;
ATLAS_MAINBORDER_MENU_BUTTON[ATLAS_MAINBORDER_MENU_BUTTON.last] = Crd.last;
Crd[Crd.last] = new Object();
Crd[Crd.last].width = 60;
Crd[Crd.last].height = Crd[ATLAS_MAINBORDER_MENU_BKG].height;
Crd[Crd.last].rleft = left_screen;
Crd[Crd.last].rtop = top_screen;
Crd[Crd.last].rright = left_screen;
Crd[Crd.last].rbottom = top_screen;
if (ATLAS_MAINBORDER_MENU_BUTTON.last == 1)
atlasCoord[atlasCoord_Last].x = atlasCoord[ATLAS_MAINBORDER_MENU_BKG].x;
Crd[Crd.last].x = Crd[ATLAS_MAINBORDER_MENU_BKG].x;
else
atlasCoord[atlasCoord_Last].x = atlasCoord[ATLAS_MAINBORDER_MENU_BUTTON[ATLAS_MAINBORDER_MENU_BUTTON.last]-1].x+atlasCoord[atlasCoord_Last].width+ATLAS_MAINBORDER_MENU_BUTTON.span;
Crd[Crd.last].x = Crd[ATLAS_MAINBORDER_MENU_BUTTON[ATLAS_MAINBORDER_MENU_BUTTON.last]-1].x+Crd[Crd.last].width+ATLAS_MAINBORDER_MENU_BUTTON.span;
atlasCoord[atlasCoord_Last].y = atlasCoord[ATLAS_MAINBORDER_MENU_BKG].y;
Crd[Crd.last].y = Crd[ATLAS_MAINBORDER_MENU_BKG].y;
atlasCoord_Last++;
Crd.last++;
}
// Top tool bar (1 row).
ATLAS_MAINBORDER_TOOLBAR_BKG = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_MAINBORDER_RT_CORNER].width-atlasCoord[ATLAS_MAINBORDER_LT_CORNER].width,
20
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_MAINBORDER_LT_CORNER].x,
atlasCoord[ATLAS_MAINBORDER_MENU_BKG].y+atlasCoord[ATLAS_MAINBORDER_MENU_BKG].height
);
ATLAS_MAINBORDER_TOOLBAR_BKG = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = right_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = Crd[ATLAS_MAINBORDER_RT_CORNER].width-Crd[ATLAS_MAINBORDER_LT_CORNER].width;
Crd[Crd.last-1].height = 20;
Crd[Crd.last-1].x = Crd[ATLAS_MAINBORDER_LT_CORNER].x;
Crd[Crd.last-1].y = Crd[ATLAS_MAINBORDER_MENU_BKG].y+Crd[ATLAS_MAINBORDER_MENU_BKG].height;
// Top tool bar (max: two rows).
ATLAS_MAINBORDER_TOOLBAR_BKG_MAX = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_MAINBORDER_TOOLBAR_BKG].width,
35
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_MAINBORDER_TOOLBAR_BKG].x,
atlasCoord[ATLAS_MAINBORDER_TOOLBAR_BKG].y
);
ATLAS_MAINBORDER_TOOLBAR_BKG_MAX = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = right_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = Crd[ATLAS_MAINBORDER_TOOLBAR_BKG].width;
Crd[Crd.last-1].height = 35;
Crd[Crd.last-1].x = Crd[ATLAS_MAINBORDER_TOOLBAR_BKG].x;
Crd[Crd.last-1].y = Crd[ATLAS_MAINBORDER_TOOLBAR_BKG].y;
// Fully Minimise arrow on tool bar.
ATLAS_MAINBORDER_TOOLBAR_FULLY_MINIMISE_ARROW = addSizeArrayWH(atlasCoord, atlasCoord_Last,
12,
4
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_MAINBORDER_RT_CORNER].x+atlasCoord[ATLAS_MAINBORDER_RT_CORNER].width+atlasCoord[ATLAS_MAINBORDER_TOOLBAR_FULLY_MINIMISE_ARROW].width-15,
atlasCoord[ATLAS_MAINBORDER_TOOLBAR_BKG].y+3
);
ATLAS_MAINBORDER_TOOLBAR_FULLY_MINIMISE_ARROW = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = right_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = right_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = 12;
Crd[Crd.last-1].height = 4;
Crd[Crd.last-1].x = Crd[ATLAS_MAINBORDER_RT_CORNER].x+Crd[ATLAS_MAINBORDER_RT_CORNER].width+Crd[ATLAS_MAINBORDER_TOOLBAR_FULLY_MINIMISE_ARROW].width-15;
Crd[Crd.last-1].y = Crd[ATLAS_MAINBORDER_TOOLBAR_BKG].y+3;
// Minimise arrow on tool bar.
ATLAS_MAINBORDER_TOOLBAR_MINIMISE_ARROW = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_MAINBORDER_TOOLBAR_FULLY_MINIMISE_ARROW].width,
atlasCoord[ATLAS_MAINBORDER_TOOLBAR_FULLY_MINIMISE_ARROW].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_MAINBORDER_TOOLBAR_FULLY_MINIMISE_ARROW].x,
atlasCoord[ATLAS_MAINBORDER_TOOLBAR_BKG_MAX].y+atlasCoord[ATLAS_MAINBORDER_TOOLBAR_BKG].height-atlasCoord[ATLAS_MAINBORDER_TOOLBAR_FULLY_MINIMISE_ARROW].height-1
);
ATLAS_MAINBORDER_TOOLBAR_MINIMISE_ARROW = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = right_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = right_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = Crd[ATLAS_MAINBORDER_TOOLBAR_FULLY_MINIMISE_ARROW].width;
Crd[Crd.last-1].height = Crd[ATLAS_MAINBORDER_TOOLBAR_FULLY_MINIMISE_ARROW].height;
Crd[Crd.last-1].x = Crd[ATLAS_MAINBORDER_TOOLBAR_FULLY_MINIMISE_ARROW].x;
Crd[Crd.last-1].y = Crd[ATLAS_MAINBORDER_TOOLBAR_BKG_MAX].y+Crd[ATLAS_MAINBORDER_TOOLBAR_BKG].height-Crd[ATLAS_MAINBORDER_TOOLBAR_FULLY_MINIMISE_ARROW].height-1;
// Fully Maximise arrow on tool bar.
ATLAS_MAINBORDER_TOOLBAR_FULLY_MAXIMISE_ARROW = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_MAINBORDER_TOOLBAR_FULLY_MINIMISE_ARROW].width,
atlasCoord[ATLAS_MAINBORDER_TOOLBAR_FULLY_MINIMISE_ARROW].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_MAINBORDER_TOOLBAR_FULLY_MINIMISE_ARROW].x,
atlasCoord[ATLAS_MAINBORDER_TOOLBAR_BKG].y+atlasCoord[ATLAS_MAINBORDER_TOOLBAR_BKG].height-atlasCoord[ATLAS_MAINBORDER_TOOLBAR_FULLY_MAXIMISE_ARROW].height-atlasCoord[ATLAS_MAINBORDER_TOOLBAR_FULLY_MAXIMISE_ARROW].height-1
);
ATLAS_MAINBORDER_TOOLBAR_FULLY_MAXIMISE_ARROW = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = right_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = right_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = Crd[ATLAS_MAINBORDER_TOOLBAR_FULLY_MINIMISE_ARROW].width;
Crd[Crd.last-1].height = Crd[ATLAS_MAINBORDER_TOOLBAR_FULLY_MINIMISE_ARROW].height;
Crd[Crd.last-1].x = Crd[ATLAS_MAINBORDER_TOOLBAR_FULLY_MINIMISE_ARROW].x;
Crd[Crd.last-1].y = Crd[ATLAS_MAINBORDER_TOOLBAR_BKG].y+Crd[ATLAS_MAINBORDER_TOOLBAR_BKG].height-Crd[ATLAS_MAINBORDER_TOOLBAR_FULLY_MAXIMISE_ARROW].height-Crd[ATLAS_MAINBORDER_TOOLBAR_FULLY_MAXIMISE_ARROW].height-1;
// Maximise arrow on tool bar.
ATLAS_MAINBORDER_TOOLBAR_MAXIMISE_ARROW = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_MAINBORDER_TOOLBAR_FULLY_MINIMISE_ARROW].width,
atlasCoord[ATLAS_MAINBORDER_TOOLBAR_FULLY_MINIMISE_ARROW].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_MAINBORDER_TOOLBAR_FULLY_MINIMISE_ARROW].x,
atlasCoord[ATLAS_MAINBORDER_MENU_BKG].y+atlasCoord[ATLAS_MAINBORDER_MENU_BKG].height-atlasCoord[ATLAS_MAINBORDER_TOOLBAR_MAXIMISE_ARROW].height-atlasCoord[ATLAS_MAINBORDER_TOOLBAR_MAXIMISE_ARROW].height-1
);
ATLAS_MAINBORDER_TOOLBAR_MAXIMISE_ARROW = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = right_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = right_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = Crd[ATLAS_MAINBORDER_TOOLBAR_FULLY_MINIMISE_ARROW].width;
Crd[Crd.last-1].height = Crd[ATLAS_MAINBORDER_TOOLBAR_FULLY_MINIMISE_ARROW].height;
Crd[Crd.last-1].x = Crd[ATLAS_MAINBORDER_TOOLBAR_FULLY_MINIMISE_ARROW].x;
Crd[Crd.last-1].y = Crd[ATLAS_MAINBORDER_MENU_BKG].y+Crd[ATLAS_MAINBORDER_MENU_BKG].height-Crd[ATLAS_MAINBORDER_TOOLBAR_MAXIMISE_ARROW].height-Crd[ATLAS_MAINBORDER_TOOLBAR_MAXIMISE_ARROW].height-1;
// Toolbar buttons.
ATLAS_MAINBORDER_TOOLBAR_BUTTON = new Object();
@ -144,91 +145,95 @@ function initAtlasMainScreen()
ATLAS_MAINBORDER_TOOLBAR_BUTTON.max = 80;
for (ATLAS_MAINBORDER_TOOLBAR_BUTTON.last = 1; ATLAS_MAINBORDER_TOOLBAR_BUTTON.last <= ATLAS_MAINBORDER_TOOLBAR_BUTTON.max; ATLAS_MAINBORDER_TOOLBAR_BUTTON.last++)
{
ATLAS_MAINBORDER_TOOLBAR_BUTTON[ATLAS_MAINBORDER_TOOLBAR_BUTTON.last] = atlasCoord_Last;
atlasCoord[atlasCoord_Last] = new Object();
atlasCoord[atlasCoord_Last].width = 15;
atlasCoord[atlasCoord_Last].height = 15;
ATLAS_MAINBORDER_TOOLBAR_BUTTON[ATLAS_MAINBORDER_TOOLBAR_BUTTON.last] = Crd.last;
Crd[Crd.last] = new Object();
Crd[Crd.last].width = 15;
Crd[Crd.last].height = 15;
Crd[Crd.last].rleft = left_screen;
Crd[Crd.last].rtop = top_screen;
Crd[Crd.last].rright = left_screen;
Crd[Crd.last].rbottom = top_screen;
if (ATLAS_MAINBORDER_TOOLBAR_BUTTON.last == 1)
atlasCoord[atlasCoord_Last].x = atlasCoord[ATLAS_MAINBORDER_MENU_BKG].x+5+ATLAS_MAINBORDER_TOOLBAR_BUTTON.span;
Crd[Crd.last].x = Crd[ATLAS_MAINBORDER_MENU_BKG].x+5+ATLAS_MAINBORDER_TOOLBAR_BUTTON.span;
else
atlasCoord[atlasCoord_Last].x = atlasCoord[ATLAS_MAINBORDER_TOOLBAR_BUTTON[ATLAS_MAINBORDER_TOOLBAR_BUTTON.last]-1].x+atlasCoord[atlasCoord_Last].width+ATLAS_MAINBORDER_TOOLBAR_BUTTON.span;
Crd[Crd.last].x = Crd[ATLAS_MAINBORDER_TOOLBAR_BUTTON[ATLAS_MAINBORDER_TOOLBAR_BUTTON.last]-1].x+Crd[Crd.last].width+ATLAS_MAINBORDER_TOOLBAR_BUTTON.span;
if (ATLAS_MAINBORDER_TOOLBAR_BUTTON.last == 41)
atlasCoord[atlasCoord_Last].x = atlasCoord[ATLAS_MAINBORDER_MENU_BKG].x+5+ATLAS_MAINBORDER_TOOLBAR_BUTTON.span;
Crd[Crd.last].x = Crd[ATLAS_MAINBORDER_MENU_BKG].x+5+ATLAS_MAINBORDER_TOOLBAR_BUTTON.span;
if (ATLAS_MAINBORDER_TOOLBAR_BUTTON.last >= 41)
atlasCoord[atlasCoord_Last].y = atlasCoord[ATLAS_MAINBORDER_MENU_BKG].y+atlasCoord[ATLAS_MAINBORDER_MENU_BKG].height+1+atlasCoord[ATLAS_MAINBORDER_TOOLBAR_BUTTON[ATLAS_MAINBORDER_TOOLBAR_BUTTON.last]-1].height;
Crd[Crd.last].y = Crd[ATLAS_MAINBORDER_MENU_BKG].y+Crd[ATLAS_MAINBORDER_MENU_BKG].height+1+Crd[ATLAS_MAINBORDER_TOOLBAR_BUTTON[ATLAS_MAINBORDER_TOOLBAR_BUTTON.last]-1].height;
else
atlasCoord[atlasCoord_Last].y = atlasCoord[ATLAS_MAINBORDER_MENU_BKG].y+atlasCoord[ATLAS_MAINBORDER_MENU_BKG].height+1;
Crd[Crd.last].y = Crd[ATLAS_MAINBORDER_MENU_BKG].y+Crd[ATLAS_MAINBORDER_MENU_BKG].height+1;
atlasCoord_Last++;
Crd.last++;
}
// Left-hand selection pane.
ATLAS_LEFT_PANE_BKG = addSizeArrayWH(atlasCoord, atlasCoord_Last,
187,
0
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_MAINBORDER_LT_CORNER].x,
atlasCoord[ATLAS_MAINBORDER_TOOLBAR_BKG].y+atlasCoord[ATLAS_MAINBORDER_TOOLBAR_BKG].height
);
ATLAS_LEFT_PANE_BKG = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = bottom_screen;
Crd[Crd.last-1].width = 187;
Crd[Crd.last-1].height = 0;
Crd[Crd.last-1].x = Crd[ATLAS_MAINBORDER_LT_CORNER].x;
Crd[Crd.last-1].y = Crd[ATLAS_MAINBORDER_TOOLBAR_BKG].y+Crd[ATLAS_MAINBORDER_TOOLBAR_BKG].height;
// ============================================= GENERIC BOTTOM SECTION MENU ===============================================
// Bottom-right Mini Map Background.
ATLAS_MINIMAP_BKG = addSizeArrayWH(atlasCoord, atlasCoord_Last,
182,
182
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
0,
0
);
ATLAS_MINIMAP_BKG = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = right_screen; Crd[Crd.last-1].rtop = bottom_screen;
Crd[Crd.last-1].rright = right_screen; Crd[Crd.last-1].rbottom = bottom_screen;
Crd[Crd.last-1].width = 182;
Crd[Crd.last-1].height = 182;
Crd[Crd.last-1].x = 0;
Crd[Crd.last-1].y = 0;
// Bottom-right Mini Map.
ATLAS_MINIMAP = addSizeArrayWH(atlasCoord, atlasCoord_Last,
140,
140
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
20,
20
);
ATLAS_MINIMAP = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = right_screen; Crd[Crd.last-1].rtop = bottom_screen;
Crd[Crd.last-1].rright = right_screen; Crd[Crd.last-1].rbottom = bottom_screen;
Crd[Crd.last-1].width = 140;
Crd[Crd.last-1].height = 140;
Crd[Crd.last-1].x = 20;
Crd[Crd.last-1].y = 20;
// Bottom selection pane.
ATLAS_BOTTOM_PANE_BKG = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_BKG].x-atlasCoord[ATLAS_LEFT_PANE_BKG].width-atlasCoord[ATLAS_MINIMAP_BKG].x-atlasCoord[ATLAS_MINIMAP_BKG].width+6,
148
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_BKG].x+atlasCoord[ATLAS_LEFT_PANE_BKG].width-3,
atlasCoord[ATLAS_LEFT_PANE_BKG].height
);
ATLAS_BOTTOM_PANE_BKG = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = bottom_screen;
Crd[Crd.last-1].rright = right_screen; Crd[Crd.last-1].rbottom = bottom_screen;
Crd[Crd.last-1].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[Crd.last-1].height = 148;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_BKG].x+Crd[ATLAS_LEFT_PANE_BKG].width-3;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_BKG].height;
// Left-Bottom selection pane corner.
ATLAS_LB_CORNER = addSizeArrayWH(atlasCoord, atlasCoord_Last,
20,
20
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_BOTTOM_PANE_BKG].x,
atlasCoord[ATLAS_BOTTOM_PANE_BKG].height-4
);
ATLAS_LB_CORNER = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = bottom_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = bottom_screen;
Crd[Crd.last-1].width = 20;
Crd[Crd.last-1].height = 20;
Crd[Crd.last-1].x = Crd[ATLAS_BOTTOM_PANE_BKG].x;
Crd[Crd.last-1].y = Crd[ATLAS_BOTTOM_PANE_BKG].height-4;
// Right-Bottom selection pane corner.
ATLAS_RB_CORNER = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_MINIMAP_BKG].height-atlasCoord[ATLAS_BOTTOM_PANE_BKG].height+3,
atlasCoord[ATLAS_MINIMAP_BKG].height-atlasCoord[ATLAS_BOTTOM_PANE_BKG].height+3
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_MINIMAP_BKG].width-2,
atlasCoord[ATLAS_LB_CORNER].y
);
ATLAS_RB_CORNER = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = right_screen; Crd[Crd.last-1].rtop = bottom_screen;
Crd[Crd.last-1].rright = right_screen; Crd[Crd.last-1].rbottom = bottom_screen;
Crd[Crd.last-1].width = Crd[ATLAS_MINIMAP_BKG].height-Crd[ATLAS_BOTTOM_PANE_BKG].height+3;
Crd[Crd.last-1].height = Crd[ATLAS_MINIMAP_BKG].height-Crd[ATLAS_BOTTOM_PANE_BKG].height+3;
Crd[Crd.last-1].x = Crd[ATLAS_MINIMAP_BKG].width-2;
Crd[Crd.last-1].y = Crd[ATLAS_LB_CORNER].y;
// Atlas tooltip window.
ATLAS_TOOLTIP = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_MINIMAP_BKG].width-20,
82
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_MINIMAP_BKG].x+10,
atlasCoord[ATLAS_MINIMAP_BKG].y+atlasCoord[ATLAS_MINIMAP_BKG].height+4
);
ATLAS_TOOLTIP = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = right_screen; Crd[Crd.last-1].rtop = bottom_screen;
Crd[Crd.last-1].rright = right_screen; Crd[Crd.last-1].rbottom = bottom_screen;
Crd[Crd.last-1].width = Crd[ATLAS_MINIMAP_BKG].width-20;
Crd[Crd.last-1].height = 82;
Crd[Crd.last-1].x = Crd[ATLAS_MINIMAP_BKG].x+10;
Crd[Crd.last-1].y = Crd[ATLAS_MINIMAP_BKG].y+Crd[ATLAS_MINIMAP_BKG].height+4;
// Setup margins for Bottom Section Menu.
ATLAS_BOTTOM_PANE_SECTION = new Object();
@ -240,31 +245,31 @@ function initAtlasMainScreen()
// ============================================= GENERIC LEFT SECTION MENU ===============================================
// Second heading of section menu.
ATLAS_LEFT_PANE_SECTION_HEADING_2 = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_BKG].width-2,
21+2
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_BKG].x,
atlasCoord[ATLAS_MAINBORDER_TOOLBAR_BKG_MAX].y+atlasCoord[ATLAS_MAINBORDER_TOOLBAR_BKG_MAX].height+29
);
ATLAS_LEFT_PANE_SECTION_HEADING_2 = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = Crd[ATLAS_LEFT_PANE_BKG].width-2;
Crd[Crd.last-1].height = 21+2;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_BKG].x;
Crd[Crd.last-1].y = Crd[ATLAS_MAINBORDER_TOOLBAR_BKG_MAX].y+Crd[ATLAS_MAINBORDER_TOOLBAR_BKG_MAX].height+29;
// Topmost heading of section menu.
ATLAS_LEFT_PANE_SECTION_HEADING_1 = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_2].width,
31
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_2].x,
atlasCoord[ATLAS_MAINBORDER_TOOLBAR_BKG_MAX].y+atlasCoord[ATLAS_MAINBORDER_TOOLBAR_BKG_MAX].height
);
ATLAS_LEFT_PANE_SECTION_HEADING_1 = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = Crd[ATLAS_LEFT_PANE_SECTION_HEADING_2].width;
Crd[Crd.last-1].height = 31;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_HEADING_2].x;
Crd[Crd.last-1].y = Crd[ATLAS_MAINBORDER_TOOLBAR_BKG_MAX].y+Crd[ATLAS_MAINBORDER_TOOLBAR_BKG_MAX].height;
// Third heading of section menu.
ATLAS_LEFT_PANE_SECTION_HEADING_3 = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_2].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_2].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_2].x,
0
);
ATLAS_LEFT_PANE_SECTION_HEADING_3 = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = mid_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = mid_screen;
Crd[Crd.last-1].width = Crd[ATLAS_LEFT_PANE_SECTION_HEADING_2].width;
Crd[Crd.last-1].height = Crd[ATLAS_LEFT_PANE_SECTION_HEADING_2].height;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_HEADING_2].x;
Crd[Crd.last-1].y = 0;
// Setup margins for Left Section Menu.
ATLAS_LEFT_PANE_SECTION = new Object();
@ -280,7 +285,7 @@ function atlasUpdateInfoWindow()
{
// Refresh content of Info Window.
getGUIObjectByName("atlas_info_window").caption = "File: something.map\nWorkspace: MyWorkspace\nFPS: " + getFPS();
getGUIObjectByName("ATLAS_INFO_WINDOW").caption = "File: something.map\nWorkspace: MyWorkspace\nFPS: " + getFPS();
}
// ====================================================================
@ -289,14 +294,14 @@ function atlasFullyMinimiseToolbar()
{
// Hide toolbar.
GUIObjectHide("atlas_mainborder_toolbar");
GUIObjectUnhide("atlas_mainborder_toolbar_maximise_arrow");
GUIObjectHide("atlas_mainborder_toolbar_button_row_1");
GUIObjectHide("atlas_mainborder_toolbar_button_row_2");
GUIObjectHide("ATLAS_MAINBORDER_TOOLBAR");
GUIObjectUnhide("ATLAS_MAINBORDER_TOOLBAR_MAXIMISE_ARROW");
GUIObjectHide("ATLAS_MAINBORDER_TOOLBAR_BUTTON_ROW_1");
GUIObjectHide("ATLAS_MAINBORDER_TOOLBAR_BUTTON_ROW_2");
// Set toolbar height.
atlasCoord[ATLAS_LEFT_PANE_BKG].y = atlasCoord[ATLAS_MAINBORDER_MENU_BKG].y+atlasCoord[ATLAS_MAINBORDER_MENU_BKG].height;
setSizeArray("atlas_left_pane_bkg", atlasCoord[ATLAS_LEFT_PANE_BKG], left_screen, top_screen, left_screen, bottom_screen);
Crd[ATLAS_LEFT_PANE_BKG].y = Crd[ATLAS_MAINBORDER_MENU_BKG].y+Crd[ATLAS_MAINBORDER_MENU_BKG].height;
setSizeArray("ATLAS_LEFT_PANE_BKG", Crd[ATLAS_LEFT_PANE_BKG]);
}
// ====================================================================
@ -305,14 +310,15 @@ function atlasMinimiseToolbar()
{
// Reduce toolbar to one row.
GUIObjectHide("atlas_mainborder_toolbar_max");
GUIObjectUnhide("atlas_mainborder_toolbar");
GUIObjectUnhide("atlas_mainborder_toolbar_button_row_1");
GUIObjectHide("atlas_mainborder_toolbar_button_row_2");
GUIObjectHide("ATLAS_MAINBORDER_TOOLBAR_MAX");
GUIObjectUnhide("ATLAS_MAINBORDER_TOOLBAR");
GUIObjectUnhide("ATLAS_MAINBORDER_TOOLBAR_BUTTON_ROW_1");
GUIObjectHide("ATLAS_MAINBORDER_TOOLBAR_BUTTON_ROW_2");
// Set toolbar height.
atlasCoord[ATLAS_LEFT_PANE_BKG].y = atlasCoord[ATLAS_MAINBORDER_TOOLBAR_BKG].y+atlasCoord[ATLAS_MAINBORDER_TOOLBAR_BKG].height;
setSizeArray("atlas_left_pane_bkg", atlasCoord[ATLAS_LEFT_PANE_BKG], left_screen, top_screen, left_screen, bottom_screen);}
Crd[ATLAS_LEFT_PANE_BKG].y = Crd[ATLAS_MAINBORDER_TOOLBAR_BKG].y+Crd[ATLAS_MAINBORDER_TOOLBAR_BKG].height;
setSizeArray("ATLAS_LEFT_PANE_BKG", Crd[ATLAS_LEFT_PANE_BKG]);
}
// ====================================================================
@ -320,14 +326,15 @@ function atlasFullyMaximiseToolbar()
{
// Extend toolbar to two rows.
GUIObjectHide("atlas_mainborder_toolbar");
GUIObjectUnhide("atlas_mainborder_toolbar_max");
GUIObjectUnhide("atlas_mainborder_toolbar_button_row_1");
GUIObjectUnhide("atlas_mainborder_toolbar_button_row_2");
GUIObjectHide("ATLAS_MAINBORDER_TOOLBAR");
GUIObjectUnhide("ATLAS_MAINBORDER_TOOLBAR_max");
GUIObjectUnhide("ATLAS_MAINBORDER_TOOLBAR_BUTTON_ROW_1");
GUIObjectUnhide("ATLAS_MAINBORDER_TOOLBAR_BUTTON_ROW_2");
// Set toolbar height.
atlasCoord[ATLAS_LEFT_PANE_BKG].y = atlasCoord[ATLAS_MAINBORDER_TOOLBAR_BKG_MAX].y+atlasCoord[ATLAS_MAINBORDER_TOOLBAR_BKG_MAX].height;
setSizeArray("atlas_left_pane_bkg", atlasCoord[ATLAS_LEFT_PANE_BKG], left_screen, top_screen, left_screen, bottom_screen);}
Crd[ATLAS_LEFT_PANE_BKG].y = Crd[ATLAS_MAINBORDER_TOOLBAR_BKG_MAX].y+Crd[ATLAS_MAINBORDER_TOOLBAR_BKG_MAX].height;
setSizeArray("ATLAS_LEFT_PANE_BKG", Crd[ATLAS_LEFT_PANE_BKG]);
}
// ====================================================================
@ -335,14 +342,15 @@ function atlasMaximiseToolbar()
{
// Extend toolbar to one row.
GUIObjectUnhide("atlas_mainborder_toolbar");
GUIObjectHide("atlas_mainborder_toolbar_maximise_arrow");
GUIObjectUnhide("atlas_mainborder_toolbar_button_row_1");
GUIObjectHide("atlas_mainborder_toolbar_button_row_2");
GUIObjectUnhide("ATLAS_MAINBORDER_TOOLBAR");
GUIObjectHide("ATLAS_MAINBORDER_TOOLBAR_MAXIMISE_ARROW");
GUIObjectUnhide("ATLAS_MAINBORDER_TOOLBAR_BUTTON_ROW_1");
GUIObjectHide("ATLAS_MAINBORDER_TOOLBAR_BUTTON_ROW_2");
// Set toolbar height.
atlasCoord[ATLAS_LEFT_PANE_BKG].y = atlasCoord[ATLAS_MAINBORDER_TOOLBAR_BKG].y+atlasCoord[ATLAS_MAINBORDER_TOOLBAR_BKG].height;
setSizeArray("atlas_left_pane_bkg", atlasCoord[ATLAS_LEFT_PANE_BKG], left_screen, top_screen, left_screen, bottom_screen);}
Crd[ATLAS_LEFT_PANE_BKG].y = Crd[ATLAS_MAINBORDER_TOOLBAR_BKG].y+Crd[ATLAS_MAINBORDER_TOOLBAR_BKG].height;
setSizeArray("ATLAS_LEFT_PANE_BKG", Crd[ATLAS_LEFT_PANE_BKG]);
}
// ====================================================================
@ -351,51 +359,51 @@ function atlasOpenSectionMenu(atlasMenuName)
// Open the specified Section Menu; only one is open at a time.
// Clear all section menus to begin.
GUIObjectHide("atlas_left_pane_section_map");
GUIObjectHide("atlas_left_pane_section_terrain");
GUIObjectHide("atlas_bottom_pane_section_terrain");
GUIObjectHide("atlas_left_pane_section_object");
GUIObjectHide("atlas_bottom_pane_section_object");
GUIObjectHide("ATLAS_LEFT_PANE_SECTION_MAP");
GUIObjectHide("ATLAS_LEFT_PANE_SECTION_TERRAIN");
GUIObjectHide("ATLAS_BOTTOM_PANE_SECTION_TERRAIN");
GUIObjectHide("ATLAS_LEFT_PANE_SECTION_OBJECT");
GUIObjectHide("ATLAS_BOTTOM_PANE_SECTION_OBJECT");
switch (atlasMenuName)
{
case "none":
// Hide backgrounds.
GUIObjectHide("atlas_left_pane");
GUIObjectHide("atlas_bottom_pane");
GUIObjectHide("ATLAS_LEFT_PANE");
GUIObjectHide("ATLAS_BOTTOM_PANE");
// Hide headings.
GUIObjectHide("atlas_left_pane_section_heading_1");
GUIObjectHide("atlas_left_pane_section_heading_2");
GUIObjectHide("atlas_left_pane_section_heading_3");
GUIObjectHide("ATLAS_LEFT_PANE_SECTION_HEADING_1");
GUIObjectHide("ATLAS_LEFT_PANE_SECTION_HEADING_2");
GUIObjectHide("ATLAS_LEFT_PANE_SECTION_HEADING_3");
break;
case "atlas_left_pane_section_map":
case "ATLAS_LEFT_PANE_SECTION_MAP":
// Toggle backgrounds.
GUIObjectUnhide("atlas_left_pane");
GUIObjectHide("atlas_bottom_pane");
GUIObjectUnhide("ATLAS_LEFT_PANE");
GUIObjectHide("ATLAS_BOTTOM_PANE");
// Reveal headings.
GUIObjectRenameandReveal("atlas_left_pane_section_heading_1", "Map Creator");
GUIObjectRenameandReveal("atlas_left_pane_section_heading_2", "Map Type");
GUIObjectRenameandReveal("atlas_left_pane_section_heading_3", "Map Settings");
GUIObjectRenameandReveal("ATLAS_LEFT_PANE_SECTION_HEADING_1", "Map Creator");
GUIObjectRenameandReveal("ATLAS_LEFT_PANE_SECTION_HEADING_2", "Map Type");
GUIObjectRenameandReveal("ATLAS_LEFT_PANE_SECTION_HEADING_3", "Map Settings");
break;
case "atlas_left_pane_section_terrain":
case "ATLAS_LEFT_PANE_SECTION_TERRAIN":
// Toggle backgrounds.
GUIObjectUnhide("atlas_left_pane");
GUIObjectUnhide("atlas_bottom_pane");
GUIObjectUnhide("atlas_bottom_pane_section_terrain");
GUIObjectUnhide("ATLAS_LEFT_PANE");
GUIObjectUnhide("ATLAS_BOTTOM_PANE");
GUIObjectUnhide("ATLAS_BOTTOM_PANE_SECTION_TERRAIN");
// Reveal headings.
GUIObjectRenameandReveal("atlas_left_pane_section_heading_1", "Terrain Editor");
GUIObjectRenameandReveal("atlas_left_pane_section_heading_2", "Edit Elevation");
GUIObjectHide("atlas_left_pane_section_heading_3");
GUIObjectRenameandReveal("ATLAS_LEFT_PANE_SECTION_HEADING_1", "Terrain Editor");
GUIObjectRenameandReveal("ATLAS_LEFT_PANE_SECTION_HEADING_2", "Edit Elevation");
GUIObjectHide("ATLAS_LEFT_PANE_SECTION_HEADING_3");
break;
case "atlas_left_pane_section_object":
case "ATLAS_LEFT_PANE_SECTION_OBJECT":
// Toggle backgrounds.
GUIObjectUnhide("atlas_left_pane");
GUIObjectUnhide("atlas_bottom_pane");
GUIObjectUnhide("atlas_bottom_pane_section_object");
GUIObjectUnhide("ATLAS_LEFT_PANE");
GUIObjectUnhide("ATLAS_BOTTOM_PANE");
GUIObjectUnhide("ATLAS_BOTTOM_PANE_SECTION_OBJECT");
// Reveal headings.
GUIObjectRenameandReveal("atlas_left_pane_section_heading_1", "Object Editor");
GUIObjectRenameandReveal("atlas_left_pane_section_heading_2", "Object List");
GUIObjectHide("atlas_left_pane_section_heading_3");
GUIObjectRenameandReveal("ATLAS_LEFT_PANE_SECTION_HEADING_1", "Object Editor");
GUIObjectRenameandReveal("ATLAS_LEFT_PANE_SECTION_HEADING_2", "Object List");
GUIObjectHide("ATLAS_LEFT_PANE_SECTION_HEADING_3");
break;
}

View File

@ -7,241 +7,241 @@ function initAtlasSectionMapCreator()
// ============================================= MAP CREATOR: MAP TYPE: MAP SIZE ===============================================
// Height input box for map size.
ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX = addSizeArrayWH(atlasCoord, atlasCoord_Last,
58,
14
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_2].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_2].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX].width-ATLAS_LEFT_PANE_SECTION.RMARGIN,
atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_2].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_2].height+ATLAS_LEFT_PANE_SECTION.TMARGIN+ATLAS_LEFT_PANE_SECTION.TMARGIN
);
ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = 58;
Crd[Crd.last-1].height = 14;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_HEADING_2].x+Crd[ATLAS_LEFT_PANE_SECTION_HEADING_2].width-Crd[ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX].width-ATLAS_LEFT_PANE_SECTION.RMARGIN;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_HEADING_2].y+Crd[ATLAS_LEFT_PANE_SECTION_HEADING_2].height+ATLAS_LEFT_PANE_SECTION.TMARGIN+ATLAS_LEFT_PANE_SECTION.TMARGIN;
// "X" between map size input boxes.
ATLAS_LEFT_PANE_SECTION_MAP_TILE_X = addSizeArrayWH(atlasCoord, atlasCoord_Last,
20,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX].x-atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_TILE_X].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX].y
);
ATLAS_LEFT_PANE_SECTION_MAP_TILE_X = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = 20;
Crd[Crd.last-1].height = Crd[ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX].height;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX].x-Crd[ATLAS_LEFT_PANE_SECTION_MAP_TILE_X].width;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX].y;
// Width input box for map size.
ATLAS_LEFT_PANE_SECTION_MAP_TILE_WIDTH_INPUT_BOX = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_TILE_X].x-atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX].y
);
ATLAS_LEFT_PANE_SECTION_MAP_TILE_WIDTH_INPUT_BOX = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = Crd[ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX].width;
Crd[Crd.last-1].height = Crd[ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX].height;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_MAP_TILE_X].x-Crd[ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX].width;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX].y;
// "Size:" label.
ATLAS_LEFT_PANE_SECTION_MAP_SIZE_LABEL = addSizeArrayWH(atlasCoord, atlasCoord_Last,
32,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_TILE_WIDTH_INPUT_BOX].x-atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_LABEL].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX].y
);
ATLAS_LEFT_PANE_SECTION_MAP_SIZE_LABEL = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = 32;
Crd[Crd.last-1].height = Crd[ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX].height;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_MAP_TILE_WIDTH_INPUT_BOX].x-Crd[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_LABEL].width;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX].y;
ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_SPAN = 3;
// "Huge" map size button.
ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE = addSizeArrayWH(atlasCoord, atlasCoord_Last,
40,
20
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_2].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_2].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].width-ATLAS_LEFT_PANE_SECTION.RMARGIN+2,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX].height+ATLAS_LEFT_PANE_SECTION.TMARGIN
);
ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = 40;
Crd[Crd.last-1].height = 20;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_HEADING_2].x+Crd[ATLAS_LEFT_PANE_SECTION_HEADING_2].width-Crd[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].width-ATLAS_LEFT_PANE_SECTION.RMARGIN+2;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX].y+Crd[ATLAS_LEFT_PANE_SECTION_MAP_TILE_HEIGHT_INPUT_BOX].height+ATLAS_LEFT_PANE_SECTION.TMARGIN;
// "Large" map size button.
ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_LARGE = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].x-atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].width-ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_SPAN,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].y
);
ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_LARGE = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].width;
Crd[Crd.last-1].height = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].height;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].x-Crd[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].width-ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_SPAN;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].y;
// "Medium" map size button.
ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_MEDIUM = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_LARGE].x-atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_LARGE].width-ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_SPAN,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].y
);
ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_MEDIUM = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].width;
Crd[Crd.last-1].height = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].height;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_LARGE].x-Crd[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_LARGE].width-ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_SPAN;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].y;
// "Small" map size button.
ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_SMALL = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_MEDIUM].x-atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_MEDIUM].width-ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_SPAN,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].y
);
ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_SMALL = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].width;
Crd[Crd.last-1].height = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].height;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_MEDIUM].x-Crd[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_MEDIUM].width-ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_SPAN;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].y;
// Horizontal rule at end of Map Size settings.
ATLAS_LEFT_PANE_SECTION_MAP_SIZE_HR = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_BKG].width-ATLAS_LEFT_PANE_SECTION.LMARGIN-ATLAS_LEFT_PANE_SECTION.RMARGIN,
2
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_BKG].x+ATLAS_LEFT_PANE_SECTION.LMARGIN,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].height+ATLAS_LEFT_PANE_SECTION.BMARGIN
);
ATLAS_LEFT_PANE_SECTION_MAP_SIZE_HR = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = Crd[ATLAS_LEFT_PANE_BKG].width-ATLAS_LEFT_PANE_SECTION.LMARGIN-ATLAS_LEFT_PANE_SECTION.RMARGIN;
Crd[Crd.last-1].height = 2;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_BKG].x+ATLAS_LEFT_PANE_SECTION.LMARGIN;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].y+Crd[ATLAS_LEFT_PANE_SECTION_MAP_SIZE_BUTTON_HUGE].height+ATLAS_LEFT_PANE_SECTION.BMARGIN;
// ============================================= MAP CREATOR: MAP TYPE: RANDOM MAP ===============================================
// ============================================= MAP CREATOR: MAP SETTINGS ===============================================
// "Players:" label for Map Settings.
ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_LABEL = addSizeArrayWH(atlasCoord, atlasCoord_Last,
45,
15
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_3].x+ATLAS_LEFT_PANE_SECTION.LMARGIN,
atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_3].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_3].height+ATLAS_LEFT_PANE_SECTION.TMARGIN+ATLAS_LEFT_PANE_SECTION.TMARGIN
);
ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_LABEL = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = mid_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = mid_screen;
Crd[Crd.last-1].width = 45;
Crd[Crd.last-1].height = 15;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_HEADING_3].x+ATLAS_LEFT_PANE_SECTION.LMARGIN;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_HEADING_3].y+Crd[ATLAS_LEFT_PANE_SECTION_HEADING_3].height+ATLAS_LEFT_PANE_SECTION.TMARGIN+ATLAS_LEFT_PANE_SECTION.TMARGIN;
// Players "counter" input box for Map Settings.
ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX = addSizeArrayWH(atlasCoord, atlasCoord_Last,
30,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_LABEL].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_LABEL].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_LABEL].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_LABEL].y
);
ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = mid_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = mid_screen;
Crd[Crd.last-1].width = 30;
Crd[Crd.last-1].height = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_LABEL].height;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_LABEL].x+Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_LABEL].width;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_LABEL].y;
// Players up button for "counter" input box for Map Settings.
ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX_UP = addSizeArrayWH(atlasCoord, atlasCoord_Last,
ATLAS_COUNTER_BOX.width,
(atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX].height/2)+3
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX_UP].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX].y-3
);
ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX_UP = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = mid_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = mid_screen;
Crd[Crd.last-1].width = ATLAS_COUNTER_BOX.width;
Crd[Crd.last-1].height = (Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX].height/2)+3;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX].x+Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX].width-Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX_UP].width;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX].y-3;
// Players down button for "counter" input box for Map Settings.
ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX_DN = addSizeArrayWH(atlasCoord, atlasCoord_Last,
ATLAS_COUNTER_BOX.width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX_UP].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX_UP].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX].height-atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX_DN].height
);
ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX_DN = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = mid_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = mid_screen;
Crd[Crd.last-1].width = ATLAS_COUNTER_BOX.width;
Crd[Crd.last-1].height = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX_UP].height;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX].x+Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX].width-Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX_UP].width;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX].y+Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX].height-Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX_DN].height;
// Settlements "counter" input box for Map Settings.
ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_3].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_3].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX].width-ATLAS_LEFT_PANE_SECTION.RMARGIN,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX].y
);
ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = mid_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = mid_screen;
Crd[Crd.last-1].width = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX].width;
Crd[Crd.last-1].height = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX].height;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_HEADING_3].x+Crd[ATLAS_LEFT_PANE_SECTION_HEADING_3].width-Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX].width-ATLAS_LEFT_PANE_SECTION.RMARGIN;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_INPUT_BOX].y;
// Settlements up button for "counter" input box for Map Settings.
ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX_UP = addSizeArrayWH(atlasCoord, atlasCoord_Last,
ATLAS_COUNTER_BOX.width,
(atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX].height/2)+3
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX_UP].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX].y-3
);
ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX_UP = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = mid_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = mid_screen;
Crd[Crd.last-1].width = ATLAS_COUNTER_BOX.width;
Crd[Crd.last-1].height = (Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX].height/2)+3;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX].x+Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX].width-Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX_UP].width;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX].y-3;
// Settlements down button for "counter" input box for Map Settings.
ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX_DN = addSizeArrayWH(atlasCoord, atlasCoord_Last,
ATLAS_COUNTER_BOX.width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX_UP].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX_UP].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX].height-atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX_DN].height
);
ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX_DN = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = mid_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = mid_screen;
Crd[Crd.last-1].width = ATLAS_COUNTER_BOX.width;
Crd[Crd.last-1].height = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX_UP].height;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX].x+Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX].width-Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX_UP].width;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX].y+Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX].height-Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX_DN].height;
// "Settlements" label for Map Settings.
ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_LABEL = addSizeArrayWH(atlasCoord, atlasCoord_Last,
62,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_LABEL].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX].x-atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_LABEL].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX].y
);
ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_LABEL = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = mid_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = mid_screen;
Crd[Crd.last-1].width = 62;
Crd[Crd.last-1].height = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_LABEL].height;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX].x-Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_LABEL].width;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_SETTLEMENT_INPUT_BOX].y;
// "Resources:" label for Map Settings.
ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_RESOURCES_LABEL = addSizeArrayWH(atlasCoord, atlasCoord_Last,
60,
15
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_LABEL].x,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_LABEL].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_LABEL].height+ATLAS_LEFT_PANE_SECTION.TMARGIN+ATLAS_LEFT_PANE_SECTION.TMARGIN
);
ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_RESOURCES_LABEL = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = mid_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = mid_screen;
Crd[Crd.last-1].width = 60;
Crd[Crd.last-1].height = 15;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_LABEL].x;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_LABEL].y+Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_LABEL].height+ATLAS_LEFT_PANE_SECTION.TMARGIN+ATLAS_LEFT_PANE_SECTION.TMARGIN;
// Resources "drop-down" box for Map Settings.
ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_RESOURCES_COMBO_BOX = addSizeArrayWH(atlasCoord, atlasCoord_Last,
55,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_LABEL].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_RESOURCES_LABEL].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_RESOURCES_LABEL].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_RESOURCES_LABEL].y
);
ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_RESOURCES_COMBO_BOX = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = mid_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = mid_screen;
Crd[Crd.last-1].width = 55;
Crd[Crd.last-1].height = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_PLAYER_LABEL].height;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_RESOURCES_LABEL].x+Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_RESOURCES_LABEL].width;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_MAP_SETTINGS_RESOURCES_LABEL].y;
// ============================================= MAP CREATOR: MAP SETTINGS: TERRITORIES ===============================================
// ============================================= MAP CREATOR: GENERATE ===============================================
// Terrain Map input box.
ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_3].width-ATLAS_LEFT_PANE_SECTION.LMARGIN-ATLAS_LEFT_PANE_SECTION.RMARGIN-ATLAS_LEFT_PANE_SECTION.LMARGIN,
15
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_3].x+ATLAS_LEFT_PANE_SECTION.LMARGIN+ATLAS_LEFT_PANE_SECTION.LMARGIN,
ATLAS_LEFT_PANE_SECTION.BMARGIN
);
ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = bottom_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = bottom_screen;
Crd[Crd.last-1].width = Crd[ATLAS_LEFT_PANE_SECTION_HEADING_3].width-ATLAS_LEFT_PANE_SECTION.LMARGIN-ATLAS_LEFT_PANE_SECTION.RMARGIN-ATLAS_LEFT_PANE_SECTION.LMARGIN;
Crd[Crd.last-1].height = 15;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_HEADING_3].x+ATLAS_LEFT_PANE_SECTION.LMARGIN+ATLAS_LEFT_PANE_SECTION.LMARGIN;
Crd[Crd.last-1].y = ATLAS_LEFT_PANE_SECTION.BMARGIN;
// "Terrain Map:" label.
ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_LABEL = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX].width,
20
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX].x,
atlasCoord[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX].height
);
ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_LABEL = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = bottom_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = bottom_screen;
Crd[Crd.last-1].width = Crd[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX].width;
Crd[Crd.last-1].height = 20;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX].x;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX].y+Crd[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX].height;
// Height Map input box.
ATLAS_LEFT_PANE_SECTION_GENERATE_HEIGHT_MAP_INPUT_BOX = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX].x,
atlasCoord[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_LABEL].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_LABEL].height
);
ATLAS_LEFT_PANE_SECTION_GENERATE_HEIGHT_MAP_INPUT_BOX = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = bottom_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = bottom_screen;
Crd[Crd.last-1].width = Crd[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX].width;
Crd[Crd.last-1].height = Crd[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX].height;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX].x;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_LABEL].y+Crd[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_LABEL].height;
// "Height Map:" label.
ATLAS_LEFT_PANE_SECTION_GENERATE_HEIGHT_MAP_LABEL = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_LABEL].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX].x,
atlasCoord[ATLAS_LEFT_PANE_SECTION_GENERATE_HEIGHT_MAP_INPUT_BOX].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_GENERATE_HEIGHT_MAP_INPUT_BOX].height
);
ATLAS_LEFT_PANE_SECTION_GENERATE_HEIGHT_MAP_LABEL = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = bottom_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = bottom_screen;
Crd[Crd.last-1].width = Crd[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX].width;
Crd[Crd.last-1].height = Crd[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_LABEL].height;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX].x;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_GENERATE_HEIGHT_MAP_INPUT_BOX].y+Crd[ATLAS_LEFT_PANE_SECTION_GENERATE_HEIGHT_MAP_INPUT_BOX].height;
// "Generate!" border.
ATLAS_LEFT_PANE_SECTION_GENERATE_BORDER = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX].width,
40
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX].x,
atlasCoord[ATLAS_LEFT_PANE_SECTION_GENERATE_HEIGHT_MAP_INPUT_BOX].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_GENERATE_HEIGHT_MAP_INPUT_BOX].height+atlasCoord[ATLAS_LEFT_PANE_SECTION_GENERATE_BORDER].height+ATLAS_LEFT_PANE_SECTION.BMARGIN
);
ATLAS_LEFT_PANE_SECTION_GENERATE_BORDER = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = bottom_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = bottom_screen;
Crd[Crd.last-1].width = Crd[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX].width;
Crd[Crd.last-1].height = 40;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX].x;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_GENERATE_HEIGHT_MAP_INPUT_BOX].y+Crd[ATLAS_LEFT_PANE_SECTION_GENERATE_HEIGHT_MAP_INPUT_BOX].height+Crd[ATLAS_LEFT_PANE_SECTION_GENERATE_BORDER].height+ATLAS_LEFT_PANE_SECTION.BMARGIN;
ATLAS_LEFT_PANE_SECTION_GENERATE_SPAN = 7;
// "Generate!" button.
ATLAS_LEFT_PANE_SECTION_GENERATE_BUTTON = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX].width-ATLAS_LEFT_PANE_SECTION_GENERATE_SPAN-ATLAS_LEFT_PANE_SECTION_GENERATE_SPAN,
atlasCoord[ATLAS_LEFT_PANE_SECTION_GENERATE_BORDER].height-ATLAS_LEFT_PANE_SECTION_GENERATE_SPAN-ATLAS_LEFT_PANE_SECTION_GENERATE_SPAN
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_GENERATE_BORDER].x+ATLAS_LEFT_PANE_SECTION_GENERATE_SPAN,
atlasCoord[ATLAS_LEFT_PANE_SECTION_GENERATE_BORDER].y+ATLAS_LEFT_PANE_SECTION_GENERATE_SPAN
);
ATLAS_LEFT_PANE_SECTION_GENERATE_BUTTON = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = Crd[ATLAS_LEFT_PANE_SECTION_GENERATE_TERRAIN_MAP_INPUT_BOX].width-ATLAS_LEFT_PANE_SECTION_GENERATE_SPAN-ATLAS_LEFT_PANE_SECTION_GENERATE_SPAN;
Crd[Crd.last-1].height = Crd[ATLAS_LEFT_PANE_SECTION_GENERATE_BORDER].height-ATLAS_LEFT_PANE_SECTION_GENERATE_SPAN-ATLAS_LEFT_PANE_SECTION_GENERATE_SPAN;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_GENERATE_BORDER].x+ATLAS_LEFT_PANE_SECTION_GENERATE_SPAN;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_GENERATE_BORDER].y+ATLAS_LEFT_PANE_SECTION_GENERATE_SPAN;
}
// ====================================================================

View File

@ -3,162 +3,161 @@ function initAtlasSectionObjectEditor()
// ============================================= OBJECT EDITOR: SELECTION ==============================================
// Object category label.
ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_LABEL = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_2].width-ATLAS_LEFT_PANE_SECTION.LMARGIN-ATLAS_LEFT_PANE_SECTION.RMARGIN-ATLAS_LEFT_PANE_SECTION.LMARGIN,
20
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_2].x+ATLAS_LEFT_PANE_SECTION.LMARGIN+ATLAS_LEFT_PANE_SECTION.LMARGIN,
atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_2].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_2].height
);
ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_LABEL = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = Crd[ATLAS_LEFT_PANE_SECTION_HEADING_2].width-ATLAS_LEFT_PANE_SECTION.LMARGIN-ATLAS_LEFT_PANE_SECTION.RMARGIN-ATLAS_LEFT_PANE_SECTION.LMARGIN;
Crd[Crd.last-1].height = 20;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_HEADING_2].x+ATLAS_LEFT_PANE_SECTION.LMARGIN+ATLAS_LEFT_PANE_SECTION.LMARGIN;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_HEADING_2].y+Crd[ATLAS_LEFT_PANE_SECTION_HEADING_2].height;
// Object category input box.
ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_COMBO_BOX = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_LABEL].width,
15
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_LABEL].x,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_LABEL].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_LABEL].height
);
ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_COMBO_BOX = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_LABEL].width;
Crd[Crd.last-1].height = 15;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_LABEL].x;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_LABEL].y+Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_LABEL].height;
// Custom button.
ATLAS_LEFT_PANE_SECTION_OBJECT_BUTTON_CUSTOM_ACTOR = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_BUTTON_CUSTOM].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_BUTTON_CUSTOM].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_COMBO_BOX].x-4,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_COMBO_BOX].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_COMBO_BOX].height+ATLAS_LEFT_PANE_SECTION.TMARGIN
);
ATLAS_LEFT_PANE_SECTION_OBJECT_BUTTON_CUSTOM_ACTOR = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = Crd[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_BUTTON_CUSTOM].width;
Crd[Crd.last-1].height = Crd[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_BUTTON_CUSTOM].height;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_COMBO_BOX].x-4;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_COMBO_BOX].y+Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_COMBO_BOX].height+ATLAS_LEFT_PANE_SECTION.TMARGIN;
// Custom button.
ATLAS_LEFT_PANE_SECTION_OBJECT_BUTTON_CUSTOM_ENTITY = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_BUTTON_CUSTOM_ACTOR].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_BUTTON_CUSTOM_ACTOR].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_COMBO_BOX].x+4+atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_COMBO_BOX].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_BUTTON_CUSTOM_ENTITY].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_BUTTON_CUSTOM_ACTOR].y
);
ATLAS_LEFT_PANE_SECTION_OBJECT_BUTTON_CUSTOM_ENTITY = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_BUTTON_CUSTOM_ACTOR].width;
Crd[Crd.last-1].height = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_BUTTON_CUSTOM_ACTOR].height;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_COMBO_BOX].x+4+Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_COMBO_BOX].width-Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_BUTTON_CUSTOM_ENTITY].width;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_BUTTON_CUSTOM_ACTOR].y;
// ============================================= OBJECT EDITOR: LIST ==============================================
// Background of Object List.
ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_BKG = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_COMBO_BOX].width+2,
163+2
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_COMBO_BOX].x,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_BUTTON_CUSTOM_ACTOR].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_BUTTON_CUSTOM_ACTOR].height+ATLAS_LEFT_PANE_SECTION.TMARGIN
);
ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_BKG = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = bottom_screen;
Crd[Crd.last-1].width = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_COMBO_BOX].width+2;
Crd[Crd.last-1].height = 163+2;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_CATEGORY_COMBO_BOX].x;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_BUTTON_CUSTOM_ACTOR].y+Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_BUTTON_CUSTOM_ACTOR].height+ATLAS_LEFT_PANE_SECTION.TMARGIN;
// Player input box.
ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_BKG].x+10,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_BKG].y+10
);
ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = Crd[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].width;
Crd[Crd.last-1].height = Crd[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].height;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_BKG].x+10;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_BKG].y+10;
// Up button for Player input box.
ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX_UP = addSizeArrayWH(atlasCoord, atlasCoord_Last,
ATLAS_COUNTER_BOX.width,
(atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX].height/2)+3
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX_UP].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX].y-3
);
ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX_UP = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = ATLAS_COUNTER_BOX.width;
Crd[Crd.last-1].height = (Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX].height/2)+3;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX].x+Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX].width-Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX_UP].width;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX].y-3;
// Down button for Player input box.
ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX_DN = addSizeArrayWH(atlasCoord, atlasCoord_Last,
ATLAS_COUNTER_BOX.width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX_UP].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX_UP].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX].height-atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX_DN].height
);
ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX_DN = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = ATLAS_COUNTER_BOX.width;
Crd[Crd.last-1].height = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX_UP].height;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX].x+Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX].width-Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX_UP].width;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX].y+Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX].height-Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX_DN].height;
// Player label.
ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_LABEL = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_LABEL].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_LABEL].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX].y
);
ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_LABEL = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = Crd[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_LABEL].width;
Crd[Crd.last-1].height = Crd[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_LABEL].height;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX].x+Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX].width;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX].y;
// Objects heading.
ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_HEADING = addSizeArrayWH(atlasCoord, atlasCoord_Last,
65,
atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_LABEL].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_BKG].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_BKG].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_HEADING].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX].y
);
ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_HEADING = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = 65;
Crd[Crd.last-1].height = Crd[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_LABEL].height;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_BKG].x+Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_BKG].width-Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_HEADING].width;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_PLAYER_INPUT_BOX].y;
// Object list sort input box.
ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_SORT_COMBO_BOX = addSizeArrayWH(atlasCoord, atlasCoord_Last,
90,
15
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_BKG].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_BKG].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_SORT_COMBO_BOX].width-10,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_HEADING].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_HEADING].height+10
);
ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_SORT_COMBO_BOX = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = 90;
Crd[Crd.last-1].height = 15;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_BKG].x+Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_BKG].width-Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_SORT_COMBO_BOX].width-10;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_HEADING].y+Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_HEADING].height+10;
// Object list sort label.
ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_SORT_LABEL = addSizeArrayWH(atlasCoord, atlasCoord_Last,
35,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_SORT_COMBO_BOX].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_SORT_COMBO_BOX].x-atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_SORT_LABEL].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_SORT_COMBO_BOX].y-3
);
ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_SORT_LABEL = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = 35;
Crd[Crd.last-1].height = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_SORT_COMBO_BOX].height;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_SORT_COMBO_BOX].x-Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_SORT_LABEL].width;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_SORT_COMBO_BOX].y-3;
// Object List.
ATLAS_LEFT_PANE_SECTION_OBJECT_LIST = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_BKG].width,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_BKG].height
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_BKG].x,
atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_SORT_COMBO_BOX].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_SORT_COMBO_BOX].height+ATLAS_LEFT_PANE_SECTION.TMARGIN
);
ATLAS_LEFT_PANE_SECTION_OBJECT_LIST = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = bottom_screen;
Crd[Crd.last-1].width = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_BKG].width;
Crd[Crd.last-1].height = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_BKG].height;
Crd[Crd.last-1].x = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_BKG].x;
Crd[Crd.last-1].y = Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_SORT_COMBO_BOX].y+Crd[ATLAS_LEFT_PANE_SECTION_OBJECT_LIST_SORT_COMBO_BOX].height+ATLAS_LEFT_PANE_SECTION.TMARGIN;
// ============================================= OBJECT EDITOR: ANIMATION VIEWER ===============================================
// Animation Viewer combobox label.
ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_COMBO_BOX_LABEL = addSizeArrayWH(atlasCoord, atlasCoord_Last,
60,
20
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
ATLAS_LEFT_PANE_SECTION.LMARGIN,
2
);
ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_COMBO_BOX_LABEL = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = bottom_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = bottom_screen;
Crd[Crd.last-1].width = 60;
Crd[Crd.last-1].height = 20;
Crd[Crd.last-1].x = ATLAS_LEFT_PANE_SECTION.LMARGIN;
Crd[Crd.last-1].y = 2;
// Animation Viewer combobox.
ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_COMBO_BOX = addSizeArrayWH(atlasCoord, atlasCoord_Last,
65,
10
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_COMBO_BOX_LABEL].x+atlasCoord[ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_COMBO_BOX_LABEL].width,
atlasCoord[ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_COMBO_BOX_LABEL].y
);
ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_COMBO_BOX = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = bottom_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = bottom_screen;
Crd[Crd.last-1].width = 65;
Crd[Crd.last-1].height = 10;
Crd[Crd.last-1].x = Crd[ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_COMBO_BOX_LABEL].x+Crd[ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_COMBO_BOX_LABEL].width;
Crd[Crd.last-1].y = Crd[ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_COMBO_BOX_LABEL].y;
// Animation Viewer.
ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_VIEWER = addSizeArrayWH(atlasCoord, atlasCoord_Last,
125,
125
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_COMBO_BOX_LABEL].x,
atlasCoord[ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_COMBO_BOX_LABEL].y+atlasCoord[ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_COMBO_BOX_LABEL].height
);
ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_VIEWER = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = bottom_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = bottom_screen;
Crd[Crd.last-1].width = 125;
Crd[Crd.last-1].height = 125;
Crd[Crd.last-1].x = Crd[ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_COMBO_BOX_LABEL].x;
Crd[Crd.last-1].y = Crd[ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_COMBO_BOX_LABEL].y+Crd[ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_COMBO_BOX_LABEL].height;
// Animation Viewer label.
ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_VIEWER_LABEL = addSizeArrayWH(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_VIEWER].width,
15
); atlasCoord_Last = addSizeArrayXY(atlasCoord, atlasCoord_Last,
atlasCoord[ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_VIEWER].x,
atlasCoord[ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_VIEWER].y+atlasCoord[ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_VIEWER].height
);
ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_VIEWER_LABEL = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = bottom_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = bottom_screen;
Crd[Crd.last-1].width = Crd[ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_VIEWER].width;
Crd[Crd.last-1].height = 15;
Crd[Crd.last-1].x = Crd[ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_VIEWER].x;
Crd[Crd.last-1].y = Crd[ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_VIEWER].y+Crd[ATLAS_BOTTOM_PANE_SECTION_OBJECT_ANIM_VIEWER].height;
}
// ====================================================================

View File

@ -41,27 +41,23 @@ TODO: Make button code work for any number of buttons without extending the code
function initGlobal()
{
// Initialise coordinate set for this page.
globalCoord = new Array();
globalCoord_Last = 0;
// Bottom-left product logo; used when taking official screenshots.
GLOBAL_WATERMARK_PRODUCT_LOGO = addSizeArrayWH(globalCoord, globalCoord_Last,
200,
98
); globalCoord_Last = addSizeArrayXY(globalCoord, globalCoord_Last,
0,
0
);
GLOBAL_WATERMARK_PRODUCT_LOGO = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = bottom_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = bottom_screen;
Crd[Crd.last-1].width = 200;
Crd[Crd.last-1].height = 98;
Crd[Crd.last-1].x = 0;
Crd[Crd.last-1].y = 0;
// Bottom-right company logo; used when taking official screenshots.
GLOBAL_WATERMARK_COMPANY_LOGO = addSizeArrayWH(globalCoord, globalCoord_Last,
207,
28
); globalCoord_Last = addSizeArrayXY(globalCoord, globalCoord_Last,
0,
0
);
GLOBAL_WATERMARK_COMPANY_LOGO = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = right_screen; Crd[Crd.last-1].rtop = bottom_screen;
Crd[Crd.last-1].rright = right_screen; Crd[Crd.last-1].rbottom = bottom_screen;
Crd[Crd.last-1].width = 207;
Crd[Crd.last-1].height = 28;
Crd[Crd.last-1].x = 0;
Crd[Crd.last-1].y = 0;
}
// ====================================================================

View File

@ -1,63 +1,65 @@
function initManual()
{
// ============================================= GLOBALS =================================================
// ============================================ CONSTANTS ================================================
MANUAL = new Object();
MANUAL.span = 5;
// ============================================= GLOBALS =================================================
// Background of online manual.
MANUAL_BKG = addSizeArrayWH(sessionCoord, sessionCoord_Last,
50,
50
); sessionCoord_Last = addSizeArrayXY(sessionCoord, sessionCoord_Last,
50,
50
);
MANUAL_BKG = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = right_screen; Crd[Crd.last-1].rbottom = bottom_screen;
Crd[Crd.last-1].width = 50;
Crd[Crd.last-1].height = 50;
Crd[Crd.last-1].x = 50;
Crd[Crd.last-1].y = 50;
// Online manual portrait.
MANUAL_PORTRAIT = addSizeArrayWH(sessionCoord, sessionCoord_Last,
crd_portrait_lrg_width,
crd_portrait_lrg_height
); sessionCoord_Last = addSizeArrayXY(sessionCoord, sessionCoord_Last,
sessionCoord[MANUAL_BKG].x+10,
sessionCoord[MANUAL_BKG].y+30
);
MANUAL_PORTRAIT = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = left_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = crd_portrait_lrg_width;
Crd[Crd.last-1].height = crd_portrait_lrg_height;
Crd[Crd.last-1].x = Crd[MANUAL_BKG].x+10;
Crd[Crd.last-1].y = Crd[MANUAL_BKG].y+30;
// Online manual rollover.
MANUAL_ROLLOVER = addSizeArrayWH(sessionCoord, sessionCoord_Last,
60,
sessionCoord[MANUAL_PORTRAIT].height
); sessionCoord_Last = addSizeArrayXY(sessionCoord, sessionCoord_Last,
sessionCoord[MANUAL_PORTRAIT].x+sessionCoord[MANUAL_PORTRAIT].width+MANUAL.span,
sessionCoord[MANUAL_PORTRAIT].y
);
MANUAL_ROLLOVER = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = right_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = 60;
Crd[Crd.last-1].height = Crd[MANUAL_PORTRAIT].height;
Crd[Crd.last-1].x = Crd[MANUAL_PORTRAIT].x+Crd[MANUAL_PORTRAIT].width+MANUAL.span;
Crd[Crd.last-1].y = Crd[MANUAL_PORTRAIT].y;
// Online manual history.
MANUAL_HISTORY = addSizeArrayWH(sessionCoord, sessionCoord_Last,
sessionCoord[MANUAL_ROLLOVER].width,
sessionCoord[MANUAL_ROLLOVER].height
); sessionCoord_Last = addSizeArrayXY(sessionCoord, sessionCoord_Last,
sessionCoord[MANUAL_PORTRAIT].x,
60
);
MANUAL_HISTORY = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = bottom_screen;
Crd[Crd.last-1].rright = right_screen; Crd[Crd.last-1].rbottom = bottom_screen;
Crd[Crd.last-1].width = Crd[MANUAL_ROLLOVER].width;
Crd[Crd.last-1].height = Crd[MANUAL_ROLLOVER].height;
Crd[Crd.last-1].x = Crd[MANUAL_PORTRAIT].x;
Crd[Crd.last-1].y = 60;
// Online manual text.
MANUAL_NAME = addSizeArrayWH(sessionCoord, sessionCoord_Last,
sessionCoord[MANUAL_HISTORY].width,
sessionCoord[MANUAL_HISTORY].y+sessionCoord[MANUAL_HISTORY].height+MANUAL.span
); sessionCoord_Last = addSizeArrayXY(sessionCoord, sessionCoord_Last,
sessionCoord[MANUAL_HISTORY].x,
sessionCoord[MANUAL_ROLLOVER].y+sessionCoord[MANUAL_ROLLOVER].height+MANUAL.span
);
MANUAL_NAME = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = left_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = right_screen; Crd[Crd.last-1].rbottom = bottom_screen;
Crd[Crd.last-1].width = Crd[MANUAL_HISTORY].width;
Crd[Crd.last-1].height = Crd[MANUAL_HISTORY].y+Crd[MANUAL_HISTORY].height+MANUAL.span;
Crd[Crd.last-1].x = Crd[MANUAL_HISTORY].x;
Crd[Crd.last-1].y = Crd[MANUAL_ROLLOVER].y+Crd[MANUAL_ROLLOVER].height+MANUAL.span;
// Online manual exit button.
MANUAL_EXIT_BUTTON = addSizeArrayWH(sessionCoord, sessionCoord_Last,
16,
16
); sessionCoord_Last = addSizeArrayXY(sessionCoord, sessionCoord_Last,
26,
25
);
MANUAL_EXIT_BUTTON = addArrayElement(Crd, Crd.last);
Crd[Crd.last-1].rleft = right_screen; Crd[Crd.last-1].rtop = top_screen;
Crd[Crd.last-1].rright = right_screen; Crd[Crd.last-1].rbottom = top_screen;
Crd[Crd.last-1].width = 16;
Crd[Crd.last-1].height = 16;
Crd[Crd.last-1].x = 26;
Crd[Crd.last-1].y = 25;
}
// ====================================================================
@ -65,7 +67,7 @@ function initManual()
function manualDisplay()
{
// Display heading.
ManualBkg = getGUIObjectByName("manual_bkg");
ManualBkg = getGUIObjectByName("MANUAL_BKG");
ManualBkg.caption = "In-Game Help: ";
if (selection[0].traits.id.civ)
ManualBkg.caption += selection[0].traits.id.civ + ": ";
@ -77,18 +79,18 @@ function manualDisplay()
// Display portrait.
if (selection[0].traits.id.icon)
{
setPortrait("manual_portrait", selection[0].traits.id.icon, selection[0].traits.id.civ_code, selection[0].traits.id.icon_cell);
setPortrait("MANUAL_PORTRAIT", selection[0].traits.id.icon, selection[0].traits.id.civ_code, selection[0].traits.id.icon_cell);
}
// Display rollover text.
if (selection[0].traits.id.rollover)
{
ManualRollover = getGUIObjectByName("manual_rollover");
ManualRollover = getGUIObjectByName("MANUAL_ROLLOVER");
ManualRollover.caption = selection[0].traits.id.rollover;
}
// Display name(s).
ManualRollover = getGUIObjectByName("manual_name");
ManualRollover = getGUIObjectByName("MANUAL_NAME");
ManualRollover.caption = "";
if (selection[0].traits.id.generic)
ManualRollover.caption += selection[0].traits.id.generic;
@ -438,7 +440,7 @@ function manualDisplay()
// Display history text.
if (selection[0].traits.id.history)
{
ManualHistory = getGUIObjectByName("manual_history");
ManualHistory = getGUIObjectByName("MANUAL_HISTORY");
ManualHistory.caption = "History: " + selection[0].traits.id.history;
}
}

View File

@ -4,7 +4,7 @@ function startLoadingScreen()
g_GameAttributes.numPlayers = 9;
// Switch screens from main menu to loading screen.
GUIObjectHide("pregame_gui");
GUIObjectHide("PREGAME_GUI");
GUIObjectUnhide("loading_screen");
console.write("Loading " + g_GameAttributes.mapFile + " (" + g_GameAttributes.numPlayers + " players) ...");
@ -26,7 +26,7 @@ function loadSession()
{
// Failed to start the game; go back to the main menu. TODO: display an error message.
GUIObjectHide("loading_screen");
GUIObjectUnhide("pregame_gui");
GUIObjectUnhide("PREGAME_GUI");
return;
}
@ -42,7 +42,7 @@ function loadSession()
// Switch GUI from main menu to game session.
GUIObjectHide("loading_screen");
GUIObjectUnhide("session_gui");
GUIObjectUnhide("SESSION_GUI");
}
// ====================================================================
@ -86,8 +86,8 @@ function endSession(closeType)
CrossFade(curr_session_playlist_1, curr_music, 0.0001);
// Swap GUIs to display main menu.
GUIObjectHide('session_gui');
GUIObjectUnhide('pregame_gui');
GUIObjectHide('SESSION_GUI');
GUIObjectUnhide('PREGAME_GUI');
break;
case ("exit"):
// If the player has chosen to shutdown and immediately return to operating system,

View File

@ -8,23 +8,12 @@ function initSession()
SizeCoord = new Array();
SizeCoord.last = 0;
// Initialise coordinate set for this page.
sessionCoord = new Array();
sessionCoord_Last = 0;
// Standard portrait widths.
crd_portrait_lrg_width = 64;
crd_portrait_lrg_height = crd_portrait_lrg_width;
crd_portrait_sml_width = 32;
crd_portrait_sml_height = crd_portrait_sml_width;
// Screen percentages.
top_screen = 0;
left_screen = 0;
mid_screen = 50;
bottom_screen = 100;
right_screen = 100;
// Small icons (eg Movement Rate, Food).
crd_mini_icon_width = 20;
crd_mini_icon_height = crd_mini_icon_width;

View File

@ -10,7 +10,8 @@ function initGroupPane()
crd_grppane_prt_row_bar = new Array();
crd_grppane_prt_row.last = 0; // Last size added.
crd_grppane_prt_row.style = 2; // Style length.
crd_grppane_prt_last = 0; // Total group portraits.
crd_grppane_prt = new Array();
crd_grppane_prt.last = 0; // Total group portraits.
// Build table of group pane coordinates.
initGroupPaneTable();
@ -99,7 +100,7 @@ function AddSizeGroupPane(objectName, row, col)
SizeCoord[SizeCoord.last].size2 = new GUISize(size_col.left, size_row.top, size_col.right, size_row.bottom, size_col.rleft, size_row.rtop, size_col.rright, size_row.rbottom);
SizeCoord.last++; // Increment counter for next entry.
crd_grppane_prt_last++; // Increment group pane portrait counter.
crd_grppane_prt.last++; // Increment group pane portrait counter.
}
// ====================================================================
@ -176,7 +177,7 @@ function UpdateGroupPane()
}
*/
// Display appropriate portraits.
for (groupPaneLoop = 1; groupPaneLoop <= crd_grppane_prt_last; groupPaneLoop++)
for (groupPaneLoop = 1; groupPaneLoop <= crd_grppane_prt.last; groupPaneLoop++)
{
groupPanePortrait = getGUIObjectByName("session_group_pane_portrait_" + groupPaneLoop);
groupPaneBar = getGUIObjectByName("session_group_pane_portrait_" + groupPaneLoop + "_bar");

View File

@ -46,4 +46,16 @@ function parseDelimiterString (parseString, Delimiter)
return parseArray;
}
// ====================================================================
function addArrayElement(Array)
{
// Adds an element to an array, updates its given index, and returns the index of the element.
Array[Array.last] = new Object();
Array.last++;
return (Array.last - 1);
}
// ====================================================================

View File

@ -1,3 +1,19 @@
function initCoord()
{
// Initialise coordinate set for this page.
Crd = new Array();
Crd.last = 0;
// Screen percentages.
top_screen = 0;
left_screen = 0;
mid_screen = 50;
bottom_screen = 100;
right_screen = 100;
}
// ====================================================================
function AddSizeCoord(objectName, left1, top1, right1, bottom1, rleft1, rtop1, rright1, rbottom1, left2, top2, right2, bottom2, rleft2, rtop2, rright2, rbottom2)
{
// Used to store the two GUI style sizes for an object on creation (specified as coordinates).
@ -89,90 +105,71 @@ function addSizeArrayXY(objectArray, objectElement, objectX, objectY)
function setSizeArray(objectName, objectArrayElement, rleft, rtop, rright, rbottom)
{
// Use this function as a shortcut to change the size of a GUI control, via an array containing x, y, width and height.
// Use this function as a shortcut to change the size of a GUI control, via an array containing x, y, width, height and 4 relative sizes.
// Alternatively, specify 4 relative sizes to override and use these ones instead.
switch (rleft)
setSizeContainer = new Object();
// Override with relative parameter if given.
if (rleft && rtop && rright && rbottom)
{
objectArrayElement.rleft = rleft;
objectArrayElement.rtop = rtop;
objectArrayElement.rright = rright;
objectArrayElement.rbottom = rbottom;
}
setSizeContainer.rleft = objectArrayElement.rleft;
setSizeContainer.rtop = objectArrayElement.rtop;
setSizeContainer.rright = objectArrayElement.rright;
setSizeContainer.rbottom = objectArrayElement.rbottom;
// Define size dimensions.
switch (setSizeContainer.rleft)
{
case left_screen:
size_x1 = objectArrayElement.x;
setSizeContainer.x1 = objectArrayElement.x;
break;
case right_screen:
size_x1 = -objectArrayElement.x-objectArrayElement.width;
setSizeContainer.x1 = -objectArrayElement.x-objectArrayElement.width;
break;
}
switch (rtop)
switch (setSizeContainer.rtop)
{
case top_screen:
size_y1 = objectArrayElement.y;
setSizeContainer.y1 = objectArrayElement.y;
break;
case bottom_screen:
size_y1 = -objectArrayElement.y-objectArrayElement.height;
setSizeContainer.y1 = -objectArrayElement.y-objectArrayElement.height;
break;
}
switch (rright)
switch (setSizeContainer.rright)
{
case left_screen:
size_x2 = objectArrayElement.x+objectArrayElement.width;
setSizeContainer.x2 = objectArrayElement.x+objectArrayElement.width;
break;
case right_screen:
if (rleft == right_screen)
size_x2 = -objectArrayElement.x;
if (setSizeContainer.rleft == right_screen)
setSizeContainer.x2 = -objectArrayElement.x;
else
size_x2 = -objectArrayElement.width;
setSizeContainer.x2 = -objectArrayElement.width;
break;
}
switch (rbottom)
switch (setSizeContainer.rbottom)
{
case top_screen:
size_y2 = objectArrayElement.y+objectArrayElement.height;
setSizeContainer.y2 = objectArrayElement.y+objectArrayElement.height;
break;
case bottom_screen:
if (rtop == bottom_screen)
size_y2 = -objectArrayElement.y;
if (setSizeContainer.rtop == bottom_screen)
setSizeContainer.y2 = -objectArrayElement.y;
else
size_y2 = -objectArrayElement.height;
setSizeContainer.y2 = -objectArrayElement.height;
break;
}
getGUIObjectByName(objectName).size = new GUISize(size_x1, size_y1, size_x2, size_y2, rleft, rtop, rright, rbottom);
/*
if (rleft == left_screen && rtop == top_screen && rright == left_screen && rbottom == top_screen)
// Object is aligned to top left.
getGUIObjectByName(objectName).size = new GUISize(objectArrayElement.x, objectArrayElement.y, objectArrayElement.x+objectArrayElement.width, objectArrayElement.y+objectArrayElement.height, rleft, rtop, rright, rbottom);
else
if (rleft == left_screen && rtop == bottom_screen && rright == left_screen && rbottom == bottom_screen)
// Object is aligned to bottom left.
getGUIObjectByName(objectName).size = new GUISize(objectArrayElement.x, -objectArrayElement.y-objectArrayElement.height, objectArrayElement.x+objectArrayElement.width, -objectArrayElement.y, rleft, rtop, rright, rbottom);
else
if (rleft == right_screen && rtop == top_screen && rright == right_screen && rbottom == top_screen)
// Object is aligned to top right.
getGUIObjectByName(objectName).size = new GUISize(-objectArrayElement.x-objectArrayElement.width, objectArrayElement.y, -objectArrayElement.x, objectArrayElement.y+objectArrayElement.height, rleft, rtop, rright, rbottom);
else
if (rleft == right_screen && rtop == bottom_screen && rright == right_screen && rbottom == bottom_screen)
// Object is aligned to bottom right.
getGUIObjectByName(objectName).size = new GUISize(-objectArrayElement.x-objectArrayElement.width, -objectArrayElement.y-objectArrayElement.height, -objectArrayElement.x, -objectArrayElement.y, rleft, rtop, rright, rbottom);
else
if (rleft == left_screen && rtop == top_screen && rright == right_screen && rbottom == top_screen)
// Object is aligned between left top and right top.
getGUIObjectByName(objectName).size = new GUISize(objectArrayElement.x, objectArrayElement.y, -objectArrayElement.width, objectArrayElement.y+objectArrayElement.height, rleft, rtop, rright, rbottom);
else
if (rleft == left_screen && rtop == top_screen && rright == right_screen && rbottom == bottom_screen)
// Object is aligned between left top and right bottom.
getGUIObjectByName(objectName).size = new GUISize(objectArrayElement.x, objectArrayElement.y, -objectArrayElement.width, -objectArrayElement.height, rleft, rtop, rright, rbottom);
else
if (rleft == left_screen && rtop == bottom_screen && rright == right_screen && rbottom == bottom_screen)
// Object is aligned between left bottom and right bottom.
getGUIObjectByName(objectName).size = new GUISize(objectArrayElement.x, -objectArrayElement.y-objectArrayElement.height, -objectArrayElement.width, objectArrayElement.y, rleft, rtop, rright, rbottom);
else
if (rleft == left_screen && rtop == top_screen && rright == left_screen && rbottom == bottom_screen)
// Object is aligned between left top and left bottom.
getGUIObjectByName(objectName).size = new GUISize(objectArrayElement.x, objectArrayElement.y, objectArrayElement.x+objectArrayElement.width, -objectArrayElement.height, rleft, rtop, rright, rbottom);
else
if (rleft == left_screen && rtop == mid_screen && rright == left_screen && rbottom == mid_screen)
// Object is aligned to middle left.
getGUIObjectByName(objectName).size = new GUISize(objectArrayElement.x, objectArrayElement.y, objectArrayElement.x+objectArrayElement.width, objectArrayElement.y+objectArrayElement.height, rleft, rtop, rright, rbottom);
*/
// Set appropriate size for dimensions.
getGUIObjectByName(objectName).size = new GUISize(setSizeContainer.x1, setSizeContainer.y1, setSizeContainer.x2, setSizeContainer.y2, setSizeContainer.rleft, setSizeContainer.rtop, setSizeContainer.rright, setSizeContainer.rbottom);
}
// ====================================================================
@ -203,7 +200,7 @@ function FlipGUI(NewGUIType)
if (GUIType != "none")
{
GUIObjectUnhide("session_gui");
GUIObjectUnhide("SESSION_GUI");
GUIObjectUnhide("always_on");
// Seek through all sizes created.
@ -271,7 +268,7 @@ function FlipGUI(NewGUIType)
}
else
{
GUIObjectHide("session_gui");
GUIObjectHide("SESSION_GUI");
GUIObjectHide("always_on");
}