1
0
forked from 0ad/0ad

Revised GUI scripts to turn Status Orb into lengthened pane, populated it with stats, retabulated Group Pane and gave it an opaque background (as requested by Malte).

This was SVN commit r1411.
This commit is contained in:
Acumen 2004-11-27 22:17:35 +00:00
parent f930bf1df4
commit 068f6e8d47
6 changed files with 294 additions and 158 deletions

View File

@ -27,7 +27,7 @@
GUIObjectToggle("session_group_pane");
]]></action>
<object type="text" name="session_group_pane_bg" sprite="tooltip-background" z="60" ghost="true" hidden="false"/>
<object type="text" name="session_group_pane_bg" sprite="sprite1" z="60" ghost="true" hidden="false"/>
<!-- First row. -->
<object type="button" name="session_group_pane_portrait_1" style="portrait" z="60" hidden="false">1
@ -160,9 +160,11 @@
AddSizeGroupPaneBar(this.name);
]]></action>
</object>
<!-- Second row. -->
<object type="button" name="session_group_pane_portrait_14" style="portrait" z="60" hidden="false">14
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 0, 13);
AddSizeGroupPane(this.name, 1, 0);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_14_bar" style="group_portrait_bar" z="60" hidden="false">
@ -172,7 +174,7 @@
</object>
<object type="button" name="session_group_pane_portrait_15" style="portrait" z="60" hidden="false">15
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 0, 14);
AddSizeGroupPane(this.name, 1, 1);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_15_bar" style="group_portrait_bar" z="60" hidden="false">
@ -180,11 +182,9 @@
AddSizeGroupPaneBar(this.name);
]]></action>
</object>
<!-- Second row. -->
<object type="button" name="session_group_pane_portrait_16" style="portrait" z="60" hidden="false">16
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 1, 0);
AddSizeGroupPane(this.name, 1, 2);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_16_bar" style="group_portrait_bar" z="60" hidden="false">
@ -194,7 +194,7 @@
</object>
<object type="button" name="session_group_pane_portrait_17" style="portrait" z="60" hidden="false">17
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 1, 1);
AddSizeGroupPane(this.name, 1, 3);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_17_bar" style="group_portrait_bar" z="60" hidden="false">
@ -204,7 +204,7 @@
</object>
<object type="button" name="session_group_pane_portrait_18" style="portrait" z="60" hidden="false">18
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 1, 2);
AddSizeGroupPane(this.name, 1, 4);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_18_bar" style="group_portrait_bar" z="60" hidden="false">
@ -214,7 +214,7 @@
</object>
<object type="button" name="session_group_pane_portrait_19" style="portrait" z="60" hidden="false">19
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 1, 3);
AddSizeGroupPane(this.name, 1, 5);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_19_bar" style="group_portrait_bar" z="60" hidden="false">
@ -224,7 +224,7 @@
</object>
<object type="button" name="session_group_pane_portrait_20" style="portrait" z="60" hidden="false">20
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 1, 4);
AddSizeGroupPane(this.name, 1, 6);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_20_bar" style="group_portrait_bar" z="60" hidden="false">
@ -234,7 +234,7 @@
</object>
<object type="button" name="session_group_pane_portrait_21" style="portrait" z="60" hidden="false">21
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 1, 5);
AddSizeGroupPane(this.name, 1, 7);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_21_bar" style="group_portrait_bar" z="60" hidden="false">
@ -244,7 +244,7 @@
</object>
<object type="button" name="session_group_pane_portrait_22" style="portrait" z="60" hidden="false">22
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 1, 6);
AddSizeGroupPane(this.name, 1, 8);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_22_bar" style="group_portrait_bar" z="60" hidden="false">
@ -254,7 +254,7 @@
</object>
<object type="button" name="session_group_pane_portrait_23" style="portrait" z="60" hidden="false">23
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 1, 7);
AddSizeGroupPane(this.name, 1, 9);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_23_bar" style="group_portrait_bar" z="60" hidden="false">
@ -264,7 +264,7 @@
</object>
<object type="button" name="session_group_pane_portrait_24" style="portrait" z="60" hidden="false">24
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 1, 8);
AddSizeGroupPane(this.name, 1, 10);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_24_bar" style="group_portrait_bar" z="60" hidden="false">
@ -274,7 +274,7 @@
</object>
<object type="button" name="session_group_pane_portrait_25" style="portrait" z="60" hidden="false">25
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 1, 9);
AddSizeGroupPane(this.name, 1, 11);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_25_bar" style="group_portrait_bar" z="60" hidden="false">
@ -282,9 +282,10 @@
AddSizeGroupPaneBar(this.name);
]]></action>
</object>
<!-- Third row. -->
<object type="button" name="session_group_pane_portrait_26" style="portrait" z="60" hidden="false">26
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 1, 10);
AddSizeGroupPane(this.name, 1, 12);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_26_bar" style="group_portrait_bar" z="60" hidden="false">
@ -294,7 +295,7 @@
</object>
<object type="button" name="session_group_pane_portrait_27" style="portrait" z="60" hidden="false">27
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 1, 11);
AddSizeGroupPane(this.name, 2, 0);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_27_bar" style="group_portrait_bar" z="60" hidden="false">
@ -304,7 +305,7 @@
</object>
<object type="button" name="session_group_pane_portrait_28" style="portrait" z="60" hidden="false">28
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 1, 12);
AddSizeGroupPane(this.name, 2, 1);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_28_bar" style="group_portrait_bar" z="60" hidden="false">
@ -314,7 +315,7 @@
</object>
<object type="button" name="session_group_pane_portrait_29" style="portrait" z="60" hidden="false">29
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 1, 13);
AddSizeGroupPane(this.name, 2, 2);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_29_bar" style="group_portrait_bar" z="60" hidden="false">
@ -324,7 +325,7 @@
</object>
<object type="button" name="session_group_pane_portrait_30" style="portrait" z="60" hidden="false">30
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 1, 14);
AddSizeGroupPane(this.name, 2, 3);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_30_bar" style="group_portrait_bar" z="60" hidden="false">
@ -332,11 +333,9 @@
AddSizeGroupPaneBar(this.name);
]]></action>
</object>
<!-- Third row. -->
<object type="button" name="session_group_pane_portrait_31" style="portrait" z="60" hidden="false">31
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 2, 0);
AddSizeGroupPane(this.name, 2, 4);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_31_bar" style="group_portrait_bar" z="60" hidden="false">
@ -346,7 +345,7 @@
</object>
<object type="button" name="session_group_pane_portrait_32" style="portrait" z="60" hidden="false">32
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 2, 1);
AddSizeGroupPane(this.name, 2, 5);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_32_bar" style="group_portrait_bar" z="60" hidden="false">
@ -356,7 +355,7 @@
</object>
<object type="button" name="session_group_pane_portrait_33" style="portrait" z="60" hidden="false">33
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 2, 2);
AddSizeGroupPane(this.name, 2, 6);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_33_bar" style="group_portrait_bar" z="60" hidden="false">
@ -366,7 +365,7 @@
</object>
<object type="button" name="session_group_pane_portrait_34" style="portrait" z="60" hidden="false">34
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 2, 3);
AddSizeGroupPane(this.name, 2, 7);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_34_bar" style="group_portrait_bar" z="60" hidden="false">
@ -376,7 +375,7 @@
</object>
<object type="button" name="session_group_pane_portrait_35" style="portrait" z="60" hidden="false">35
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 2, 4);
AddSizeGroupPane(this.name, 2, 8);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_35_bar" style="group_portrait_bar" z="60" hidden="false">
@ -386,7 +385,7 @@
</object>
<object type="button" name="session_group_pane_portrait_36" style="portrait" z="60" hidden="false">36
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 2, 5);
AddSizeGroupPane(this.name, 2, 9);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_36_bar" style="group_portrait_bar" z="60" hidden="false">
@ -396,7 +395,7 @@
</object>
<object type="button" name="session_group_pane_portrait_37" style="portrait" z="60" hidden="false">37
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 2, 6);
AddSizeGroupPane(this.name, 2, 10);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_37_bar" style="group_portrait_bar" z="60" hidden="false">
@ -406,7 +405,7 @@
</object>
<object type="button" name="session_group_pane_portrait_38" style="portrait" z="60" hidden="false">38
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 2, 7);
AddSizeGroupPane(this.name, 2, 11);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_38_bar" style="group_portrait_bar" z="60" hidden="false">
@ -414,9 +413,10 @@
AddSizeGroupPaneBar(this.name);
]]></action>
</object>
<!-- Fourth row. -->
<object type="button" name="session_group_pane_portrait_39" style="portrait" z="60" hidden="false">39
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 2, 8);
AddSizeGroupPane(this.name, 2, 12);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_39_bar" style="group_portrait_bar" z="60" hidden="false">
@ -426,7 +426,7 @@
</object>
<object type="button" name="session_group_pane_portrait_40" style="portrait" z="60" hidden="false">40
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 2, 9);
AddSizeGroupPane(this.name, 3, 0);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_40_bar" style="group_portrait_bar" z="60" hidden="false">
@ -436,7 +436,7 @@
</object>
<object type="button" name="session_group_pane_portrait_41" style="portrait" z="60" hidden="false">41
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 2, 10);
AddSizeGroupPane(this.name, 3, 1);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_41_bar" style="group_portrait_bar" z="60" hidden="false">
@ -446,7 +446,7 @@
</object>
<object type="button" name="session_group_pane_portrait_42" style="portrait" z="60" hidden="false">42
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 2, 11);
AddSizeGroupPane(this.name, 3, 2);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_42_bar" style="group_portrait_bar" z="60" hidden="false">
@ -456,7 +456,7 @@
</object>
<object type="button" name="session_group_pane_portrait_43" style="portrait" z="60" hidden="false">43
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 2, 12);
AddSizeGroupPane(this.name, 3, 3);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_43_bar" style="group_portrait_bar" z="60" hidden="false">
@ -466,7 +466,7 @@
</object>
<object type="button" name="session_group_pane_portrait_44" style="portrait" z="60" hidden="false">44
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 2, 13);
AddSizeGroupPane(this.name, 3, 4);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_44_bar" style="group_portrait_bar" z="60" hidden="false">
@ -476,7 +476,7 @@
</object>
<object type="button" name="session_group_pane_portrait_45" style="portrait" z="60" hidden="false">45
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 2, 14);
AddSizeGroupPane(this.name, 3, 5);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_45_bar" style="group_portrait_bar" z="60" hidden="false">
@ -484,6 +484,77 @@
AddSizeGroupPaneBar(this.name);
]]></action>
</object>
<object type="button" name="session_group_pane_portrait_46" style="portrait" z="60" hidden="false">46
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 3, 6);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_46_bar" style="group_portrait_bar" z="60" hidden="false">
<action on="Load"><![CDATA[
AddSizeGroupPaneBar(this.name);
]]></action>
</object>
<object type="button" name="session_group_pane_portrait_47" style="portrait" z="60" hidden="false">47
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 3, 7);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_47_bar" style="group_portrait_bar" z="60" hidden="false">
<action on="Load"><![CDATA[
AddSizeGroupPaneBar(this.name);
]]></action>
</object>
<object type="button" name="session_group_pane_portrait_48" style="portrait" z="60" hidden="false">48
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 3, 8);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_48_bar" style="group_portrait_bar" z="60" hidden="false">
<action on="Load"><![CDATA[
AddSizeGroupPaneBar(this.name);
]]></action>
</object>
<object type="button" name="session_group_pane_portrait_49" style="portrait" z="60" hidden="false">49
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 3, 9);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_49_bar" style="group_portrait_bar" z="60" hidden="false">
<action on="Load"><![CDATA[
AddSizeGroupPaneBar(this.name);
]]></action>
</object>
<object type="button" name="session_group_pane_portrait_50" style="portrait" z="60" hidden="false">50
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 3, 10);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_50_bar" style="group_portrait_bar" z="60" hidden="false">
<action on="Load"><![CDATA[
AddSizeGroupPaneBar(this.name);
]]></action>
</object>
<object type="button" name="session_group_pane_portrait_51" style="portrait" z="60" hidden="false">51
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 3, 11);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_51_bar" style="group_portrait_bar" z="60" hidden="false">
<action on="Load"><![CDATA[
AddSizeGroupPaneBar(this.name);
]]></action>
</object>
<object type="button" name="session_group_pane_portrait_52" style="portrait" z="60" hidden="false">51
<action on="Load"><![CDATA[
AddSizeGroupPane(this.name, 3, 12);
]]></action>
</object>
<object type="progressbar" name="session_group_pane_portrait_52_bar" style="group_portrait_bar" z="60" hidden="false">
<action on="Load"><![CDATA[
AddSizeGroupPaneBar(this.name);
]]></action>
</object>
</object>
@ -496,40 +567,40 @@
<object type="button" name="resource_food_counter" sprite="resource_food_counter" style="resource_counter" z="70" hidden="false">
<action on="Load"><![CDATA[
AddSizeCoord(this.name,
crd_resource_food_x, crd_resource_food_y, crd_resource_food_x+crd_resource_counter_width, crd_resource_food_y+crd_resource_counter_height, mid_screen, top_screen, mid_screen, top_screen,
crd_resource_food_x, -crd_resource_food_y-crd_resource_counter_height, crd_resource_food_x+crd_resource_counter_width, -crd_resource_food_y, mid_screen, bottom_screen, mid_screen, bottom_screen);
crd_resource_food_x, -crd_resource_food_y-crd_resource_counter_height, crd_resource_food_x+crd_resource_counter_width, -crd_resource_food_y, mid_screen, bottom_screen, mid_screen, bottom_screen,
crd_resource_food_x, crd_resource_food_y, crd_resource_food_x+crd_resource_counter_width, crd_resource_food_y+crd_resource_counter_height, mid_screen, top_screen, mid_screen, top_screen);
]]></action>
</object>
<object type="button" name="resource_wood_counter" sprite="resource_wood_counter" style="resource_counter" z="70" hidden="false">
<action on="Load"><![CDATA[
AddSizeCoord(this.name,
crd_resource_wood_x, crd_resource_wood_y, crd_resource_wood_x+crd_resource_counter_width, crd_resource_wood_y+crd_resource_counter_height, mid_screen, top_screen, mid_screen, top_screen,
crd_resource_wood_x, -crd_resource_wood_y-crd_resource_counter_height, crd_resource_wood_x+crd_resource_counter_width, -crd_resource_wood_y, mid_screen, bottom_screen, mid_screen, bottom_screen);
crd_resource_wood_x, -crd_resource_wood_y-crd_resource_counter_height, crd_resource_wood_x+crd_resource_counter_width, -crd_resource_wood_y, mid_screen, bottom_screen, mid_screen, bottom_screen,
crd_resource_wood_x, crd_resource_wood_y, crd_resource_wood_x+crd_resource_counter_width, crd_resource_wood_y+crd_resource_counter_height, mid_screen, top_screen, mid_screen, top_screen);
]]></action>
</object>
<object type="button" name="resource_stone_counter" sprite="resource_stone_counter" style="resource_counter" z="70" hidden="false">
<action on="Load"><![CDATA[
AddSizeCoord(this.name,
crd_resource_stone_x, crd_resource_stone_y, crd_resource_stone_x+crd_resource_counter_width, crd_resource_stone_y+crd_resource_counter_height, mid_screen, top_screen, mid_screen, top_screen,
crd_resource_stone_x, -crd_resource_stone_y-crd_resource_counter_height, crd_resource_stone_x+crd_resource_counter_width, -crd_resource_stone_y, mid_screen, bottom_screen, mid_screen, bottom_screen);
crd_resource_stone_x, -crd_resource_stone_y-crd_resource_counter_height, crd_resource_stone_x+crd_resource_counter_width, -crd_resource_stone_y, mid_screen, bottom_screen, mid_screen, bottom_screen,
crd_resource_stone_x, crd_resource_stone_y, crd_resource_stone_x+crd_resource_counter_width, crd_resource_stone_y+crd_resource_counter_height, mid_screen, top_screen, mid_screen, top_screen);
]]></action>
</object>
<object type="button" name="resource_ore_counter" sprite="resource_ore_counter" style="resource_counter" z="70" hidden="false">
<action on="Load"><![CDATA[
AddSizeCoord(this.name,
crd_resource_ore_x, crd_resource_ore_y, crd_resource_ore_x+crd_resource_counter_width, crd_resource_ore_y+crd_resource_counter_height, mid_screen, top_screen, mid_screen, top_screen,
crd_resource_ore_x, -crd_resource_ore_y-crd_resource_counter_height, crd_resource_ore_x+crd_resource_counter_width, -crd_resource_ore_y, mid_screen, bottom_screen, mid_screen, bottom_screen);
crd_resource_ore_x, -crd_resource_ore_y-crd_resource_counter_height, crd_resource_ore_x+crd_resource_counter_width, -crd_resource_ore_y, mid_screen, bottom_screen, mid_screen, bottom_screen,
crd_resource_ore_x, crd_resource_ore_y, crd_resource_ore_x+crd_resource_counter_width, crd_resource_ore_y+crd_resource_counter_height, mid_screen, top_screen, mid_screen, top_screen);
]]></action>
</object>
<object type="button" name="resource_population_counter" sprite="resource_population_counter" style="resource_counter" z="70" hidden="false">
<action on="Load"><![CDATA[
AddSizeCoord(this.name,
crd_resource_population_x, crd_resource_population_y, crd_resource_population_x+crd_resource_counter_long_width, crd_resource_population_y+crd_resource_counter_height, mid_screen, top_screen, mid_screen, top_screen,
crd_resource_population_x, -crd_resource_population_y-crd_resource_counter_height, crd_resource_population_x+crd_resource_counter_long_width, -crd_resource_population_y, mid_screen, bottom_screen, mid_screen, bottom_screen);
crd_resource_population_x, -crd_resource_population_y-crd_resource_counter_height, crd_resource_population_x+crd_resource_counter_long_width, -crd_resource_population_y, mid_screen, bottom_screen, mid_screen, bottom_screen,
crd_resource_population_x, crd_resource_population_y, crd_resource_population_x+crd_resource_counter_long_width, crd_resource_population_y+crd_resource_counter_height, mid_screen, top_screen, mid_screen, top_screen);
]]></action>
</object>
@ -551,6 +622,15 @@
]]></action>
</object>
<!-- PLAYER / CIV NAME HEADING -->
<object type="text" name="session_panel_status_heading" font="verdana10" textcolor="200 200 200" text-align="center" ghost="true" z="70" hidden="false">Acumen [icon=bullet_icon] Pre-Imperial Romans
<action on="Load"><![CDATA[
AddSizeCoord(this.name,
crd_status_orb_heading_x, crd_status_orb_heading_y, crd_status_orb_heading_x+crd_status_orb_heading_width, crd_status_orb_heading_y+crd_status_orb_heading_height, left_screen, top_screen, left_screen, top_screen,
crd_status_orb_heading_x, -crd_status_orb_bkg_y-crd_status_orb_bkg_height+crd_status_orb_heading_y, crd_status_orb_heading_x+crd_status_orb_heading_width, -crd_status_orb_bkg_y-crd_status_orb_bkg_height+crd_status_orb_heading_y+crd_status_orb_heading_height, left_screen, bottom_screen, left_screen, bottom_screen);
]]></action>
</object>
<!-- SELECTED UNIT LARGE PORTRAIT -->
<object type="button" name="session_panel_status_portrait" style="portrait" z="70" hidden="false">
<action on="Load"><![CDATA[
@ -605,6 +685,15 @@
]]></action>
</object>
<!-- NAME TEXT -->
<object type="button" name="session_panel_status_name1" font="verdana12" textcolor="200 200 200" ghost="true" z="70" hidden="false">
<action on="Load"><![CDATA[
AddSizeCoord(this.name,
crd_status_orb_name1_x, crd_status_orb_name1_y, crd_status_orb_name1_x+crd_status_orb_name1_width, crd_status_orb_name1_y+crd_status_orb_name1_height, left_screen, top_screen, left_screen, top_screen,
crd_status_orb_name1_x, -crd_status_orb_bkg_y-crd_status_orb_bkg_height+crd_status_orb_name1_y, crd_status_orb_name1_x+crd_status_orb_name1_width, -crd_status_orb_bkg_y-crd_status_orb_bkg_height+crd_status_orb_name1_y+crd_status_orb_name1_height, left_screen, bottom_screen, left_screen, bottom_screen);
]]></action>
</object>
<!-- GARRISON COUNTER -->
<object type="button" name="session_panel_status_icon_garrison" textcolor="100 100 255" font="verdana11" text-align="left" text-valign="bottom" ghost="true" z="70" hidden="false">
<action on="Load"><![CDATA[
@ -627,29 +716,7 @@
]]></action>
</object>
<!-- NAME TEXT -->
<object type="text" name="session_panel_status_name1" font="verdana10" textcolor="200 200 200" ghost="true" z="70" hidden="false">
<action on="Load"><![CDATA[
AddSizeCoord(this.name,
crd_status_orb_name1_x, crd_status_orb_name1_y, crd_status_orb_name1_x+crd_status_orb_name1_width, crd_status_orb_name1_y+crd_status_orb_name1_height, left_screen, top_screen, left_screen, top_screen,
crd_status_orb_name1_x, -crd_status_orb_bkg_y-crd_status_orb_bkg_height+crd_status_orb_name1_y, crd_status_orb_name1_x+crd_status_orb_name1_width, -crd_status_orb_bkg_y-crd_status_orb_bkg_height+crd_status_orb_name1_y+crd_status_orb_name1_height, left_screen, bottom_screen, left_screen, bottom_screen);
]]></action>
</object>
<object type="text" name="session_panel_status_name2" font="verdana12" textcolor="255 255 255" ghost="true" z="70" hidden="false">
<action on="Load"><![CDATA[
AddSizeCoord(this.name,
crd_status_orb_name2_x, crd_status_orb_name2_y, crd_status_orb_name2_x+crd_status_orb_name2_width, crd_status_orb_name2_y+crd_status_orb_name2_height, left_screen, top_screen, left_screen, top_screen,
crd_status_orb_name2_x, -crd_status_orb_bkg_y-crd_status_orb_bkg_height+crd_status_orb_name2_y, crd_status_orb_name2_x+crd_status_orb_name2_width, -crd_status_orb_bkg_y-crd_status_orb_bkg_height+crd_status_orb_name3_y+crd_status_orb_name3_height, left_screen, bottom_screen, left_screen, bottom_screen);
]]></action>
</object>
<object type="text" name="session_panel_status_name3" font="verdana10" textcolor="200 200 200" ghost="true" z="70" hidden="false">
<action on="Load"><![CDATA[
AddSizeCoord(this.name,
crd_status_orb_name3_x, crd_status_orb_name3_y, crd_status_orb_name3_x+crd_status_orb_name3_width, crd_status_orb_name3_y+crd_status_orb_name3_height, left_screen, top_screen, left_screen, top_screen,
crd_status_orb_name3_x, -crd_status_orb_bkg_y-crd_status_orb_bkg_height+crd_status_orb_name3_y, crd_status_orb_name3_x+crd_status_orb_name3_width, -crd_status_orb_bkg_y-crd_status_orb_bkg_height+crd_status_orb_name3_y+crd_status_orb_name3_height, left_screen, bottom_screen, left_screen, bottom_screen);
]]></action>
</object>
<!-- ATTACK STATS -->
<object type="text" name="session_panel_status_attack" font="verdana10" textcolor="200 200 200" ghost="true" z="70" hidden="false">
<action on="Load"><![CDATA[
AddSizeCoord(this.name,
@ -658,6 +725,7 @@
]]></action>
</object>
<!-- ARMOUR STATS -->
<object type="text" name="session_panel_status_armour" font="verdana10" textcolor="200 200 200" ghost="true" z="70" hidden="false">
<action on="Load"><![CDATA[
AddSizeCoord(this.name,
@ -666,6 +734,15 @@
]]></action>
</object>
<!-- OTHER STATS -->
<object type="text" name="session_panel_status_other" font="verdana10" textcolor="200 200 200" ghost="true" z="70" hidden="false">
<action on="Load"><![CDATA[
AddSizeCoord(this.name,
crd_status_orb_other_x, crd_status_orb_other_y, crd_status_orb_other_x+crd_status_orb_other_width, crd_status_orb_other_y+crd_status_orb_other_height, left_screen, top_screen, left_screen, top_screen,
crd_status_orb_other_x, -crd_status_orb_bkg_y-crd_status_orb_bkg_height+crd_status_orb_other_y, crd_status_orb_other_x+crd_status_orb_other_width, -crd_status_orb_bkg_y-crd_status_orb_bkg_height+crd_status_orb_armour_y+crd_status_orb_other_height, left_screen, bottom_screen, left_screen, bottom_screen);
]]></action>
</object>
<!-- PRIMARY COMMAND BUTTONS (arcs the Status Orb) -->
<object type="button" name="session_panel_status_command_pri_1" style="portrait" textcolor="255 255 255" z="70" hidden="false">1
<action on="Load"><![CDATA[
@ -754,6 +831,22 @@
]]></action>
</object>
<object type="button" name="session_panel_status_command_pri_12" style="portrait" textcolor="255 255 255" z="70" hidden="false">12
<action on="Load"><![CDATA[
AddSizeCoord(this.name,
crd_status_orb_command_12_x, crd_status_orb_command_12_y, crd_status_orb_command_12_x+crd_status_orb_command_12_width, crd_status_orb_command_12_y+crd_status_orb_command_12_height, left_screen, top_screen, left_screen, top_screen,
crd_status_orb_command_12_x, -crd_status_orb_command_12_y-crd_status_orb_command_12_height, crd_status_orb_command_12_x+crd_status_orb_command_12_width, -crd_status_orb_command_12_y, left_screen, bottom_screen, left_screen, bottom_screen);
]]></action>
</object>
<object type="button" name="session_panel_status_command_pri_13" style="portrait" textcolor="255 255 255" z="70" hidden="false">13
<action on="Load"><![CDATA[
AddSizeCoord(this.name,
crd_status_orb_command_13_x, crd_status_orb_command_13_y, crd_status_orb_command_13_x+crd_status_orb_command_13_width, crd_status_orb_command_13_y+crd_status_orb_command_13_height, left_screen, top_screen, left_screen, top_screen,
crd_status_orb_command_13_x, -crd_status_orb_command_13_y-crd_status_orb_command_13_height, crd_status_orb_command_13_x+crd_status_orb_command_13_width, -crd_status_orb_command_13_y, left_screen, bottom_screen, left_screen, bottom_screen);
]]></action>
</object>
<!-- SECONDARY COMMAND BUTTONS (arcs the Primary Command Buttons) -->
<!-- / GROUP: STATUS ORB -->

View File

@ -137,6 +137,13 @@ function manualDisplay()
ManualRollover.caption += "TurnRadius: " + selection[0].actions.move.turningradius + "\n";
}
// Vision.
if (selection[0].traits.vision)
{
if (selection[0].traits.vision.los)
ManualRollover.caption += "LOS: " + selection[0].traits.vision.los + "\n";
}
// Classes.
if (selection[0].traits.id.class1)
ManualRollover.caption += "Class1: " + selection[0].traits.id.class1 + "\n";

View File

@ -20,10 +20,10 @@ function initGroupPane()
function initGroupPaneTable()
{
AddGroupPaneRow(0, 32, 100, -70); // Row 0
AddGroupPaneRow(0, 78, 100, -110); // Row 1
AddGroupPaneRow(0, 124, 100, -156); // Row 2
// AddGroupPaneRow(0, 170, 100, -202); // Row 3
AddGroupPaneRow(0, 24, 100, -62); // Row 0
AddGroupPaneRow(0, 70, 100, -102); // Row 1
AddGroupPaneRow(0, 116, 100, -148); // Row 2
AddGroupPaneRow(0, 162, 100, -194); // Row 3
AddGroupPaneCol(50, -16, 50, -16); // Col 0
AddGroupPaneCol(50, -52, 50, -52); // Col 1
AddGroupPaneCol(50, 20, 50, 20); // Col 2
@ -35,10 +35,8 @@ function initGroupPaneTable()
AddGroupPaneCol(50, 128, 50, 128); // Col 8
AddGroupPaneCol(50, -196, 50, -196); // Col 9
AddGroupPaneCol(50, 164, 50, 164); // Col 10
AddGroupPaneCol(50, -232, 50, -232); // Col 11
AddGroupPaneCol(50, 200, 50, 200); // Col 12
AddGroupPaneCol(50, -268, 50, -268); // Col 13
AddGroupPaneCol(50, 236, 50, 236); // Col 14
AddGroupPaneCol(50, 200, 50, 200); // Col 11
AddGroupPaneCol(50, 236, 50, 236); // Col 12
}
// ====================================================================
@ -126,28 +124,41 @@ function UpdateGroupPane()
getGUIObjectByName("session_group_pane").hidden = false;
// Set size of Group Pane background.
if (selection.length <= 15)
if (selection.length <= 13)
{
switch (GUIType)
{
case "top":
setSize("session_group_pane_bg", "0%+20 0% 100%-20 0%+86");
setSize("session_group_pane_bg", "50%-215 0% 50%+285 0%+86");
break;
case "bottom":
setSize("session_group_pane_bg", "0%+20 100%-86 100%-20 100%");
setSize("session_group_pane_bg", "50%-215 100%-86 50%+285 100%");
break;
}
}
else
if (selection.length > 15 && selection.length <= 30)
if (selection.length > 13 && selection.length <= 26)
{
switch (GUIType)
{
case "top":
setSize("session_group_pane_bg", "0%+20 0% 100%-20 0%+127");
setSize("session_group_pane_bg", "50%-215 0% 50%+285 0%+127");
break;
case "bottom":
setSize("session_group_pane_bg", "0%+20 100%-127 100%-20 100%");
setSize("session_group_pane_bg", "50%-215 100%-127 50%+285 100%");
break;
}
}
else
if (selection.length > 26 && selection.length <= 39)
{
switch (GUIType)
{
case "top":
setSize("session_group_pane_bg", "50%-215 0% 50%+285 0%+168");
break;
case "bottom":
setSize("session_group_pane_bg", "50%-215 100%-168 50%+285 100%");
break;
}
}
@ -156,10 +167,10 @@ function UpdateGroupPane()
switch (GUIType)
{
case "top":
setSize("session_group_pane_bg", "0%+20 0% 100%-20 0%+168");
setSize("session_group_pane_bg", "50%-215 0% 50%+285 0%+209");
break;
case "bottom":
setSize("session_group_pane_bg", "0%+20 100%-168 100%-20 100%");
setSize("session_group_pane_bg", "50%-215 100%-209 50%+285 100%");
break;
}
}

