3 <root id="interface" x="0" y="0" w="800" h="600" active="true" />
5 <template name="template_label_menu" keep="true" active="true" id="" x="0" y="0" sizeref="" w="" h="" posparent=""
6 posref="" w_label="0" w_combo="0" hardtext="" on_change_params="" y_text="4" color_text="">
8 <group id="#id" active="#active" x="#x" y="#y" sizeref="#sizeref" w="#w" h="#h" posparent="#posparent" posref="#posref" >
11 <group id="label" sizeref="w5h" w="#w_label" h="0" x="0" y="0" posref="TL TL" posparent="parent" >
13 <view type="text" id="name_text" posref="BL BL" x="2" y="#y_text" color="255 255 255 255"
14 global_color="true" fontsize="12" shadow="true" hardtext="#hardtext" />
17 <instance template="menu_button_template" id="menu" x="0" y="0" sizeref="wh" posparent="label"
18 posref="TR TL" w="#w_combo" h="0" params_l="#on_change_params" color_text="#color_text" />
24 <template name="template_label_menu_resize" keep="true" active="true" id="" x="0" y="0" sizeref="" w="" h="" posparent=""
25 posref="" w_combo="0" hardtext="" on_change_params="" y_text="4">
27 <group id="#id" active="#active" x="#x" y="#y" sizeref="#sizeref" w="#w" h="#h" posparent="#posparent" posref="#posref" >
30 <group id="label" sizeref="h" w="#w_label" h="0" x="0" y="0" posref="TL TL" posparent="parent" >
32 <view type="text" id="name_text" posref="BL BL" x="2" y="#y_text" color="255 255 255 255"
33 global_color="true" fontsize="12" shadow="true" hardtext="#hardtext" />
36 <instance template="menu_button_template" id="menu" x="#w_label" y="0" sizeref="wh" posparent="parent"
37 posref="BL BL" w="#w_combo" h="0" params_l="#on_change_params" />
42 <template name="template_menu_label" keep="true" active="true" id="" x="0" y="0" sizeref="" w="" h="" posparent=""
43 posref="" w_label="0" w_combo="0" hardtext="" on_change_params="" y_text="4">
45 <group id="#id" active="#active" x="#x" y="#y" sizeref="#sizeref" w="#w" h="#h" posparent="#posparent" posref="#posref" >
48 <instance template="menu_button_template" id="menu" x="0" y="0" sizeref="w5h" posparent="parent"
49 posref="TL TL" w="#w_combo" h="0" params_l="#on_change_params" />
52 <group id="label" sizeref="wh" w="#w_label" h="0" x="0" y="0" posref="TR TL" posparent="menu" >
53 <view type="text" id="name_text" posref="BL BL" x="2" y="#y_text" color="255 255 255 255"
54 global_color="true" fontsize="12" shadow="true" hardtext="#hardtext" />
59 <template name="r2ed_triggers_button" keep="true" id="" x="0" y="0" active="true" posref="BL BM" posparent="parent" icon="" icon_over="" icon_pushed="" w="44" h="39" tooltip=""
60 color="" col_over="" col_pushed="" offset_x = "0" offset_y = "0" onclick_l="" params_l=""
62 <group id="#id" active="#active" x="#x" y="#y" posref="#posref" posparent="#posparent"
63 child_resize_w="true" child_resize_h="true" child_resize_wmargin="#offset_x" child_resize_hmargin="#offset_y"
64 onclick_l="" params_l="" >
66 <group id="button_group" active="true" child_resize_w="true" child_resize_h="true" posref="BR BR">
67 <view type="bitmap" id="bl" color="#color" w="8" h="8" posref="BL BL" texture="r2ed_triggers_corner.tga" rot="3"/>
69 <ctrl type="button" id="button" button_type="push_button" w="#w" h="#h" posref="TR BL" posparent="bl"
70 tx_normal="#icon" tx_pushed="#icon_pushed" tx_over="#icon_over" tooltip="#tooltip"
71 color="#color" col_over="#col_over" col_pushed="#col_pushed"
72 global_color="false" global_color_normal="false" global_color_over="false" global_color_pushed="false"
73 onclick_l="#onclick_l" params_l="#params_l" over_when_pushed = "false" />
75 <view type="bitmap" id="bottom" color="#color" scale="true" posparent="button" posref="BL TL" sizeref="w" w="0" h="8" texture="r2ed_triggers_border.tga" rot="2"/>
76 <view type="bitmap" id="top" color="#color" scale="true" posparent="button" posref="TL BL" sizeref="w" w="0" h="8" texture="r2ed_triggers_border.tga" rot="0"/>
77 <view type="bitmap" id="left" color="#color" scale="true" posparent="button" posref="BL BR" sizeref="h" w="8" h="0" texture="r2ed_triggers_border.tga" rot="3"/>
78 <view type="bitmap" id="right" color="#color" scale="true" posparent="button" posref="BR BL" sizeref="h" w="8" h="0" texture="r2ed_triggers_border.tga" rot="1"/>
79 <view type="bitmap" id="tl" color="#color" w="8" h="8" posref="TL BR" texture="r2ed_triggers_corner.tga" posparent="button" rot="0"/>
80 <view type="bitmap" id="tr" color="#color" w="8" h="8" posref="TR BL" texture="r2ed_triggers_corner.tga" posparent="button" rot="1"/>
81 <view type="bitmap" id="br" color="#color" w="8" h="8" posref="BR TL" texture="r2ed_triggers_corner.tga" posparent="button" rot="2"/>
86 <!-- button tab style -->
87 <style style="tab_button_sequence" keep="true" type="tab_button" button_type="radio_button"
91 tx_normal="r2_tab_wide_normal" tx_pushed="r2_tab_sequence_pushed" tx_over="r2_tab_wide_over"
92 global_color_normal="false" global_color_over="false" global_color_pushed="false"
93 color="255 255 255 255" col_over="255 255 255 255"
94 text_y="-2" fontsize="10" shadow="true" wmargin="8"
95 text_color_normal="255 255 255 128" text_color_pushed="255 255 255 255" text_color_over="255 255 255 255"
96 text_global_color_normal="true"
97 text_global_color_pushed="true"
98 text_global_color_over="true"
99 onclick_l="lua" params_l=""
103 <template name="element_template" keep="true" id="" posref="" x="" y="" hardtext=""
104 select_elt="" open_elt_editor="" max_min_elt="" remove_elt=""
105 col_over="" col_pushed="" multi_max_line="3" >
107 <group id="#id" sizeref="w" posref="#posref" x="#x" y="#y" w="0" child_resize_h="true" child_resize_hmargin="0" >
108 <group id="element_list" active="true" posparent="parent" posref="TL TL" x="0" y="0" sizeref="w" w="0" child_resize_h="true" child_resize_hmargin="0" >
110 <group id="element" active="true" posparent="parent" posref="TL TL" x="0" y="0" sizeref="w" w="0" child_resize_h="true" child_resize_hmargin="0" >
112 <instance template="box_widget" id="back" sizeref="wh" w="0" h="0" />
114 <view type="bitmap" id="dismatch_filter" active="false" posparent="parent" posref="TL TL" sizeparent="parent" sizeref="wh" w="0" h="0"
115 x="0" scale="false" tile="true" texture="r2ed_dismatch_filter.tga" color="255 255 255 255" />
117 <ctrl type="button" button_type="toggle_button" id="select" sizeref="wh" w="0" h="0"
118 col_over="#col_over" col_pushed="#col_pushed" tx_over="blank.tga" tx_pushed="blank.tga" scale="true"
119 onclick_l="lua" params_l="#select_elt" pushed="false" />
121 <group id="element_title" posparent="parent" sizeref="w" w="0" min_h="22" child_resize_h="true" posref="TL TL" x="0" y="0">
123 <group id="group_title" posparent="parent" sizeref="w" w="-26" child_resize_h="true" child_resize_hmargin="8" posref="TL TL" x="0" y="0">
125 <view type="text" id="title" posref="TL TL" x="10" y="-5" color="255 255 255 255"
126 global_color="true" fontsize="12" shadow="true" hardtext="#hardtext" multi_line="true" multi_max_line="#multi_max_line"/>
129 <instance template="r2ed_triggers_little_button" id="minimize_element" x="-2" y="-2" posparent="parent" posref="TR TR"
130 onclick_l="lua" params_l="#max_min_elt" active="false"
131 icon="r2ed_triggers_minimize.tga" icon_over="r2ed_triggers_minimize.tga" icon_pushed="r2ed_triggers_minimize.tga"
132 color="#col_pushed" col_over="#col_pushed" col_pushed="#col_pushed"/>
134 <instance template="r2ed_triggers_little_button" id="maximize_element" x="-2" y="-2" posparent="parent" posref="TR TR"
135 onclick_l="lua" params_l="#max_min_elt" active="false"
136 icon="r2ed_triggers_maximize.tga" icon_over="r2ed_triggers_maximize.tga" icon_pushed="r2ed_triggers_maximize.tga"
137 color="#col_pushed" col_over="#col_pushed" col_pushed="#col_pushed"/>
139 <ctrl type="button" button_type="toggle_button" id="invalid_event" active="false" posref="TR TR"
140 w="24" h="24" x="-2" y="-2" tooltip="uiR2EDInvalidEvent"
141 tx_normal="r2ed_invalid_event_small.tga" tx_over="r2ed_invalid_event_small.tga" tx_pushed="r2ed_invalid_event_small.tga" scale="true" />
143 <ctrl type="button" button_type="toggle_button" id="valid_event" active="false" posparent="parent" posref="TR TR"
144 w="24" h="24" x="-2" y="-2" tooltip=""
145 tx_normal="r2ed_not_current_act.tga" tx_over="r2ed_not_current_act.tga" tx_pushed="r2ed_not_current_act.tga" scale="true" />
150 <group id="element_text" active="false" posparent="element_title" sizeref="w" w="0" child_resize_h="true" child_resize_hmargin="0" posref="BL TL" x="0" y="0" >
152 <view type="bitmap" id="sep" active="false" posparent="parent" posref="TL TL" sizeparent="parent" sizeref="w" w="-40" h="1"
153 x="10" scale="true" texture="blank.tga" color="200 200 200 90" />
155 <group id="crop" posparent="parent" posref="TL TL" x="0" y="0" sizeref="wh" w="0" h="0" />
157 <group id="scroll_text_gr" posparent="crop" posref="TL TL" x="0" y="0" sizeref="w" w="0" child_resize_h="true"
158 child_resize_hmargin="0" max_h="200" >
160 <group type="scroll_text" id="scroll_activity" sizeref="w" child_resize_h="true" child_resize_hmargin="0" posref="TL TL" x="0" y="0" min_height="80" max_height="200" >
161 <group type="list" id="text_list" hardtext="" shadow="true" fontsize="12" justification="dont_clip_word" color="255 255 255 160" space="3"
162 global_color="true" posref="TL TL" x="10" y="0" sizeref="hw" w="-25" h="0" />
164 <ctrl type="scroll" id="scroll_bar" align="T" posref="TR TR" w="8" y="0" x="-2" tx_topright="w_scroll_l123_t.tga"
165 tx_middle="w_scroll_l123_m.tga" tx_bottomleft="w_scroll_l123_b.tga"/>
171 <ctrl style="skin_scroll" id="scroll_bar_text" align="T" target="scroll_text_gr" posparent="crop" posref="TR TR"
181 <!-- sequence tab template -->
182 <template name="sequence_tab_template" keep="true" active="true" id="" posparent="" posref="" hardtext=""
183 group="" col_pushed="" params_l="" >
185 <ctrl style="tab_button_sequence" id="#id" x="0" posparent="#posparent" posref="#posref" group="#group"
186 hardtext="#hardtext" col_pushed="#col_pushed" params_l="#params_l" color="255 255 255 255" col_over="255 255 255 255" />
190 <!-- sequence elements template -->
191 <template name="sequence_elements_template" keep="true" active="true" id=""
192 new_elt="" new_elt_text="" elt_order_text="" up_elt="" down_elt="" max_min_elts="" x="10" y="-30"
193 posparent="parent" posref="TL TL" sizeparent="parent" w="-10" h="-30" down_up_color="" over_down_up_color="255 255 255 255">
195 <group id="#id" posparent="#posparent" posref="#posref" sizeparent="#sizeparent" sizeref="wh" x="#x" w="#w" y="#y" h="#h" active="true">
196 <group id="sequence_content" posref="TL TL" sizeref="wh" x="0" w="0" y="0" h="0" >
198 <ctrl style="button_ok" id="new_button" x="0" y="-10" posref="TL TL" posparent="parent"
199 text_y="0" onclick_l="lua" params_l="#new_elt" hardtext="#new_elt_text" />
201 <group id="mi_group" posparent="new_button" posref="BL BL" x="0" y="0"
202 sizeparent="parent" sizeref="w5" w="0" h="0" />
204 <group id="order_group" active="false" posparent="mi_group" posref="BR BL" x="-45" y="-4" w="200" h="27" >
206 <view type="text" id="element_order" posparent="parent" posref="BL BL"
207 x="0" y="0" color="255 255 255 255" global_color="true" fontsize="12" shadow="true" hardtext="#elt_order_text" />
209 <ctrl type="button" id="up_element" button_type="push_button" posparent="element_order"
210 x="10" y="-1" posref="BR BL" tx_normal="r2ed_up_element.tga" tx_pushed="r2ed_up_element.tga"
211 tx_over="r2ed_up_element.tga" onclick_l="lua" params_l="#up_elt"
212 color="#down_up_color" col_over="#over_down_up_color"
215 <ctrl type="button" id="down_element" button_type="push_button" posparent="up_element"
216 x="5" y="0" posref="BR BL" tx_normal="r2ed_down_element.tga" tx_pushed="r2ed_down_element.tga"
217 tx_over="r2ed_down_element.tga" onclick_l="lua" params_l="#down_elt"
218 color="#down_up_color" col_over="#over_down_up_color"
223 <instance template="r2ed_triggers_little_button" id="minimize_elements" x="-17" y="-10" posparent="parent" posref="TR TR"
224 onclick_l="lua" params_l="#max_min_elts" active="false"
225 icon="r2ed_triggers_minimize.tga" icon_over="r2ed_triggers_minimize.tga" icon_pushed="r2ed_triggers_minimize.tga"
226 color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255"/>
228 <instance template="r2ed_triggers_little_button" id="maximize_elements" x="-17" y="-10" posparent="parent" posref="TR TR"
229 onclick_l="lua" params_l="#max_min_elts" active="false"
230 icon="r2ed_triggers_maximize.tga" icon_over="r2ed_triggers_maximize.tga" icon_pushed="r2ed_triggers_maximize.tga"
231 color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255"/>
233 <group id="elts_list_border" posparent="parent" posref="TL TL" x="0" y="-40" sizeref="wh" w="0" h="-55">
235 <group id="crop" posparent="parent" posref="TL TL" x="0" y="0" sizeref="wh" w="-17" h="0" />
237 <group id="elts_list_gr" posparent="crop" posref="TL TL" x="0" y="0" sizeref="w" w="0" child_resize_h="true"
238 child_resize_hmargin="1" max_sizeparent="crop" max_sizeref="h" max_h="0" >
240 <group id="elements_list" type="list" posparent="parent" posref="TL TL" x="0" y="0" sizeparent="parent" sizeref="wh" w="0" h="0" >
246 <ctrl style="skin_scroll" id="scroll_objects" align="T" target="elts_list_gr" posparent="crop" posref="TR TR"
249 <view type="bitmap" id="sep_top" posparent="crop" posref="TL TL" sizeparent="crop" sizeref="w" w="0" h="1"
250 scale="true" texture="blank.tga" color="120 120 120 255" />
252 <view type="bitmap" id="sep_left" posparent="crop" posref="TL TL" sizeparent="crop" sizeref="h" h="0" w="1"
253 y="0" x="0" scale="true" texture="blank.tga" color="120 120 120 255" />
255 <view type="bitmap" id="sep_right" posparent="crop" posref="BR BR" sizeparent="crop" sizeref="h" h="0" w="1"
256 y="0" x="0" scale="true" texture="blank.tga" color="120 120 120 255" />
258 <view type="bitmap" id="sep_bottom" posparent="crop" posref="BL BL" sizeparent="crop" sizeref="w" w="0" h="1"
259 y="0" scale="true" texture="blank.tga" color="120 120 120 255" />
266 <!-- main menu button -->
267 <template name="menu_button_template" keep="true" id="" sizeref="wh" posparent="parent" posref="TL TL"
268 x="0" y="0" w="0" h="0" params_l="" params_over="" color_text="" >
269 <group id="#id" x="#x" y="#y" posparent="#posparent" posref="#posref" sizeref="#sizeref" w="#w" h="#h">
271 <instance template="inner_thin_border_group" />
272 <view type="bitmap" id="arrow" posref="MR MR" x="-4" texture="W_arrow_down_2.tga" />
275 <group id="text_group" posparent="parent" posref="TL TL" sizeref="wh" x="0" w="-17" y="0" h="0" >
276 <view type="text" id="text" posref="ML ML" x="2" multi_line="false"
277 auto_clamp="true" over_extend_view_text="true" over_extend_parent_rect="true"
278 color="#color_text" />
281 <ctrl type="button" button_type="push_button" id="select" sizeref="wh" w="0" h="0"
282 col_over="255 255 255 90" tx_over="blank.tga" scale="true" onclick_l="lua" params_l="#params_l"
283 onover="lua" params_over="#params_over" />
285 <view type="bitmap" id="dismatch_filter" active="false" posparent="parent" posref="TL TL" sizeparent="parent" sizeref="wh" w="0" h="0"
286 x="0" scale="false" tile="true" texture="r2ed_dismatch_filter.tga" color="200 200 200 255" />
291 <template name="r2ed_triggers_little_button" keep="true" id="" x="0" y="0" active="true" posref="BL BM" posparent="parent" icon="" icon_over="" icon_pushed="" w="44" h="39" tooltip=""
292 color="" col_over="" col_pushed="" offset_x = "0" offset_y = "0" onclick_l="" params_l=""
294 <group id="#id" active="#active" x="#x" y="#y" posref="#posref" posparent="#posparent"
295 child_resize_w="true" child_resize_h="true" child_resize_wmargin="#offset_x" child_resize_hmargin="#offset_y"
296 onclick_l="" params_l="" >
298 <group id="button_group" child_resize_w="true" child_resize_h="true" posref="BR BR">
299 <view type="bitmap" id="bl" color="#color" w="4" h="4" posref="BL BL" texture="r2ed_triggers_little_corner.tga" rot="3"/>
301 <ctrl type="button" id="button" button_type="push_button" w="#w" h="#h" posref="TR BL" posparent="bl"
302 tx_normal="#icon" tx_pushed="#icon_pushed" tx_over="#icon_over" tooltip="#tooltip"
303 color="#color" col_over="#col_over" col_pushed="#col_pushed"
304 global_color="false" global_color_normal="false" global_color_over="false" global_color_pushed="false"
305 onclick_l="#onclick_l" params_l="#params_l" over_when_pushed = "false" />
307 <view type="bitmap" id="bottom" color="#color" scale="true" posparent="button" posref="BL TL" sizeref="w" w="0" h="4" texture="r2ed_triggers_little_border.tga" rot="2"/>
308 <view type="bitmap" id="top" color="#color" scale="true" posparent="button" posref="TL BL" sizeref="w" w="0" h="4" texture="r2ed_triggers_little_border.tga" rot="0"/>
309 <view type="bitmap" id="left" color="#color" scale="true" posparent="button" posref="BL BR" sizeref="h" w="4" h="0" texture="r2ed_triggers_little_border.tga" rot="3"/>
310 <view type="bitmap" id="right" color="#color" scale="true" posparent="button" posref="BR BL" sizeref="h" w="4" h="0" texture="r2ed_triggers_little_border.tga" rot="1"/>
311 <view type="bitmap" id="tl" color="#color" w="4" h="4" posref="TL BR" texture="r2ed_triggers_little_corner.tga" posparent="button" rot="0"/>
312 <view type="bitmap" id="tr" color="#color" w="4" h="4" posref="TR BL" texture="r2ed_triggers_little_corner.tga" posparent="button" rot="1"/>
313 <view type="bitmap" id="br" color="#color" w="4" h="4" posref="BR TL" texture="r2ed_triggers_little_corner.tga" posparent="button" rot="2"/>
320 <!-- ************************************************************************************************** -->
321 <!-- ************************************ ACTIVITY SEQUENCE EDITOR ************************************ -->
322 <!-- ************************************************************************************************** -->
324 <style style="button_color" type="text_button" button_type="push_button"
325 tx_normal="w_text_button_pushed" tx_pushed="w_text_button_over" tx_over="w_text_button_pushed"
326 global_color_normal="false" global_color_over="false" global_color_pushed="false"
327 text_y="-2" fontsize="10" shadow="true" case_mode="%case_upper" wmargin="8"
328 text_global_color_normal="true" text_global_color_pushed="true" text_global_color_over="true"
329 text_color_normal="255 255 255 128" text_color_pushed="255 255 255 255" text_color_over="255 255 255 255"
330 text_header_color="true" />
332 <template name="window_sequence_template" new_seq="" new_seq_text="" remove_seq="" open_seq_editor=""
333 seq_color="" over_seq_color="" repeat_seq="" right_seq="" left_seq="" on_change="" >
335 <ctrl style="button_ok" id="new_sequence_button" posref="TL TL" x="30" y="-15"
336 text_y="0" onclick_l="lua" params_l="#new_seq" hardtext="#new_seq_text" />
338 <group id="sequence_menu" x="30" y="-40" sizeref="wh" w="-60" h="-90" posparent="parent" posref="TL TL" >
339 <group type="tab" id="sequence_tabs" hide_out_tabs="true" child_resize_w="true"
340 onchange="lua" onchange_params="#on_change" h="24" posref="TL TL" x="0" y="-4" >
343 <view type="bitmap" id="sep_top" active="false" posparent="sequence_tabs" posref="BL TL" sizeparent="parent" sizeref="w" w="0" h="1"
344 scale="true" texture="blank.tga" color="120 120 120 255" />
346 <view type="bitmap" id="sep_bottom" active="false" posparent="parent" posref="BL BL" sizeparent="parent" sizeref="w" w="0" h="1"
347 y="0" x="0" scale="true" texture="blank.tga" color="120 120 120 255" />
349 <view type="bitmap" id="sep_left" active="false" posparent="parent" posref="TL TL" sizeparent="parent" sizeref="h" h="-28" w="1"
350 y="-28" x="0" scale="true" texture="blank.tga" color="120 120 120 255" />
352 <view type="bitmap" id="sep_right" active="false" posparent="parent" posref="TR TR" sizeparent="parent" sizeref="h" h="-28" w="1"
353 y="-28" x="0" scale="true" texture="blank.tga" color="120 120 120 255" />
356 <ctrl type="button" id="left_sequences" active="false" button_type="push_button" posparent="sequence_menu"
357 x="-3" y="-4" posref="TL TR" tx_normal="r2ed_left_sequence.tga" tx_pushed="r2ed_left_sequence.tga"
358 tx_over="r2ed_left_sequence.tga" onclick_l="lua" params_l="#left_seq"
359 color="#seq_color" col_over="#over_seq_color" />
361 <ctrl type="button" id="right_sequences" active="false" button_type="push_button" posparent="sequence_menu"
362 x="3" y="-4" posref="TR TL" tx_normal="r2ed_right_sequence.tga" tx_pushed="r2ed_right_sequence.tga"
363 tx_over="r2ed_right_sequence.tga" onclick_l="lua" params_l="#right_seq"
364 color="#seq_color" col_over="#over_seq_color" />
366 <instance template="r2ed_triggers_button" id="remove_sequence_button" active="false"
367 onclick_l="lua" params_l="#remove_seq" posparent="parent" posref="BL BL" x="10" y="8"
368 icon="r2ed_triggers_trash.tga" icon_over="r2ed_triggers_trash.tga" icon_pushed="r2ed_triggers_trash.tga"
369 color="#seq_color" col_over="#seq_color" col_pushed="#seq_color"/>
371 <instance template="r2ed_triggers_button" id="edit_sequence" active="false"
372 onclick_l="lua" params_l="#open_seq_editor" posparent="parent" posref="BR BR" x="-10" y="8"
373 icon="r2_suspension.tga" icon_over="r2_suspension.tga" icon_pushed="r2_suspension.tga"
374 color="#seq_color" col_over="#seq_color" col_pushed="#seq_color"/>
376 <group id="repeat_group" x="0" y="5" sizeparent="parent" active="false" sizeref="w5" w="40" h="20" posparent="edit_sequence" posref="BR BR" >
377 <instance template="label_toggle_button" id="repeat" posparent="parent"
378 x="0" y="0" posref="BL BL" w="200" hardtext="uiR2EdRepeatSequence" fontsize="12" y_text="-3"
379 params_l="#repeat_seq"/>
385 <group type="container" id="r2ed_activities" title="uiR2EDActivitySequenceEditor" global_color="false" line_at_bottom="false"
386 movable="true" active="false" opened="true" openable="false" resizer="true" header_color="UI:SAVE:WIN:COLORS:R2_ACTIVITIES"
387 on_close="lua" on_close_params="if r2 and r2.Mode == 'Edit' then r2.activities:closeEditor() end" on_deactive="lua" on_deactive_params="if r2 then r2.activities:closeEditor() end"
388 pop_min_w="405" pop_min_h="231" w="420" h="565" pop_max_w="700" pop_max_h="800"
391 <group id="header_opened" x="0" y="0" w="300" h="16" posref="TL TL"
392 group_onclick_r="active_menu"
393 group_params_r="menu=ui:interface:base_menu_with_color"
396 <group id="header_closed" x="0" y="0" w="700" h="16" posref="TL TL"
397 group_onclick_r="active_menu"
398 group_params_r="menu=ui:interface:base_menu_with_color"
401 <group id="content" x="0" y="0" sizeref="wh" w="0" h="0" posref="TL TL" >
402 <instance template="window_sequence_template" new_seq="r2.activities:newSequenceInst()" new_seq_text="New sequence"
403 remove_seq="r2.activities:removeSequenceInst()" seq_color="200 80 80 255" over_seq_color="255 120 120 255"
404 open_seq_editor="r2.activities:openSequenceEditor()"
405 repeat_seq="r2.activities:repeatSequence()" right_seq="r2.activities:rightSequenceUI()" left_seq="r2.activities:leftSequenceUI()"
406 on_change="r2.activities:showSequencesUI()" />
413 <tree node="r2ed_activities">
416 <group type="container" id="r2ed_edit_activity_sequence" active="false" title="uiR2EDActivitySequenceProp" global_color="false" line_at_bottom="false"
417 movable="true" opened="true" openable="false" resizer="true" header_color="UI:SAVE:WIN:COLORS:R2_ACTIVITIES"
418 on_close="lua" on_close_params="" pop_min_w="340" pop_min_h="95" pop_max_w="340" pop_max_h="95" w="340" h="95"
421 <group id="header_opened" x="0" y="0" w="340" h="16" posref="TL TL"
422 group_onclick_r="active_menu"
423 group_params_r="menu=ui:interface:base_menu_with_color"
427 <group id="content" x="0" y="0" sizeref="wh" w="0" h="0" posref="TL TL" >
428 <instance template="back_widget" id="back" x="0" y="-7" sizeref="wh" w="0" h="-7" color="255 150 0 255" texture="r2ed_triggers_gray.tga" />
430 <instance template="h_label_edit_box" id="sequence_name" y="-25" x="15" posparent="parent" posref="TL TL"
431 hardtext="uiR2EdSequenceName" w="290" w_label="105" w_box="185" fontsize="12" max_num_chars="15"
432 params="r2.activities:setSequenceName()" on_focus_lost_params="" />
436 <tree node="r2ed_edit_activity_sequence">
440 <!-- ************************************************************************************************** -->
441 <!-- ******************************************* EDIT ACTIVITY *************************************** -->
442 <!-- ************************************************************************************************** -->
444 <template name="back_widget" posref="TL TL" x="0" y="0" w="0" h="0" id="" posparent="parent" sizeref="wh"
445 keep="true" color="" texture="" >
446 <group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref" >
447 <group id="bg" sizeref="hw" h="0" w="0" />
448 <view type="bitmap" id="back" color="#color" scale="true" posparent="bg" posref="MM MM" sizeref="hw" h="0" w="0" texture="#texture" inherit_gc_alpha="false"/>
453 <!-- horizontal label/combo box template -->
454 <template name="h_label_combo_box_resize" keep="true" active="true" id="" x="0" y="0" w="195"
455 sizeref="w" w_label="" w_combo="" posparent="" posref="" hardtext=""
458 <group id="#id" active="#active" sizeref="#sizeref" x="#x" y="#y" w="#w" h="20" posparent="#posparent" posref="#posref" >
461 <group id="label" w="#w_label" h="20" x="0" y="0" posref="TL TL" posparent="parent" >
462 <view type="text" id="name_text" posref="BL BL" x="0" y="0" color="255 255 255 255"
463 global_color="true" fontsize="12" shadow="true" hardtext="#hardtext" />
467 <group type="combo_box" id="combo_box" sizeref="w" w="#w_combo" h="20" x="#w_label" y="0" posref="TL TL" posparent="parent"
468 linked_to_db="false" on_change="lua" on_change_params="#on_change_params" >
469 <instance template="r2ed_combo_box" />
476 <template name="template_edit_activity" keep="true" sizeref="w" active="false" w="0" h="200" id=""
477 col_pushed="200 120 80 255" >
479 <group id="#id" active="#active" x="0" y="0" sizeref="#sizeref" w="#w" h="#h" posref="TL TL" >
481 <instance template="back_widget" id="back" x="0" y="0" sizeref="wh" w="0" h="0" color="#col_pushed" texture="r2ed_triggers_blank.tga" />
483 <ctrl type="button" button_type="toggle_button" id="select" sizeref="wh" w="0" h="0"
484 onclick_l="lua" params_l="r2.activities:closeElementEditor()" />
486 <group id="activity_name" posparent="parent" posref="TL TL" sizeref="w" x="5" w="0" y="0" h="20" >
487 <view type="text" id="name" posref="BL BL" x="5" y="0" color="255 255 255 255"
488 global_color="true" fontsize="12" shadow="true" hardtext="" />
491 <view type="bitmap" id="sep" posparent="activity_name" posref="BL BL" sizeref="w" w="-20" h="1"
492 x="5" y="-2" scale="true" texture="blank.tga" color="200 200 200 200" />
494 <instance template="template_label_menu_resize" id="activity" sizeref="w" w="-50" h="20" x="18" y="-20" y_text="0"
495 posparent="activity_name" posref="BL TL" w_label="80" w_combo="-80" hardtext="uiR2EdActivity"
496 on_change_params="r2.activities:initActivityMenu()"/>
498 <group id="limit_group" posparent="activity" posref="BL TL" sizeref="w" child_resize_h="true" x="0" w="0" y="-20" h="0" >
500 <instance template="h_label_combo_box_resize" id="time_limit" sizeref="w" h="20" posparent="parent"
501 posref="TL TL" w="0" w_label="80" w_combo="-80" x="0" y="0" hardtext="uiR2EdTimeLimit"
502 on_change_params="r2.activities:setTimeLimit()" />
504 <group id="certain_time" active="false" posparent="time_limit" sizeref="w" posref="BL TL" w="-80" h="20" x="80" y="-5" >
506 <instance template="template_menu_label" id="hours" sizeref="w3" w="-3" h="20" x="0" y="0" y_text="0"
507 posparent="parent" posref="TL TL" w_label="-14" w_combo="7" hardtext="uiR2EdShortHours"
508 on_change_params="r2.activities:initTimeMenu('r2.activities:activityForHours', true)"/>
510 <instance template="template_menu_label" id="minutes" sizeref="wh" w="10" h="0" x="2" y="0" y_text="0"
511 posparent="hours" posref="BR BL" w_label="-14" w_combo="7" hardtext="uiR2EdShortMinutes"
512 on_change_params="r2.activities:initTimeMenu('r2.activities:activityForMinutes', false)"/>
514 <instance template="template_menu_label" id="seconds" sizeref="wh" w="0" h="0" x="5" y="0" y_text="0"
515 posparent="minutes" posref="BR BL" w_label="-14" w_combo="7" hardtext="uiR2EdShortSeconds"
516 on_change_params="r2.activities:initTimeMenu('r2.activities:activityForSeconds', false)"/>
522 <group id="road_count_group" posparent="limit_group" posref="BL TL" sizeref="w" child_resize_h="true" x="0" w="0" y="-20" h="0" tooltip="uiR2EdRoadCountLimitTooltip">
524 <instance template="h_label_combo_box_resize" id="road_count_limit" sizeref="w" h="20" posparent="parent"
525 posref="TL TL" w="0" w_label="80" w_combo="-80" x="0" y="0" hardtext="uiR2EdRoadCountLimit"
526 on_change_params="r2.activities:setRoadCountLimit()" />
528 <group id="certain_count" active="false" posparent="road_count_group" sizeref="w" posref="BL TL" w="-80" h="20" x="80" y="-5" >
530 <instance template="template_menu_label" id="hours" sizeref="w3" w="-3" h="20" x="0" y="0" y_text="0"
531 posparent="parent" posref="TL TL" w_label="-14" w_combo="7" hardtext="uiR2EdShortHours"
532 on_change_params="r2.activities:initRoadCountMenu()"/>
538 <group id="element_manage" active="true" posparent="parent" sizeref="w" w="0" h="20" posref="BL BL" x="0" y="0">
540 <instance template="r2ed_triggers_little_button" id="remove_element" x="1" y="1" posparent="parent" posref="BL BL"
541 onclick_l="lua" params_l="r2.activities:removeElementInst()"
542 icon="r2ed_triggers_little_trash.tga" icon_over="r2ed_triggers_little_trash.tga" icon_pushed="r2ed_triggers_little_trash.tga"
543 color="#col_pushed" col_over="#col_pushed" col_pushed="#col_pushed"/>
551 <group type="menu" id="r2ed_triggers_menu" extends="base_menu" mouse_pos="false">
555 <!-- ************************************************************************************************** -->
556 <!-- ************************************ CHAT SEQUENCE EDITOR ************************************ -->
557 <!-- ************************************************************************************************** -->
559 <group type="container" id="r2ed_dialogs" title="uiR2EDChatSequenceEditor" global_color="false" line_at_bottom="false"
560 movable="true" active="false" opened="true" openable="false" resizer="true" header_color="UI:SAVE:WIN:COLORS:R2_DIALOGS"
561 on_close="lua" on_close_params="if r2 and r2.Mode == 'Edit' then r2.dialogs:closeEditor() end"
562 on_deactive="lua" on_deactive_params="if r2 and r2.Mode == 'Edit' then r2.dialogs:closeEditor() end"
563 on_active="lua" on_active_params="if r2 and r2.Mode == 'Edit' then r2.dialogs:checkDialog() end"
564 pop_min_w="350" pop_min_h="231" pop_max_h="800" w="400" h="565" pop_max_w="700"
566 <group id="header_opened" x="0" y="0" h="16" w="2048" posref="TL TL"
567 group_onclick_r="active_menu"
568 group_params_r="menu=ui:interface:base_menu_with_color"
571 <group id="content" x="0" y="0" sizeref="wh" w="0" h="0" posref="TL TL" >
573 <instance template="template_label_menu" id="dialogMenu" w="250" h="20" x="15" y="-15" y_text="0"
574 posparent="parent" posref="TL TL" w_label="-20" w_combo="40" hardtext="uiR2EDDialogList"
575 on_change_params="r2.dialogs:initDialogsMenu()"/>
577 <instance template="sequence_elements_template" id="sequence_elts" x="0" y="-10" h="-65" posparent="dialogMenu" posref="BL TL"
578 new_elt="r2.dialogs:newElementInst()" new_elt_text="uiR2EdNewChat" elt_order_text="chat order" up_elt="r2.dialogs:upElementInst()"
579 down_elt="r2.dialogs:downElementInst()" max_min_elts="r2.dialogs:maximizeMinimizeElements()"
580 down_up_color="120 170 140 255" over_down_up_color="200 255 200 255"/>
582 <group id="repeat_group" x="15" y="10" sizeparent="parent" active="true" sizeref="w5" w="40" h="20" posparent="parent" posref="BL BL" >
583 <instance template="label_toggle_button" id="repeat" posparent="parent"
584 x="0" y="0" posref="BL BL" w="200" hardtext="Repeat dialog" fontsize="12" y_text="-3"
585 params_l="r2.dialogs:repeatSequence()"/>
593 <tree node="r2ed_dialogs">
597 <group type="container" id="r2ed_edit_chat_sequence" active="false" title="uiR2EDChatSequenceProp" global_color="false" line_at_bottom="false"
598 movable="true" opened="true" openable="false" resizer="true" header_color="UI:SAVE:WIN:COLORS:CHAT_SEQUENCES"
599 on_close="lua" on_close_params="" pop_min_w="300" pop_min_h="100" pop_max_w="300" pop_max_h="100" w="300" h="100"
601 <group id="header_opened" x="0" y="0" w="300" h="16" posref="TL TL"
602 group_onclick_r="active_menu"
603 group_params_r="menu=ui:interface:base_menu_with_color"
606 <group id="content" x="0" y="0" sizeref="wh" w="0" h="0" posref="TL TL" >
607 <instance template="back_widget" id="back" x="0" y="-7" sizeref="wh" w="0" h="-7" color="0 255 0 255" texture="r2ed_triggers_gray.tga" />
609 <instance template="h_label_edit_box" id="sequence_name" y="-25" x="15" posparent="parent" posref="TL TL"
610 hardtext="uiR2EdSequenceName" w="205" w_label="105" w_box="100" fontsize="12" max_num_chars="5"
611 params="r2:setSequenceName('r2ed_chat_sequence', 'r2ed_edit_chat_sequence')"
612 on_focus_lost_params="r2:setSequenceName('r2ed_chat_sequence', 'r2ed_edit_chat_sequence')" />
616 <tree node="r2ed_edit_chat_sequence">
620 <!-- ************************************************************************************************** -->
621 <!-- ******************************************* EDIT CHAT ******************************************* -->
622 <!-- ************************************************************************************************** -->
624 <!-- horizontal label/edit box template/scroll -->
625 <template name="h_label_edit_box_scroll" keep="true" active="true" id="" sizeparent="" sizeref="" h="20" x="0" y="0" posparent="" posref="" hardtext=""
626 w="" w_label="" w_box="" fontsize="12" max_num_chars="100" h_min=""
627 onenter="lua" params="" onchange="lua" onchange_params="" on_focus_lost="lua" on_focus_lost_params="" >
629 <group id="#id" active="#active" sizeparent="#sizeparent" sizeref="#sizeref" y="#y" x="#x" w="#w" h="#h" posparent="#posparent" posref="#posref" >
632 <group id="label" w="#w_label" h="20" x="0" y="0" posref="TL TL" posparent="parent" >
634 <view type="text" id="name_text" posref="BL BL" x="0" y="0" color="255 255 255 255"
635 global_color="true" fontsize="#fontsize" shadow="true" hardtext="#hardtext" />
639 <group id="back_edit_box" posparent="parent" sizeref="w" posref="TL TL" x="#w_label" y="0" h="#h" w="#w_box">
640 <instance template="inner_thin_border_group" />
643 <group id="crop_box_ed" posparent="back_edit_box" posref="TL TL" x="0" y="0" sizeref="wh" w="10" h="0">
645 <group type="edit_box" id="edit_box_group" posparent="parent" posref="TL TL" x="0" y="0" sizeref="w"
646 child_resize_h="true" w="-10" child_resize_hmargin="#h_min" max_sizeparent="crop_box_ed" max_sizeref="h"
647 max_h="0" want_return="false"
648 onenter="#onenter" params="#params" onchange="#onchange" onchange_params="#onchange_params"
649 on_focus_lost="#on_focus_lost" on_focus_lost_params="#on_focus_lost_params"
650 prompt="" enter_loose_focus="true" >
652 <view type="text" id="edit_text" x="4" y="-5" posref="TL TL" multi_line="true"
653 fontsize="12" shadow="true" hardtext="" global_color="false"/>
657 <ctrl style="skin_scroll" id="edit_box_scroll_ed" align="B" target="edit_box_group"
658 posparent="crop_box_ed" posref="TR TR" x="0" y="0" />
664 <template name="template_edit_chat" keep="true" sizeref="w" active="false" w="0" h="315" id=""
665 col_pushed="120 150 140 255" >
667 <group id="#id" active="#active" x="0" y="0" sizeref="#sizeref" w="#w" h="#h" posref="TL TL"
668 group_onclick_l="lua" group_params_l="r2.dialogs:closeElementEditor()"
669 on_deactive="lua" on_deactive_params="r2.dialogs:updateSaysWhat()" >
671 <instance template="back_widget" id="back" x="0" y="0" sizeref="wh" w="0" h="0" color="#col_pushed" texture="r2ed_triggers_blank.tga" />
673 <group id="chat_name" posparent="parent" posref="TL TL" sizeref="w" x="5" w="0" y="0" h="20" >
674 <view type="text" id="name" posref="BL BL" x="5" y="0" color="255 255 255 255"
675 global_color="true" fontsize="12" shadow="true" hardtext="" />
678 <view type="bitmap" id="sep" posparent="chat_name" posref="BL BL" sizeref="w" w="-20" h="1"
679 x="5" y="-2" scale="true" texture="blank.tga" color="200 200 200 200" />
681 <group id="after_how_long" posparent="chat_name" posref="BL TL" sizeref="w" w="-20" h="20" x="17" y="-20" >
683 <instance template="template_label_menu" id="minutes" w="130" h="20" x="0" y="0" y_text="0"
684 posparent="parent" posref="TL TL" w_label="10" w_combo="-20" hardtext="uiR2EdAfterHowLong"
685 on_change_params="r2.dialogs:initTimeMenu('r2.dialogs:chatAfterMinutes', false)"/>
687 <instance template="template_label_menu" id="seconds" w="100" h="20" x="2" y="0" y_text="0"
688 posparent="minutes" posref="BR BL" w_label="-10" w_combo="20" hardtext="uiR2EdShortMinutes"
689 on_change_params="r2.dialogs:initTimeMenu('r2.dialogs:chatAfterSeconds', false)"/>
691 <view type="text" id="seconds_label" x="2" y="0" posparent="seconds" posref="BR BL"
692 color="255 255 255 255" global_color="true" fontsize="12" shadow="true" hardtext="uiR2EdShortSeconds" />
695 <instance template="template_label_menu_resize" id="whoMenu" sizeref="wh" w="-25" h="0" x="0" y="-15" y_text="0"
696 posparent="after_how_long" posref="BL TL" w_label="75" w_combo="-75" hardtext="uiR2EdWho"
697 on_change_params="r2.dialogs:initWhoMenu('r2.dialogs:setWho', false)"/>
699 <instance template="h_label_edit_box_scroll" id="says" sizeref="w" h="100" w="10" y="-15" x="0" posparent="whoMenu" posref="BL TL"
700 hardtext="uiR2EdSaysWhat" w_label="75" w_box="-85" fontsize="12" max_num_chars="1000" h_min="85"
701 multi_line="true" on_focus_lost_params="" />
703 <instance template="template_label_menu_resize" id="toWhoMenu" sizeref="w" w="-10" h="20" x="0" y="-15" y_text="0"
704 posparent="says" posref="BL TL" w_label="75" w_combo="-75" hardtext="uiR2EdToWho"
705 on_change_params="r2.dialogs:initWhoMenu('r2.dialogs:setToWho', true)"/>
707 <instance template="template_label_menu_resize" id="emote" sizeref="w" w="0" h="20" x="0" y="-15" y_text="0"
708 posparent="toWhoMenu" posref="BL TL" w_label="75" w_combo="-75" hardtext="uiR2EdEmote"
709 on_change_params="r2.dialogs:initEmoteMenu()"/>
712 <group id="element_manage" active="true" posparent="parent" sizeref="w" w="0" h="20" posref="BL BL" x="0" y="0">
714 <instance template="r2ed_triggers_little_button" id="remove_element" x="1" y="1" posparent="parent" posref="BL BL"
715 onclick_l="lua" params_l="r2.dialogs:removeElementInst()"
716 icon="r2ed_triggers_little_trash.tga" icon_over="r2ed_triggers_little_trash.tga" icon_pushed="r2ed_triggers_little_trash.tga"
717 color="#col_pushed" col_over="#col_pushed" col_pushed="#col_pushed"/>
722 <group id="break_group" x="-150" y="0" sizeparent="parent" active="true" sizeref="w5" w="10" h="20" posparent="parent" posref="BR BL" >
723 <instance template="label_toggle_button" id="break" posparent="parent"
724 x="1" y="3" posref="BL BL" w="200" hardtext="uiR2EdBreakChat" fontsize="12" y_text="-3"
725 params_l="r2.dialogs:setChatBreak()"/>
731 <!-- *********************** -->
732 <!-- MINI ACTIVITIY VIEW -->
733 <!-- *********************** -->
735 <define id="r2ed_max_num_mini_activities" value="14"/>
737 <!-- mini activity template -->
738 <template name="mini_activity" active="true" id="" x="0" y="0" posref="BL BM" posparent="parent" >
740 <group id="#id" active="#active" x="#x" y="#y" child_resize_h="true" child_resize_w="true"
741 child_resize_wmargin="20" posparent="#posparent" posref="#posref" >
743 <instance template="r2ed_triggers_little_button" id="activity" x="2" y="0" h="50"
744 posparent="parent" posref="TL TL"
745 onclick_l="lua" params_l="r2.miniActivities:openActivity()"
746 onclick_r="lua" params_r=""
747 icon="" icon_over="" icon_pushed=""
748 color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255"/>
750 <view type="text" id="activity_name" active="true" posparent="activity" posref="BR BL"
751 x="4" y="0" color="255 255 255 255" global_color="true" fontsize="12" shadow="true" hardtext="" />
756 <group id="r2ed_mini_activity_view" active="false" posparent="r2ed_contextual_toolbar_new" posref="TL BL" x="0" y="3" child_resize_w="true" child_resize_h="true">
758 <instance template="r2ed_triggers_little_button" id="open_activities" x="0" y="0"
759 posref="TL TL" onclick_l="lua" params_l="r2.activities:openEditor()"
760 icon="r2ed_open_activities.tga" icon_over="r2ed_open_activities.tga" icon_pushed="r2ed_open_activities.tga"
761 color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" />
763 <view type="text" id="no_activity" active="true" posparent="open_activities" posref="BL TL"
764 x="0" y="-2" color="255 255 255 255" global_color="true" fontsize="12" shadow="true" hardtext="" />
766 <group id="mini_activities" align="T" posparent="no_activity" posref="BL TL" child_resize_h="true" child_resize_w="true">
767 <vector template="mini_activity" _size="%r2ed_max_num_mini_activities"
768 _firstpos="TL TL" _nextpos="BL TL" id="$i" active="true"
773 <tree node="r2ed_mini_activity_view">
776 <group type="menu" id="r2ed_chat_sequences_menu" extends="base_menu" mouse_pos="false">