3 <root id="interface" x="0" y="0" w="800" h="600" active="true" />
5 <!-- Duplication of TOutpostState -->
6 <define id="outpost_status_UnknownOutpostState" value_from_code="getOutpostEnumUnknownOutpostState()" />
7 <define id="outpost_status_Peace" value_from_code="getOutpostEnumPeace()" />
8 <define id="outpost_status_WarDeclaration" value_from_code="getOutpostEnumWarDeclaration()" />
9 <define id="outpost_status_AttackBefore" value_from_code="getOutpostEnumAttackBefore()" />
10 <define id="outpost_status_AttackRound" value_from_code="getOutpostEnumAttackRound()" />
11 <define id="outpost_status_AttackAfter" value_from_code="getOutpostEnumAttackAfter()" />
12 <define id="outpost_status_DefenseBefore" value_from_code="getOutpostEnumDefenseBefore()" />
13 <define id="outpost_status_DefenseRound" value_from_code="getOutpostEnumDefenseRound()" />
14 <define id="outpost_status_DefenseAfter" value_from_code="getOutpostEnumDefenseAfter()" />
17 <!-- Load Lua (after constants decl) -->
18 <lua file="outpost.lua" />
21 <!-- Save the Time Zone config -->
22 <variable entry="UI:SAVE:OUTPOST:TIME_ZONE" type="sint32" value="0" />
23 <variable entry="UI:SAVE:OUTPOST:TIME_ZONE_AUTO" type="sint32" value="1" />
24 <variable entry="UI:TEMP:OUTPOST:TIME_ZONE_NEXT_UPDATE" type="sint32" value="0" />
25 <!-- just a script called at init and every 5 seconds, to setup TIME_ZONE, if time_zone is auto-->
26 <link expr="depends(@UI:SAVE:OUTPOST:TIME_ZONE_AUTO, @UI:VARIABLES:CURRENT_SERVER_TICK)" cond="and(eq(@UI:SAVE:OUTPOST:TIME_ZONE_AUTO, 1), ge(@UI:VARIABLES:CURRENT_SERVER_TICK, @UI:TEMP:OUTPOST:TIME_ZONE_NEXT_UPDATE))" action="lua:game:outpostUpdateTimeZone()" />
29 <!-- Temp Variables -->
30 <variable entry="UI:TEMP:OUTPOST:SELECTION" type="sint64" value="-1" /> <!-- INDEX Selection From Outposts Window -->
31 <variable entry="UI:TEMP:OUTPOST:BOT_SELECTION" type="sint32" value="0" /> <!-- SHEETID Selection From BotChat -->
32 <variable entry="UI:TEMP:OUTPOST:SQUAD_TO_BUY" type="sint64" value="-1" />
33 <variable entry="UI:TEMP:OUTPOST:SQUAD_SLOT_SELECTED" type="sint64" value="-1" /> <!-- for the map of spawn pos -->
34 <variable entry="UI:TEMP:OUTPOST:SQUAD_RESPAWN_PT" type="sint64" value="-1" /> <!-- for the map of spawn pos -->
36 <!-- Declare War Temp Variables -->
37 <variable entry="UI:TEMP:OUTPOST:DECLARE_WAR_ATTACK_PERIOD" type="sint32" value="0" /> <!-- Wanted Attack Period (0-23 Time) -->
38 <variable entry="UI:TEMP:OUTPOST:DECLARE_WAR_ACK_RECEIVED" type="sint32" value="0" /> <!-- If Ack received from Server since last send message -->
39 <variable entry="UI:TEMP:OUTPOST:DECLARE_WAR_ACK_OK" type="sint32" value="0" /> <!-- If OK to validate -->
40 <variable entry="UI:TEMP:OUTPOST:DECLARE_WAR_ACK_TEXTID" type="sint32" value="0" /> <!-- Text Info -->
41 <variable entry="UI:TEMP:OUTPOST:DECLARE_WAR_ACK_TIME_RANGE_ATT" type="sint32" value="0" /> <!-- Result Attack Period received from msg -->
43 <!-- needed to close the confirm box (not others) if database is changed while it is opened (invalidate user action) -->
44 <variable entry="UI:TEMP:OUTPOST:CONFIRM_DEL_OUTPOST" type="bool" value="false" /> <!-- true if "del outpost" confirm dialog is opened -->
46 <!-- common for all outposts windows -->
47 <style style="o_del_button" type="text_button" id="del" posref="MR MR" x="-4"
48 button_type="push_button" tx_normal="w_text_button_normal" tx_pushed="w_text_button_pushed" tx_over="w_text_button_over"
49 global_color_normal="true" global_color_over="true" global_color_pushed="true"
50 text_y="-2" fontsize="10" shadow="true" case_mode="%case_upper" wmargin="8"
51 hardtext="uiOutpostDel" />
53 <style style="o_spawn_button" type="text_button" id="spawn" posref="MR MR" x="-2" posparent="parent"
54 button_type="push_button" tx_normal="w_text_button_normal" tx_pushed="w_text_button_pushed" tx_over="w_text_button_over"
55 global_color_normal="false" global_color_over="true" global_color_pushed="true"
56 text_y="-2" fontsize="10" shadow="true" case_mode="%case_upper" wmargin="8" wmin="16"
57 tooltip="uittOutpostSpawn" hardtext="1" />
59 <!-- Define just id, posparent and hardtext if you want-->
60 <define id="outpost_title_maxw" value="210" />
61 <define id="outpost_title2_maxw" value="160" />
62 <style style="outpost_title" type="text" posref="BL TL" x="0" y="-4" global_color="false" case_mode="%case_upper" shadow="true" line_maxw="%outpost_title_maxw" over_extend_view_text="true" />
63 <style style="outpost_value_R" type="text" posref="MR ML" x="4" y="0" shadow="true" over_extend_view_text="true" />
64 <style style="outpost_value_RC" type="text" posref="ML ML" x="%outpost_title_maxw" y="0" shadow="true" over_extend_view_text="true" over_extend_parent_rect="true" />
65 <style style="outpost_value_RC2" type="text" posref="ML ML" x="%outpost_title2_maxw" y="0" shadow="true" over_extend_view_text="true" over_extend_parent_rect="true" />
66 <style style="outpost_value_B" type="text" posref="BL TL" x="8" y="-4" multi_line="true" multi_line_space="0" shadow="true" />
69 <!-- common Status Text -->
70 <template name="t_outpost_stat_link" id="" db="" >
71 <!-- status for each outpost (see game_share/outpost.h: TOutpostState) -->
72 <link expr="switch(@#db, 'uiOutpostPeace', 'uiOutpostPeace', 'uiOutpostWarDeclaration',
73 'uiOutpostAttackBefore', 'uiOutpostAttackRound', 'uiOutpostAttackAfter',
74 'uiOutpostDefenseBefore', 'uiOutpostDefenseRound', 'uiOutpostDefenseAfter')"
75 target="#id:hardtext" />
77 <template name="t_outpost_stat_link_desc" id="" db="" >
78 <!-- status for each outpost (see game_share/outpost.h: TOutpostState) -->
79 <link expr="depends(@#db, @SERVER:OUTPOST_SELECTED:SHEET, @UI:TEMP:OUTPOST:SELECTION)"
80 action="lua:game:outpostDisplayStatusInfo('@#db', '#id')" />
83 <template name="t_outpost_stat" id="" posref="TL TL" posparent="parent" x="0" y="0" db="" index="" >
84 <view type="text" id="#id" posref="#posref" posparent="#posparent" x="#x" y="#y" fontsize="10" />
85 <instance template="text_tt" posparent="#id" on_tooltip="lua:game:outpostDisplayStatusInfoTooltip('@#db', '#index')" />
86 <!-- status for each outpost (see game_share/outpost.h: TOutpostState) -->
87 <instance template="t_outpost_stat_link" id="#id" db="#db" />
91 <!-- Common Template to select TimeZone -->
92 <template name="t_outpost_time_zone_selector" id="" posparent="" x="0" x_check_box="%outpost_title2_maxw">
93 <group id="#id" posparent="#posparent" posref="BL TL" x="#x" y="-4" sizeref="w" sizeparent="parent" child_resize_h="true" w="0" h="0" child_resize_hmargin="2" >
94 <view style="outpost_title" id="title_time_zone" posparent="parent" posref="TL TL" x="0" y="-2"
95 hardtext="uiOutpostTimeZone" case_mode="%case_normal" line_maxw="#x_check_box" />
96 <instance template="text_tt" posparent="title_time_zone" tooltip="uittOutpostTimeZone" />
97 <instance template="check_box" id="auto" posparent="title_time_zone" posref="ML ML" x="#x_check_box" y="1" w="0" h="16" fontsize="10" hardtext="uiOutpostAutoTimeZone" dblink="UI:SAVE:OUTPOST:TIME_ZONE_AUTO" />
98 <ctrl style="text_button_16" id="outpost_time_zone" posparent="auto" posref="MR ML" x="8" y="0"
99 hardtext="GMT" onclick_l="active_menu:menu=ui:interface:outpost_time_zone_menu"
100 text_color_normal="255 255 255 255" text_color_over="255 255 255 255" text_color_pushed="255 255 255 255"
101 tooltip="uittOutpostTimeZone" />
102 <link expr="@UI:SAVE:OUTPOST:TIME_ZONE" action="lua:game:outpostDisplayTimeZone('outpost_time_zone')" />
103 <link expr="@UI:SAVE:OUTPOST:TIME_ZONE_AUTO" target="outpost_time_zone:frozen" />
108 <!--**********************-->
109 <!--* outpost_manager *-->
110 <!--**********************-->
112 <!-- in relation with database.xml -->
114 <define id="om_nb_max_outpost" value="16" />
115 <define id="outpost_name_w" value="240" />
117 <proc id="om_proc_outpost">
118 <action handler="set" params="dblink=UI:TEMP:OUTPOST:SELECTION|value=@0"/>
119 <action handler="show" params="outpost" />
123 <!-- a line of the om (index is the line index) -->
124 <template name="t_om_line" id="" index="" x="0" posref="BL TL" posparent="parent" owned="" >
126 <group id="#id" posref="#posref" posparent="#posparent" x="#x" y="0" sizeparent="parent" sizeref="w" w="0" h="20" >
127 <!-- name and status of the outpost -->
128 <view type="text" id="name" posref="ML ML" x="2" hardtext="testTestTest#index" fontsize="10" line_maxw="%outpost_name_w" over_extend_view_text="true" />
129 <instance template="t_outpost_stat" id="status" posref="ML ML" x="%outpost_name_w" y="0"
130 db="SERVER:GUILD:OUTPOST:O#index:STATUS" index="#index" />
132 <!-- Selection button -->
133 <ctrl type="button" id="select" posref="ML ML" x="0" h="22" w="420"
134 button_type="push_button" tx_normal="blank.tga" tx_pushed="blank.tga" tx_over="blank.tga" scale="true"
135 color="0 0 0 0" col_over="255 255 255 128" col_pushed="0 0 0 192"
136 global_color_normal="true" global_color_over="true" global_color_pushed="true"
137 onclick_l="proc" params_l="om_proc_outpost|#index" />
139 <!-- Delete ownage of an outpost -->
140 <ctrl style="o_del_button" posref="ML ML" x="380" onclick_l="outpost_giveup" params_l="#index" tooltip="uittOutpostDel#owned" />
144 <!-- active the line if the outpost slot is here, and if for the correct list -->
145 <link expr="and(ne(@SERVER:GUILD:OUTPOST:O#index:SHEET,0),
146 eq(@SERVER:GUILD:OUTPOST:O#index:OWNED,#owned))" target="#id:active" />
147 <!-- name of the outpost -->
148 <link expr="getOutpostName(@SERVER:GUILD:OUTPOST:O#index:SHEET)" target="#id:name:uc_hardtext" />
150 <!-- if the player has the rights to modify outposts let him destroy an outpost -->
151 <!-- the outpost must also be owned by the guild, and the guild must be able to delete the oupost -->
152 <link expr="and( ne(@SERVER:USER:OUTPOST_ADMIN,0), ne(@SERVER:GUILD:OUTPOST:CANDEL,0), ne(#owned,0) )"
153 target="#id:del:active" />
155 <!-- if the selected outpost is lost close the outpost window -->
156 <link expr="depends(@SERVER:GUILD:OUTPOST:O#index:SHEET, @SERVER:GUILD:OUTPOST:O#index:OWNED)"
157 cond="eq(#index,@UI:TEMP:OUTPOST:SELECTION)" action="hide" params="outpost" />
159 <!-- if the outpost list is modified close the "del outpost" confirm dialog -->
160 <link expr="depends(@SERVER:GUILD:OUTPOST:O#index:SHEET, @SERVER:GUILD:OUTPOST:O#index:OWNED)"
161 cond="ne(@UI:TEMP:OUTPOST:CONFIRM_DEL_OUTPOST,0)" action="proc" params="proc_valid_message_box_cancel" />
166 <!-- usefull procs -->
167 <variable entry="UI:VARIABLES:ISACTIVE:OUTPOST_MANAGER" type="sint32" value="0" />
168 <proc id="om_proc_active">
169 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:OUTPOST_MANAGER|value=1" />
172 <proc id="om_proc_deactive">
173 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:OUTPOST_MANAGER|value=0" />
177 <!-- outpost_manager template -->
178 <template name="t_outpost_manager" id="" posref="TL TL" x="0" y="0" w="450" h="320" >
180 <!-- outpost owned -->
181 <group id="outpost_owned" posref="TL TL" x="0" y="0" w="432" sizeparent="parent" h="154" >
182 <view type="text" id="title_name" posref="TL TL" x="12" y="-8" hardtext="uiOutpostTitleNameOwned" global_color="false" />
183 <view type="text" id="title_stat" posref="TL TL" x="260" y="-8" hardtext="uiOutpostTitleStatus" global_color="false" />
184 <instance template="text_tt" posparent="title_stat" tooltip="uittOutpostStatus" />
186 <group id="outpost_list" posref="TL TL" x="12" y="-24" w="420" child_resize_h="true" child_resize_hmargin="2" max_h="128" >
187 <vector template="t_om_line" _size="%om_nb_max_outpost" _firstpos="TL TL" _nextpos="BL TL" _xfirst="0" id="o$i" index="$i" owned="1" />
189 <ctrl style="skin_scroll" id="sv" posref="TL TL" x="0" y="-24" target="outpost_list" target_stepy="20" />
191 <group id="black" posref="TL TL" w="420" h="130" posparent="outpost_list" inherit_gc_alpha="true" />
192 <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true"/>
195 <!-- outpost challenged -->
196 <group id="outpost_challenged" posref="BL TL" posparent="outpost_owned" x="0" y="-4" w="432" h="154" >
197 <view type="text" id="title_name" posref="TL TL" x="12" y="-8" hardtext="uiOutpostTitleNameChallenged" global_color="false" />
198 <view type="text" id="title_stat" posref="TL TL" x="260" y="-8" hardtext="uiOutpostTitleStatus" global_color="false" />
199 <instance template="text_tt" posparent="title_stat" tooltip="uittOutpostStatus" />
201 <group id="outpost_list" posref="TL TL" x="12" y="-24" w="420" child_resize_h="true" child_resize_hmargin="2" max_h="128" >
202 <vector template="t_om_line" _size="%om_nb_max_outpost" _firstpos="TL TL" _nextpos="BL TL" _xfirst="0" id="o$i" index="$i" owned="0" />
204 <ctrl style="skin_scroll" id="svc" posref="TL TL" x="0" y="-24" target="outpost_list" target_stepy="20" />
206 <group id="blackc" posref="TL TL" w="420" h="130" posparent="outpost_list" inherit_gc_alpha="true" />
207 <instance template="inner_thin_border" posparent="blackc" inherit_gc_alpha="true"/>
214 <!--************************-->
215 <!--* Time Setup Controls *-->
216 <!--************************-->
218 <!-- Menu To select Attacker or Defender Period -->
219 <!-- Yoyo: sry this is ugly, but tempalte seems don't work here -->
220 <group type="menu" id="outpost_def_period_menu" extends="base_menu">
221 <action id="hour_0" name="00:00" handler="outpost_select_def_period" params="0"/>
222 <action id="hour_1" name="01:00" handler="outpost_select_def_period" params="1"/>
223 <action id="hour_2" name="02:00" handler="outpost_select_def_period" params="2"/>
224 <action id="hour_3" name="03:00" handler="outpost_select_def_period" params="3"/>
225 <action id="hour_4" name="04:00" handler="outpost_select_def_period" params="4"/>
226 <action id="hour_5" name="05:00" handler="outpost_select_def_period" params="5"/>
227 <action id="hour_6" name="06:00" handler="outpost_select_def_period" params="6"/>
228 <action id="hour_7" name="07:00" handler="outpost_select_def_period" params="7"/>
229 <action id="hour_8" name="08:00" handler="outpost_select_def_period" params="8"/>
230 <action id="hour_9" name="09:00" handler="outpost_select_def_period" params="9"/>
231 <action id="hour_10" name="10:00" handler="outpost_select_def_period" params="10"/>
232 <action id="hour_11" name="11:00" handler="outpost_select_def_period" params="11"/>
233 <action id="hour_12" name="12:00" handler="outpost_select_def_period" params="12"/>
234 <action id="hour_13" name="13:00" handler="outpost_select_def_period" params="13"/>
235 <action id="hour_14" name="14:00" handler="outpost_select_def_period" params="14"/>
236 <action id="hour_15" name="15:00" handler="outpost_select_def_period" params="15"/>
237 <action id="hour_16" name="16:00" handler="outpost_select_def_period" params="16"/>
238 <action id="hour_17" name="17:00" handler="outpost_select_def_period" params="17"/>
239 <action id="hour_18" name="18:00" handler="outpost_select_def_period" params="18"/>
240 <action id="hour_19" name="19:00" handler="outpost_select_def_period" params="19"/>
241 <action id="hour_20" name="20:00" handler="outpost_select_def_period" params="20"/>
242 <action id="hour_21" name="21:00" handler="outpost_select_def_period" params="21"/>
243 <action id="hour_22" name="22:00" handler="outpost_select_def_period" params="22"/>
244 <action id="hour_23" name="23:00" handler="outpost_select_def_period" params="23"/>
246 <group type="menu" id="outpost_att_period_menu" extends="base_menu">
247 <action id="hour_0" name="00:00" handler="outpost_select_att_period" params="0"/>
248 <action id="hour_1" name="01:00" handler="outpost_select_att_period" params="1"/>
249 <action id="hour_2" name="02:00" handler="outpost_select_att_period" params="2"/>
250 <action id="hour_3" name="03:00" handler="outpost_select_att_period" params="3"/>
251 <action id="hour_4" name="04:00" handler="outpost_select_att_period" params="4"/>
252 <action id="hour_5" name="05:00" handler="outpost_select_att_period" params="5"/>
253 <action id="hour_6" name="06:00" handler="outpost_select_att_period" params="6"/>
254 <action id="hour_7" name="07:00" handler="outpost_select_att_period" params="7"/>
255 <action id="hour_8" name="08:00" handler="outpost_select_att_period" params="8"/>
256 <action id="hour_9" name="09:00" handler="outpost_select_att_period" params="9"/>
257 <action id="hour_10" name="10:00" handler="outpost_select_att_period" params="10"/>
258 <action id="hour_11" name="11:00" handler="outpost_select_att_period" params="11"/>
259 <action id="hour_12" name="12:00" handler="outpost_select_att_period" params="12"/>
260 <action id="hour_13" name="13:00" handler="outpost_select_att_period" params="13"/>
261 <action id="hour_14" name="14:00" handler="outpost_select_att_period" params="14"/>
262 <action id="hour_15" name="15:00" handler="outpost_select_att_period" params="15"/>
263 <action id="hour_16" name="16:00" handler="outpost_select_att_period" params="16"/>
264 <action id="hour_17" name="17:00" handler="outpost_select_att_period" params="17"/>
265 <action id="hour_18" name="18:00" handler="outpost_select_att_period" params="18"/>
266 <action id="hour_19" name="19:00" handler="outpost_select_att_period" params="19"/>
267 <action id="hour_20" name="20:00" handler="outpost_select_att_period" params="20"/>
268 <action id="hour_21" name="21:00" handler="outpost_select_att_period" params="21"/>
269 <action id="hour_22" name="22:00" handler="outpost_select_att_period" params="22"/>
270 <action id="hour_23" name="23:00" handler="outpost_select_att_period" params="23"/>
274 <!-- Menu To select time zone -->
275 <group type="menu" id="outpost_time_zone_menu" extends="base_menu">
276 <action id="hour_m12" name="GMT -12" handler="lua:game:outpostSetTimeZone(-12)" />
277 <action id="hour_m11" name="GMT -11" handler="lua:game:outpostSetTimeZone(-11)" />
278 <action id="hour_m10" name="GMT -10" handler="lua:game:outpostSetTimeZone(-10)" />
279 <action id="hour_m9" name="GMT -9" handler="lua:game:outpostSetTimeZone(-9)" />
280 <action id="hour_m8" name="GMT -8" handler="lua:game:outpostSetTimeZone(-8)" />
281 <action id="hour_m7" name="GMT -7" handler="lua:game:outpostSetTimeZone(-7)" />
282 <action id="hour_m6" name="GMT -6" handler="lua:game:outpostSetTimeZone(-6)" />
283 <action id="hour_m5" name="GMT -5" handler="lua:game:outpostSetTimeZone(-5)" />
284 <action id="hour_m4" name="GMT -4" handler="lua:game:outpostSetTimeZone(-4)" />
285 <action id="hour_m3" name="GMT -3" handler="lua:game:outpostSetTimeZone(-3)" />
286 <action id="hour_m2" name="GMT -2" handler="lua:game:outpostSetTimeZone(-2)" />
287 <action id="hour_m1" name="GMT -1" handler="lua:game:outpostSetTimeZone(-1)" />
288 <action id="hour_0" name="GMT +0" handler="lua:game:outpostSetTimeZone(0)" />
289 <action id="hour_1" name="GMT +1" handler="lua:game:outpostSetTimeZone(1)" />
290 <action id="hour_2" name="GMT +2" handler="lua:game:outpostSetTimeZone(2)" />
291 <action id="hour_3" name="GMT +3" handler="lua:game:outpostSetTimeZone(3)" />
292 <action id="hour_4" name="GMT +4" handler="lua:game:outpostSetTimeZone(4)" />
293 <action id="hour_5" name="GMT +5" handler="lua:game:outpostSetTimeZone(5)" />
294 <action id="hour_6" name="GMT +6" handler="lua:game:outpostSetTimeZone(6)" />
295 <action id="hour_7" name="GMT +7" handler="lua:game:outpostSetTimeZone(7)" />
296 <action id="hour_8" name="GMT +8" handler="lua:game:outpostSetTimeZone(8)" />
297 <action id="hour_9" name="GMT +9" handler="lua:game:outpostSetTimeZone(9)" />
298 <action id="hour_10" name="GMT +10" handler="lua:game:outpostSetTimeZone(10)" />
299 <action id="hour_11" name="GMT +11" handler="lua:game:outpostSetTimeZone(11)" />
300 <action id="hour_12" name="GMT +12" handler="lua:game:outpostSetTimeZone(12)" />
304 <!--**********************-->
305 <!--* Common Outpost *-->
307 <!--**********************-->
309 <!-- According to the kind of window we display, we display the "Outpost wanted period" or not
310 Because these control need the OWNED database, which exist only in the GUILD:OUTPOST branch
312 <template name="t_outpost_wanted_def_period_0" id="" outpost_db="" >
313 <view style="outpost_title" id="#id" posparent="parent" posref="TL TL" x="0" y="-20" hardtext="uiOutpostDefHour" case_mode="%case_normal" active="false" />
316 <template name="t_outpost_wanted_def_period_1" id="" outpost_db="" >
317 <view style="outpost_title" id="#id" posparent="parent" posref="TL TL" x="0" y="-20" hardtext="uiOutpostDefHour" case_mode="%case_normal" />
318 <instance template="text_tt" posparent="#id" tooltip="uittOutpostDefHour" />
319 <ctrl style="text_button_16" id="outpost_def_hour" posparent="#id" posref="ML ML" x="%outpost_title_maxw" y="1"
320 hardtext="test11h" onclick_l="active_menu:menu=ui:interface:outpost_def_period_menu"
321 text_color_normal="255 255 255 255" text_color_over="255 255 255 255" text_color_pushed="255 255 255 255"
322 tooltip="uittOutpostDefHour" />
323 <link expr="depends(@#outpost_db:TIME_RANGE_DEF_WANTED, @UI:SAVE:OUTPOST:TIME_ZONE)"
324 action="lua:game:outpostAdjustHour('outpost_def_hour', '@#outpost_db:TIME_RANGE_DEF_WANTED')" />
325 <!-- disable feature if : !Owned || !outpost_admin || !(peace or decl war) -->
326 <link expr="depends(@#outpost_db:OWNED, @SERVER:USER:OUTPOST_ADMIN, @#outpost_db:STATUS,
327 @#outpost_db:TIME_RANGE_DEF, @#outpost_db:TIME_RANGE_DEF_WANTED)"
328 action="lua:game:outpostActiveDefenderHourButton()" />
331 <!-- Common Outpost Info For Both SelectedOutpost (type=0), and GuildOutpost (type=1) -->
332 <template name="t_outpost_info" id="" outpost_db="" type="" x="0" y="0" >
333 <group id="#id" x="#x" y="#y" h="0" sizeref="w" w="0" child_resize_h="true" child_resize_hmargin="0" posref="TL TL"
334 lua_class="game:outpostInitInfo(#type)" >
336 <!-- *** GLOBAL STATE *** -->
337 <view type="bitmap" id="sep_gs" posref="TL TL" scale="true" sizeref="w" w="0" h="2" x="0" y="0" texture="W_line_hor.tga" />
338 <group id="global_state" sizeref="w" w="0" child_resize_h="true" posparent="sep_gs" posref="BL TL" x="0" y="-10" >
340 <view type="text" id="outpost_name" posref="TM TM" x="0" y="0" global_color="false" fontsize="12" shadow="true" />
341 <link expr="getOutpostName(@#outpost_db:SHEET)" target="outpost_name:uc_hardtext" />
344 <view style="outpost_title" id="title_level" posparent="parent" posref="TL TL" x="0" y="-20" hardtext="uiOutpostLevel" />
345 <instance template="text_tt" posparent="title_level" tooltip="uittOutpostLevel" />
346 <view style="outpost_value_R" id="outpost_level" posparent="title_level" />
347 <link expr="@#outpost_db:LEVEL" target="outpost_level:uc_hardtext" />
349 <!-- OWNER: GUILD/TRIBE -->
350 <view style="outpost_title" id="title_owner" posparent="title_level" hardtext="uiOutpostOwner" />
351 <instance template="text_tt" posparent="title_owner" tooltip="uittOutpostOwner" />
352 <group id="outpost_owner" child_resize_w="true" child_resize_h="true" posparent="title_owner" posref="BL TL" x="0" y="-4" >
353 <group id="guild" child_resize_w="true" child_resize_h="true" child_resize_wmargin="20" >
354 <!-- For GuildOutpost type (type==1), The Sheet / TextId change in LUA when the outpost selected change -->
355 <ctrl type="sheet" id="blason" posref="TL TL" x="20" y="0" nature="guild_flag" slot="false" value="SERVER:OUTPOST_SELECTED:GUILD" dragable="false" color="255 255 255 255" />
356 <view type="text_id" id="name" posparent="blason" posref="MR ML" x="8" y="0" shadow="true" textid="SERVER:OUTPOST_SELECTED:GUILD:NAME" dynamic_string="false" />
358 <group id="tribe" child_resize_w="true" child_resize_h="true" child_resize_wmargin="8" >
359 <view type="text" id="name" posref="TL TL" x="8" y="0" shadow="true" hardtext="uiOutpostTribe" />
361 <link expr="eq(@#outpost_db:GUILD:TRIBE,1)" target="tribe:active" />
362 <link expr="eq(@#outpost_db:GUILD:TRIBE,0)" target="guild:active" />
365 <!-- STATUS + TIME before next status -->
366 <view style="outpost_title" id="title_status" posparent="outpost_owner" x="0" y="-4" hardtext="uiOutpostStatus" />
367 <instance template="text_tt" posparent="title_status" tooltip="uittOutpostStatus" />
368 <view style="outpost_value_R" id="outpost_status" posparent="title_status" />
369 <instance template="t_outpost_stat_link" id="outpost_status" db="#outpost_db:STATUS" />
370 <!-- Filled with LUA -->
371 <view style="outpost_value_R" id="outpost_status_time" posparent="outpost_status" />
373 <!-- STATUS DOC + Special Crash Case -->
374 <view style="outpost_value_B" id="outpost_status_desc" posparent="title_status" fontsize="10" />
375 <instance template="t_outpost_stat_link_desc" id="outpost_status_desc" db="#outpost_db:STATUS" />
376 <view style="outpost_value_B" id="outpost_status_crash" posparent="outpost_status_desc" x="0" hardtext="uiOutpostCrash" global_color="false" fontsize="10" color="255 128 128 255" />
377 <link expr="@#outpost_db:DISPLAY_CRASH" target="outpost_status_crash:active" />
379 <!-- ATTACKER: GUILD -->
380 <group id="outpost_attacker" child_resize_w="true" child_resize_h="true" posparent="outpost_status_crash" posref="BL TL" x="-8" y="-4" >
381 <view style="outpost_title" id="header" posref="TL TL" x="0" y="0" hardtext="uiOutpostAttacker" />
382 <instance template="text_tt" posparent="header" tooltip="uittOutpostAttacker" />
383 <!-- For GuildOutpost type (type==1), The TextId change in LUA when the outpost selected change -->
384 <view style="outpost_value_R" type="text_id" id="name" posparent="header" textid="SERVER:OUTPOST_SELECTED:GUILD:NAME_ATT" dynamic_string="false" />
385 <link expr="@#outpost_db:GUILD:NAME_ATT" target="active" />
390 <!-- *** ROUND STATE *** -->
391 <view type="bitmap" id="sep_rs" posparent="global_state" posref="BL TL" scale="true" sizeref="w" w="0" h="2" x="0" y="-8" texture="W_line_hor.tga" />
392 <group id="round_state" sizeref="w" w="0" child_resize_h="true" posparent="sep_rs" posref="BL TL" x="0" y="-10" >
393 <view style="outpost_title" id="title_round_state" posparent="parent" posref="TM TM" x="0" y="0" hardtext="uiOutpostWarStatus" />
395 <!-- LVL Threshold -->
396 <view style="outpost_title" id="title_lvl_thre" posparent="parent" posref="TL TL" x="0" y="-20" hardtext="uiOutpostLvlThreshold" case_mode="%case_normal" />
397 <instance template="text_tt" posparent="title_lvl_thre" tooltip="uittOutpostLvlThreshold" />
398 <view style="outpost_value_RC" id="outpost_lvl_thre" posparent="title_lvl_thre" />
399 <link expr="depends(@#outpost_db:ROUND_LVL_THRESHOLD)"
400 action="lua:game:outpostChangeRoundLvlThreshold()" />
402 <!-- LVL MAX ATTACKER -->
403 <view style="outpost_title" id="title_lvl_max_att" posparent="title_lvl_thre" hardtext="uiOutpostLvlMaxAttacker" case_mode="%case_normal" />
404 <instance template="text_tt" posparent="title_lvl_max_att" tooltip="uittOutpostLvlMaxAttacker" />
405 <view style="outpost_value_RC" id="outpost_lvl_max_att" posparent="title_lvl_max_att" />
406 <link expr="depends(@#outpost_db:ROUND_LVL_MAX_ATT, @#outpost_db:STATUS)"
407 action="lua:game:outpostChangeRoundLvlMaxAtt()" />
409 <!-- LVL MAX DEFENDER -->
410 <view style="outpost_title" id="title_lvl_max_def" posparent="title_lvl_max_att" hardtext="uiOutpostLvlMaxDefender" case_mode="%case_normal" />
411 <instance template="text_tt" posparent="title_lvl_max_def" tooltip="uittOutpostLvlMaxDefender" />
412 <view style="outpost_value_RC" id="outpost_lvl_max_def" posparent="title_lvl_max_def" />
413 <link expr="depends(@#outpost_db:ROUND_LVL_MAX_DEF, @#outpost_db:STATUS)"
414 action="lua:game:outpostChangeRoundLvlMaxDef()" />
417 <view style="outpost_title" id="title_lvl_cur" posparent="title_lvl_max_def" hardtext="uiOutpostLvlCurrent" case_mode="%case_normal" />
418 <instance template="text_tt" posparent="title_lvl_cur" tooltip="uittOutpostLvlCurrent" />
419 <view style="outpost_value_RC" id="outpost_lvl_cur" posparent="title_lvl_cur" />
420 <link expr="depends(@#outpost_db:ROUND_LVL_CUR, @#outpost_db:STATUS)"
421 action="lua:game:outpostChangeRoundLvlCur()" />
423 <!-- ROUND/ROUND TOTAL (add space for better understanding) -->
424 <view style="outpost_title" id="title_round_cur" posparent="title_lvl_cur" hardtext="uiOutpostRoundCur" case_mode="%case_normal" y="-18" />
425 <instance template="text_tt" posparent="title_round_cur" tooltip="uittOutpostRoundCur" />
426 <view style="outpost_value_RC" id="outpost_round_cur" posparent="title_round_cur" />
427 <link expr="depends(@#outpost_db:ROUND_ID_CUR, @#outpost_db:ROUND_ID_MAX, @#outpost_db:STATUS)"
428 action="lua:game:outpostChangeRoundId()" />
433 <!-- *** TIME SETUP *** -->
434 <view type="bitmap" id="sep_ws" posparent="round_state" posref="BL TL" scale="true" sizeref="w" w="0" h="2" x="0" y="-8" texture="W_line_hor.tga" />
435 <group id="war_schedule" sizeref="w" w="0" child_resize_h="true" posparent="sep_ws" posref="BL TL" x="0" y="-10" >
436 <view style="outpost_title" id="title_time_setup" posparent="parent" posref="TM TM" x="0" y="0" hardtext="uiOutpostWarSchedule" />
438 <!-- WANTED DEFENDER PERIOD -->
439 <instance template="t_outpost_wanted_def_period_#type" id="title_def_hour" outpost_db="#outpost_db" />
441 <!-- ACTUAL ATTACKER PERIOD -->
442 <view style="outpost_title" id="title_att_period" posparent="title_def_hour" hardtext="uiOutpostAttPeriod" case_mode="%case_normal" />
443 <instance template="text_tt" posparent="title_att_period" tooltip="uittOutpostAttPeriod" />
444 <view style="outpost_value_RC2" id="outpost_att_period" posparent="title_att_period" />
445 <link expr="getOutpostPeriod(@#outpost_db:TIME_RANGE_ATT, @#outpost_db:TIME_RANGE_LENGTH, @UI:SAVE:OUTPOST:TIME_ZONE, @#outpost_db:STATUS, 1)"
446 target="outpost_att_period:uc_hardtext" />
448 <!-- ACTUAL DEFENDER PERIOD -->
449 <view style="outpost_title" id="title_def_period" posparent="title_att_period" hardtext="uiOutpostDefPeriod" case_mode="%case_normal" />
450 <instance template="text_tt" posparent="title_def_period" tooltip="uittOutpostDefPeriod" />
451 <view style="outpost_value_RC2" id="outpost_def_period" posparent="title_def_period" />
452 <link expr="getOutpostPeriod(@#outpost_db:TIME_RANGE_DEF, @#outpost_db:TIME_RANGE_LENGTH, @UI:SAVE:OUTPOST:TIME_ZONE, @#outpost_db:STATUS, 0)"
453 target="outpost_def_period:uc_hardtext" />
455 <!-- TIME ZONE SELECTION -->
456 <instance template="t_outpost_time_zone_selector" id="time_zone_selector" posparent="title_def_period" />
464 <!--***************-->
466 <!--***************-->
468 <!-- Should be HALF the value in Database -->
469 <define id="outpost_nb_max_squad_in_list" value="6" />
470 <define id="right_squad_list_index" value="12" />
471 <define id="outpost_selected" value="SERVER:GUILD:OUTPOST:O[UI:TEMP:OUTPOST:SELECTION]" />
472 <define id="outpost_squad_line_h" value="15" />
473 <define id="outpost_squad_name_w" value="210" />
474 <define id="outpost_squad_cost_x" value="222" /> <!-- outpost_squad_name_w + 12 -->
476 <proc id="open_spawn_map">
477 <action handler="set" params="dblink=UI:TEMP:OUTPOST:SQUAD_SLOT_SELECTED|value=@0" />
478 <action handler="show" params="squad_spawn_map" />
479 <action handler="outpost_init_squad_map" params="ui:interface:squad_spawn_map:content:map_content:actual_map" />
483 <proc id="om_proc_set_squad">
484 <action handler="set" params="dblink=UI:TEMP:OUTPOST:SQUAD_SLOT_SELECTED|value=@0" />
485 <action handler="set" params="dblink=UI:TEMP:OUTPOST:SQUAD_TO_BUY|value=-1" />
486 <action handler="reset_pushed" params="dblink=ui:interface:squad_shop:content:squads:squad_list" />
487 <action handler="show" params="squad_shop" />
491 <!-- a spawned squad of the outpost -->
492 <template name="t_spawned_squad_line" id="" index="" posref="BL TL" posparent="parent" x="0" >
494 <group id="#id" posref="#posref" posparent="#posparent" x="0" y="0" sizeparent="parent" sizeref="w" w="-#x" h="%outpost_squad_line_h" >
495 <instance template="inner_thin_border" inherit_gc_alpha="true"/>
496 <view type="text" id="name" posref="ML ML" x="0" fontsize="10"
497 line_maxw="%outpost_squad_name_w" over_extend_view_text="true" />
498 <view type="text" id="cost" posref="ML ML" x="%outpost_squad_name_w" fontsize="10" />
501 <!-- active the line if the squad slot is here -->
502 <link expr="ne(@%outpost_selected:SQUADS:SP#index:SHEET, 0)" target="#id:active" />
503 <!-- name of the squad -->
504 <link expr="getSquadName(@%outpost_selected:SQUADS:SP#index:SHEET)" target="#id:name:uc_hardtext" />
506 <link expr="getSquadCost(@%outpost_selected:SQUADS:SP#index:SHEET)" target="#id:cost:uc_hardtext" />
510 <!-- a training squad of the outpost -->
511 <template name="t_training_squad_line" id="" index="" posref="BL TL" posparent="parent" x="0" >
513 <group id="#id" posref="#posref" posparent="#posparent" x="0" y="0" sizeparent="parent" sizeref="w" w="-#x" h="%outpost_squad_line_h" >
514 <instance template="inner_thin_border" inherit_gc_alpha="true"/>
515 <view type="text" id="name" posref="ML ML" x="0" fontsize="10"
516 line_maxw="%outpost_squad_name_w" over_extend_view_text="true" />
517 <view type="text" id="cost" posref="ML ML" x="%outpost_squad_name_w" fontsize="10" />
519 <!-- Selection button -->
520 <ctrl type="button" id="select" posparent="parent" posref="TL TL" x="0" y="0" w="0" h="0" sizeref="wh"
521 button_type="push_button" tx_normal="blank.tga" tx_pushed="blank.tga" tx_over="blank.tga" scale="true"
522 color="0 0 0 0" col_over="255 255 255 128" col_pushed="0 0 0 192"
523 global_color_normal="true" global_color_over="true" global_color_pushed="true"
524 onclick_l="proc" params_l="om_proc_set_squad|#index"
525 on_tooltip="lua:game:outpostToolTipTrainSquad(#index)" />
527 <!-- Spawn button -->
528 <ctrl style="o_spawn_button" onclick_l="proc" params_l="open_spawn_map|#index" />
531 <!-- active the line if the squad slot is here -->
532 <link expr="ne(@%outpost_selected:SQUADS:T#index:SHEET, 0)" target="#id:active" />
533 <!-- name of the squad -->
534 <link expr="getSquadName(@%outpost_selected:SQUADS:T#index:SHEET)" target="#id:name:uc_hardtext" />
536 <link expr="getSquadCost(@%outpost_selected:SQUADS:T#index:SHEET)" target="#id:cost:uc_hardtext" />
537 <!-- clickable only if allowed rights -->
538 <link expr="ne(@SERVER:USER:OUTPOST_ADMIN,0)" target="#id:select:active" />
539 <link expr="eq(@SERVER:USER:OUTPOST_ADMIN,0)" target="#id:spawn:frozen" />
540 <!-- spawn pos button -->
541 <link expr="add(@%outpost_selected:SQUADS:T#index:SPAWN,1)" target="#id:spawn:uc_hardtext" />
545 <!-- A list of Spawned Squads -->
546 <template name="t_squad_list" id="" x="0" y="0" posparent="parent" posref="TL TL" squad_template="" firstindex="0" header="" tooltip="" >
547 <!-- Height should be %outpost_squad_line_h*MaxSquad + 20. -->
548 <group id="#id" w="295" h="200" x="#x" y="#y" posparent="#posparent" posref="#posref" >
550 <view type="text" id="header" posref="TL TL" x="0" y="-2" global_color="false" shadow="true" hardtext="#header" fontsize="10" />
551 <instance template="text_tt" posparent="header" tooltip="#tooltip" />
552 <view type="text" id="header_price" posref="TL TL" x="%outpost_squad_cost_x" y="-2" global_color="false" shadow="true" hardtext="uiOutpostTitleCost" fontsize="10" />
553 <instance template="text_tt" posparent="header_price" tooltip="uittOutpostSquadCost" />
554 <view type="text" id="header_zone" posref="TR TR" x="0" y="-2" global_color="false" shadow="true" hardtext="uiOutpostSpawnZone" fontsize="10" />
555 <instance template="text_tt" posparent="header_zone" tooltip="uittOutpostSpawn" />
557 <!-- List of Squads -->
558 <group id="list" posref="TL TL" sizeref="w" w="-12" child_resize_h="true" max_h="180" x="12" y="-20" >
559 <vector template="#squad_template" _size="%outpost_nb_max_squad_in_list" _firstpos="TL TL" _nextpos="BL TL" _xfirst="0" id="o$i" index="$i" _firstindex="#firstindex" />
561 <ctrl style="skin_scroll" id="scroll" posref="TL TL" x="0" y="-20" target="list" target_stepy="%outpost_squad_line_h" />
564 <group id="black" posparent="list" posref="TL TL" sizeref="w" w="0" h="180" />
565 <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true"/>
569 <!-- a building on the outpost -->
570 <template name="t_outpost_building" id="" posref="" posparent="" sizeparent="parent" x="0" y="0" index="" >
571 <group id="#id" sizeparent="#sizeparent" sizeref="w" w="0" h="50" x="#x" y="#y" posparent="#posparent" posref="#posref" >
572 <ctrl type="sheet" id="building_sheet" nature="outpost_building" posref="TL TL" x="18" y="-5" value="UI:DUMMY" onclick_r="open_help_auto" />
573 <view type="text" id="building_name" posparent="building_sheet" posref="TR TL" x="5" y="-4" color="255 255 255 255" fontsize="10" shadow="true" hardtext="" multi_line="true" multi_line_space="0" />
574 <view type="text" id="building_desc" posparent="building_name" posref="BL TL" x="0" y="-4" color="255 255 255 255" fontsize="10" shadow="true" hardtext="" multi_line="true" multi_line_space="0" />
576 <link expr="getOutpostBuildingName(@%outpost_selected:BUILDINGS:#index:SHEET)" target="building_name:uc_hardtext" />
577 <link expr="getOutpostBuildingDesc(@%outpost_selected:BUILDINGS:#index:SHEET)" target="building_desc:uc_hardtext" />
578 <link expr="@UI:TEMP:OUTPOST:SELECTION" action="lua:game:outpostUpdateBuildingSheet(#index)" />
584 <!--*********************************************-->
585 <!--* Outpost Selected From GUILD *-->
586 <!--*********************************************-->
589 <!-- Outpost Window Opened From Guild -->
590 <proc id="om_proc_on_deactivate_outpost">
591 <action handler="hide" params="squad_shop" />
592 <action handler="hide" params="squad_spawn_map" />
595 <!-- When the user select an other outpost to edit, or when the Sheet change, must close any spawn/shop -->
596 <link expr="@%outpost_selected:SHEET" action="proc" params="om_proc_on_deactivate_outpost" />
599 <group type="container" id="outpost" w="620" h="420" pop_max_h="16384" resizer="false"
600 openable="true" title="uiOutpostTitle" savable="false"
601 global_color="false" opened="true" movable="true" active="false" header_color="UI:SAVE:WIN:COLORS:MEM"
602 on_deactive="proc" on_deactive_params="om_proc_on_deactivate_outpost"
605 <group id="header_opened" x="0" y="0" w="0" h="16" posref="TL TL"
606 group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color"
607 on_active="set" on_active_params="target='ui:interface:outpost:w'|value=620" >
610 <group id="header_closed" x="0" y="0" w="0" h="16" posref="TL TL"
611 on_active="set" on_active_params="target='ui:interface:outpost:w'|value=250" >
614 <group id="content" x="0" y="0" w="0" h="0" child_resize_h="true" child_resize_hmargin="24" posref="TL TL" >
615 <!-- Tab Selection -->
616 <group id="tab_group" posref="TL TL" x="0" y="-8" sizeref="w" w="0" h="24" >
617 <group type="tab" id="type_select" posref="TL TL" x="0" y="0" child_resize_w="true" h="24" >
618 <ctrl style="tab_button_new" id="tab0" x="0" posref="TL TL" group="content:info" hardtext="uitabOutpostStatus" />
619 <ctrl style="tab_button_new" id="tab1" posparent="tab0" group="content:squad_setup" hardtext="uitabOutpostSquads" />
620 <ctrl style="tab_button_new" id="tab2" posparent="tab1" group="content:buildings" hardtext="uitabOutpostBuildings"/>
622 <view type="bitmap" id="septab" posparent="type_select" posref="BR BL" sizeparent="parent" sizeref="w" w="0" h="1" scale="true" texture="blank.tga" color="166 166 166 255" />
625 <!-- Outpost State -->
626 <instance template="t_outpost_info" id="info" outpost_db="%outpost_selected" type="1" y="-36" />
628 <!-- Outpost Squads -->
629 <group id="squad_setup" x="0" y="-36" h="0" sizeref="w" w="0" child_resize_h="true" child_resize_hmargin="0" posref="TL TL" >
631 <view type="bitmap" id="sep_doc" posref="TL TL" scale="true" sizeref="w" w="0" h="2" x="0" y="0" texture="W_line_hor.tga" />
632 <view type="text" id="explain_edit" posparent="sep_doc" posref="BL TL" x="0" y="-10" global_color="true" shadow="true" hardtext="" fontsize="10" multi_line="true" multi_line_space="0" />
633 <!-- Different Doc wether attacking or defending -->
634 <link expr="localize(ifthenelse(@%outpost_selected:OWNED, 'uiOutpostSquadEditDef', 'uiOutpostSquadEditAtt'))"
635 target="explain_edit:uc_hardtext_format" />
637 <!-- Current Round -->
638 <view type="bitmap" id="sep_cur" posparent="explain_edit" posref="BL TL" scale="true" sizeref="w" w="0" h="2" x="0" y="-8" texture="W_line_hor.tga" sizeparent="parent" />
639 <view type="text" id="cur_round" posparent="sep_cur" posref="BL TL" x="0" y="-10" global_color="false" shadow="true" hardtext="uiOutpostSSquad" case_mode="%case_upper" />
640 <instance template="text_tt" posparent="cur_round" tooltip="uittOutpostSSquad" />
641 <instance template="t_squad_list" id="list_cur_start" x="0" y="0" posparent="cur_round" posref="BL TL"
642 squad_template="t_spawned_squad_line" firstindex="0"
643 header="uiOutpostSSquadStart" tooltip="uittOutpostSSquadStart" />
644 <instance template="t_squad_list" id="list_cur_during" x="10" y="0" posparent="list_cur_start" posref="TR TL"
645 squad_template="t_spawned_squad_line" firstindex="%right_squad_list_index"
646 header="uiOutpostSSquadDuring" tooltip="uittOutpostSSquadDuring" />
649 <view type="bitmap" id="sep_next" posparent="list_cur_start" posref="BL TL" scale="true" sizeref="w" w="0" h="2" x="0" y="-8" texture="W_line_hor.tga" sizeparent="parent" />
650 <view type="text" id="next_round" posparent="sep_next" posref="BL TL" x="0" y="-10" global_color="false" shadow="true" hardtext="uiOutpostTSquad" case_mode="%case_upper" />
651 <instance template="text_tt" posparent="next_round" tooltip="uittOutpostTSquad" />
652 <instance template="t_squad_list" id="list_next_start" x="0" y="0" posparent="next_round" posref="BL TL"
653 squad_template="t_training_squad_line" firstindex="0"
654 header="uiOutpostTSquadStart" tooltip="uittOutpostTSquadStart" />
655 <instance template="t_squad_list" id="list_next_during" x="10" y="0" posparent="list_next_start" posref="TR TL"
656 squad_template="t_training_squad_line" firstindex="%right_squad_list_index"
657 header="uiOutpostTSquadDuring" tooltip="uittOutpostTSquadDuring" />
660 <view type="bitmap" id="sep_capital" posparent="list_next_start" posref="BL TL" scale="true" sizeref="w" w="0" h="2" x="0" y="-8" texture="W_line_hor.tga" sizeparent="parent" />
661 <view type="text" id="capital" posparent="sep_capital" posref="BL TL" x="0" y="-10" global_color="false" shadow="true" hardtext="uiOutpostCapital" case_mode="%case_upper" />
662 <instance template="text_tt" posparent="capital" tooltip="uiOutpostCapitalDoc" />
663 <group id="capital_selector" posparent="capital" posref="BL TL" x="0" y="-4" sizeref="w" sizeparent="parent" child_resize_h="true" w="0" h="0" child_resize_hmargin="2" >
664 <view style="outpost_title" id="cap_text" posparent="parent" posref="TL TL" x="0" y="-2"
665 hardtext="uiOutpostCapitalHeader" case_mode="%case_normal" />
666 <ctrl style="text_button_16" id="cap_but" posparent="cap_text" posref="MR ML" x="8" y="1"
667 hardtext="0" onclick_l="lua:game:outpostSelectSquadCapitalOpen()"
668 text_color_normal="255 255 255 255" text_color_over="255 255 255 255" text_color_pushed="255 255 255 255" />
669 <link expr="@%outpost_selected:SQUAD_CAPITAL" target="cap_but:uc_hardtext" />
670 <link expr="eq(@SERVER:USER:OUTPOST_ADMIN,0)" target="cap_but:frozen" />
671 <link expr="ifthenelse(eq(@SERVER:USER:OUTPOST_ADMIN,0),
672 localize('uiOutpostCapitalEditKO'),
673 localize('uiOutpostCapitalEditOK'))"
674 target="cap_but:tooltip" />
679 <!-- Outpost Buildings -->
680 <group id="buildings" x="0" y="-36" h="0" sizeref="w" w="0" child_resize_h="true" child_resize_hmargin="0" posref="TL TL" >
682 <view type="bitmap" id="sep_building" posref="TL TL" scale="true" sizeref="w" w="0" h="2" x="0" y="0" texture="W_line_hor.tga" />
683 <view type="text" id="outpost_name" posref="TM TM" x="0" y="-12" global_color="false" fontsize="12" shadow="true" />
684 <link expr="getOutpostName(@%outpost_selected:SHEET)" target="outpost_name:uc_hardtext" />
685 <view type="text" id="building_info" posparent="parent" posref="TL TL" x="0" y="-50" global_color="false" fontsize="12" shadow="true" hardtext="uiOutpostBuildingInfoNotOwned" />
687 <instance template="t_outpost_building" id="building1" index="0" posparent="parent" posref="TL TL" y="-64" />
688 <instance template="t_outpost_building" id="building2" index="1" posparent="building1" posref="BL TL"/>
689 <instance template="t_outpost_building" id="building3" index="2" posparent="building2" posref="BL TL"/>
690 <instance template="t_outpost_building" id="building4" index="3" posparent="building3" posref="BL TL"/>
692 <link expr="ifthenelse(eq(@%outpost_selected:OWNED,0), localize('uiOutpostBuildingInfoNotOwned'), localize('uiOutpostBuildingInfoOwned'))"
693 target="building_info:uc_hardtext" />
695 <link expr="ifthenelse(eq(@%outpost_selected:OWNED,0), 0, 1)" target="building1:active" />
696 <link expr="ifthenelse(eq(@%outpost_selected:OWNED,0), 0, 1)" target="building2:active" />
697 <link expr="ifthenelse(eq(@%outpost_selected:OWNED,0), 0, 1)" target="building3:active" />
698 <link expr="ifthenelse(eq(@%outpost_selected:OWNED,0), 0, 1)" target="building4:active" />
705 <tree node="outpost"/>
708 <!--*********************************************-->
709 <!--* Outpost Selected From BOTCHAT *-->
710 <!--*********************************************-->
713 <!-- Outpost Window Opened From Bot Chat Programm -->
714 <proc id="om_proc_on_deactivate_outpost_selected">
715 <action handler="hide" params="outpost_declare_war" />
716 <!-- Inform the server the player needs no more the outpost information -->
717 <action handler="outpost_unselect" params="" />
720 <group type="container" id="outpost_selected" w="510" h="420" pop_max_h="16384" resizer="false"
721 openable="true" title="uiOutpostTitle" savable="false"
722 global_color="false" opened="true" movable="true" active="false" header_color="UI:SAVE:WIN:COLORS:MEM"
723 on_deactive="proc" on_deactive_params="om_proc_on_deactivate_outpost_selected"
726 <group id="header_opened" x="0" y="0" w="0" h="16" posref="TL TL"
727 group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color"
728 on_active="set" on_active_params="target='ui:interface:outpost_selected:w'|value=510" > >
731 <group id="header_closed" x="0" y="0" w="0" h="16" posref="TL TL"
732 on_active="set" on_active_params="target='ui:interface:outpost_selected:w'|value=250" >
735 <group id="content" x="0" y="0" w="0" h="0" child_resize_h="true" child_resize_hmargin="24" posref="TL TL" >
737 <instance template="t_outpost_info" id="info" outpost_db="SERVER:OUTPOST_SELECTED" type="0" y="-8" />
738 <!-- If BotChat Selection is not the DB wanted, hide -->
739 <link expr="eq(@UI:TEMP:OUTPOST:BOT_SELECTION, @SERVER:OUTPOST_SELECTED:SHEET)" target="info:active" />
741 <!-- Declare War Button -->
742 <view type="bitmap" id="sep_dw" posparent="info" posref="BL TL" scale="true" sizeref="w" w="0" h="2" x="0" y="-8" texture="W_line_hor.tga" />
743 <group id="declare_war" sizeref="w" w="0" child_resize_h="true" posparent="sep_dw" posref="BL TL" x="0" y="-10" >
744 <ctrl style="text_button_16" id="outpost_decl_war" posref="TM TM" x="0" y="0"
745 hardtext="uiOutpostDeclareWar" onclick_l="lua:game:outpostDeclareWar()"
746 global_color_normal="false" global_color_over="false" global_color_pushed="false"
747 text_color_normal="255 255 255 255" text_color_over="255 255 255 255" text_color_pushed="255 255 255 255"
748 tooltip="uittOutpostDeclareWar" />
749 <!-- If BotChat Selection is not the DB wanted, freeze -->
750 <link expr="ne(@UI:TEMP:OUTPOST:BOT_SELECTION, @SERVER:OUTPOST_SELECTED:SHEET)" target="outpost_decl_war:frozen" />
756 <tree node="outpost_selected"/>
759 <!--**************************-->
760 <!--* Outpost Declare War *-->
761 <!--**************************-->
764 <!-- Outpost Declare War Window -->
765 <group type="container" id="outpost_declare_war" w="300" h="250" pop_max_h="16384" resizer="false"
766 openable="false" title="uiOutpostDeclareWar" savable="false"
767 global_color="false" opened="true" movable="true" active="false" header_color="UI:SAVE:WIN:COLORS:MEM"
770 <group id="header_opened" x="0" y="0" w="0" h="16" posref="TL TL"
771 group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color" >
774 <group id="content" x="0" y="0" w="0" h="0" child_resize_h="true" child_resize_hmargin="8" posref="TL TL" >
776 <view type="text" id="outpost_name" posref="TM TM" x="0" y="-8" global_color="false" fontsize="12" shadow="true" />
777 <link expr="getOutpostName(@SERVER:OUTPOST_SELECTED:SHEET)" target="outpost_name:uc_hardtext" />
780 <view style="outpost_title" id="title_war_cost" posparent="parent" posref="TL TL" x="0" y="-30" hardtext="uiOutpostWarCost" />
781 <view style="outpost_value_R" id="outpost_war_cost" posparent="title_war_cost" />
782 <link expr="@SERVER:OUTPOST_SELECTED:WARCOST" target="outpost_war_cost:uc_hardtext" />
783 <view style="outpost_value_B" id="outpost_war_cost_desc" posparent="title_war_cost" hardtext="uiOutpostWarCostDesc" fontsize="10" />
786 <group id="war_schedule" sizeparent="parent" sizeref="w" w="0" child_resize_h="true" child_resize_hmargin="2" posparent="outpost_war_cost_desc" posref="BL TL" x="-8" y="-10" >
788 <!-- WANTED ATTACKER PERIOD -->
789 <view style="outpost_title" id="title_att_hour" posparent="parent" posref="TL TL" x="0" y="-2" hardtext="uiOutpostAttHour" case_mode="%case_normal" />
790 <instance template="text_tt" posparent="title_att_hour" tooltip="uittOutpostAttHour" />
791 <ctrl style="text_button_16" id="outpost_att_hour" posparent="title_att_hour" posref="MR ML" x="8" y="1"
792 hardtext="test11h" onclick_l="active_menu:menu=ui:interface:outpost_att_period_menu"
793 text_color_normal="255 255 255 255" text_color_over="255 255 255 255" text_color_pushed="255 255 255 255"
794 tooltip="uittOutpostAttHour" />
795 <link expr="depends(@UI:TEMP:OUTPOST:DECLARE_WAR_ATTACK_PERIOD,@UI:SAVE:OUTPOST:TIME_ZONE)"
796 action="lua:game:outpostAdjustHour('outpost_att_hour', '@UI:TEMP:OUTPOST:DECLARE_WAR_ATTACK_PERIOD')" />
797 <!-- disable feature if : !Owned || !outpost_admin || !(peace or decl war) -->
798 <link expr="depends(@UI:TEMP:OUTPOST:DECLARE_WAR_ACK_OK,
799 @UI:TEMP:OUTPOST:DECLARE_WAR_ACK_TIME_RANGE_ATT, @UI:TEMP:OUTPOST:DECLARE_WAR_ATTACK_PERIOD)"
800 action="lua:game:outpostActiveAttackerHourButton()" />
802 <!-- ACTUAL ATTACKER PERIOD -->
803 <view style="outpost_title" id="title_att_period" posparent="title_att_hour" hardtext="uiOutpostAttPeriod" case_mode="%case_normal" />
804 <instance template="text_tt" posparent="title_att_period" tooltip="uittOutpostAttPeriod" />
805 <view style="outpost_value_B" id="outpost_att_period" posparent="title_att_period" />
806 <!-- NB: emulate war for this text (don't want to display N/A) -->
807 <link expr="getOutpostPeriod(@UI:TEMP:OUTPOST:DECLARE_WAR_ACK_TIME_RANGE_ATT, @SERVER:OUTPOST_SELECTED:TIME_RANGE_LENGTH, @UI:SAVE:OUTPOST:TIME_ZONE, %outpost_status_WarDeclaration, 1)"
808 target="outpost_att_period:uc_hardtext" />
809 <!-- Relevant only if ACK received -->
810 <link expr="@UI:TEMP:OUTPOST:DECLARE_WAR_ACK_RECEIVED" target="outpost_att_period:active" />
812 <!-- TIME ZONE SELECTION -->
813 <instance template="t_outpost_time_zone_selector" id="time_zone_selector" posparent="outpost_att_period" x="-8" x_check_box="150" />
817 <!-- DOC (relevant only if ACK received) -->
818 <view style="outpost_value_B" type="text_id" id="outpost_doc" posparent="war_schedule"
819 textid="UI:TEMP:OUTPOST:DECLARE_WAR_ACK_TEXTID" dynamic_string="true" fontsize="10" />
820 <link expr="@UI:TEMP:OUTPOST:DECLARE_WAR_ACK_RECEIVED" target="outpost_doc:active" />
823 <group id="ok_cancel_group" w="0" h="0" sizeparent="parent" sizeref="w" child_resize_h="true"
824 posparent="outpost_doc" posref="BL TL" x="-8" y="-4" >
825 <instance template="button_ok_cancel" posref="TR TR" x="0" y="0"
826 onclick_ok="lua:game:outpostDeclareWarValidate()" ok_text="uiOutpostDeclareWar"
827 onclick_cancel="hide" onclick_cancel_param="ui:interface:outpost_declare_war" cancel_text="uittCancel" />
828 <link expr="not(@UI:TEMP:OUTPOST:DECLARE_WAR_ACK_OK)" target="ok_cancel:ok:frozen" />
834 <!-- Each time Outpost Sheet or local Selection change, hide window -->
835 <link expr="depends(@UI:TEMP:OUTPOST:BOT_SELECTION, @SERVER:OUTPOST_SELECTED:SHEET)" action="hide" params="outpost_declare_war" />
837 <tree node="outpost_declare_war"/>
840 <!--***********************-->
841 <!--* SQUAD_CAPITAL *-->
842 <!--***********************-->
845 <!-- Dialog to select the Capital for the outpost -->
846 <group type="modal" id="squad_change_capital" w="200" h="70" x="0" y="0" active="false"
850 on_enter="lua:game:outpostSelectSquadCapitalConfirm()"
853 <view type="text" id="title" posref="TL TL" x="6" y="-4" color="255 255 255 255" global_color="false" fontsize="14" shadow="true" hardtext="uiOutpostChangeCapital" />
855 <!-- Capital selection (1Gig max) -->
856 <view type="text" id="text" posparent="title" posref="BL TL" x="0" y="-8" global_color="false" fontsize="10" shadow="true" hardtext="uiOutpostCapitalHeader" />
857 <instance template="edit_box_widget" id="edit" posparent="text" posref="ML ML" x="50" text_x="-4" text_ref="BR BR" w="120" prompt="" enter_loose_focus="true" multi_line="false"
858 onenter="lua:game:outpostSelectSquadCapitalConfirm()" enter_recover_focus="false" reset_focus_on_hide="true" max_historic="0"
859 entry_type="positive_integer" max_num_chars="9" />
862 <instance template="button_ok_cancel" posref="BR BR" x="-6" y="6"
863 onclick_ok="lua:game:outpostSelectSquadCapitalConfirm()"
865 onclick_cancel_param="target_property=ui:interface:squad_change_capital:active|value=0" />
870 <!--***********************-->
871 <!--* squad_spawn_map *-->
872 <!--***********************-->
875 <!-- The spawn map for the squad -->
876 <group style="container_modal" id="squad_spawn_map" posref="BL TL" min_w="256" max_w="16384" w="256" h="256" x="352" y="200" min_h="256" max_h="16384"
877 resizer="true" pop_max_h="16384" pop_min_h="512" pop_max_w="16384" pop_min_w="512"
878 openable="false" opened="true" right_button="true"
879 movable="true" open_button="false"
880 savable="true" active_savable="false"
881 title="uiSquadSpawnTitle"
882 header_color="UI:SAVE:WIN:COLORS:MEM" global_color="false"
883 on_deactive="lua" on_deactive_params="game:outpostSetMapSquad()"
884 modal_parent="outpost"
887 <group id="header_closed" x="0" y="0" h="16" posref="TL TL" >
890 <group id="header_opened" x="0" y="0" h="16" w="256" posref="TL TL"
891 group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color" >
894 <group id="content" x="0" y="0" w="0" h="0" posref="TL TL" >
895 <group id="map_content" posref="TL TL" sizeref="wh" w="0" h="-12" y="-12" >
898 <ctrl type="button" id="zoom_in" button_type="push_button" posref="TL TL" y="0" x="4" tx_normal="w_zoom_in.tga" tx_pushed="W_button_16_over.tga" tx_over="W_button_16_over.tga"
899 onclick_l="map_zoom_in" params_l="map=ui:interface:squad_spawn_map:content:map_content:actual_map" tooltip="uittZoomIn" />
901 <ctrl type="button" id="zoom_out" button_type="push_button" posparent="zoom_in" posref="TR TL" y="0" x="4" tx_normal="w_zoom_out.tga" tx_pushed="W_button_16_over.tga" tx_over="W_button_16_over.tga"
902 onclick_l="map_zoom_out" params_l="map=ui:interface:squad_spawn_map:content:map_content:actual_map" tooltip="uittZoomOut" />
904 <instance template="box_widget" id="back" posref="TL TL" sizeref="wh" w="-2" h="-22" x="1" y="-22" render_layer="0" />
906 <group type="map" id="actual_map" sizeref="wh" w="-4" h="-4" posparent="back" posref="TL TL" x="2" y="-2" render_layer="1"
908 map_mode="spawn_squad"
909 respawn_selected="LM_respawn_over.tga"
911 respawn_landmark_tex_normal="LM_respawn.tga"
912 respawn_landmark_tex_over="LM_respawn_over.tga"
913 respawn_landmark_tex_pushed="LM_respawn_pushed.tga"
914 respawn_landmark_color_normal="255 255 255 255"
915 respawn_landmark_color_over="255 255 255 255"
916 respawn_landmark_color_pushed="255 255 255 255"
917 respawn_landmark_menu="ui:interface:land_mark_menu"
926 <tree node="squad_spawn_map" />
928 <!--******************-->
929 <!--* squad_shop *-->
930 <!--******************-->
932 <define id="ss_nb_max_squad" value="16" />
934 <proc id="ss_proc_squad">
935 <action handler="set" params="dblink=UI:TEMP:OUTPOST:SQUAD_TO_BUY|value=@0" />
938 <proc id="ss_proc_set_squad">
939 <action handler="lua" params="game:outpostSetSquad()" />
940 <action handler="set" params="target_property=ui:interface:squad_shop:active|value=0" />
943 <proc id="ss_proc_remove_squad">
944 <action handler="lua" params="game:outpostRemoveSquad()" />
945 <action handler="set" params="target_property=ui:interface:squad_shop:active|value=0" />
948 <proc id="ss_proc_insert_squad">
949 <action handler="lua" params="game:outpostInsertSquad()" />
950 <action handler="set" params="target_property=ui:interface:squad_shop:active|value=0" />
954 <template name="t_ss_line" id="" index="" x="0" posref="BL TL" posparent="parent" >
956 <group id="#id" posref="#posref" posparent="#posparent" x="#x" y="0" sizeparent="parent" sizeref="w" w="0" h="%outpost_squad_line_h" >
957 <view type="text" id="name" posref="ML ML" x="0" hardtext="tests" fontsize="10" line_maxw="%outpost_squad_name_w" over_extend_view_text="true" />
958 <view type="text" id="cost" posref="MR MR" x="-2" hardtext="tests" fontsize="10" />
961 <ctrl type="button" id="#id_select" posref="TL TL" posparent="#id" x="0" h="%outpost_squad_line_h" w="460"
962 button_type="radio_button" tx_normal="blank.tga" tx_pushed="blank.tga" tx_over="blank.tga" scale="true"
963 color="0 0 0 0" col_over="255 255 255 128" col_pushed="255 255 255 255"
964 global_color_normal="true" global_color_over="true" global_color_pushed="true"
965 onclick_l="proc" params_l="ss_proc_squad|#index" />
967 <!-- active the line if the squad slot is here -->
968 <link expr="ne(@%outpost_selected:SQUAD_SHOP:#index:SHEET, 0)" target="#id:active,#id_select:active" />
970 <link expr="getSquadName(@%outpost_selected:SQUAD_SHOP:#index:SHEET)" target="#id:name:uc_hardtext" />
972 <link expr="getSquadCost(@%outpost_selected:SQUAD_SHOP:#index:SHEET)" target="#id:cost:uc_hardtext" />
977 <group style="container_modal" id="squad_shop" w="520" h="270" resizer="false"
978 openable="false" title="uiOutpostSquadShopTitle" savable="false"
979 global_color="false" opened="true" movable="true" active="false" header_color="UI:SAVE:WIN:COLORS:MEM"
980 modal_parent="outpost"
982 <group id="header_opened" x="0" y="0" w="0" h="16" posref="TL TL"
983 group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color" >
986 <group id="content" x="0" y="0" w="0" h="300" posref="TL TL" >
988 <!-- squad to buy -->
990 <group id="squads" posref="TL TL" x="0" y="0" w="510" sizeparent="parent" sizeref="h" h="0" >
991 <view type="text" id="title_name" posref="TL TL" x="12" y="-8" hardtext="uiOutpostSS" global_color="false" />
992 <instance template="text_tt" posparent="title_name" tooltip="uittOutpostSS" />
993 <view type="text" id="title_cost" posref="TL TR" x="292" y="-8" hardtext="uiOutpostTitleCost" global_color="false" />
994 <instance template="text_tt" posparent="title_cost" tooltip="uittOutpostSquadCost" />
996 <group id="squad_list" posref="TL TL" x="12" y="-24" w="280" child_resize_h="true" child_resize_hmargin="2" max_h="240" >
997 <vector template="t_ss_line" _size="%ss_nb_max_squad" _firstpos="TL TL" _nextpos="BL TL" _xfirst="0" id="o$i" index="$i" />
999 <ctrl style="skin_scroll" id="sv" posref="TL TL" x="0" y="-24" target="squad_list" target_stepy="20" />
1001 <group id="black" posref="TL TL" w="280" h="240" posparent="squad_list" inherit_gc_alpha="true" />
1002 <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true"/>
1004 <view type="text" id="title_desc" posref="TL TL" x="300" y="-8" hardtext="uiOutpostDescription" global_color="false" />
1005 <instance template="text_tt" posparent="title_desc" tooltip="uittOutpostSquadDesc" />
1006 <view type="text" id="squad_desc" posref="TL TL" x="300" y="-26" multi_line="true" multi_line_space="0" line_maxw="200" fontsize="10" />
1007 <link expr="ifthenelse(eq(@UI:TEMP:OUTPOST:SQUAD_TO_BUY,-1),
1009 getSquadDesc(@%outpost_selected:SQUAD_SHOP:[UI:TEMP:OUTPOST:SQUAD_TO_BUY]:SHEET))" target="squad_desc:uc_hardtext" />
1011 <!-- SET / CANCEL -->
1012 <instance template="button_ok_cancel" posref="BR BR" x="-8" y="4"
1013 onclick_ok="proc" onclick_ok_param="ss_proc_set_squad"
1014 ok_text="uiOutpostSetSquad" tooltip_ok="uittOutpostSetSquad"
1015 onclick_cancel="hide" onclick_cancel_param="ui:interface:squad_shop"
1016 cancel_text="uittCancel" />
1017 <link expr="eq(@UI:TEMP:OUTPOST:SQUAD_TO_BUY,-1)" target="ok_cancel:ok:frozen" />
1019 <!-- INSERT / REMOVE -->
1020 <ctrl style="button_ok" id="remove" posref="BL BL" x="4" y="4" hardtext="uiOutpostRemoveSquad"
1021 onclick_l="proc" params_l="ss_proc_remove_squad" tooltip="uittOutpostRemoveSquad" />
1022 <ctrl style="button_ok" id="insert" posparent="remove" posref="TR TL" x="0" y="0" hardtext="uiOutpostInsertSquad"
1023 onclick_l="proc" params_l="ss_proc_insert_squad" tooltip="uittOutpostInsertSquad" />
1024 <link expr="eq(@UI:TEMP:OUTPOST:SQUAD_TO_BUY,-1)" target="insert:frozen" />
1032 <tree node="squad_shop"/>
1035 <!-- ************************************************* -->
1036 <!-- * WINDOW TO ASK PLAYER WANT JOIN FOR PVP OUTPOST* -->
1037 <!-- ************************************************* -->
1039 <!-- Vars describing the PVP proposal -->
1040 <variable entry="UI:TEMP:OUTPOST:PVP_PROPOSAL_PLAYER_GUILD_IN_CONFLICT" type="sint32" value="0" />
1041 <variable entry="UI:TEMP:OUTPOST:PVP_PROPOSAL_PLAYER_GUILD_IS_ATTACKER" type="sint32" value="0" />
1042 <variable entry="UI:TEMP:OUTPOST:PVP_PROPOSAL_ATTACKER" type="sint32" value="0" />
1043 <variable entry="UI:TEMP:OUTPOST:PVP_PROPOSAL_DEFENDER" type="sint32" value="0" />
1044 <variable entry="UI:TEMP:OUTPOST:PVP_PROPOSAL_TICK_END" type="sint32" value="0" />
1046 <style style="text_button_pvp_outpost" type="text_button" button_type="push_button" y="-8"
1047 tx_normal="w_text_button_normal" tx_pushed="w_text_button_pushed" tx_over="w_text_button_over"
1048 global_color_normal="false" global_color_over="false" global_color_pushed="false"
1049 text_y="-2" fontsize="10" shadow="true" case_mode="%case_upper" wmargin="8"
1050 text_color_normal="255 255 255 255" text_color_pushed="255 255 255 255" text_color_over="255 255 255 255" />
1052 <!-- the modal. WARNING: change the "line_maxw" below if change the container w -->
1053 <group style="container_proposal" id="join_pvp_outpost_proposal" right_button="false"
1054 title_opened="uiOutpostJoinPVPProposalTitle" >
1056 <group id="header_opened" h="16" posref="TL TL" />
1058 <group id="content" child_resize_h="true" child_resize_hmargin="10" >
1059 <!-- Description -->
1060 <group id="inside" sizeref="w" posref="TL TL" y="-8" child_resize_h="true" child_resize_hmargin="6">
1061 <view type="text" id="pvp_outpost_desc" posref="MM MM" x="0" y="0" color="255 255 255 255" fontsize="10" shadow="true"
1062 multi_line="true" multi_line_space="0" line_maxw="250" hardtext="uiOutpostJoinPVPProposalDesc" />
1065 <!-- Guilds att/def the outpost -->
1066 <group id="guilds" sizeref="w" posparent="inside" posref="BL TL" y="-4" child_resize_h="true" child_resize_hmargin="6">
1068 <view type="text" id="att_hd" posref="TL TL" x="0" y="0" global_color="false" fontsize="10" shadow="true" hardtext="uiOutpostJoinPVPAttHeader" />
1069 <view type="text_id" id="att" posparent="att_hd" posref="TR TL" x="4" y="0" fontsize="10" shadow="true"
1070 line_maxw="200" textid="UI:TEMP:OUTPOST:PVP_PROPOSAL_ATTACKER" dynamic_string="false" over_extend_view_text="true" over_extend_parent_rect="true" />
1072 <view type="text" id="def_hd" posparent="att_hd" posref="BL TL" x="0" y="-2" global_color="false" fontsize="10" shadow="true" hardtext="uiOutpostJoinPVPDefHeader" />
1073 <view type="text_id" id="def" posparent="def_hd" posref="TR TL" x="4" y="0" fontsize="10" shadow="true"
1074 line_maxw="200" textid="UI:TEMP:OUTPOST:PVP_PROPOSAL_DEFENDER" dynamic_string="false" over_extend_view_text="true" over_extend_parent_rect="true" />
1075 <view type="text" id="def_marau" posparent="def_hd" posref="TR TL" x="2" y="0" fontsize="10" shadow="true"
1076 line_maxw="200" over_extend_view_text="true" over_extend_parent_rect="true" hardtext="uiOutpostJoinPVPDefMarauder" />
1077 <link expr="ne(@UI:TEMP:OUTPOST:PVP_PROPOSAL_DEFENDER, 0)" target="def:active" />
1078 <link expr="eq(@UI:TEMP:OUTPOST:PVP_PROPOSAL_DEFENDER, 0)" target="def_marau:active" />
1082 <group id="timer_decl" sizeref="w" posparent="guilds" posref="BL TL" y="-4" child_resize_h="true" child_resize_hmargin="6"
1083 lua_class="game:outpostInitPvpJoinTimer()" >
1084 <view type="text" id="text" posref="TL TL" x="0" y="0" global_color="false" fontsize="10" shadow="true" hardtext="uiOutpostJoinPVPTimer" multi_line="true" multi_line_space="0" />
1088 <ctrl style="text_button_pvp_outpost" id="neutral" posref="BL TL" posparent="timer_decl" onclick_l="lua:game:outpostPvpJoin('neutral')" hardtext="uiOutpostJoinPVPNeutral" color="128 128 255 255" />
1089 <ctrl style="text_button_pvp_outpost" active="false" id="random" posref="BL TL" posparent="timer_decl" onclick_l="lua:game:outpostPvpJoin('neutral')" hardtext="uiCharSel_CreateRan" color="128 128 255 255" />
1090 <ctrl style="text_button_pvp_outpost" id="attack" posref="BM TM" posparent="timer_decl" onclick_l="lua:game:outpostPvpJoin('attack')" hardtext="uiOutpostJoinPVPAttack" color="255 128 128 255" />
1091 <ctrl style="text_button_pvp_outpost" id="defend" posref="BR TR" posparent="timer_decl" onclick_l="lua:game:outpostPvpJoin('defend')" hardtext="uiOutpostJoinPVPDefend" color="128 255 128 255" />
1092 <!-- Hide according to possibilities -->
1093 <link expr="or(eq(@UI:TEMP:OUTPOST:PVP_PROPOSAL_PLAYER_GUILD_IN_CONFLICT,0),
1094 eq(@UI:TEMP:OUTPOST:PVP_PROPOSAL_PLAYER_GUILD_IS_ATTACKER,1))" target="attack:active" />
1095 <link expr="and(or( eq(@UI:TEMP:OUTPOST:PVP_PROPOSAL_PLAYER_GUILD_IN_CONFLICT,0),
1096 eq(@UI:TEMP:OUTPOST:PVP_PROPOSAL_PLAYER_GUILD_IS_ATTACKER,0)),
1097 ne(@UI:TEMP:OUTPOST:PVP_PROPOSAL_DEFENDER,0))" target="defend:active" />
1100 <tree node="join_pvp_outpost_proposal"/>