View File

@ -3,12 +3,18 @@ function initStatusOrb()
// Status Orb background.
crd_status_orb_bkg_x = 0;
crd_status_orb_bkg_y = 0;
crd_status_orb_bkg_width = 184;
crd_status_orb_bkg_height = crd_status_orb_bkg_width;
crd_status_orb_bkg_width = 255;
crd_status_orb_bkg_height = 170;
// Heading.
crd_status_orb_heading_width = crd_status_orb_bkg_width;
crd_status_orb_heading_height = 14;
crd_status_orb_heading_x = crd_status_orb_bkg_x+2;
crd_status_orb_heading_y = crd_status_orb_bkg_y;
// Status Orb large portrait.
crd_status_orb_portrait_x = 7;
crd_status_orb_portrait_y = 6;
crd_status_orb_portrait_x = crd_status_orb_heading_x+5;
crd_status_orb_portrait_y = crd_status_orb_heading_y+crd_status_orb_heading_height+5;
crd_status_orb_portrait_width = crd_portrait_lrg_width;
crd_status_orb_portrait_height = crd_portrait_lrg_height;
@ -18,6 +24,12 @@ function initStatusOrb()
crd_status_orb_rank_x = crd_status_orb_portrait_x+crd_status_orb_portrait_width-crd_status_orb_rank_width;
crd_status_orb_rank_y = crd_status_orb_portrait_y;
// Name1.
crd_status_orb_name1_width = crd_status_orb_bkg_width-crd_status_orb_portrait_width-10;
crd_status_orb_name1_height = crd_status_orb_portrait_height;
crd_status_orb_name1_x = crd_status_orb_portrait_x+crd_status_orb_portrait_width+2;
crd_status_orb_name1_y = crd_status_orb_portrait_y;
// Status Orb health bar.
crd_status_orb_hpbar_span = 2;
crd_status_orb_hpbar_x = crd_status_orb_portrait_x;
@ -28,9 +40,9 @@ function initStatusOrb()
// Status Orb health text.
crd_status_orb_hpbar_text_span_x = 4;
crd_status_orb_hpbar_text_span_y = 0;
crd_status_orb_hpbar_text_x = crd_status_orb_hpbar_x+crd_status_orb_hpbar_width+crd_status_orb_hpbar_text_span_x;
crd_status_orb_hpbar_text_x = crd_status_orb_name1_x;
crd_status_orb_hpbar_text_y = crd_status_orb_hpbar_y+crd_status_orb_hpbar_text_span_y;
crd_status_orb_hpbar_text_width = 100;
crd_status_orb_hpbar_text_width = 55;
crd_status_orb_hpbar_text_height = crd_status_orb_hpbar_height;
// Status Orb xp bar.
@ -40,7 +52,7 @@ function initStatusOrb()
crd_status_orb_xpbar_height = crd_status_orb_hpbar_height;
// Status Orb xp text.
crd_status_orb_xpbar_text_x = crd_status_orb_xpbar_x+crd_status_orb_xpbar_width+crd_status_orb_hpbar_text_span_x;
crd_status_orb_xpbar_text_x = crd_status_orb_hpbar_text_x;
crd_status_orb_xpbar_text_y = crd_status_orb_xpbar_y+crd_status_orb_hpbar_text_span_y;
crd_status_orb_xpbar_text_width = crd_status_orb_hpbar_text_width;
crd_status_orb_xpbar_text_height = crd_status_orb_hpbar_text_height;
@ -48,40 +60,22 @@ function initStatusOrb()
// Garrison counter.
crd_status_orb_garrison_span_x = 5;
crd_status_orb_garrison_span_y = 2;
crd_status_orb_garrison_x = crd_status_orb_portrait_x+crd_status_orb_portrait_width+crd_status_orb_garrison_span_x;
crd_status_orb_garrison_y = crd_status_orb_portrait_y+crd_status_orb_garrison_span_y;
crd_status_orb_garrison_width = 65;
crd_status_orb_garrison_height = 30;
crd_status_orb_garrison_x = crd_status_orb_hpbar_text_x+crd_status_orb_hpbar_text_width;
crd_status_orb_garrison_y = crd_status_orb_hpbar_y-(crd_status_orb_garrison_height/3);
// Supply counter.
crd_status_orb_supply_x = crd_status_orb_garrison_x;
crd_status_orb_supply_y = crd_status_orb_garrison_y+crd_status_orb_garrison_height-2;
crd_status_orb_supply_width = crd_status_orb_garrison_width+20;
crd_status_orb_supply_x = crd_status_orb_garrison_x+crd_status_orb_garrison_width;
crd_status_orb_supply_y = crd_status_orb_garrison_y;
crd_status_orb_supply_width = crd_status_orb_garrison_width-4;
crd_status_orb_supply_height = crd_status_orb_garrison_height;
// Name3.
crd_status_orb_name3_width = 252;
crd_status_orb_name3_height = 14;
crd_status_orb_name3_x = crd_status_orb_bkg_x+2;
crd_status_orb_name3_y = crd_status_orb_bkg_y+crd_status_orb_bkg_height-crd_status_orb_name3_height-8;
// Name2.
crd_status_orb_name2_width = crd_status_orb_name3_width;
crd_status_orb_name2_height = crd_status_orb_name3_height+1;
crd_status_orb_name2_x = crd_status_orb_name3_x;
crd_status_orb_name2_y = crd_status_orb_name3_y-crd_status_orb_name2_height;
// Name1.
crd_status_orb_name1_width = crd_status_orb_name2_width;
crd_status_orb_name1_height = crd_status_orb_name2_height;
crd_status_orb_name1_x = crd_status_orb_name2_x;
crd_status_orb_name1_y = crd_status_orb_name2_y-crd_status_orb_name1_height+1;
// Attack.
crd_status_orb_attack_width = crd_status_orb_bkg_width;
crd_status_orb_attack_height = ((crd_status_orb_name1_y)-(crd_status_orb_xpbar_y+crd_status_orb_xpbar_height))/2;
crd_status_orb_attack_x = crd_status_orb_name3_x;
crd_status_orb_attack_y = crd_status_orb_xpbar_y+crd_status_orb_xpbar_height-1;
crd_status_orb_attack_width = crd_status_orb_bkg_width-8;
crd_status_orb_attack_height = 22;
crd_status_orb_attack_x = crd_status_orb_portrait_x;
crd_status_orb_attack_y = crd_status_orb_xpbar_y+crd_status_orb_xpbar_height;
// Armour.
crd_status_orb_armour_width = crd_status_orb_attack_width;
@ -89,71 +83,90 @@ function initStatusOrb()
crd_status_orb_armour_x = crd_status_orb_attack_x;
crd_status_orb_armour_y = crd_status_orb_attack_y+crd_status_orb_attack_height;
// Other.
crd_status_orb_other_width = crd_status_orb_armour_width;
crd_status_orb_other_height = crd_status_orb_armour_height;
crd_status_orb_other_x = crd_status_orb_armour_x;
crd_status_orb_other_y = crd_status_orb_armour_y+crd_status_orb_armour_height;
// Command Button 1.
crd_status_orb_command_1_width = crd_portrait_sml_width;
crd_status_orb_command_1_height = crd_portrait_sml_height;
crd_status_orb_command_1_x = 0;
crd_status_orb_command_1_y = crd_status_orb_bkg_height;
crd_status_orb_command_1_y = crd_status_orb_bkg_height+1;
crd_status_orb_command_span = 2;
// Command Button 2.
crd_status_orb_command_2_width = crd_status_orb_command_1_width;
crd_status_orb_command_2_height = crd_status_orb_command_1_height;
crd_status_orb_command_2_x = crd_status_orb_command_1_x+crd_status_orb_command_1_width;
crd_status_orb_command_2_x = crd_status_orb_command_1_x+crd_status_orb_command_1_width+crd_status_orb_command_span;
crd_status_orb_command_2_y = crd_status_orb_command_1_y;
// Command Button 3.
crd_status_orb_command_3_width = crd_status_orb_command_1_width;
crd_status_orb_command_3_height = crd_status_orb_command_1_height;
crd_status_orb_command_3_x = crd_status_orb_command_2_x+crd_status_orb_command_2_width;
crd_status_orb_command_3_x = crd_status_orb_command_2_x+crd_status_orb_command_2_width+crd_status_orb_command_span;
crd_status_orb_command_3_y = crd_status_orb_command_2_y;
// Command Button 4.
crd_status_orb_command_4_width = crd_status_orb_command_1_width;
crd_status_orb_command_4_height = crd_status_orb_command_1_height;
crd_status_orb_command_4_x = crd_status_orb_command_3_x+crd_status_orb_command_3_width;
crd_status_orb_command_4_y = crd_status_orb_command_3_y-3;
crd_status_orb_command_4_x = crd_status_orb_command_3_x+crd_status_orb_command_3_width+crd_status_orb_command_span;
crd_status_orb_command_4_y = crd_status_orb_command_3_y;
// Command Button 5.
crd_status_orb_command_5_width = crd_status_orb_command_1_width;
crd_status_orb_command_5_height = crd_status_orb_command_1_height;
crd_status_orb_command_5_x = crd_status_orb_command_4_x+crd_status_orb_command_4_width-1;
crd_status_orb_command_5_y = crd_status_orb_command_4_y-10;
crd_status_orb_command_5_x = crd_status_orb_command_4_x+crd_status_orb_command_4_width+crd_status_orb_command_span;
crd_status_orb_command_5_y = crd_status_orb_command_4_y;
// Command Button 6.
crd_status_orb_command_6_width = crd_status_orb_command_1_width;
crd_status_orb_command_6_height = crd_status_orb_command_1_height;
crd_status_orb_command_6_x = crd_status_orb_command_5_x+crd_status_orb_command_5_width-7;
crd_status_orb_command_6_y = crd_status_orb_command_5_y-20;
crd_status_orb_command_6_x = crd_status_orb_command_5_x+crd_status_orb_command_5_width+crd_status_orb_command_span;
crd_status_orb_command_6_y = crd_status_orb_command_5_y;
// Command Button 7.
crd_status_orb_command_7_width = crd_status_orb_command_1_width;
crd_status_orb_command_7_height = crd_status_orb_command_1_height;
crd_status_orb_command_7_x = crd_status_orb_command_6_x+crd_status_orb_command_6_width-12;
crd_status_orb_command_7_y = crd_status_orb_command_6_y-25;
crd_status_orb_command_7_x = crd_status_orb_command_6_x+crd_status_orb_command_6_width+crd_status_orb_command_span;
crd_status_orb_command_7_y = crd_status_orb_command_6_y;
// Command Button 8.
crd_status_orb_command_8_width = crd_status_orb_command_1_width;
crd_status_orb_command_8_height = crd_status_orb_command_1_height;
crd_status_orb_command_8_x = crd_status_orb_command_7_x+crd_status_orb_command_7_width-21;
crd_status_orb_command_8_y = crd_status_orb_command_7_y-31;
crd_status_orb_command_8_x = crd_status_orb_command_7_x+crd_status_orb_command_7_width+crd_status_orb_command_span;
crd_status_orb_command_8_y = crd_status_orb_command_7_y-crd_status_orb_command_span-8;
// Command Button 9.
crd_status_orb_command_9_width = crd_status_orb_command_1_width;
crd_status_orb_command_9_height = crd_status_orb_command_1_height;
crd_status_orb_command_9_x = crd_status_orb_command_8_x+crd_status_orb_command_8_width-32;
crd_status_orb_command_9_y = crd_status_orb_command_8_y-33;
crd_status_orb_command_9_x = crd_status_orb_command_8_x+(crd_status_orb_command_8_width/2)+crd_status_orb_command_span;
crd_status_orb_command_9_y = crd_status_orb_command_8_y+4-crd_status_orb_command_8_height-crd_status_orb_command_span;
// Command Button 10.
crd_status_orb_command_10_width = crd_status_orb_command_1_width;
crd_status_orb_command_10_height = crd_status_orb_command_1_height;
crd_status_orb_command_10_x = crd_status_orb_command_9_x+crd_status_orb_command_9_width-41;
crd_status_orb_command_10_y = crd_status_orb_command_9_y-32;
crd_status_orb_command_10_x = crd_status_orb_command_9_x;
crd_status_orb_command_10_y = crd_status_orb_command_9_y-crd_status_orb_command_9_height-(crd_status_orb_command_span/2);
// Command Button 11.
crd_status_orb_command_11_width = crd_status_orb_command_1_width;
crd_status_orb_command_11_height = crd_status_orb_command_1_height;
crd_status_orb_command_11_x = crd_status_orb_command_10_x+crd_status_orb_command_10_width-52;
crd_status_orb_command_11_y = crd_status_orb_command_10_y-28;
crd_status_orb_command_11_x = crd_status_orb_command_10_x;
crd_status_orb_command_11_y = crd_status_orb_command_10_y-crd_status_orb_command_10_height-(crd_status_orb_command_span/2);
// Command Button 12.
crd_status_orb_command_12_width = crd_status_orb_command_1_width;
crd_status_orb_command_12_height = crd_status_orb_command_1_height;
crd_status_orb_command_12_x = crd_status_orb_command_11_x;
crd_status_orb_command_12_y = crd_status_orb_command_11_y-crd_status_orb_command_11_height-(crd_status_orb_command_span/2);
// Command Button 13.
crd_status_orb_command_13_width = crd_status_orb_command_1_width;
crd_status_orb_command_13_height = crd_status_orb_command_1_height;
crd_status_orb_command_13_x = crd_status_orb_command_12_x;
crd_status_orb_command_13_y = crd_status_orb_command_12_y-crd_status_orb_command_12_height-(crd_status_orb_command_span/2);
}
// ====================================================================
@ -161,36 +174,28 @@ function initStatusOrb()
function UpdateStatusOrb()
{
// Update name text.
GUIObject = getGUIObjectByName("session_panel_status_name1");
GUIObject.caption = "";
// Personal name.
if (selection[0].traits.id.personal && selection[0].traits.id.personal != "")
{
GUIObject = getGUIObjectByName("session_panel_status_name1");
GUIObject.caption = selection[0].traits.id.personal + "\n";
}
else{
GUIObject = getGUIObjectByName("session_panel_status_name1");
GUIObject.caption += selection[0].traits.id.personal + "\n";
}
// Generic name.
if (selection[0].traits.id.generic)
{
GUIObject = getGUIObjectByName("session_panel_status_name2");
GUIObject.caption = selection[0].traits.id.generic + "\n";
}
else{
GUIObject = getGUIObjectByName("session_panel_status_name2");
GUIObject.caption = "";
GUIObject.caption += selection[0].traits.id.generic + "\n";
}
// Specific/ranked name.
if (selection[0].traits.id.ranked)
{
GUIObject = getGUIObjectByName("session_panel_status_name3");
GUIObject.caption = selection[0].traits.id.ranked + "\n";
GUIObject = getGUIObjectByName("session_panel_status_name1");
GUIObject.caption += selection[0].traits.id.ranked + "\n";
}
else{
if (selection[0].traits.id.specific)
{
GUIObject = getGUIObjectByName("session_panel_status_name3");
GUIObject.caption = selection[0].traits.id.specific + "\n";
GUIObject.caption += selection[0].traits.id.specific + "\n";
}
}
@ -242,18 +247,33 @@ function UpdateStatusOrb()
// Update stats
if (selection[0].actions.attack && selection[0].actions.attack.damage && selection[0].actions.attack.damage > 0 && selection[0].actions.attack.crush && selection[0].actions.attack.hack && selection[0].actions.attack.pierce)
{
getGUIObjectByName("session_panel_status_attack").caption = "[icon=icon_statistic_attack]" + selection[0].actions.attack.damage + " [icon=icon_statistic_hack]" + Math.round(selection[0].actions.attack.hack*100) + "[icon=icon_statistic_pierce]" + Math.round(selection[0].actions.attack.pierce*100) + "[icon=icon_statistic_crush]" + Math.round(selection[0].actions.attack.crush*100) + "";
getGUIObjectByName("session_panel_status_attack").caption = "[icon=icon_statistic_attack]" + selection[0].actions.attack.damage + " [icon=icon_statistic_hack]" + Math.round(selection[0].actions.attack.hack*100) + "% [icon=icon_statistic_pierce]" + Math.round(selection[0].actions.attack.pierce*100) + "% [icon=icon_statistic_crush]" + Math.round(selection[0].actions.attack.crush*100) + "%";
}
else
getGUIObjectByName("session_panel_status_attack").caption = "";
if (selection[0].traits.armour && selection[0].traits.armour.value && selection[0].traits.armour.value > 0 && selection[0].traits.armour.crush && selection[0].traits.armour.hack && selection[0].traits.armour.pierce)
{
getGUIObjectByName("session_panel_status_armour").caption = "[icon=icon_statistic_armour]" + selection[0].traits.armour.value + " [icon=icon_statistic_hack]" + Math.round(selection[0].traits.armour.hack*100) + "[icon=icon_statistic_pierce]" + Math.round(selection[0].traits.armour.pierce*100) + "[icon=icon_statistic_crush]" + Math.round(selection[0].traits.armour.crush*100) + "";
getGUIObjectByName("session_panel_status_armour").caption = "[icon=icon_statistic_armour]" + selection[0].traits.armour.value + " [icon=icon_statistic_hack]" + Math.round(selection[0].traits.armour.hack*100) + "% [icon=icon_statistic_pierce]" + Math.round(selection[0].traits.armour.pierce*100) + "% [icon=icon_statistic_crush]" + Math.round(selection[0].traits.armour.crush*100) + "%";
}
else
getGUIObjectByName("session_panel_status_armour").caption = "";
GUIObject = getGUIObjectByName("session_panel_status_other");
GUIObject.caption = "";
if (selection[0].actions.attack && selection[0].actions.attack.range)
{
GUIObject.caption += "[icon=icon_statistic_accuracy]" + selection[0].actions.attack.range + " ";
}
if (selection[0].actions.move && selection[0].actions.move.speed)
{
GUIObject.caption += "[icon=icon_statistic_speed]" + selection[0].actions.move.speed + " ";
}
if (selection[0].traits.vision && selection[0].traits.vision.los)
{
GUIObject.caption += "[icon=icon_statistic_los]" + selection[0].traits.vision.los + " ";
}
// Reveal Status Orb
getGUIObjectByName("session_status_orb").hidden = false;
}

View File

@ -66,6 +66,7 @@
<!-- Generic Icons / malte, 15th nov -->
<icon name="0ad_icon" texture="0ad_icon" size="16 16" />
<icon name="bullet_icon" texture="bullet_icon" size="8 8" />
<!-- Commented out until tooltips are implemented as documented.
<tooltip name="session_tooltip"

View File

@ -277,11 +277,11 @@
-->
<sprite name="session_panel_status_bg-top">
<image texture="ui_session_panel_status_bg-top.png" texture-size="0 0 256 256" size="0 0 184 184" />
<image texture="ui_session_panel_status_bg-top.png" texture-size="0 0 256 256" size="0 0 100% 100%" />
</sprite>
<sprite name="session_panel_status_bg-bottom">
<image texture="ui_session_panel_status_bg-bottom.png" texture-size="0 0 256 256" size="0 0 184 184" />
<image texture="ui_session_panel_status_bg-bottom.png" texture-size="0 0 256 256" size="0 0 100% 100%" />
</sprite>
<!--
@ -518,6 +518,10 @@
<image texture="global/ui_gen_0ad-icon-black.png" size="0 0 100% 100%" texture-size="0 0 16 16" />
</sprite>
<sprite name="bullet_icon">
<image texture="global/ui_gen_bullet-icon.png" size="0 0 100% 100%" texture-size="0 0 8 8" />
</sprite>
<!--
==========================================
MESSAGE BOX