3 <root id="interface" x="0" y="0" w="800" h="600" active="true" />
7 <proc id="proc_reset_r2ed_interface">
8 <action handler="set" params="dblink=UI:SAVE:DAY_COLOR|value=makeRGB(219,254,174)" />
9 <action handler="set" params="dblink=UI:SAVE:NIGHT_COLOR|value=makeRGB(127,190,254)" />
13 <style style="valid_txt_button" type="text_button" button_type="push_button"
14 tx_normal="qh_off" tx_pushed="qh_on" tx_over="qh_off" wmin="80" wmargin="40"
15 global_color_normal="false" global_color_over="false" global_color_pushed="false"
16 color="255 255 255 255" col_over="255 255 255 0" col_pushed="255 255 255 255"
17 text_y="-1" fontsize="13" shadow="true"
18 text_color_normal="222 201 182 255"
19 text_color_pushed="222 201 182 255"
20 text_color_over="255 255 255 255"
21 text_shadow_color_normal="0 0 0 255"
22 text_shadow_color_pushed="0 0 0 255"
23 text_shadow_color_over="0 0 0 255"
24 text_global_color_normal="true"
25 text_global_color_pushed="false"
26 text_global_color_over="false" />
29 <!-- **************************************** -->
30 <!-- * TEMPLATES * -->
31 <!-- **************************************** -->
32 <template name="r2ed_bad_pos_icon" id="bad_pos" keep="true" posref="BL BM" posparent="parent">
33 <group type="in_scene" id="#id" child_resize_w="true" child_resize_h="true" posref="#posref" posparent="#posparent"
37 <view type="bitmap" id="stop" w="32" h="32" posref="TL TL" texture="r2ed_icon_stop.tga"/>
41 <!-- debug button (todo : put in widget.xml) -->
42 <template name="r2ed_command_button" id="command_button" caption="go" ah="lua" ah_params="debugInfo('no ah params defined')" keep="true">
43 <group child_resize_h="true" id="#id" child_resize_w="true" posref="TL TL" active="true">
44 <ctrl style="text_button_16" id="command" active="true" posref="TL TL" onclick_l="#ah" params_l="#ah_params" hardtext="#caption"/>
48 <style style="r2_main_menu_button_style" type="text_button" button_type="push_button"
49 tx_normal="r2_main_menu_normal" tx_pushed="r2_main_menu_pushed" tx_over="r2_main_menu_over"
54 force_text_over="true"
55 global_color_normal="false" global_color_over="false" global_color_pushed="false"
56 text_y="-2" fontsize="14" shadow="true" case_mode="%case_upper"
57 text_color_normal="255 255 255 128" text_color_pushed="255 255 255 255" text_color_over="255 255 255 255" />
59 <!-- entry in file list widget -->
60 <template name="r2ed_filelist_entry" text="unknown" id="" keep="true" params_l="">
61 <group id="#id" child_resize_h="true" sizeref="w" posref="TL TL">
62 <view type="text" id="t" posref="ML ML" global_color="true" fontsize="15" shadow="true" hardtext="#text"/>
63 <ctrl type="button" id="button" button_type="toggle_button" sizeref="wh" posref="TL TL"
69 col_over="255 255 255 127"
70 col_pushed="255 255 255 192"
71 over_when_pushed = "false"
78 <group type="menu" id="r2ed_base_menu_look"
79 options="context_menu_back"
81 color="255 255 255 255"
84 shadow_color="0 0 0 255"
85 shadow_color_over="0 0 0 255"
86 color_over="0 0 0 255"
87 color_grayed="255 255 255 128"
88 shadow_color_grayed="0 0 0 255"
89 highlight_over="255 255 255 128"
95 <!-- ******************************************************************************************************************* -->
96 <!-- * R2ED INTERFACE * -->
97 <!-- ******************************************************************************************************************* -->
100 <template name="r2ed_tool" id="" x="0" y="0" active="true" posref="BL BM" posparent="parent" icon="" icon_over="" icon_pushed="" w="44" h="39" tooltip=""
108 icon_disabled="blank.tga"
109 border_select_tex="r2ed_tool_border_select.tga"
110 corner_select_tex="r2ed_tool_corner_select.tga"
112 tooltip_posref="auto"
114 <group id="#id" active="#active" x="#x" y="#y" posref="#posref" posparent="#posparent"
115 child_resize_w="true" child_resize_h="true"
116 child_resize_wmargin="#offset_x" child_resize_hmargin="#offset_y"
120 <group id="unselected" active="true" child_resize_w="true" child_resize_h="true" posref="BR BR">
121 <view type="bitmap" id="bl" global_color="false" w="8" h="8" posref="BL BL" texture="r2ed_tool_corner.tga" rot="3"/>
122 <view type="bitmap" id="bg" w="#w" h="#h" scale="true" posparent="bl" posref="TR BL" texture="r2ed_tool_bg.tga" rot="3"/>
123 <ctrl type="button" id="button" button_type="push_button" w="#w" h="#h" posref="TR BL" posparent="bl"
125 tx_pushed="#icon_pushed"
128 tooltip_parent="#tooltip_parent"
129 tooltip_posref="#tooltip_posref"
130 on_tooltip="#on_tooltip"
131 on_tooltip_params="#on_tooltip_params"
133 global_color_normal="false"
134 global_color_over="false"
135 global_color_pushed="false"
136 onclick_l="#onclick_l"
138 over_when_pushed = "false"
140 <view type="bitmap" global_color="false" id="bottom" scale="true" posparent="button" posref="BL TL" sizeref="w" w="0" h="8" texture="r2ed_tool_border.tga" rot="2"/>
141 <view type="bitmap" global_color="false" id="top" scale="true" posparent="button" posref="TL BL" sizeref="w" w="0" h="8" texture="r2ed_tool_border.tga" rot="0"/>
142 <view type="bitmap" global_color="false" id="left" scale="true" posparent="button" posref="BL BR" sizeref="h" w="8" h="0" texture="r2ed_tool_border.tga" rot="3"/>
143 <view type="bitmap" global_color="false" id="right" scale="true" posparent="button" posref="BR BL" sizeref="h" w="8" h="0" texture="r2ed_tool_border.tga" rot="1"/>
144 <view type="bitmap" global_color="false" id="tl" w="8" h="8" posref="TL BR" texture="r2ed_tool_corner.tga" posparent="button" rot="0"/>
145 <view type="bitmap" global_color="false" id="tr" w="8" h="8" posref="TR BL" texture="r2ed_tool_corner.tga" posparent="button" rot="1"/>
146 <view type="bitmap" global_color="false" id="br" w="8" h="8" posref="BR TL" texture="r2ed_tool_corner.tga" posparent="button" rot="2"/>
148 <group id="selected" active="false" child_resize_w="true" child_resize_h="true" posref="BR BR">
149 <view type="bitmap" id="bl" global_color="false" w="8" h="8" posref="BL BL" texture="#corner_select_tex" rot="3"/>
150 <view type="bitmap" id="bg" w="#w" h="#h" scale="true" posparent="bl" posref="TR BL" texture="r2ed_tool_bg.tga" rot="3"/>
151 <ctrl type="button" id="button" button_type="push_button" w="#w" h="#h" posref="TR BL" posparent="bl"
153 tx_pushed="#icon_pushed"
156 on_tooltip="#on_tooltip"
157 on_tooltip_params="#on_tooltip_params"
158 tooltip_parent="#tooltip_parent"
159 tooltip_posref="#tooltip_posref"
161 global_color_normal="false"
162 global_color_over="false"
163 global_color_pushed="false"
164 onclick_l="#onclick_l"
166 over_when_pushed = "false"
168 <view type="bitmap" global_color="false" id="bottom" scale="true" posparent="button" posref="BL TL" sizeref="w" h="8" w="0" texture="#border_select_tex" rot="2"/>
169 <view type="bitmap" global_color="false" id="top" scale="true" posparent="button" posref="TL BL" sizeref="w" h="8" w="0" texture="#border_select_tex" rot="0"/>
170 <view type="bitmap" global_color="false" id="left" scale="true" posparent="button" posref="BL BR" sizeref="h" w="8" h="0" texture="#border_select_tex" rot="3"/>
171 <view type="bitmap" global_color="false" id="right" scale="true" posparent="button" posref="BR BL" sizeref="h" w="8" h="0" texture="#border_select_tex" rot="1"/>
172 <view type="bitmap" global_color="false" id="tl" w="8" h="8" posref="TL BR" texture="#corner_select_tex" posparent="button" rot="0"/>
173 <view type="bitmap" global_color="false" id="tr" w="8" h="8" posref="TR BL" texture="#corner_select_tex" posparent="button" rot="1"/>
174 <view type="bitmap" global_color="false" id="br" w="8" h="8" posref="BR TL" texture="#corner_select_tex" posparent="button" rot="2"/>
176 <group id="disabled" active="false" child_resize_w="true" child_resize_h="true" posref="BR BR">
177 <view type="bitmap" id="bl" global_color="false" w="8" h="8" posref="BL BL" texture="r2ed_tool_corner.tga" rot="3"/>
178 <view type="bitmap" id="bg" w="#w" h="#h" scale="true" posparent="bl" posref="TR BL" texture="r2ed_tool_bg.tga" rot="3"/>
179 <ctrl type="button" id="button" button_type="push_button" w="#w" h="#h" posref="TR BL" posparent="bl"
180 tx_normal="#icon_disabled"
181 tx_pushed="#icon_disabled"
182 tx_over="#icon_disabled"
184 on_tooltip="#on_tooltip"
185 on_tooltip_params="#on_tooltip_params"
186 tooltip_parent="#tooltip_parent"
187 tooltip_posref="#tooltip_posref"
189 global_color_normal="false"
190 global_color_over="false"
191 global_color_pushed="false"
192 over_when_pushed = "false"
193 onclick_l="#onclick_l"
196 frozen_half_tone="false"
198 <view type="bitmap" global_color="false" id="bottom" scale="true" posparent="button" posref="BL TL" sizeref="w" h="8" w="0" texture="r2ed_tool_border.tga" rot="2"/>
199 <view type="bitmap" global_color="false" id="top" scale="true" posparent="button" posref="TL BL" sizeref="w" h="8" w="0" texture="r2ed_tool_border.tga" rot="0"/>
200 <view type="bitmap" global_color="false" id="left" scale="true" posparent="button" posref="BL BR" sizeref="h" w="8" h="0" texture="r2ed_tool_border.tga" rot="3"/>
201 <view type="bitmap" global_color="false" id="right" scale="true" posparent="button" posref="BR BL" sizeref="h" w="8" h="0" texture="r2ed_tool_border.tga" rot="1"/>
202 <view type="bitmap" global_color="false" id="tl" w="8" h="8" posref="TL BR" texture="r2ed_tool_corner.tga" posparent="button" rot="0"/>
203 <view type="bitmap" global_color="false" id="tr" w="8" h="8" posref="TR BL" texture="r2ed_tool_corner.tga" posparent="button" rot="1"/>
204 <view type="bitmap" global_color="false" id="br" w="8" h="8" posref="BR TL" texture="r2ed_tool_corner.tga" posparent="button" rot="2"/>
213 <template name="named_r2ed_tool" id="" x="0" y="0" active="true" posref="BL BL" posparent="" icon="" icon_over="" icon_pushed="" w="44" h="39" tooltip=""
216 text_color="255 255 255 255"
220 <group id="#id" active="true" x="#x" y="#y" posref="#posref" posparent="#posparent"
221 child_resize_w="true" child_resize_h="true"
225 <instance template="r2ed_tool" id="tool" posparent="parent" tooltip="#tooltip" onclick_l="#onclick_l" params_l="#params_l" icon="#icon" icon_over="#icon_over" icon_pushed="#icon_pushed" posref="ML ML"/>
226 <view type="text" id="t" posref="MR ML" posparent="tool" x="4" color="#text_color" global_color="true" fontsize="#fontsize" shadow="true" hardtext="#text"/>
231 <!-- ************************************************** -->
232 <!-- * BBOX EDIT * -->
233 <!-- ************************************************** -->
236 <template name = "bbox_slider" id="bbox_slider">
237 <group id="#id" posref="TL TL" h="12" sizeref="w">
238 <view type="bitmap" id="bk" posref="BL BL" scale="true" y="6" sizeref="w" h="2" texture="W_line_hor2.tga" />
239 <ctrl type="scroll" id="slider" posparent="bk" posref="MM MM" x="0" y="-1" sizeref="w" h="8"
240 vertical="false" align="L" tracksize="8"
241 tx_topright="w_scroll_R.tga" tx_middle="w_scroll_M.tga" tx_bottomleft="w_scroll_L.tga"
242 onscroll="lua" params="r2.CustomBBox:updateFromUI()"
248 <group type="container" id="r2ed_bbox_edit" title="uiR2EDBBoxEdit" global_color="false" line_at_bottom="false"
249 movable="true" opened="true" openable="false" resizer="true" header_color="UI:SAVE:WIN:COLORS:R2_EDIT_BBOX"
250 pop_min_w="150" pop_min_h="150" pop_max_w="800" pop_max_h="600"
255 on_active_params="if r2 and r2.Mode == 'Edit' then r2.CustomBBox:updateUI() end"
256 on_close_button="lua"
257 on_close_button_params="runCommand('hideR2EntityBoxes')"
260 <group id="header_closed" x="0" y="0" child_resize_w="true" h="16" posref="TL TL"
261 group_onclick_r="active_menu"
262 group_params_r="menu=ui:interface:base_menu_with_color"
266 <group id="header_opened" x="0" y="0" w="800" h="16" posref="TL TL"
267 group_onclick_r="active_menu"
268 group_params_r="menu=ui:interface:base_menu_with_color"
271 <group id="content" x="0" y="0" sizeref="wh" w="0" h="0" posref="TL TL" >
272 <group id="enclosing" sizeref="wh" w="0" h="0" posref="TL TL">
273 <view type="text" id="no_selected_bbox" posref="MM MM" global_color="true" fontsize="16" shadow="true" hardtext="uiR2DNoSelectedInstance"/>
274 <view type="text" id="no_custom_bbox" posref="MM MM" global_color="true" fontsize="16" shadow="true" hardtext="uiR2DNoCustomBBox"/>
275 <group id="custom_bbox" posref="TL TL" sizeref="w" active="false" child_resize_h="true" child_resize_hmargin="4">
276 <group id="custom_bbox_checkbox" posref="TL TL" child_resize_h="true" y="-4" sizeref="w" child_resize_hmargin="4" child_resize_wmargin="4">
277 <ctrl type="button" id="custom_bbox_enabled" button_type="toggle_button" posref="ML ML" x="2" y="0"
278 tx_normal="w_slot_on.tga" tx_pushed="w_opacity_on.tga" tx_over="w_slot_on.tga"
279 color="255 255 255 255" col_pushed="255 255 255 255" col_over="255 255 255 0"
281 params_l="r2.CustomBBox:updateFromUI()"
283 <view type="text" id="text_custom" posparent="custom_bbox_enabled" posref="MR ML" x="4" y="-3" global_color="true" fontsize="12" shadow="true" hardtext="uiR2EDCustomSelectBBox" auto_clamp="true"/>
285 <group type="table" id="bbox" posref="BL TL" posparent="custom_bbox_checkbox" sizeref="w" width="100%" border="0" bgcolor="0 0 0 127" y="-4"
288 continuous_update="true"
291 <TD width="25%" height="0" align="left" valign="middle" ignore_max_width="true" ignore_min_width="true">
292 <view type="text" id="x_min_text" global_color="true" fontsize="14" shadow="true" hardtext="uiR2EDBBoxXMin" auto_clamp="true"/>
294 <TD height="0" align="left" valign="middle" ignore_max_width="true" ignore_min_width="true">
295 <instance template="bbox_slider" id="x_min"/>
299 <TD width="25%" height="0" align="left" valign="middle" ignore_max_width="true" ignore_min_width="true">
300 <view type="text" id="x_max_text" global_color="true" fontsize="14" shadow="true" hardtext="uiR2EDBBoxXMax" auto_clamp="true"/>
302 <TD height="0" align="left" valign="middle" ignore_max_width="true" ignore_min_width="true">
303 <instance template="bbox_slider" id="x_max"/>
307 <TD width="25%" height="0" align="left" valign="middle" ignore_max_width="true" ignore_min_width="true">
308 <view type="text" id="y_min_text" global_color="true" fontsize="14" shadow="true" hardtext="uiR2EDBBoxYMin" auto_clamp="true"/>
310 <TD height="0" align="left" valign="middle" ignore_max_width="true" ignore_min_width="true">
311 <instance template="bbox_slider" id="y_min"/>
315 <TD width="25%" height="0" align="left" valign="middle" ignore_max_width="true" ignore_min_width="true">
316 <view type="text" id="y_max_text" global_color="true" fontsize="14" shadow="true" hardtext="uiR2EDBBoxYMax" auto_clamp="true"/>
318 <TD height="0" align="left" valign="middle" ignore_max_width="true" ignore_min_width="true">
319 <instance template="bbox_slider" id="y_max"/>
323 <TD width="25%" height="0" align="left" valign="middle" ignore_max_width="true" ignore_min_width="true">
324 <view type="text" id="z_min_text" global_color="true" fontsize="14" shadow="true" hardtext="uiR2EDBBoxZMin" auto_clamp="true"/>
326 <TD height="0" align="left" valign="middle" ignore_max_width="true" ignore_min_width="true">
327 <instance template="bbox_slider" id="z_min"/>
331 <TD width="25%" height="0" align="left" valign="middle" ignore_max_width="true" ignore_min_width="true">
332 <view type="text" id="z_max_text" global_color="true" fontsize="14" shadow="true" hardtext="uiR2EDBBoxZMax" auto_clamp="true"/>
334 <TD height="0" align="left" valign="middle" ignore_max_width="true" ignore_min_width="true">
335 <instance template="bbox_slider" id="z_max"/>
340 <ctrl style="text_button_16" id="save" posparent="bbox" posref="BL TL" x="0" y="-4" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="r2.CustomBBox:save()" hardtext="uiR2EDSave"/>
347 <tree node="r2ed_bbox_edit">
351 <!-- ************************************************** -->
353 <!-- ************************************************** -->
355 <!-- Main toolbar -->
356 <group id="r2ed_toolbar"
357 active="true" x="5" y="-5" posref="TL TL"
358 child_resize_w="true"
359 child_resize_h="true"
361 <instance template="r2ed_tool" id="r2ed_tool_select" tooltip="uimR2EDTooltipSelectMove" onclick_l="r2ed_select_move" posparent="parent" posref="TL TL" x="0" y="0" icon="r2ed_tool_select.tga" icon_over="r2ed_tool_select_over.tga" icon_pushed="r2ed_tool_select_pushed.tga"
363 on_tooltip_params="r2.ToolUI:updateTooltip()"
365 <instance template="r2ed_tool" id="r2ed_tool_rotate" tooltip="uimR2EDTooltipSelectRotate" onclick_l="r2ed_select_rotate" posparent="r2ed_tool_select" posref="TR TL" x="4" y="0" icon="r2ed_tool_can_rotate.tga" icon_over="r2ed_tool_can_rotate_over.tga" icon_pushed="r2ed_tool_can_rotate_pushed.tga"
367 on_tooltip_params="r2.ToolUI:updateTooltip()"
369 <instance template="r2ed_tool" active="false" id="r2ed_tool_undo" tooltip="uimR2EDTooltipUndo" y="0" icon="r2ed_tool_undo.tga" icon_over="r2ed_tool_undo_over.tga" icon_pushed="r2ed_tool_undo_pushed.tga"
370 icon_disabled="r2ed_tool_undo_disabled.tga"
371 posparent="r2ed_tool_rotate" posref="TR TL" x="4"
372 onclick_l="r2ed_undo"
374 on_tooltip_params="r2.ToolUI:updateTooltip()"
376 <instance template="r2ed_tool" active="false" id="r2ed_tool_redo" tooltip="uimR2EDTooltipRedo" icon="r2ed_tool_redo.tga" icon_over="r2ed_tool_redo_over.tga" icon_pushed="r2ed_tool_redo_pushed.tga"
377 icon_disabled="r2ed_tool_redo_disabled.tga"
378 posparent="r2ed_tool_undo" posref="TR TL" x="4"
379 onclick_l="r2ed_redo"
381 on_tooltip_params="r2.ToolUI:updateTooltip()"
383 <instance template="r2ed_tool" active="true" id="r2ed_tool_copy" tooltip="uimR2EDTooltipCopy" posparent="r2ed_tool_redo" posref="TR TL" x="4" y="0" icon="r2ed_tool_copy.tga" icon_over="r2ed_tool_copy_over.tga" icon_pushed="r2ed_tool_copy_pushed.tga"
384 onclick_l="edit_copy"
386 on_tooltip_params="r2.ToolUI:updateTooltip()"
388 <instance template="r2ed_tool" active="true" id="r2ed_tool_paste" tooltip="uimR2EDTooltipPaste" posparent="r2ed_tool_copy" posref="TR TL" x="4" y="0" icon="r2ed_tool_paste.tga" icon_over="r2ed_tool_paste_over.tga" icon_pushed="r2ed_tool_paste_pushed.tga"
389 onclick_l="edit_paste"
391 on_tooltip_params="r2.ToolUI:updateTooltip()"
394 <instance template="r2ed_tool" active="true" id="r2ed_tool_display_mode" tooltip="uiR2EdPropertyToolTip_WorldObject_DisplayMode" posparent="r2ed_tool_paste" posref="TR TL" x="4" y="0" icon="r2ed_tool_prim_display_mode.tga" icon_over="r2ed_tool_prim_display_mode_over.tga" icon_pushed="r2ed_tool_prim_display_mode_pushed.tga"
396 params_l="r2:popDisplayModeMenu()"
398 <instance template="r2ed_tool" active="true" id="r2ed_freeze_bot_objects" tooltip="uiR2EDFreezeBotObjects" posparent="r2ed_tool_display_mode" posref="TR TL" x="4" y="0" icon="r2ed_tool_unfreeze_object.tga" icon_over="r2ed_tool_unfreeze_object_over.tga" icon_pushed="r2ed_tool_unfreeze_object_pushed.tga"
399 onclick_l="r2ed_freeze_unfreeze_botobjects"
402 on_tooltip_params="r2.ToolUI:updateTooltip()"
404 <instance template="r2ed_tool" active="true" id="r2ed_unfreeze_bot_objects" tooltip="uiR2EDUnfreezeBotObjects" posparent="r2ed_freeze_bot_objects" posref="TR TL" x="0" y="0" icon="r2ed_tool_freeze_object.tga" icon_over="r2ed_tool_freeze_object_over.tga" icon_pushed="r2ed_tool_freeze_object_pushed.tga"
405 onclick_l="r2ed_freeze_unfreeze_botobjects"
408 on_tooltip_params="r2.ToolUI:updateTooltip()"
411 <instance template="r2ed_tool" active="true" id="r2ed_tool_teleport" tooltip="uimR2EDTooltipTeleport" posparent="r2ed_unfreeze_bot_objects" posref="TR TL" x="4" y="0" icon="r2ed_tool_teleport.tga" icon_over="r2ed_tool_teleport_over.tga" icon_pushed="r2ed_tool_teleport_pushed.tga"
412 onclick_l="r2ed_teleport"
414 on_tooltip_params="r2.ToolUI:updateTooltip()"
417 <instance template="r2ed_tool" active="true" id="r2ed_tool_start" tooltip="uimR2EDTooltipGoTest" posparent="r2ed_tool_teleport" posref="TR TL" x="4" y="0" icon="r2ed_tool_start.tga" icon_over="r2ed_tool_start_over.tga" icon_pushed="r2ed_tool_start_pushed.tga"
418 onclick_l="r2ed_try_go_test"
420 on_tooltip_params="r2.ToolUI:updateTooltip()"
422 <instance template="r2ed_tool" active="true" id="r2ed_tool_stop" tooltip="uimR2EDTooltipGoEdition" posparent="r2ed_tool_start" posref="TR TL" x="4" y="0" icon="r2ed_tool_stop.tga" icon_over="r2ed_tool_stop_over.tga" icon_pushed="r2ed_tool_stop_pushed.tga"
423 onclick_l="r2ed_stop_test"
425 on_tooltip_params="r2.ToolUI:updateTooltip()"
428 <instance template="r2ed_tool" active="true" id="r2ed_stop_live" tooltip="uimR2EDStopLive" posparent="r2ed_tool_stop" posref="TR TL" x="4" y="0" icon="r2_stop_live.tga" icon_over="r2_stop_live_over.tga" icon_pushed="r2_stop_live_pushed.tga"
429 onclick_l="r2_stop_live"
430 params_l="confirmStopLive=0"
432 on_tooltip_params="r2.ToolUI:updateTooltip()"
435 <instance template="r2ed_tool" active="true" id="r2ed_live" tooltip="uimR2EDMakeCurrentLive" icon="r2_live.tga" icon_over="r2_live_over.tga" icon_pushed="r2_live_pushed.tga"
436 onclick_l="open_scenario_control"
440 posparent="r2ed_stop_live"
441 border_select_tex="r2ed_tool_border_select_g.tga"
442 corner_select_tex="r2ed_tool_corner_select_g.tga"
447 <tree node="r2ed_toolbar">
451 <!-- windows toolbar -->
452 <group id="r2ed_windows_dm_bar"
453 active="true" x="-5" y="-5" posref="TR TR"
454 child_resize_w="true"
455 child_resize_h="true"
457 <instance template="r2ed_tool" active="true" id="r2ed_live" tooltip="uimR2EDUpdateFiltersCharacters" icon="r2_scenario_admin.tga" icon_over="r2_scenario_admin_over.tga" icon_pushed="r2_scenario_admin_pushed.tga"
458 onclick_l="open_scenario_control"
459 params_l="showHide=1"
461 border_select_tex="r2ed_tool_border_select_g.tga"
462 corner_select_tex="r2ed_tool_corner_select_g.tga"
464 <instance template="r2ed_tool" active="true" id="player_control" tooltip="uimR2EDPlayerControl" posparent="r2ed_live" posref="TR TL" x="4" y="0" icon="r2_player_admin.tga" icon_over="r2_player_admin_over.tga" icon_pushed="r2_player_admin_pushed.tga"
465 onclick_l="show_hide"
466 params_l="ring_chars_tracking"
468 on_tooltip_params="r2.ToolUI:updateTooltip()"
469 border_select_tex="r2ed_tool_border_select_g.tga"
470 corner_select_tex="r2ed_tool_corner_select_g.tga"
475 <tree node="r2ed_windows_dm_bar">
479 <!-- because of ui customisation keep r2 buttons in a window for the 'player' modes : owner player & tester player -->
481 <group type="container" id="r2ed_toolbar_window" title="" global_color="false" line_at_bottom="false"
482 group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color"
483 movable="true" opened="true" resizer="false" header_color="UI:SAVE:WIN:COLORS:OPT"
484 pop_min_w="220" pop_min_h="104" pop_max_w="220" pop_max_h="104"
491 on_close_button_params=""
493 openable="false" header_active="false" right_button="false"
496 <group id="header_opened" x="0" y="0" sizeref="w" child_resize_h="true" posref="TL TL" active="true">
499 child_resize_w="true"
500 child_resize_h="true"
501 child_resize_hmargin="0"
504 <group id="enclosing"
506 child_resize_w="true"
507 child_resize_h="true"
509 <instance template="r2ed_tool" w="32" h="32" id="r2ed_anim_dm_mode" tooltip="uiR2EDAnimDMMode" posparent="parent" posref="TL TL" x="0" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" hardtext="DM mode" icon="r2_icon_dm_mode.tga" icon_over="r2_icon_dm_mode_over.tga" icon_pushed="r2_icon_dm_mode_pushed.tga"
510 onclick_l="r2ed_anim_dm_mode"
513 on_tooltip_params="r2.ToolUI:updateTooltip()"
515 <instance template="r2ed_tool" active="true" id="r2ed_stop_live" tooltip="uimR2EDStopLive" posparent="r2ed_anim_dm_mode" posref="TR TL" x="0" y="0" icon="r2_stop_live.tga" icon_over="r2_stop_live_over.tga" icon_pushed="r2_stop_live_pushed.tga"
516 onclick_l="r2_stop_live"
517 params_l="confirmStopLive=0"
520 on_tooltip_params="r2.ToolUI:updateTooltip()"
522 <instance template="r2ed_tool" active="true" id="r2ed_live" tooltip="uimR2EDUpdateFiltersCharacters" posparent="r2ed_stop_live" icon="r2_live.tga" icon_over="r2_live_over.tga" icon_pushed="r2_live_pushed.tga"
523 onclick_l="open_scenario_control"
524 params_l="showHide=1"
525 posref="TR TL" x="4" y="0"
526 border_select_tex="r2ed_tool_border_select_g.tga"
527 corner_select_tex="r2ed_tool_corner_select_g.tga"
529 <instance template="r2ed_tool" active="true" id="player_control" tooltip="uimR2EDPlayerControl" posparent="r2ed_live" posref="TR TL" x="4" y="0" icon="r2_player_admin.tga" icon_over="r2_player_admin_over.tga" icon_pushed="r2_player_admin_pushed.tga"
530 onclick_l="show_hide"
531 params_l="ring_chars_tracking"
534 on_tooltip_params="r2.ToolUI:updateTooltip()"
542 <tree node="r2ed_toolbar_window">
546 <!-- display mode menu -->
548 <group type="menu" id="r2ed_display_mode_menu" extends="r2ed_base_menu_look" mouse_pos="false" posref="TL TL">
549 <action id="reset" name="uiR2EDResetDisplayMode" handler="lua" params="r2:resetDisplayModeForAllObjects()"/>
551 <action id="show" name="uiR2EDShow">
552 <action id="show_all" name="uiR2EDShowAll" handler="lua" params="r2:setDisplayMode('all', 0, 1)"/>
553 <action id="hide_all" name="uiR2EDHideAll" handler="lua" params="r2:setDisplayMode('all', 1)"/>
555 <action id="show_all_roads_regions" name="uiR2EDShowAllRoadRegions" handler="lua" params="r2:setDisplayMode('places', 0, 1)"/>
556 <action id="hide_all_roads_regions" name="uiR2EDHideAllRoadRegions" handler="lua" params="r2:setDisplayMode('places', 1)"/>
558 <action id="show_all_scenery_objects" name="uiR2EDShowAllSceneryObjects" handler="lua" params="r2:setDisplayMode('bot_objects', 0, 1)"/>
559 <action id="hide_all_scenery_objects" name="uiR2EDHideAllSceneryObjects" handler="lua" params="r2:setDisplayMode('bot_objects', 1)"/>
561 <action id="lock" name="uiR2EDLock">
562 <action id="lock_all" name="uiR2EDLockAll" handler="lua" params="r2:setDisplayMode('all', 3)"/>
563 <action id="unlock_all" name="uiR2EDUnlockAll" handler="lua" params="r2:setDisplayMode('all', 0, 3)"/>
565 <action id="lock_all_roads_regions" name="uiR2EDLockAllRoadRegions" handler="lua" params="r2:setDisplayMode('places', 3)"/>
566 <action id="unlock_all_roads_regions" name="uiR2EDUnlockAllRoadRegions" handler="lua" params="r2:setDisplayMode('places', 0, 3)"/>
568 <action id="lock_all_scenery_objects" name="uiR2EDLockAllSceneryObjects" handler="lua" params="r2:setDisplayMode('bot_objects', 3)"/>
569 <action id="unlock_all_scenery_objects" name="uiR2EDUnlockAllSceneryObjects" handler="lua" params="r2:setDisplayMode('bot_objects', 0, 3)"/>
571 <action id="freeze" name="uiR2EDFreeze">
572 <action id="freeze_all" name="uiR2EDFreezeAll" handler="lua" params="r2:setDisplayMode('all', 2)"/>
573 <action id="unfreeze_all" name="uiR2EDUnfreezeAll" handler="lua" params="r2:setDisplayMode('all', 0, 2)"/>
575 <action id="freeze_all_roads_regions" name="uiR2EDFreezeAllRoadRegions" handler="lua" params="r2:setDisplayMode('places', 2)"/>
576 <action id="unfreeze_all_roads_regions" name="uiR2EDUnfreezeAllRoadRegions" handler="lua" params="r2:setDisplayMode('places', 0, 2)"/>
578 <action id="freeze_all_scenery_objects" name="uiR2EDFreezeAllSceneryObjects" handler="lua" params="r2:setDisplayMode('bot_objects', 2)"/>
579 <action id="unfreeze_all_scenery_objects" name="uiR2EDUnfreezeAllSceneryObjects" handler="lua" params="r2:setDisplayMode('bot_objects', 0, 2)"/>
584 <!-- primitive display mode -->
585 <group type="menu" id="r2ed_primitive_display" extends="r2ed_base_menu_look" mouse_pos="false" posref="TL TL">
586 <action id="freeze_all" checkable="true" name="uiR2EDFreezeAll" handler="lua" params="r2:primDisplayFreezeAll()"/>
587 <action id="unfreeze_all" checkable="true" name="uiR2EDUnfreezeAll" handler="lua" params="r2:primDisplayUnfreezeAll()"/>
589 <action id="hide_all" checkable="true" name="uiR2EDHideAll" handler="lua" params="r2:primDisplayHideAll()"/>
590 <action id="show_contextual" checkable="true" name="uiR2EDShowContextual" handler="lua" params="r2:primDisplayShowContextual()"/>
591 <action id="show_all" checkable="true" name="uiR2EDShowAll" handler="lua" params="r2:primDisplayShowAll()"/>
597 <!-- windows toolbar -->
598 <group id="r2ed_windows_bar"
599 active="false" x="-5" y="-5" posref="TR TR"
600 child_resize_w="true"
601 child_resize_h="true"
603 <instance template="r2ed_tool" active="true" id="r2ed_tool_palette_window" tooltip="uimR2EDTooltipPaletteWindow" icon="r2ed_tool_palette_window.tga" icon_over="r2ed_tool_palette_window_over.tga" icon_pushed="r2ed_tool_palette_window_pushed.tga"
604 onclick_l="show_hide"
605 params_l="r2ed_palette"
607 on_tooltip_params="r2.ToolUI:updateTooltip()"
609 border_select_tex="r2ed_tool_border_select_g.tga"
610 corner_select_tex="r2ed_tool_corner_select_g.tga"
612 <instance template="r2ed_tool" active="true" id="r2ed_tool_scenario_window" tooltip="uimR2EDTooltipScenarioWindow" posparent="r2ed_tool_palette_window" posref="TR TL" x="4" y="0" icon="r2ed_tool_scenario_window.tga" icon_over="r2ed_tool_scenario_window_over.tga" icon_pushed="r2ed_tool_scenario_window_pushed.tga"
613 onclick_l="show_hide"
614 params_l="r2ed_scenario"
616 on_tooltip_params="r2.ToolUI:updateTooltip()"
617 border_select_tex="r2ed_tool_border_select_g.tga"
618 corner_select_tex="r2ed_tool_corner_select_g.tga"
620 <instance template="r2ed_tool" active="true" id="r2ed_tool_map_window" tooltip="uimR2EDTooltipMapWindow" posparent="r2ed_tool_scenario_window" posref="TR TL" x="4" y="0" icon="r2ed_tool_map_window.tga" icon_over="r2ed_tool_map_window_over.tga" icon_pushed="r2ed_tool_map_window_pushed.tga"
621 onclick_l="show_hide"
624 on_tooltip_params="r2.ToolUI:updateTooltip()"
625 border_select_tex="r2ed_tool_border_select_g.tga"
626 corner_select_tex="r2ed_tool_corner_select_g.tga"
630 <tree node="r2ed_windows_bar">
634 <group id="r2ed_tool_context_help" posref="BL TL" y="-8" posparent="r2ed_toolbar"
635 child_resize_h="true" w="0" active="true" savable="false">
636 <view type="text" id="t" posref="ML ML" global_color="false" fontsize="15" shadow="true" hardtext="toto" active="true"/>
639 <tree node="r2ed_tool_context_help">
643 <group id="r2ed_max_visible_entity_count_exceeded" posref="BL TL" y="-8" posparent="r2ed_tool_context_help"
644 child_resize_h="true" w="0" active="false" savable="false">
645 <view type="text" id="t" posref="ML ML" global_color="false" fontsize="15" color="255 0 0 255" shadow="true" hardtext="uiR2EDMaxVisibleEntityCountExceeded" active="true"/>
648 <tree node="r2ed_max_visible_entity_count_exceeded">
654 <!-- bottom left decoration -->
655 <group id="r2ed_main_bl"
656 active="true" x="-4" y="-2" posref="BL BL"
657 child_resize_w="true"
658 child_resize_h="true"
660 <view type="bitmap" id="bg" posref="BL BL" w="40" h="33" texture="r2_main_bl.tga" color="255 255 255 255" global_color="false"/>
663 <tree node="r2ed_main_bl">
668 <!-- A the choose your scenario for starting animation-->
669 <group id="r2ed_animation_loading"
670 active="true" x="-4" y="-2" posref="BL BL"
672 child_resize_w="true"
673 child_resize_h="true"
674 overlappable = "false"
676 <view type="bitmap" id="bg" posref="BL BL" w="0" h="0" texture="r2_main_bl.tga" color="255 255 255 255" global_color="false" sizeref="wh" scale="true"/>
679 <tree node="r2ed_animation_loading">
685 <!-- A the wait for the animator to start the scenario-->
686 <group id="r2ed_animation_waiting"
687 active="true" x="-4" y="-2" posref="BL BL"
689 child_resize_w="true"
690 child_resize_h="true"
691 overlappable = "false"
693 <view type="bitmap" id="bg" posref="BL BL" w="0" h="0" texture="r2_icon_test_mode.tga" color="255 255 255 255" global_color="false" sizeref="wh" scale="true"/>
696 <tree node="r2ed_animation_waiting">
702 <!-- Contextual toolbar -->
704 <group id="r2ed_contextual_toolbar"
705 active="false" x="16" y="16" posref="BL BL"
706 child_resize_w="true"
707 child_resize_h="true"
709 <group type="list" id="buttons" addelt="R" align="T" child_resize_h="true" child_resize_w="true">
711 <!-- filled by code -->
716 <tree node="r2ed_contextual_toolbar">
721 <!-- windows on / off + tmp debug stuffs -->
723 <group id="r2ed_windowbar"
724 active="true" x="0" y="0" posref="TL TL"
725 child_resize_w="true"
726 child_resize_h="true"
728 <ctrl style="text_button_16" id="palette" posref="TL TL" x="0" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="r2:switchPaletteWindow()" hardtext="uiR2EDPaletteWindow"/>
729 <ctrl style="text_button_16" id="scenario" posref="TR TL" x="4" posparent="palette" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="r2:switchScenarioWindow()" hardtext="uiR2EDScenarioWindow"/>
730 <ctrl style="text_button_16" id="properties" posref="TR TL" x="4" posparent="scenario" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="r2:switchPropertiesWindow()" hardtext="uiR2EDPropertiesWindow"/>
731 <view type="bitmap" id="bl" x="4" w="1" h="16" posref="TR TL" posparent="properties" texture="blank.tga" scale="true"/>
732 <ctrl style="text_button_16" id="debug_console" posref="TR TL" x="4" posparent="bl" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="r2:switchDebugWindow()" hardtext="uiR2EDDebugConsoleWindow"/>
733 <view type="bitmap" id="bl2" x="4" w="1" h="16" posref="TR TL" posparent="debug_console" texture="blank.tga" scale="true"/>
734 <ctrl style="text_button_16" id="show_hide_prims" posref="TR TL" x="4" posparent="bl2" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="r2.Config.PrimDisplayEnabled = not r2.Config.PrimDisplayEnabled" hardtext="uiR2EDShowHidePrims"/>
735 <ctrl style="text_button_16" id="cust_bbox" posparent="show_hide_prims" posref="TR TL" x="4" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="r2:switchCustomBBoxWindow()" hardtext="uiR2EDCustomBBox"/>
740 <tree node="r2ed_windowbar">
744 <!-- tmp : for debug -->
745 <group id="r2ed_testbar"
746 active="true" x="4" y="4" posref="BL BL"
747 child_resize_w="true"
748 child_resize_wmargin="8"
749 child_resize_h="true"
751 <!-- toggle dm mode / test mode -->
752 <instance template="r2ed_tool" w="32" h="32" id="r2ed_anim_test_mode" tooltip="uiR2EDAnimTestMode" posref="TL TL" x="0" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" hardtext="test mode" icon="r2_icon_test_mode.tga" icon_over="r2_icon_test_mode_over.tga" icon_pushed="r2_icon_test_mode_pushed.tga"
754 params_l="runAH(nil, 'r2ed_anim_test_mode', '')"
756 <instance template="r2ed_tool" w="32" h="32" id="r2ed_anim_dm_mode" tooltip="uiR2EDAnimDMMode" posref="TL TL" x="0" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" hardtext="DM mode" icon="r2_icon_dm_mode.tga" icon_over="r2_icon_dm_mode_over.tga" icon_pushed="r2_icon_dm_mode_pushed.tga"
758 params_l="runAH(nil, 'r2ed_anim_dm_mode', '')"
763 <instance template="r2ed_tool" w="32" h="32" id="r2ed_anim_acts" tooltip="uiR2EDAnimActs" posref="TL TL" x="0" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="r2.ui.AnimActs:popMenu()" hardtext="act2" icon="r2_icon_acts.tga" icon_over="r2_icon_acts_over.tga" icon_pushed="r2_icon_acts_pushed.tga"/>
764 <instance template="r2ed_tool" w="32" h="32" id="r2ed_anim_triggers" tooltip="uiR2EDAnimTriggers" posref="TL TL" x="0" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="r2.ui.AnimUserTriggers:popMenu()" hardtext="act2" icon="r2_icon_animation_triggers.tga" icon_over="r2_icon_animation_triggers_over.tga" icon_pushed="r2_icon_animation_triggers_pushed.tga"/>
765 <instance template="r2ed_tool" w="32" h="32" id="r2ed_anim_speak_as" tooltip="uiR2EDAnimSpeakAs" posref="TL TL" x="0" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="r2:dssTarget('TALK_AS')" hardtext="speak as" icon="r2_icon_speak_as.tga" icon_over="r2_icon_speak_as_over.tga" icon_pushed="r2_icon_speak_as_pushed.tga"/>
766 <instance template="r2ed_tool" w="32" h="32" id="r2ed_anim_stop_speak" tooltip="uiR2EDAnimStopSpeak" posref="TL TL" x="0" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="r2:dssTarget('STOP_TALK')" hardtext="stop speak" icon="r2_icon_stop_speak.tga" icon_over="r2_icon_stop_speak_over.tga" icon_pushed="r2_icon_stop_speak_pushed.tga"/>
767 <!-- entities control -->
768 <instance template="r2ed_tool" w="32" h="32" id="r2ed_anim_control" tooltip="uiR2EDAnimControl" posref="TL TL" x="0" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="r2:dssTarget('CONTROL')" hardtext="control as" icon="r2_icon_possess.tga" icon_over="r2_icon_possess_over.tga" icon_pushed="r2_icon_possess_pushed.tga"/>
769 <instance template="r2ed_tool" w="32" h="32" id="r2ed_anim_stop_control" tooltip="uiR2EDAnimStopControl" posref="TL TL" x="0" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="r2:dssTarget('STOP_CONTROL')" hardtext="stop control" icon="r2_icon_stop_possess.tga" icon_over="r2_icon_stop_possess_over.tga" icon_pushed="r2_icon_stop_possess_pushed.tga"/>
771 <instance template="r2ed_tool" w="32" h="32" id="r2ed_anim_add_hp" tooltip="uiR2EDAnimAddHP" posref="TL TL" x="0" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="r2:dssTarget('ADD_HP')" hardtext="add hp" icon="r2_icon_add_hp.tga" icon_over="r2_icon_add_hp_over.tga" icon_pushed="r2_icon_add_hp_pushed.tga"/>
772 <instance template="r2ed_tool" w="32" h="32" id="r2ed_anim_grp_heal" tooltip="uiR2EDAnimGrpHeal" posref="TL TL" x="0" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="r2:dssTarget('GRP_HEAL')" hardtext="heal group" icon="r2_icon_add_hp.tga" icon_over="r2_icon_add_hp_over.tga" icon_pushed="r2_icon_add_hp_pushed.tga"/>
774 <instance template="r2ed_tool" w="32" h="32" id="r2ed_anim_kill" tooltip="uiR2EDAnimKill" posref="TL TL" x="0" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="r2:dssTarget('KILL_NPC')" hardtext="kill" icon="r2_toolbar_kill.tga" icon_over="r2_toolbar_kill_over.tga" icon_pushed="r2_toolbar_kill_pushed.tga"/>
775 <instance template="r2ed_tool" w="32" h="32" id="r2ed_anim_grp_kill" tooltip="uiR2EDAnimGrpKill" posref="TL TL" x="0" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="r2:dssTarget('GRP_KILL')" hardtext="kill group" icon="r2_toolbar_kill.tga" icon_over="r2_toolbar_kill_over.tga" icon_pushed="r2_toolbar_kill_pushed.tga"/>
778 <instance template="r2ed_tool" w="32" h="32" id="r2ed_anim_despawn" tooltip="uiR2EDAnimDespawn" posref="TL TL" x="0" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="r2:dssTarget('DESPAWN_NPC')" hardtext="despawn" icon="r2_icon_despawn.tga" icon_over="r2_icon_despawn_over.tga" icon_pushed="r2_icon_despawn_pushed.tga"/>
780 <!-- weather control -->
781 <instance template="r2ed_tool" w="32" h="32" id="r2ed_anim_weather" tooltip="uiR2EDChangeWeather" posref="TL TL" x="0" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="r2:changeWeatherDialog()" hardtext="weather" icon="r2_icon_weather.tga" icon_over="r2_icon_weather_over.tga" icon_pushed="r2_icon_weather_pushed.tga"/>
784 <instance template="r2ed_tool" w="32" h="32" id="r2ed_anim_dm_gift" tooltip="uiR2EDDMGift" posref="TL TL" x="0" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="r2.DMGift:begin()" hardtext="weather" icon="r2_icon_animation_give.tga" icon_over="r2_icon_animation_give_over.tga" icon_pushed="r2_icon_animation_give_pushed.tga"/>
788 <tree node="r2ed_testbar">
792 <!-- Template : a single controlled entity, with the button to stop controlling it -->
793 <template name="controlled_entity" posref="BL BL" posparent="parent">
794 <group id="#id" child_resize_h="true" child_resize_w="true" posref="#posref" posparent="#posparent">
795 <ctrl type="button" id="b" button_type="push_button" posref="ML ML"
796 tx_normal="r2_icon_possess_small.tga"
797 tx_pushed="r2_icon_possess_small_pushed.tga"
798 tx_over="r2_icon_possess_small_over.tga"
802 global_color_normal="false"
803 global_color_over="false"
804 global_color_pushed="false"
806 params_l="debugInfo('implement me')"
807 over_when_pushed = "false"
809 <view type="text_id" id="t" x="2" y="0" posref="MR ML" posparent="b" fontsize="10" textid="#db_entry" />
811 <view type="text" id="t" x="2" y="0" posref="MR ML" posparent="b" fontsize="10" hardtext="test test test" />
816 <!-- List of entities that are being possessed / talking -->
817 <group id="dm_controlled_entities" x="8" y="54" child_resize_w="true" child_resize_wmargin="8" child_resize_h="true" child_resize_hmargin="8" active="false">
818 <instance template="box_widget" id="box" posref="TL TL" sizeref="wh" w="0" h="0" />
819 <group id="inside" child_resize_w="true" child_resize_h="true" x="4" y="4">
820 <vector template="controlled_entity" _size="%r2_max_num_dm_controlled_entities" _firstpos="BL BL" _nextpos="TL BL" id="b$i" db_entry="UI:VARIABLES:R2_DM_CONTROLLED:$i:TEXT_ID"/>
824 <tree node="dm_controlled_entities">
829 <!-- menu for the acts list at animation time -->
830 <group type="menu" id="r2ed_anim_acts_menu" extends="r2ed_base_menu_look" mouse_pos="false" case_mode="0">
831 <!-- filled by code -->
834 <!-- menu for the triggers list at animation time -->
835 <group type="menu" id="r2ed_anim_triggers_menu" extends="r2ed_base_menu_look" mouse_pos="false" case_mode="0">
836 <!-- filled by code -->
840 <group id="r2ed_current_session"
841 active="false" x="140" y="-4" posref="TL TL"
842 child_resize_w="true"
843 child_resize_h="true"
845 <view type="text" id="current_session" global_color="false" fontsize="20" shadow="true"/>
849 <tree node="r2ed_current_session">
856 <group id="r2ed_uploading_bar"
857 active="false" y="200" x="0" posref="MM MM"
858 child_resize_w="true"
859 child_resize_h="true"
861 <view type="text" id="uploading_bar" global_color="false" hardtext="" fontsize="20" shadow="true"/>
865 <tree node="r2ed_uploading_bar">
869 <!-- Admin toolbar -->
870 <group id="r2ed_toolbar_admin"
871 active="false" x="-8" y="8" posref="BR BR"
872 child_resize_w="true"
873 child_resize_h="true"
876 <instance template="r2ed_tool" id="r2ed_tool_go_test" tooltip="uimR2EDTooltipGoTest" onclick_l="r2ed_go_test" params_l="" posparent="parent"
877 posref="TL TL" x="0" y="0"
878 icon="r2ed_go_test.tga" icon_over="r2ed_go_test_over.tga" icon_pushed="r2ed_go_test_pushed.tga"/>-->
879 <instance template="r2ed_tool" id="r2ed_tool_go_edition" tooltip="uimR2EDTooltipGoEdition" onclick_l="r2ed_go_test" params_l="" posparent="parent"
880 posref="TL TL" x="0" y="0"
881 icon="r2ed_go_edition.tga" icon_over="r2ed_go_edition_over.tga" icon_pushed="r2ed_go_edition_pushed.tga"/>
884 <tree node="r2ed_toolbar_admin">
891 <!-- ************************************************** -->
893 <!-- ************************************************** -->
896 <style style="tab_button_palette" type="tab_button" button_type="radio_button"
900 tx_normal="r2_tab_wide_normal" tx_pushed="r2_tab_wide_pushed" tx_over="r2_tab_wide_over"
901 global_color_normal="true" global_color_over="true" global_color_pushed="true"
902 color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255"
903 text_y="-2" fontsize="10" shadow="true" case_mode="%case_upper" wmargin="8"
904 text_color_normal="255 255 255 128" text_color_pushed="255 255 255 255" text_color_over="255 255 255 255"
905 text_global_color_normal="true"
906 text_global_color_pushed="false"
907 text_global_color_over="true"
911 <group type="container" id="r2ed_palette" title="uiR2EDPalette" global_color="false" line_at_bottom="false"
912 movable="true" active="true" opened="true" openable="false" resizer="true" header_color="UI:SAVE:WIN:COLORS:R2_PALETTE"
913 pop_min_w="150" pop_min_h="150" pop_max_w="800" pop_max_h="600"
916 on_active="lua" on_active_params="if (r2 and r2.Mode == 'Edit') then r2.ToolUI:updateToggleWindowButtons() end"
917 on_deactive="lua" on_deactive_params="if (r2 and r2.Mode == 'Edit') then r2.ToolUI:updateToggleWindowButtons() end"
919 <group id="header_closed" x="0" y="0" child_resize_w="true" h="16" posref="TL TL"
920 group_onclick_r="active_menu"
921 group_params_r="menu=ui:interface:base_menu_with_color"
925 <group id="header_opened" x="0" y="0" w="430" h="16" posref="TL TL"
926 group_onclick_r="active_menu"
927 group_params_r="menu=ui:interface:base_menu_with_color"
933 <group id="content" x="0" y="0" sizeref="wh" w="0" h="0" posref="TL TL" >
934 <group type="tab" id="palette_tabs" child_resize_w="true" h="24" posref="TL TL" x="0" y="-4" >
936 <ctrl style="tab_button_palette" id="tab0" x="0" posref="TL TL" group="sbtree_entities" hardtext="uiR2EDTabEntities" tooltip="" onclick_r="" params_r="" onclick_l="" params_l=""/>
937 <view type="bitmap" global_color="false" texture="r2_palette_entities.tga" id="tab0_bm" posparent="tab0" posref="TL TL" w="24" h="24" x="4" y="-2 " color="255 255 255 255" />
939 <ctrl style="tab_button_palette" id="tab2" posparent="tab0" group="sbtree_objects" hardtext="" tooltip="" onclick_r="" params_r="" onclick_l="" params_l=""/>
940 <view type="bitmap" global_color="false" texture="r2_palette_objets.tga" scale="true" id="tab2_bm" posparent="tab2" posref="TL TL" w="24" h="24" x="4" y="-2 " color="255 255 255 255" />
942 <ctrl style="tab_button_palette" id="tab1" posparent="tab2" group="feature_tree_panel" hardtext="uiR2EDTabFeatures" tooltip="" onclick_r="" params_r="" onclick_l="" params_l=""/>
943 <view type="bitmap" global_color="false" texture="r2_palette_components.tga" id="tab1_bm" posparent="tab1" posref="TL TL" w="24" h="24" x="4" y="-2 " color="255 255 255 255" />
945 <ctrl style="tab_button_palette" id="tab3" posparent="tab1" group="sbtree_geo" hardtext="uiR2EDTabGeo" tooltip="" onclick_r="" params_r="" onclick_l="" params_l=""/>
946 <view type="bitmap" global_color="false" texture="r2_palette_zones.tga" id="tab3_bm" posparent="tab3" posref="TL TL" w="24" h="24" x="4" y="-2 " color="255 255 255 255" />
948 <ctrl style="tab_button_palette" id="tab4" posparent="tab3" group="debug_panel" hardtext="uiR2EDTabDebug" tooltip="" onclick_r="" params_r="" onclick_l="" params_l=""/>
949 <view type="bitmap" global_color="false" texture="ICO_Magic.tga" id="tab4_bm" posparent="tab4" posref="TL TL" w="24" h="24" x="4" y="-2 " color="255 255 255 255" />
951 <view type="bitmap" id="sep" posparent="palette_tabs" posref="BL TL" sizeparent="parent" sizeref="w" w="0" h="1" scale="true" texture="blank.tga" color="166 166 166 255" />
953 <!-- group of entity instances -->
954 <group id="sbtree_entities" posref="TL TL" sizeref="wh" x="0" w="-14" y="-32" h="-32" >
955 <group type="table" id="entity_selection" posref="TL TL" sizeref="w" width="100%" y="-4"
958 continuous_update="true"
961 <TD width="50%" height="0" align="left" valign="middle" ignore_max_width="true" ignore_min_width="true">
962 <view type="text" id="ecosystem_text" global_color="true" fontsize="14" shadow="true" hardtext="uiR2EDEcosystem" auto_clamp="true"/>
964 <TD width="50%" height="0" align="left" valign="middle" ignore_max_width="true" ignore_min_width="true">
965 <view type="text" id="level_text" global_color="true" fontsize="14" shadow="true" hardtext="uiR2EDLevel" auto_clamp="true"/>
969 <TD width="50%" height="0" align="left" valign="middle" ignore_max_width="true" ignore_min_width="true">
970 <group type="combo_box" id="ecosystem" sizeref="w" w="-4" x="0" y="-2" child_resize_h="true" child_resize_hmargin="10" linked_to_db="false" posref="BL BL"
971 on_change="lua" on_change_params="r2:setupPaletteAccessibleContent()">
972 <instance template="combo_box_def1" />
974 <combo_text name="uiR2EDEcosystemAll"/>
976 <combo_text name="uiR2EDEcosystemDesert"/>
977 <combo_text name="uiR2EDEcosystemForest"/>
978 <combo_text name="uiR2EDEcosystemJungle"/>
979 <combo_text name="uiR2EDEcosystemLacustre"/>
980 <combo_text name="uiR2EDEcosystemPrimeRoots"/>
981 <combo_text name="uiR2EDEcosystemGoo"/>
984 <TD width="50%" height="0" align="left" valign="middle" ignore_max_width="true" ignore_min_width="true">
985 <group type="combo_box" id="level" sizeref="w" w="-4" x="0" y="-2" child_resize_h="true" child_resize_hmargin="10" linked_to_db="false" posref="BL BL"
986 on_change="lua" on_change_params="r2:setupPaletteAccessibleContent()">
987 <instance template="combo_box_def1" />
989 <combo_text name="uiR2EDLevelsAll"/>
991 <combo_text name="1-50"/>
992 <combo_text name="51-100"/>
993 <combo_text name="101-150"/>
994 <combo_text name="151-200"/>
995 <combo_text name="201-250"/>
1000 <group id="entity_enclosing" sizeref="wh" posref="TL TL" y="0" h="0">
1001 <group id="tree_list" type="tree" posref="TL TL" x="14" y="0" col_over="255 255 255 48" col_select="255 255 255 80"
1002 max_sizeparent="parent" max_sizeref="wh" max_w="-10" max_h="0">
1004 <ctrl style="skin_scroll" id="scroll_bar" align="T" target="tree_list" />
1008 <!-- ********************************************************************** -->
1009 <!-- ********************************************************************** -->
1010 <group id="feature_tree_panel" posref="TL TL" sizeref="wh" x="0" w="-14" y="-32" h="-32" >
1011 <group id="user_component_buttons" active="false" posref="BL BL" x="0" y="0" sizeref="w" child_resize_h="true" child_resize_hmargin="4">
1012 <ctrl style="text_button_16" frozen="false" id="load" posref="TL TL" x="1" y="-3" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="r2_core.UserComponentManager:loadUserComponentFile()" hardtext="uiR2EDExportLoad"/>
1013 <ctrl style="text_button_16" frozen="false" id="unload" posref="TR TL" x="2" y="0" posparent="load" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="r2_core.UserComponentManager:unloadUserComponent()" hardtext="uiR2EDExportUnload"/>
1016 <group id="feature_enclosing" sizeref="wh" w="0" h="-6" x="0" y="-6" posref="TL TL">
1017 <group id="tree_list" type="tree" posref="TL TL" x="14" y="0" col_over="255 255 255 48" col_select="255 255 255 80"
1018 max_sizeparent="parent" max_sizeref="wh" max_w="-10" max_h="0">
1020 <ctrl style="skin_scroll" id="scroll_bar" align="T" target="tree_list" />
1024 <!-- ********************************************************************** -->
1025 <!-- ********************************************************************** -->
1026 <group id="sbtree_objects" posref="TL TL" sizeref="wh" x="0" w="-14" y="-32" h="-32" >
1029 <group id="bot_enclosing" sizeref="wh" posref="TL TL" y="0" h="0">
1030 <group id="tree_list_objects" type="tree" posref="TL TL" x="14" y="0" col_over="255 255 255 48" col_select="255 255 255 80"
1031 max_sizeparent="parent" max_sizeref="wh" max_w="-20" max_h="-22">
1033 <ctrl style="skin_scroll" id="scroll_bar" align="T" target="tree_list_objects" y="22"/>
1036 <ctrl type="button" id="draw_array" button_type="toggle_button" posref="BL BL" x="-1" y="2"
1037 tx_normal="w_slot_on.tga" tx_pushed="w_opacity_on.tga" tx_over="w_slot_on.tga"
1038 color="255 255 255 255" col_pushed="255 255 255 255" col_over="255 255 255 0"
1039 onclick_l="r2ed_toggle_draw_array"
1040 tooltip="uiR2EDDrawArrayTooltip"
1043 <view type="text" id="draw_array_text" posref="MR ML" x="4" y="-2" color="255 255 255 255"
1044 global_color="true" fontsize="12" shadow="true" hardtext="uiR2EDDrawArray" posparent="draw_array"/>
1046 <group id="separator" posref="TL BL" posparent="draw_array" sizeparent="parent" sizeref="w" w="0" h="8" x="0" y="-2" >
1047 <view type="bitmap" id="sep_lef" posref="TL TL" texture="Skin_Sep_L.tga" inherit_gc_alpha="false" />
1048 <view type="bitmap" id="sep_mid" posref="MM MM" scale="true" sizeref="w" w="-16" h="4" texture="Skin_Sep_M.tga" inherit_gc_alpha="false" />
1049 <view type="bitmap" id="sep_rig" posref="TR TR" texture="Skin_Sep_R.tga" inherit_gc_alpha="false" />
1053 <!-- ********************************************************************** -->
1054 <!-- ********************************************************************** -->
1055 <group id="sbtree_geo" posref="TL TL" sizeref="wh" x="0" w="0" y="-8" h="0" >
1056 <!-- list of geo features -->
1057 <group id="geo_features" sizeref="wh" w="-16" h="-35" posref="TL TL" y="-24" x="0">
1059 <group id="black" posref="TL TL" y="-24" sizeref="hw" x="12" w="-12" h="-4" inherit_gc_alpha="true"/>
1062 <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true"/>
1064 <group id="tb_enclosing" sizeref="wh" w="-16" h="0" x="16" y="0" posref="TL TL">
1065 <instance template="inner_thin_border" inherit_gc_alpha="true"/>
1067 <group id="enclosing" sizeref="wh" w="-10" h="-10" x="5" y="-5" posref="TL TL">
1068 <group id="geo_feature_list"
1069 active="true" x="16" y="0" posref="TL TL"
1071 child_resize_h="true"
1075 <instance template="named_r2ed_tool" id="r2ed_tool_draw_road" tooltip="uiR2EDtooltipDrawRoad"
1076 onclick_l="lua" posparent="parent" posref="TL TL" x="0" y="0" icon="r2ed_tool_draw_road.tga" icon_over="r2ed_tool_draw_road_over.tga" icon_pushed="r2ed_tool_draw_road_pushed.tga" text="uiR2EDtooltipDrawRoad"
1077 params_l="r2:createRoad()"
1079 <instance template="named_r2ed_tool" id="r2ed_tool_draw_region" tooltip="uiR2EDtooltipDrawRegion"
1080 onclick_l="lua" posparent="r2ed_tool_draw_road" posref="BL TL" x="0" y="-4" icon="r2ed_tool_draw_region.tga" icon_over="r2ed_tool_draw_region_over.tga" icon_pushed="r2ed_tool_draw_region_pushed.tga" text="uiR2EDtooltipDrawRegion"
1081 params_l="r2:createRegion()"
1084 <instance template="named_r2ed_tool" id="r2ed_tool_rotate" tooltip="uimR2EDTooltipSelectRotate" onclick_l="r2ed_select_rotate" posparent="r2ed_tool_select" posref="BL TL" x="0" y="-8" icon="r2ed_tool_can_rotate.tga" icon_over="r2ed_tool_can_rotate_over.tga" icon_pushed="r2ed_tool_can_rotate_pushed.tga" text="uiR2EDtooltipDrawRoad"/>
1085 <instance template="named_r2ed_tool" id="r2ed_tool_undo" tooltip="uimR2EDTooltipUndo" posparent="r2ed_tool_rotate" posref="BL TL" x="0" y="-8" icon="r2ed_tool_undo.tga" icon_over="r2ed_tool_undo_over.tga" icon_pushed="r2ed_tool_undo_pushed.tga" text="uiR2EDtooltipDrawRoad"/>
1086 <instance template="named_r2ed_tool" id="r2ed_tool_redo" tooltip="uimR2EDTooltipRedo" posparent="r2ed_tool_undo" posref="BL TL" x="0" y="-8" icon="r2ed_tool_redo.tga" icon_over="r2ed_tool_redo_over.tga" icon_pushed="r2ed_tool_redo_over.tga" text="uiR2EDtooltipDrawRoad"/>
1089 <ctrl style="skin_scroll" id="scroll_bar" align="B" target="geo_feature_list" />
1094 <group id="sbtree_features" posref="TL TL" sizeref="wh" x="0" w="-14" y="-8" h="-4" active="false">
1095 <!-- list of features -->
1096 <group id="features" sizeref="wh" w="-16" h="-35" posref="TL TL" y="-24" x="0">
1098 <group id="black" posref="TL TL" y="-24" sizeref="hw" x="12" w="-12" h="-4" inherit_gc_alpha="true"/>
1101 <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true"/>
1103 <group id="tb_enclosing" sizeref="wh" w="-16" h="0" x="16" y="0" posref="TL TL">
1104 <instance template="inner_thin_border" inherit_gc_alpha="true"/>
1106 <group id="enclosing" sizeref="wh" w="-10" h="-10" x="5" y="-5" posref="TL TL">
1107 <group id="feature_list"
1108 active="true" x="16" y="0" posref="TL TL"
1110 child_resize_h="true"
1115 <instance template="named_r2ed_tool" id="r2ed_create_dialog" tooltip="uiR2EDCreateDialog"
1116 onclick_l="lua" posparent="parent" posref="TL TL" x="0" y="0"
1117 icon="r2ed_create_dialog.tga" icon_over="r2ed_create_dialog_over.tga" icon_pushed="r2ed_create_dialog_pushed.tga"
1119 params_l="r2.Features['ActivitySequence'].Components.ChatSequence:createProtected()"
1121 <!--<instance template="named_r2ed_tool" id="r2ed_create_feature_man_hunt" tooltip="uiR2EdTooltipCreateFeatureManHunt"
1122 onclick_l="lua" posparent="r2ed_create_dialog" posref="BL TL" x="0" y="-4" icon="r2ed_feature_timer.tga" icon_over="r2ed_feature_timer_over.tga" icon_pushed="r2ed_feature_timer_pushed.tga" text="uiR2EdCreateFeatureManHunt"
1123 params_l="r2.Features['ManHuntFeature'].Components.ManHunt:createProtected()"
1125 <instance template="named_r2ed_tool" id="r2ed_create_feature_ambush" tooltip="uiR2EdTooltipCreateFeatureAmbush"
1126 onclick_l="lua" posparent="r2ed_create_feature_man_hunt" posref="BL TL" x="0" y="-4" icon="r2ed_feature_timer.tga" icon_over="r2ed_feature_timer_over.tga" icon_pushed="r2ed_feature_timer_pushed.tga" text="uiR2EdCreateFeatureAmbush"
1127 params_l="r2.Features['Ambush'].Components.Ambush:createProtected()"
1129 <instance template="named_r2ed_tool" id="r2ed_create_feature_timed_spawner" tooltip="uiR2EdTooltipCreateFeatureTimedSpawner"
1130 onclick_l="lua" posparent="r2ed_create_feature_ambush" posref="BL TL" x="0" y="-4" icon="r2ed_feature_timer.tga" icon_over="r2ed_feature_timer_over.tga" icon_pushed="r2ed_feature_timer_pushed.tga" text="uiR2EdCreateFeatureTimedSpawner"
1131 params_l="r2.Features['TimedSpawner'].Components.TimedSpawner:createProtected()"
1133 <instance template="named_r2ed_tool" id="r2ed_create_feature_timer" tooltip="uiR2EdTooltipCreateFeatureTimer"
1134 onclick_l="lua" posparent="r2ed_create_dialog" posref="BL TL" x="0" y="-4" icon="r2ed_feature_timer.tga" icon_over="r2ed_feature_timer_over.tga" icon_pushed="r2ed_feature_timer_pushed.tga" text="uiR2EdTooltipCreateFeatureTimer"
1135 params_l="r2.Features['TimerFeature'].Components.Timer:createProtected()"
1137 <instance template="named_r2ed_tool" id="r2ed_create_feature_zone_trigger" tooltip="uiR2EdTooltipCreateFeatureZoneTrigger"
1138 onclick_l="lua" posparent="r2ed_create_feature_timer" posref="BL TL" x="0" y="-4"
1139 icon="r2ed_tool_draw_region.tga" icon_over="r2ed_tool_draw_region_over.tga" icon_pushed="r2ed_tool_draw_region_pushed.tga"
1140 text="uiR2EdZoneTrigger"
1141 params_l="r2.Features['ZoneTrigger'].Components.ZoneTrigger:createProtected()"
1143 <instance template="named_r2ed_tool" id="r2ed_create_user_trigger" tooltip="uiR2EdUserTrigger"
1144 onclick_l="lua" posparent="r2ed_create_feature_zone_trigger" posref="BL TL" x="0" y="-4"
1145 icon="r2ed_create_dialog.tga" icon_over="r2ed_create_dialog_over.tga" icon_pushed="r2ed_create_dialog_pushed.tga"
1146 text="uiR2EdUserTrigger"
1147 params_l="r2.Features.UserTriggerFeature.Components.UserTrigger:createProtected()"
1149 <instance template="named_r2ed_tool" id="r2ed_create_feature_request_item" tooltip="uiR2EDtooltipCreateRequestItem"
1150 onclick_l="lua" posparent="r2ed_create_user_trigger" posref="BL TL" x="0" y="-4" icon="r2ed_feature_fauna.tga" icon_over="r2ed_feature_fauna_over.tga" icon_pushed="r2ed_feature_fauna_pushed.tga" text="uiR2EdRequestItem"
1151 params_l="r2.Features['RequestItemFeature'].Components.RequestItem.create()"
1153 <instance template="named_r2ed_tool" id="r2ed_create_feature_give_item" tooltip="uiR2EDtooltipCreateGiveItem"
1154 onclick_l="lua" posparent="r2ed_create_feature_request_item" posref="BL TL" x="0" y="-4" icon="r2ed_feature_fauna.tga" icon_over="r2ed_feature_fauna_over.tga" icon_pushed="r2ed_feature_fauna_pushed.tga" text="uiR2EdGiveItem"
1155 params_l="r2.Features['GiveItemFeature'].Components.GiveItem.create()"
1157 <instance template="named_r2ed_tool" id="r2ed_create_feature_talk_to" tooltip="uiR2EDtooltipCreateTalkTo"
1158 onclick_l="lua" posparent="r2ed_create_feature_give_item" posref="BL TL" x="0" y="-4" icon="r2ed_feature_fauna.tga" icon_over="r2ed_feature_fauna_over.tga" icon_pushed="r2ed_feature_fauna_pushed.tga" text="uiR2EdTalkTo"
1159 params_l="r2.Features['TalkToFeature'].Components.TalkTo.create()"
1161 <instance template="named_r2ed_tool" id="r2ed_create_easter" tooltip="uiR2EdEasterEgg"
1162 onclick_l="lua" posparent="r2ed_create_feature_talk_to" posref="BL TL" x="0" y="-4"
1163 icon="r2ed_create_dialog.tga" icon_over="r2ed_create_dialog_over.tga" icon_pushed="r2ed_create_dialog_pushed.tga"
1164 text="uiR2EdEasterEgg"
1165 params_l="r2.Features.EasterEggFeature.Components.EasterEgg:createProtected()"
1167 <instance template="named_r2ed_tool" id="r2ed_create_feature_boss_spawner" tooltip="uiR2EDtooltipCreateFeatureBossSpawner"
1168 onclick_l="lua" posparent="r2ed_create_easter" posref="BL TL" x="0" y="-4" icon="r2ed_feature_fauna.tga" icon_over="r2ed_feature_fauna_over.tga" icon_pushed="r2ed_feature_fauna_pushed.tga" text="uiR2EDtooltipCreateFeatureBossSpawner"
1169 params_l="r2.Features['BossSpawnerFeature'].Components.BossSpawner:createProtected()"
1171 <instance template="named_r2ed_tool" id="r2ed_create_feature_loot_spawner" tooltip="uiR2EdTooltipCreateFeatureLootSpawner"
1172 onclick_l="lua" posparent="r2ed_create_feature_boss_spawner" posref="BL TL" x="0" y="-4" icon="r2ed_feature_loot_spawner.tga" icon_over="r2ed_feature_loot_spawner_over.tga" icon_pushed="r2ed_feature_loot_spawner_pushed.tga" text="uiR2EdTooltipCreateFeatureLootSpawner"
1173 params_l="r2.Features['LootSpawnerFeature'].Components.LootSpawner:createProtected()"
1175 <instance template="named_r2ed_tool" id="r2ed_create_feature_bandit_camp" tooltip="uiR2EDtooltipCreateFeatureBanditCamp"
1176 onclick_l="lua" posparent="r2ed_create_feature_loot_spawner" posref="BL TL" x="0" y="-4" icon="r2ed_feature_bandit_camp.tga" icon_over="r2ed_feature_bandit_camp_over.tga" icon_pushed="r2ed_feature_bandit_camp_pushed.tga" text="uiR2EDtooltipCreateFeatureBanditCamp"
1177 params_l="r2.Features['BanditCampFeature'].Components.BanditCamp:createProtected()"
1179 <instance template="named_r2ed_tool" id="r2ed_create_feature_fauna" tooltip="uiR2EDtooltipCreateFeatureFauna"
1180 onclick_l="lua" posparent="r2ed_create_feature_bandit_camp" posref="BL TL" x="0" y="-4" icon="r2ed_feature_fauna.tga" icon_over="r2ed_feature_fauna_over.tga" icon_pushed="r2ed_feature_fauna_pushed.tga" text="uiR2EDtooltipCreateFeatureFauna"
1181 params_l="r2.Features['FaunaFeature'].Components.Fauna:createProtected()"
1184 <instance template="named_r2ed_tool" id="r2ed_create_feature_time_trigger" tooltip="uiR2EdTooltipCreateFeatureTimeTrigger"
1185 onclick_l="lua" posparent="r2ed_create_feature_timer" posref="BL TL" x="0" y="-4" icon="r2ed_feature_bandit_camp.tga" icon_over="r2ed_feature_bandit_camp_over.tga" icon_pushed="r2ed_feature_bandit_camp_pushed.tga" text="uiR2EdTooltipCreateFeatureTimeTrigger"
1186 params_l="r2.Features['TimeTriggerFeature'].create()"
1193 <!--<instance template="named_r2ed_tool" id="r2ed_create_feature_time_trigger" tooltip="uiR2EdTooltipCreateFeatureTimeTrigger"
1194 onclick_l="lua" posparent="r2ed_create_feature_timer" posref="BL TL" x="0" y="-4" icon="r2ed_feature_bandit_camp.tga" icon_over="r2ed_feature_bandit_camp_over.tga" icon_pushed="r2ed_feature_bandit_camp_pushed.tga" text="uiR2EdTooltipCreateFeatureTimeTrigger"
1195 params_l="r2.Features['TimeTriggerFeature'].create()"
1197 <instance template="named_r2ed_tool" id="r2ed_create_feature_kitins_lair" tooltip="uiR2EDtooltipCreateFeatureKitinsLair"
1198 onclick_l="lua" posparent="r2ed_create_feature_fauna" posref="BL TL" x="0" y="-4" icon="r2ed_feature_kitins_lair.tga" icon_over="r2ed_feature_kitins_lair_over.tga" icon_pushed="r2ed_feature_kitins_lair_pushed.tga" text="uiR2EDtooltipCreateFeatureKitinsLair"
1199 params_l="debugInfo('kitins lair')"
1204 <ctrl style="skin_scroll" id="scroll_bar" align="B" target="feature_list" />
1209 <group id="debug_panel" posref="TL TL" sizeref="wh" x="0" w="-14" y="-32" h="-32" active="false">
1210 <group id="button_enclosing"
1211 active="true" x="16" y="0" posref="TL TL"
1213 child_resize_h="true"
1217 <instance template="label_toggle_button" id="nevrax_scenario" posparent="parent"
1218 x="3" y="-5" posref="TL TL" w="200" hardtext="uiR2EDNevraxScenario" fontsize="12" y_text="-5" params_l="r2.ScenarioWindow:nevraxScenario()" tooltip="uiR2EDNevraxScenarioTooltip"/>
1219 <instance template="label_toggle_button" id="trial_allowed_scenario" posparent="nevrax_scenario"
1220 posref="BL TL" y="-4" w="200" hardtext="uiR2EDTrialAllowedScenario" fontsize="12" y_text="-5" params_l="r2.ScenarioWindow:trialAllowed()" tooltip="uiR2EDTrialAllowedScenarioTooltip" />
1222 <group id="mission_tag" x="0" y="-5" w="200" sizeref="w" h="20" posref="BL TL" posparent="trial_allowed_scenario" tooltip="uiR2EDScenarioMissionTagTooltip">
1224 <group id="mission_tag_label" h="20" w="120" x="0" y="0" posref="TL TL" posparent="parent" >
1225 <view type="text" id="type_label_text" posref="BL BL" x="0" y="0" color="255 255 255 255"
1226 global_color="true" fontsize="12" shadow="true" hardtext="uiR2EDScenarioMissionTag" />
1228 <instance template="edit_box_widget" id="mission_tag_eb" posref="MR ML" x="0" posparent="mission_tag_label" w="200"
1230 negative_filter = '"{}[]'
1232 params="r2.ScenarioWindow:onScenarioMissionTagChanged()"
1234 on_focus_lost_params="r2.ScenarioWindow:onScenarioMissionTagChanged()"
1235 reset_focus_on_hide="true"
1241 <ctrl style="text_button_16" id="reset_ed" posparent="mission_tag" posref="BL TL" y="-4" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="if r2 and r2.acts then r2.acts.deleteOldScenario=true end runCommand('resetEditor')" hardtext="reset editor"/>
1242 <ctrl style="text_button_16" id="reset_ed_and_reload_ui" posparent="reset_ed" posref="BL TL" y="-4" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="if r2 and r2.acts then r2.acts.deleteOldScenario=true end runCommand('resetEditorAndReloadUI')" hardtext="reset editor and reload ui"/>
1243 <ctrl style="text_button_16" id="reload_core" posparent="reset_ed_and_reload_ui" posref="BL TL" y="-4" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="r2.doFile('r2_core.lua')" hardtext="reload r2_core.lua"/>
1244 <ctrl style="text_button_16" id="reset_display" posparent="reload_core" posref="BL TL" y="-4" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="r2.resetDisplayInfo()" hardtext="reset display infos"/>
1245 <ctrl style="text_button_16" id="inspect_r2" posparent="reset_display" posref="BL TL" y="-4" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="inspect(r2)" hardtext="inspect r2"/>
1247 <ctrl style="skin_scroll" id="scroll_bar" align="B" target="button_enclosing" />
1259 <!-- ************************************************ -->
1260 <!-- * CONNECTION MSGS * -->
1261 <!-- ************************************************ -->
1262 <group type="container" id="r2ed_connect" w="300" title="uiR2EDConnexion" global_color="false" line_at_bottom="false"
1263 movable="true" opened="true" openable="false" resizer="true" header_color="UI:SAVE:WIN:COLORS:R2_CONNECT"
1264 pop_min_w="300" pop_min_h="150" pop_max_w="300" pop_max_h="150"
1265 header_active="false"
1267 <group id="content" x="0" y="0" sizeref="wh" w="0" h="0" posref="TL TL" >
1268 <view type="text" id="connexionMsg" posref="MM MM" global_color="true" fontsize="20" shadow="true"/>
1272 <!-- ************************************************ -->
1273 <!-- * PROPERTY WINDOW WHEN UNSELECTED * -->
1274 <!-- ************************************************ -->
1275 <group type="container" id="r2ed_property_sheet_no_selection" w="150" title="uiR2EDProperties" global_color="false" line_at_bottom="false"
1276 movable="true" opened="true" openable="false" resizer="true" header_color="UI:SAVE:WIN:COLORS:R2_PROP_WINDOW"
1277 pop_min_w="150" pop_min_h="32" pop_max_w="800" pop_max_h="600"
1279 on_alpha_settings_changed="lua"
1280 on_alpha_settings_changed_params="if r2 and r2.onPropertySheetAlphaSettingsChanged then r2:onPropertySheetAlphaSettingsChanged() end"
1282 on_active_params="if r2 then r2:restoreContAlphaSettings('R2_PROP_SHEET') end"
1283 on_deactive="lua" on_deactive_params="if r2 and r2.Mode == 'Edit' then r2.PropertyWindowVisible = false end"
1286 <group id="header_closed" x="0" y="0" child_resize_w="true" h="16" posref="TL TL"
1287 group_onclick_r="active_menu"
1288 group_params_r="menu=ui:interface:base_menu_with_color"
1292 <group id="header_opened" x="0" y="0" w="430" h="16" posref="TL TL"
1293 group_onclick_r="active_menu"
1294 group_params_r="menu=ui:interface:base_menu_with_color"
1297 <group id="content" x="0" y="0" sizeref="wh" w="0" h="0" posref="TL TL" >
1298 <view type="text" id="t" posref="MM MM" global_color="true" fontsize="16" shadow="true" hardtext="uiR2DNoSelectedInstance"/>
1302 <!-- ************************************************************************** -->
1303 <!-- * 'NO PROPERTIES' WINDOW WHEN OBJECT HAS NO EDITABLE PORPERTIES * -->
1304 <!-- ************************************************************************** -->
1305 <group type="container" id="r2ed_property_sheet_no_properties" w="150" title="uiR2EDProperties" global_color="false" line_at_bottom="false"
1306 movable="true" opened="true" openable="false" resizer="true" header_color="UI:SAVE:WIN:COLORS:R2_PROP_WINDOW"
1307 pop_min_w="150" pop_min_h="32" pop_max_w="800" pop_max_h="600"
1309 on_alpha_settings_changed="lua"
1310 on_alpha_settings_changed_params="if r2 and r2.onPropertySheetAlphaSettingsChanged then r2:onPropertySheetAlphaSettingsChanged() end"
1312 on_active_params="if r2 then r2:restoreContAlphaSettings('R2_PROP_SHEET') end"
1313 on_deactive="lua" on_deactive_params="if r2 and r2.Mode == 'Edit' then r2.PropertyWindowVisible = false end"
1316 <group id="header_closed" x="0" y="0" child_resize_w="true" h="16" posref="TL TL"
1317 group_onclick_r="active_menu"
1318 group_params_r="menu=ui:interface:base_menu_with_color"
1322 <group id="header_opened" x="0" y="0" w="430" h="16" posref="TL TL"
1323 group_onclick_r="active_menu"
1324 group_params_r="menu=ui:interface:base_menu_with_color"
1327 <group id="content" x="0" y="0" sizeref="wh" w="0" h="0" posref="TL TL" >
1328 <view type="text" id="t" posref="MM MM" global_color="true" fontsize="16" shadow="true" hardtext="uiR2DNoProperties"/>
1333 <!-- ********************************** -->
1334 <!-- * TMP : table test * -->
1335 <!-- ********************************** -->
1336 <group type="container" id="r2ed_table_test" w="150" title="uiR2EDTableTest" global_color="false" line_at_bottom="false"
1337 movable="true" opened="true" openable="false" resizer="true" header_color="UI:SAVE:WIN:COLORS:OPT"
1338 pop_min_w="150" pop_min_h="150" pop_max_w="800" pop_max_h="600"
1341 <group id="content" x="0" y="0" sizeref="wh" w="0" h="0" posref="TL TL" >
1342 <group id="enclosing" sizeref="wh" w="-16" h="0" posref="TL TL">
1343 <group type="table" id="my_table" posref="TL TL" sizeref="w" width="100%" border="2" bgcolor="0 255 0 255" y="-4"
1346 continuous_update="true"
1350 <TD width="30%" bgcolor="0 0 0 127" height="30" align="center" valign="middle">
1351 <view type="text" id="mon_text" global_color="true" fontsize="20" shadow="true" hardtext="cell 1 cell 1 cell 1 cell 1"
1355 <TD bgcolor="255 0 0 127" height="30" align="center" valign="middle">
1356 <view type="text" id="mon_text" global_color="true" fontsize="20" shadow="true" hardtext="cell 2"/>
1360 <TD width="30%" bgcolor="0 0 0 192" height="30" align="center" valign="middle">
1361 <view type="text" id="mon_text" global_color="true" fontsize="20" shadow="true" hardtext="cell 3"/>
1363 <TD bgcolor="0 0 255 192" height="30" align="center" valign="middle">
1364 <view type="text" id="mon_text" global_color="true" fontsize="20" shadow="true" hardtext="cell 4"/>
1369 <TD width="100%" bgcolor="255 0 0 127" height="30">
1370 <view type="text" posref="TL TL" global_color="true" fontsize="20" shadow="true" hardtext="cell 2"/>
1379 <tree node="r2ed_table_test">
1382 <!-- ********************************** -->
1383 <!-- * TMP : edit box test * -->
1384 <!-- ********************************** -->
1385 <group type="container" id="r2ed_editbox_test" w="150" title="uiR2EDTableTest" global_color="false" line_at_bottom="false"
1386 movable="true" opened="true" openable="false" resizer="true" header_color="UI:SAVE:WIN:COLORS:OPT"
1387 pop_min_w="150" pop_min_h="150" pop_max_w="800" pop_max_h="600"
1390 <group id="content" x="0" y="0" sizeref="wh" w="0" h="0" posref="TL TL" >
1391 <group id="enclosing" sizeref="wh" w="-16" h="0" posref="TL TL">
1392 <instance template="edit_box_widget" text_y="-1" posref="TL TL" sizeref="w" w="-8" fontsize="14" x="0" reset_focus_on_hide="true"
1393 negative_filter = '"{}[]'
1394 child_resize_hmargin="4"
1399 prompt="" enter_loose_focus="true"
1400 color="255 255 255 255"
1407 max_num_chars = "1024"
1413 <tree node="r2ed_editbox_test">
1416 <!-- ********************************** -->
1417 <!-- * TMP : inspect window * -->
1418 <!-- ********************************** -->
1421 <root id="interface" x="0" y="0" w="800" h="600" active="true" />
1422 <group type="container" id="lua_inspector" title="uiLuaInspector" global_color="false" line_at_bottom="false"
1423 movable="true" opened="true" openable="false" resizer="true" header_color="UI:SAVE:WIN:COLORS:R2_LUA_INSPECTOR"
1424 pop_min_w="150" pop_min_h="150" pop_max_w="800" pop_max_h="2000"
1429 <group id="header_closed" x="0" y="0" child_resize_w="true" h="16" posref="TL TL"
1430 group_onclick_r="active_menu"
1431 group_params_r="menu=ui:interface:base_menu_with_color"
1435 <group id="header_opened" x="0" y="0" w="430" h="16" posref="TL TL"
1436 group_onclick_r="active_menu"
1437 group_params_r="menu=ui:interface:base_menu_with_color"
1440 <group id="content" x="0" y="0" sizeref="wh" w="0" h="0" posref="TL TL" >
1441 <group id="inspector_options" sizeref="w" child_resize_h="true" posref="TL TL" x="0" y="-6">
1442 <ctrl style="text_button_16" id="refresh" posref="ML ML" x="0" y="0" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="refreshLuaInspector()" hardtext="uiR2EDRefresh"/>
1443 <ctrl type="button" id="auto_refresh_button" button_type="toggle_button" posparent="refresh" posref="MR ML" x="4" y="0"
1444 tx_normal="w_slot_on.tga" tx_pushed="w_opacity_on.tga" tx_over="w_slot_on.tga"
1445 color="255 255 255 255" col_pushed="255 255 255 255" col_over="255 255 255 0"
1449 <view type="text" id="auto_refresh_text" posparent="auto_refresh_button" posref="MR ML" x="4" y="-3" global_color="true" fontsize="12" shadow="true" hardtext="uiR2EDAutoRefresh"/>
1451 <group id="sbtree" posref="TL TL" sizeref="wh" x="0" w="-14" y="-30" h="-20" >
1452 <!-- group of entity instances -->
1453 <group id="tree_list" type="tree" posref="TL TL" x="14" y="0" col_over="255 255 255 48" col_select="255 255 255 80"
1454 max_sizeparent="parent" max_sizeref="wh" max_w="-10" max_h="0">
1457 <ctrl style='skin_scroll' id='scroll_bar' align='T' target='tree_list' />
1462 <tree node="lua_inspector">
1467 <!-- ************************************************ -->
1469 <!-- ************************************************ -->
1471 <!-- entity menus -->
1474 on_active="" on_active_params=""
1475 options="context_menu_back"
1477 color="255 255 255 255"
1480 shadow_color="0 0 0 0"
1481 shadow_color_over="0 0 0 0"
1482 color_over="0 0 0 255"
1483 color_grayed="255 255 255 128"
1484 shadow_color_grayed="0 0 0 0"
1485 highlight_over="255 255 255 128"
1490 color="255 255 255 255"
1493 shadow_color="0 0 0 0"
1494 shadow_color_over="0 0 0 0"
1495 color_over="0 0 0 255"
1496 color_grayed="255 255 255 128"
1497 shadow_color_grayed="0 0 0 0"
1498 highlight_over="255 255 255 128"
1501 <!-- icon inside a menu -->
1502 <template name="r2_menu_button" id="but" bitmap="brick_default.tga" keep="true" size="24">
1503 <group id="#id" posref="TL TL" child_resize_h="true" child_resize_w="true">
1504 <view type="bitmap" id="bm" scale="true" w="#size" h="#size" texture="#bitmap" global_color="false"/>
1509 <!-- name of key for a menu entry -->
1510 <template name="r2_keyname" keep="true" id="" hardtext="">
1511 <group id="#id" posref="TL TL" child_resize_h="true" child_resize_w="true">
1512 <view type="text" id="t" posref="TL TL" global_color="false" fontsize="12" shadow="true" hardtext="#hardtext"/>
1520 <group type="menu" id="r2ed_main_menu" extends="r2ed_base_menu_look" mouse_pos="false">
1521 <action id="debug_console" name="uiR2EDDebugConsoleWindow" handler="lua" params="r2:switchDebugWindow()" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=ICO_Magic.tga" usergroup_r="r2_keyname" usergroup_params_r="id=debug_console_key"/>
1522 <action id="cust_bbox" name="uiR2EDCustomBBox" handler="lua" params="r2:switchCustomBBoxWindow()" usergroup_r="r2_keyname" usergroup_params_r="cust_bbox_key" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=ICO_Magic.tga" />
1523 <action id="go_test" name="uimR2EDTooltipGoTest" handler="lua" params="r2:tryGoTest()" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_go_test_small.tga" usergroup_r="r2_keyname" usergroup_params_r="id=go_test_key"/>
1525 <action id="new_scenario" name="uiR2EDNewScenario" handler="lua" params="r2.acts:openScenarioActEditor(true)" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_new_scenario_small.tga"/>
1526 <action id="load_scenario" name="uiR2EDLoadScenario" handler="lua" params="UnitTest.testLoadScenarioUi()" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_load_small.tga"/>
1527 <action id="save_scenario" name="uiR2EDSaveScenario" handler="lua" params="UnitTest.testSaveScenarioUi()" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_save_small.tga"/>
1530 <action id="import_user_component" name="uiR2EDImportUserComponent" handler="lua" params="r2.UserComponentsManager:importUserComponentUi()" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_load_small.tga"/>
1531 <action id="create_user_component" name="uiR2EDCreateUserComponent" handler="lua" params="r2.UserComponentsManager:createUserComponentUi()" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_save_small.tga"/>
1534 <action id="map" name="uiR2EDMap" handler="lua" params="r2:switchMapWindow()" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_map_small.tga" usergroup_r="r2_keyname" usergroup_params_r="id=map_key"/>
1535 <action id="palette" name="uiR2EDPaletteWindow" handler="lua" params="r2:switchPaletteWindow()" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_palette_small.tga" usergroup_r="r2_keyname" usergroup_params_r="id=palette_key"/>
1536 <action id="scenario" name="uiR2EDScenarioWindow" handler="lua" params="r2:switchScenarioWindow()" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_scenario_small.tga" usergroup_r="r2_keyname" usergroup_params_r="id=scenario_key"/>
1537 <action id="properties" name="uiR2EDPropertiesWindow" handler="lua" params="r2:switchPropertiesWindow()" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_toolbar_properties_small.tga" usergroup_r="r2_keyname" usergroup_params_r="id=properties_key"/>
1539 <action id="chat_window" name="uiR2EDChatWindow" handler="lua" params="r2:switchChatWindow()" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_chat_small.tga" usergroup_r="r2_keyname" usergroup_params_r="id=chat_window_key"/>
1540 <action id="mail_box" name="uiR2EDMailBox" handler="lua" params="r2:switchMailBoxWindow()" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_mail_box_small.tga" usergroup_r="r2_keyname" usergroup_params_r="id=mail_box_key"/>
1541 <action id="guild_forum" name="uiR2EDGuildForum" cond="ne(@SERVER:GUILD:NAME,0)" handler="lua" params="r2:switchGuildForumWindow()" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=TB_Forum_ring.tga" usergroup_r="r2_keyname" usergroup_params_r="id=guild_forum_key"/>
1543 <action id="toggle_fixed_lighting" name="uiR2EDTurnLightOn" handler="lua" params="r2:setFixedLighting(not r2:getFixedLighting())" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_light_off_small.tga|id=fixed_lighting_bm"/>
1545 <action id="reset windows" name="uiR2EDResetWindows" handler="lua" params="r2:resetDesktop(getDesktopIndex())" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_resetwindows.tga"/>
1546 <action id="keys" name="uiR2EDKeys" handler="show_hide" params="keys" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_keys_small.tga" usergroup_r="r2_keyname" usergroup_params_r="id=keys_key"/>
1547 <action id="preferences" name="uiR2EDPreferences" handler="show_hide" params="game_config" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_preferences.tga" usergroup_r="r2_keyname" usergroup_params_r="id=preferences_key"/>
1548 <action id="support" name="uiR2EDSupport" handler="show_hide" params="cs_browser" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_support.tga"/>
1551 <action id="show_hide_prims" name="uiR2EDShowHidePrims" handler="lua" params="r2.Config.PrimDisplayEnabled = not r2.Config.PrimDisplayEnabled" usergroup_r="r2_keyname" usergroup_params_r="id=show_hide_prims_key"/>
1553 <action id="quit" name="uimR2EDQuit" handler="enter_modal" params="group=ui:interface:quit_dialog" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=TB_quit.tga" usergroup_r="r2_keyname" usergroup_params_r="id=quit_key"/>
1556 <group type="menu" id="r2ed_main_menu_animation" extends="r2ed_base_menu_look" mouse_pos="false">
1558 <action id="debug_console" name="uiR2EDDebugConsoleWindow" handler="lua" params="r2:switchDebugWindow()" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=ICO_Magic.tga" usergroup_r="r2_keyname" usergroup_params_r="id=debug_console_key"/>
1559 <action id="live" name="uiR2EDLive" handler="open_scenario_control" params="showHide=1" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_r2_small.tga" usergroup_r="r2_keyname" usergroup_params_r="id=r2_live_key"/>
1562 <action id="stop_test" name="uimR2EDStopTest" handler="r2ed_stop_test" params="" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_stop_test_small.tga" usergroup_r="r2_keyname" usergroup_params_r="id=stop_test_key"/>
1563 <action id="stop_live" name="uiR2EDStopLive" handler="r2_stop_live" params="" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_stop_live_small.tga" usergroup_r="r2_keyname" usergroup_params_r="id=r2_stop_live_key"/>
1566 <action id="map" name="uiR2EDMap" handler="lua" params="r2:switchMapWindow()" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_map_small.tga" usergroup_r="r2_keyname" usergroup_params_r="id=map_key"/>
1569 <action id="chat_window" name="uiR2EDChatWindow" handler="lua" params="r2:switchChatWindow()" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_chat_small.tga" usergroup_r="r2_keyname" usergroup_params_r="id=chat_window_key"/>
1570 <action id="mail_box" name="uiR2EDMailBox" handler="lua" params="r2:switchMailBoxWindow()" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_mail_box_small.tga" usergroup_r="r2_keyname" usergroup_params_r="id=mail_box_key"/>
1572 <action id="guild_forum" name="uiR2EDGuildForum" cond="ne(@SERVER:GUILD:NAME,0)" handler="lua" params="r2:switchGuildForumWindow()" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=TB_Forum_ring.tga" usergroup_r="r2_keyname" usergroup_params_r="id=guild_forum_key"/>
1574 <action id="player_admin" name="uiR2EDPlayerAdmin" handler="lua" params="r2:switchPlayerAdminWindow()" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_player_admin_small.tga" usergroup_r="r2_keyname" usergroup_params_r="id=r2_player_admin_key"/>
1578 <action id="toggle_fixed_lighting" name="uiR2EDDivineLight" handler="lua" params="r2:setFixedLighting(not r2:getFixedLighting())" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_light_off_small.tga|id=fixed_lighting_bm"/>
1581 <action id="reset windows" name="uiR2EDResetWindows" handler="lua" params="r2:resetDesktop(getDesktopIndex())" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_resetwindows.tga"/>
1582 <action id="keys" name="uiR2EDKeys" handler="show_hide" params="keys" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_keys_small.tga" usergroup_r="r2_keyname" usergroup_params_r="id=keys_key"/>
1583 <action id="preferences" name="uiR2EDPreferences" handler="show_hide" params="game_config" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_preferences.tga" usergroup_r="r2_keyname" usergroup_params_r="id=preferences_key"/>
1584 <action id="support" name="uiR2EDSupport" handler="show_hide" params="cs_browser" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_icon_support.tga"/>
1587 <action id="quit" name="uimR2EDQuit" handler="enter_modal" params="group=ui:interface:quit_dialog" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=TB_quit.tga" usergroup_r="r2_keyname" usergroup_params_r="id=quit_key"/>
1591 <group type="menu" id="r2ed_base_menu" extends="r2ed_base_menu_look">
1592 <action id="cut" name="uimR2EDCut" handler="lua" params="r2:cut(r2:getSelectedInstance())" />
1593 <action id="paste" name="uimR2EDPaste" handler="lua" params="r2:paste()" />
1594 <separator id="dynamic_content_start"/>
1595 <!-- Dynamic content is inserted here by lua code -->
1596 <!-- When 'onSetupMenu' is called -->
1597 <separator id="dynamic_content_end"/>
1599 <action id="selectParent1" name="" handler="lua" params="r2:selectParent(1)" />
1600 <action id="selectParent2" name="" handler="lua" params="r2:selectParent(2)" />
1601 <action id="selectParent3" name="" handler="lua" params="r2:selectParent(3)" />
1602 <action id="selectParent4" name="" handler="lua" params="r2:selectParent(4)" />
1603 <action id="selectParent5" name="" handler="lua" params="r2:selectParent(5)" />
1604 <action id="selectParent6" name="" handler="lua" params="r2:selectParent(6)" />
1605 <action id="selectParent7" name="" handler="lua" params="r2:selectParent(7)" />
1606 <action id="selectParent8" name="" handler="lua" params="r2:selectParent(8)" />
1608 <!-- TMP for debug -->
1609 <separator id="sepParent"/>
1610 <action id="dump_lua_table" name="uimR2EDMenuDumpLuaTable" handler="r2ed_dump_lua_table" params="depth=30" />
1611 <action id="dump_dialogs_as_text" name="uimR2EDMenuSaveDialogsAsText" handler="lua" params="r2:dumpDialogsAsText()" />
1612 <action id="update_dialogs_from_text" name="uimR2EDMenuUpdateDialogsFromText" handler="lua" params="r2:updateDialogsFromText()" />
1613 <action id="inspect_lua_table" name="uimR2EDMenuInspectLuaTable" handler="lua" params="r2:inspectCurrInstance()" />
1614 <action id="translateFeatures" name="translate features" handler="lua" params="r2.requestTranslateFeatures()" />
1617 <action id="properties" name="uimR2EDMenuProperties" handler="lua" params="r2:showProperties(r2:getSelectedInstance())" />
1621 <group type="menu" id="r2ed_palette_menu" extends="r2ed_base_menu">
1622 <!-- TMP for debug -->
1623 <action id="dump_lua_table" name="uimR2EDDumpLuaTable" handler="lua" params="r2:onShowPaletteLuaTable(30)" />
1627 <group type="menu" id="r2ed_entity_menu" extends="r2ed_base_menu">
1628 <!-- perhaps the following option would fit better in a base menu -->
1629 <action id="move" name="uimR2EDMenuMove" handler="r2ed_move" params="" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2ed_icon_move.tga"/>
1630 <action id="rotate" name="uimR2EDMenuRotate" handler="r2ed_rotate" params="" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2ed_icon_rotate.tga"/>
1631 <action id="teleport" name="uimR2EDMenuTeleport" handler="lua" params="r2:teleportToTarget()" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2ed_tool_teleport.tga"/>
1634 <action id="activities" name="uimR2EDNewActivity" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2ed_icon_newactivity.tga">
1635 <!--<action id="currentBehavior" name=""/>
1637 <action id="pickZone" name="uimR2EDMenuPickZone" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_toolbar_wander_zone_small.tga" handler="r2ed_picker_lua" params="TestFunc=r2:testCanPickZoneForNPC|PickFunc=r2:affectZoneToNPC"/>
1639 <action id="followRoute" name="uimR2EDMenuFollowRoute" handler="r2ed_picker_lua" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_toolbar_follow_road_small.tga" params="TestFunc=r2:testCanPickRoadForNPC|PickFunc=r2:setBehaviorFollowRouteToNPC"/>
1640 <action id="patrolRoute" name="uimR2EDMenuPatrolRoute" handler="r2ed_picker_lua" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_toolbar_patrol_road_small.tga" params="TestFunc=r2:testCanPickRoadForNPC|PickFunc=r2:setBehaviorPatrolRouteToNPC"/>
1641 <action id="turnAround" name="uimR2EDMenuRepeatRoute" handler="r2ed_picker_lua" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_toolbar_repeat_road_small.tga" params="TestFunc=r2:testCanPickRoadForNPC|PickFunc=r2:setBehaviorRepeatRoadToNPC"/>
1642 <action id="standInPlace" name="uimR2EDMenuStandInPlace" handler="lua" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_toolbar_stand_still_small.tga" params="r2:setNPCStandInPlace(r2:getSelectedInstance())"/>
1645 <action id="pickZone" name="uimR2EDMenuPickZone" handler="r2ed_picker_lua" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_toolbar_wander_zone_small.tga" params="CursCanPickPos=curs_create.tga|CursCannotPickPos=curs_stop.tga|TestFunc=r2:testCanPickZoneForNPC|PickFunc=r2:affectZoneToSelectedNPC|PickPosFunc=r2:createZoneAndAffectZoneToNPC"/>
1646 <action id="followRoute" name="uimR2EDMenuFollowRoute" handler="r2ed_picker_lua" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_toolbar_follow_road_small.tga" params="CursCanPickPos=curs_create.tga|CursCannotPickPos=curs_stop.tga|TestFunc=r2:testCanPickRoadForNPC|PickFunc=r2:setBehaviorFollowRouteToNPC|PickPosFunc=r2:createRouteAndSetBehaviorFollowRouteToNPC"/>
1647 <action id="patrolRoute" name="uimR2EDMenuPatrolRoute" handler="r2ed_picker_lua" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_toolbar_patrol_road_small.tga" params="CursCanPickPos=curs_create.tga|CursCannotPickPos=curs_stop.tga|TestFunc=r2:testCanPickRoadForNPC|PickFunc=r2:setBehaviorPatrolRouteToNPC|PickPosFunc=r2:createRouteAndSetBehaviorPatrolRouteToNPC"/>
1648 <action id="turnAround" name="uimR2EDMenuRepeatRoute" handler="r2ed_picker_lua" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_toolbar_repeat_road_small.tga" params="CursCanPickPos=curs_create.tga|CursCannotPickPos=curs_stop.tga|TestFunc=r2:testCanPickRoadForNPC|PickFunc=r2:setBehaviorRepeatRoadToNPC|PickPosFunc=r2:createRoadAndSetBehaviorRepeatRoadToNPC"/>
1649 <action id="standInPlace" name="uimR2EDMenuStandInPlace" handler="lua" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_toolbar_stand_still_small.tga" params="r2:setNPCStandInPlace(r2:getSelectedInstance())"/>
1652 <action id="pickZone" name="uimR2EDMenuPickZone" handler="lua" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_toolbar_wander_zone_small.tga" params="r2:getSelectedInstance():onPickWanderZone()"/>
1653 <action id="followRoute" name="uimR2EDMenuFollowRoute" handler="lua" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_toolbar_follow_road_small.tga" params="r2:getSelectedInstance():onPickFollowRoute()"/>
1654 <action id="patrolRoute" name="uimR2EDMenuPatrolRoute" handler="lua" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_toolbar_patrol_road_small.tga" params="r2:getSelectedInstance():onPickPatrolRoute()"/>
1655 <action id="turnAround" name="uimR2EDMenuRepeatRoute" handler="lua" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_toolbar_repeat_road_small.tga" params="r2:getSelectedInstance():onPickRepeatRoute()"/>
1656 <action id="standInPlace" name="uimR2EDMenuStandInPlace" handler="lua" usergroup_l="r2_menu_button" usergroup_params_l="bitmap=r2_toolbar_stand_still_small.tga" params="r2:getSelectedInstance():onStandStill()"/>
1662 <group type="menu" id="r2ed_npc_group_menu" extends="r2ed_base_menu">
1664 <action id="delete" name="uimR2EDMenuDelete" handler="lua" params="r2:getSelectedInstance():onDelete()" />
1669 <group type="menu" id="r2ed_feature_menu" extends="r2ed_base_menu">
1671 <action id="delete" name="uimR2EDMenuDelete" handler="lua" params="r2:getSelectedInstance():onDelete()" />
1676 <group type="menu" id="r2ed_road_menu" extends="r2ed_base_menu">
1678 <action id="delete" name="uimR2EDMenuDelete" handler="lua" params="r2:getSelectedInstance():onDelete()" />
1686 <tree node="r2ed_palette">
1691 <tree node="r2ed_connect">
1694 <tree node="r2ed_property_sheet_no_selection">
1697 <tree node="r2ed_property_sheet_no_properties">
1701 <!-- ************************************************ -->
1703 <!-- ************************************************ -->
1706 <proc id="proc_reset_r2ed">
1707 <action handler="set_virtual_desktop" params="vdesk=0" />
1709 <action handler="set" params="target='ui:interface:r2ed_toolbar:active'|value=1" />
1710 <action handler="set" params="target='ui:interface:r2ed_windowbar:active'|value=1" />
1712 <action handler="set" params="target='ui:interface:system_info:active'|value=0" />
1713 <action handler="set" params="target='ui:interface:target:active'|value=0" />
1715 <action handler="set" params="target='ui:interface:main_chat:active'|value=0" />
1716 <action handler="set" params="target='ui:interface:main_chat:x'|value=0" />
1717 <action handler="set" params="target='ui:interface:main_chat:y'|value=0" />
1719 <action handler="set" params="target='ui:interface:r2ed_connect:active'|value=0" />
1720 <action handler="set" params="target='ui:interface:help_browser:active'|value=0" />
1721 <action handler="set" params="target='ui:interface:milko_pad:active'|value=0" />
1723 <action handler="set" params="target='ui:interface:debug_info:active'|value=0"/>
1724 <action handler="set" params="target='ui:interface:debug_info:w'|value=350" />
1725 <action handler="set" params="target='ui:interface:debug_info:h'|value=300" />
1726 <action handler="set" params="target='ui:interface:debug_info:x'|value=10000" />
1727 <action handler="set" params="target='ui:interface:debug_info:y'|value=370" />
1733 <!-- ************************************************** -->
1734 <!-- * NPC CREATION * -->
1735 <!-- ************************************************** -->
1737 <!-- button tab style -->
1738 <style style="tab_button_npc" type="tab_button" button_type="radio_button"
1739 x="0" posref="TR TL"
1742 tx_normal="r2_tab_wide_normal" tx_pushed="r2_tab_wide_pushed" tx_over="r2_tab_wide_over"
1743 global_color_normal="true" global_color_over="true" global_color_pushed="true"
1744 color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255"
1745 text_y="-2" fontsize="10" shadow="true" case_mode="%case_upper" wmargin="8"
1746 text_color_normal="255 255 255 128" text_color_pushed="255 255 255 255" text_color_over="255 255 255 255"
1747 text_global_color_normal="true"
1748 text_global_color_pushed="false"
1749 text_global_color_over="true"
1752 <!-- label/slider template -->
1753 <template name="label_slider" id="" active="true" posparent="" w="95" y="-5" h="" tooltip="" hardtext=""
1754 params="" end_params="" cancel_params="" max="">
1756 <group id="#id" active="true" y="#y" posref="BL TL" posparent="#posparent" child_resize_w="true" child_resize_h="true">
1759 <group id="slider_text_place" w="#w" h="20" x="0" y="0" posref="TL TL">
1760 <view type="text" id="slider_text" posref="TL TL"
1761 x="0" y="0" color="255 255 255 255" global_color="true" fontsize="12" shadow="true" hardtext="#hardtext" />
1765 <view type="bitmap" id="line_slider" posparent="slider_text_place" posref="TR TL" scale="true"
1766 x="0" y="-5" w="90" h="4" texture="W_line_hor2.tga" />
1768 <ctrl type="scroll" id="slider" posparent="line_slider" posref="MM MM"
1769 x="0" y="0" w="90" h="16" vertical="false" align="L" min="0" max="#max" tracksize="12" cancelable="true"
1770 tx_topright="w_scroll_R.tga" tx_middle="w_scroll_l123_m.tga" tx_bottomleft="w_scroll_L.tga"
1771 onscrollend="lua" end_params="#end_params" onscrollcancel="lua" cancel_params="#cancel_params"
1772 onscroll="lua" params="#params" />
1779 <!-- random and add list buttons template -->
1780 <template name="button_random_add_list" id="" posparent="" onclick_random="" onclick_random_param=""
1781 onclick_add_list="" onclick_add_list_param="" keep="true" tooltip_ok="" posref="BL TL" x="0" y="-10">
1783 <group id="#id" posparent="#posparent" posref="#posref" w="200" child_resize_h="true"
1786 <ctrl style="button_ok" id="random" posref="TL TL" text_y="0" onclick_l="#onclick_random"
1787 params_l="#onclick_random_param" hardtext="uiR2EdRandom" tooltip="#tooltip_ok" />
1788 <ctrl style="button_ok" x="13" posparent="random" text_y="0" posref ="TR TL" onclick_l="#onclick_add_list"
1789 params_l="#onclick_add_list_param" hardtext="uiR2EdManageSetsShort" />
1795 <!-- label/edit box template -->
1796 <template name="label_edit_box" active="true" id="" x="0" y="0" posparent="" posref="" w="" hardtext=""
1797 fontsize="10" onenter="lua" params="" onchange="lua" onchange_params=""
1798 on_focus_lost="" on_focus_lost_params="" max_num_chars="6" entry_type="text" >
1800 <group id="#id" x="#x" y="#y" w="#w" h="34" posparent="#posparent" posref="#posref" >
1803 <group id="label" sizeref="w" w="0" h="12" x="0" y="0" posref="TL TL" posparent="parent" >
1804 <view type="text" id="name_text" posref="TL TL" x="2" y="0" color="255 255 255 255"
1805 global_color="true" fontsize="#fontsize" shadow="true" hardtext="#hardtext" />
1809 <group type="edit_box" id="edit_box_group" sizeref="w" posparent="label" posref="BL TL" x="0" y="-2"
1810 onenter="#onenter" params="#params" onchange="#onchange" onchange_params="#onchange_params"
1811 on_focus_lost="#on_focus_lost" on_focus_lost_params="#on_focus_lost_params"
1812 negative_filter = '"{}[]'
1813 max_num_chars="#max_num_chars" prompt="" enter_loose_focus="true" entry_type="#entry_type" reset_focus_on_hide="true" menu_r="" >
1815 <instance template="box_widget" id="back_edit_box" posref="TL TL" sizeref="w" h="20" />
1816 <view type="text" id="edit_text" x="4" y="-5" posref="TL TL" multi_line="false"
1817 fontsize="10" shadow="true" hardtext="" global_color="false"/>
1822 <!-- label/combo box template -->
1823 <template name="label_combo_box" active="true" id="" x="0" y="0" posparent="" posref="" w="" fontsize="10"
1824 hardtext="" on_change_params="" combo_box_y="-2" >
1826 <group id="#id" active="#active" x="#x" y="#y" w="#w" h="34" posparent="#posparent" posref="#posref" >
1829 <group id="label" sizeref="w" w="0" h="12" x="0" y="0" posref="TL TL" >
1830 <view type="text" id="name_text" posref="TL TL" x="2" y="0" color="255 255 255 255"
1831 global_color="true" fontsize="#fontsize" shadow="true" hardtext="#hardtext" />
1835 <group type="combo_box" id="combo_box" w="#w" h="20" x="0" y="#combo_box_y" posref="BL TL" posparent="label"
1836 linked_to_db="false" on_change="lua" on_change_params="#on_change_params" >
1837 <instance template="r2ed_combo_box" />
1845 <!-- horizontal label/ two combo box template -->
1846 <template name="label_two_combo_box" keep="true" active="true" id="" x="0" y="0" posparent="" posref="" hardtext="">
1848 <group id="#id" x="#x" y="#y" w="265" h="20" posparent="#posparent" posref="#posref" >
1851 <group id="label" w="75" h="20" x="0" y="0" posref="TL TL" posparent="parent" >
1852 <view type="text" id="name_text" posref="BL BL" x="0" y="0" color="255 255 255 255"
1853 global_color="true" fontsize="12" shadow="true" hardtext="#hardtext" />
1856 <!-- first combo box -->
1857 <group type="combo_box" id="first_combo_box" w="85" h="20" x="10" y="0" posref="TR TL" posparent="label"
1858 linked_to_db="false">
1859 <instance template="r2ed_combo_box" />
1862 <!-- second combo box -->
1863 <group type="combo_box" id="second_combo_box" w="85" h="20" x="10" y="0" posref="TR TL" posparent="first_combo_box"
1864 linked_to_db="false">
1865 <instance template="r2ed_combo_box" />
1870 <!-- horizontal label / two combo box / edit box template -->
1871 <template name="label_two_combo_edit_box" active="true" id="" x="0" y="0" posparent="" posref="" hardtext="" >
1873 <group id="#id" x="#x" y="#y" w="305" h="20" posparent="#posparent" posref="#posref" >
1875 <!-- label / two combo box -->
1876 <instance template="label_two_combo_box" id="label_two_combo_box" posparent="parent" posref="TL TL" hardtext="#hardtext" />
1879 <group type="edit_box" id="edit_box_group" h="20" w="30" posparent="label_two_combo_box" posref="TR TL" x="10" y="0"
1880 onenter="" params="" max_num_chars="3" prompt="" enter_loose_focus="true"
1881 entry_type="text" reset_focus_on_hide="true" menu_r="" >
1883 <instance template="box_widget" id="back_edit_box" posref="TL TL" sizeref="w" h="20" />
1884 <view type="text" id="edit_text" x="5" y="-5" posref="TL TL" multi_line="false"
1885 fontsize="10" shadow="true" hardtext="" global_color="false"/>
1890 <!-- horizontal label / two combo box / edit box /slider template -->
1891 <template name="label_two_combo_edit_box_slider" active="true" id="" x="0" y="0" posparent="" posref=""
1892 hardtext="" params="" end_params="" cancel_params="" >
1894 <group id="#id" x="#x" y="#y" w="400" h="20" posparent="#posparent" posref="#posref" >
1896 <!-- label / two combo box /edit box -->
1897 <instance template="label_two_combo_edit_box" id="label_two_combo_edit_box" posparent="parent" posref="TL TL" hardtext="#hardtext" />
1900 <view type="bitmap" id="line_slider" posparent="label_two_combo_edit_box" posref="TR TL" scale="true"
1901 x="10" y="-10" w="85" h="4" texture="W_line_hor2.tga" />
1903 <ctrl type="scroll" id="slider" posparent="line_slider" posref="MM MM"
1904 x="0" y="0" w="85" h="16" vertical="false" align="L" min="0" max="255" tracksize="12"
1905 tx_topright="w_scroll_R.tga" tx_middle="w_scroll_l123_m.tga" tx_bottomleft="w_scroll_L.tga" cancelable="true"
1906 onscrollend="lua" end_params="#end_params" onscrollcancel="lua" cancel_params="#cancel_params"
1907 onscroll="lua" params="#params"/>
1912 <!-- horizontal label / combo box / slider template -->
1913 <template name="label_combo_box_slider" active="true" id="" x="0" y="0" posparent="" posref=""
1914 hardtext="" on_change_params="" params="" end_params="" cancel_params="" >
1916 <group id="#id" x="#x" y="#y" w="430" h="20" posparent="#posparent" posref="#posref" >
1918 <!-- label / combo box -->
1919 <instance template="h_label_combo_box" id="label_combo_box" w="270" w_label="110" w_combo="160"
1920 posparent="parent" posref="TL TL" hardtext="#hardtext" on_change_params="#on_change_params"/>
1923 <view type="bitmap" id="line_slider" posparent="label_combo_box" posref="TR TL" scale="true"
1924 x="30" y="-10" w="100" h="4" texture="W_line_hor2.tga" />
1926 <ctrl type="scroll" id="slider" posparent="line_slider" posref="MM MM"
1927 x="0" y="0" w="100" h="16" vertical="false" align="L" min="0" max="5" cancelable="true"
1928 tracksize="12" tx_topright="w_scroll_R.tga" tx_middle="w_scroll_l123_m.tga" tx_bottomleft="w_scroll_L.tga"
1929 onscrollend="lua" end_params="#end_params" onscrollcancel="lua" cancel_params="#cancel_params"
1930 onscroll="lua" params="#params"/>
1937 <proc id="character_active">
1938 <action handler="set" params="target_property=ui:interface:r2ed_npc:content:npc_view:char3d:char:anim|value=0" />
1942 <!-- ************************************************************************************************** -->
1943 <!-- **************************************** NPC GUI ************************************************* -->
1944 <!-- ************************************************************************************************** -->
1946 <group type="container" id="r2ed_npc" global_color="false" line_at_bottom="false"
1947 movable="true" opened="true" openable="false" resizer="true" header_color="UI:SAVE:WIN:COLORS:R2_CUSTOM_LOOK"
1948 pop_min_w="753" pop_min_h="505" pop_max_w="753" pop_max_h="505" active="false"
1949 on_active="proc" on_active_params="character_active"
1950 on_deactive="lua" on_deactive_params="if r2 and r2.Mode == 'Edit' then r2:updateNotes(); r2:updateName() end"
1953 <group id="header_closed" x="0" y="0" child_resize_w="true" h="16" posref="TL TL"
1954 group_onclick_r="active_menu"
1955 group_params_r="menu=ui:interface:base_menu_with_color"
1959 <group id="header_opened" x="0" y="0" w="430" h="16" posref="TL TL"
1960 group_onclick_r="active_menu"
1961 group_params_r="menu=ui:interface:base_menu_with_color"
1964 <group id="content" x="0" y="0" sizeref="wh" w="0" h="0" posref="TL TL" >
1967 <group id="npc_view" x="0" y="-3" w="300" h="472" posref="TL TL" >
1969 <scene3d id="char3d" sizeref="wh" w="-2" h="-2" posref="TL TL" x="1" y="-1" curcam="cam"
1970 ambient="128 96 64" sun_ambient="0 0 0" sun_diffuse="255 255 196" sun_specular="0 0 0" sun_direction="-1.0 1.0 -1.0"
1971 user_interaction="true" rotz_factor="0.017"
1972 roty_factor="0.005" roty_limit_min="-20" roty_limit_max="15"
1973 dist_factor="0.005" dist_limit_min="9.0" dist_limit_max="16.0">
1975 <character3d id="char" dblink="target" pos="0.0 0.0 -1.8" rot="0.0 0.0 0.0" copy_anim="true" />
1976 <camera id="cam" fov="5" pos="0.0 -14.0 0.0" target="0.0 0.0 -0.85" roll="0" />
1978 <light id="back" pos="0.0 28.2 1.6" color="96 64 32" near="1.0" far="4.0" />
1979 <light id="lgt" pos="0.0 25.3 2.48" color="255 255 255" near="1.0" far="4.0" />
1983 <ctrl style="button_ok" id="change_view" x="-10" y="10" posparent="char3d" posref="BR BR"
1984 text_y="0" onclick_l="lua" params_l="r2:changeView()" hardtext="uiR2EDChangeView" tooltip="" />
1988 <view type="bitmap" id="v_sep" posparent="npc_view" y="-25" posref="TR TL" w="2" h="515"
1989 scale="true" texture="blank.tga" color="120 120 120 255" />
1992 <group id="menu" x="0" y="0" w="470" h="445" posparent="npc_view" posref="TR TL" >
1994 <group type="tab" id="npc_tabs" child_resize_w="true" h="24" posref="TL TL" x="0" y="-4" >
1996 <ctrl style="tab_button_npc" id="tab0" x="0" posref="TL TL" group="profile"
1997 hardtext="uiR2EdProfile" onclick_r="" params_r="" onclick_l="" params_l=""/>
1998 <view type="bitmap" id="tab0_bm" posparent="tab0" posref="TL TL" w="24" h="24" x="4" y="-2 "
1999 color="255 255 255 255" />
2001 <ctrl style="tab_button_npc" id="tab1" posparent="tab0" group="equipment"
2002 hardtext="uiR2EdEquipment" onclick_r="" params_r="" onclick_l="" params_l=""/>
2003 <view type="bitmap" id="tab1_bm" posparent="tab1" posref="TL TL" w="24" h="24" x="4" y="-2 "
2004 color="255 255 255 255" />
2006 <ctrl style="tab_button_npc" id="tab2" posparent="tab1" group="body"
2007 hardtext="uiR2EdBody" onclick_r="" params_r="" onclick_l="" params_l=""/>
2008 <view type="bitmap" id="tab2_bm" posparent="tab2" posref="TL TL" w="24" h="24" x="4" y="-2 "
2009 color="255 255 255 255" />
2011 <ctrl style="tab_button_npc" id="tab3" posparent="tab2" group="group"
2012 hardtext="uiR2EdGroup" onclick_r="" params_r="" onclick_l="" params_l=""/>
2013 <view type="bitmap" id="tab3_bm" posparent="tab3" posref="TL TL" w="24" h="24" x="4" y="-2 "
2014 color="255 255 255 255" />
2018 <view type="bitmap" id="sep" posparent="npc_tabs" posref="BL TL" sizeparent="parent" sizeref="w" w="0" h="1"
2019 scale="true" texture="blank.tga" color="120 120 120 255" />
2022 <!-- ************************************************************************************************** -->
2023 <!-- ************************************ PROFILE ************************************************** -->
2024 <!-- ************************************************************************************************** -->
2025 <group id="profile" posref="TL TL" sizeref="wh" x="0" w="-14" y="-15" h="-12"
2026 on_deactive="lua" on_deactive_params="if r2 and r2.Mode == 'Edit' then r2:updateNotes(); r2:updateName() end" >
2027 <group id="profile_content" posref="TL TL" sizeref="wh" x="0" w="0" y="-25" h="0" >
2029 <!-- *************** -->
2030 <!-- NPC DESCRIPTION -->
2031 <group id="npc_description" w="420" h="257" x="10" y="0" posref="TL TL">
2033 <group id="back_description" sizeref="wh" posref="TL TL">
2034 <view type="bitmap" id="back" scale="true" sizeref="hw" h="0" w="0" texture="W_box_blank.tga"
2035 inherit_gc_alpha="true"/>
2039 <instance template="label_edit_box" id="name" posparent="parent" posref="TL TL" w="264"
2040 x="10" y="-15" hardtext="uiR2EdName" fontsize="12" max_num_chars="25"
2041 onenter="lua" params="r2:updateName()" on_focus_lost="" on_focus_lost_params="r2:updateName()"
2045 <instance template="label_combo_box" id="fonction" posparent="name" posref="BL TL"
2046 w="264" y="-13" hardtext="uiR2EdFunction" fontsize="12" on_change_params="r2:updateFunction()"/>
2048 <!-- Race, Sex, Level -->
2049 <group id="race_sex_level" w="420" h="35" x="0" y="-13" posref="BL TL" posparent="name">
2052 <instance template="label_combo_box" id="race" posparent="parent" posref="TL TL"
2053 w="127" hardtext="uiR2EdRace" fontsize="12" on_change_params="r2:updateRace()" />
2056 <instance template="label_combo_box" id="sex" posparent="race" posref="TR TL"
2057 x="10" w="127" hardtext="uiR2EdSex" fontsize="12" on_change_params="r2:updateSex()" />
2060 <instance template="label_combo_box" id="level" posparent="sex" posref="TR TL"
2061 x="10" w="127" fontsize="12" hardtext="uiR2EdLevel" on_change_params="r2:updateLevel()"/>
2066 <group id="notes" y="-13" w="420" h="165" posparent="race_sex_level" posref="BL TL">
2069 <group id="label_notes" w="400" h="15" x="0" y="0" posref="TL TL" posparent="parent" >
2070 <view type="text" id="level_design_info_text" posref="BL BL" x="0" y="0" color="255 255 255 255"
2071 global_color="true" fontsize="12" shadow="true" hardtext="uiR2EdNotes" />
2074 <!-- Edit text for NPC description -->
2075 <group id="back_small_description" sizeref="w" posparent="label_notes" posref="BL TL" y="0" h="120" w="0">
2076 <instance template="box_widget" id="back" sizeref="wh" w="0" h="0" />
2079 <group id="crop_desc" posparent="back_small_description" posref="TL TL" x="4" y="-4" sizeref="wh" w="-4" h="-12"/>
2081 <group type="edit_box" id="small_description" posparent="crop_desc" posref="TL TL" x="0" y="0" sizeref="w"
2082 child_resize_h="true" w="0" child_resize_hmargin="10" max_sizeparent="crop_desc" max_sizeref="h"
2083 max_h="-4" max_w="310" want_return="true"
2084 onenter="lua" params="getUICaller():getEnclosingContainer():find('small_description_scroll').trackPos = 0"
2085 on_focus_lost="lua" on_focus_lost_params="" >
2087 <view type="text" id="edit_text" x="4" y="-1" posref="TL TL" multi_line="true"
2088 fontsize="12" shadow="true" hardtext="" global_color="false"/>
2091 <ctrl style="skin_scroll" id="small_description_scroll" align="B" target="small_description"
2092 posparent="crop_desc" posref="TR TL" x="-12" y="0" />
2100 <!-- *************** -->
2101 <!-- CHAT PARAMETERS
2102 <group id="chat_parameters" sizeref="w" h="134" x="0" y="-9" posparent="npc_behaviour" posref="BL TL">
2104 <group id="back_chat" sizeref="wh" posref="TL TL">
2105 <view type="bitmap" id="back" scale="true" sizeref="hw" h="0" w="0" texture="W_box_blank.tga"
2106 inherit_gc_alpha="true"/>
2109 <instance template="label_combo_box" id="parameters" posparent="parent" posref="TL TL"
2110 x="10" y="-10" w="400" hardtext="uiR2EdChatParameters" />
2112 <group id="options_list" posparent="parameters" sizeref="w" w="0" h="60" posref="BL TL" x="0" y="-2">
2113 <instance template="box_widget" id="back" sizeref="wh" w="0" h="0" />
2115 <group id="crop" posparent="parent" posref="TL TL" x="0" y="0" sizeref="wh" w="-4" h="-4" />
2117 <group id="options" posparent="crop" posref="TL TL" x="0" y="-4" sizeref="w" child_resize_h="true"
2118 child_resize_hmargin="4" w="-4" max_sizeparent="crop" max_sizeref="h" max_h="-4" >
2120 <group type="scroll_text" id="options_txt" sizeref="w" child_resize_h="true" child_resize_wmargin="16"
2121 child_resize_hmargin="16" posref="TL TL" x="0" y="0" min_height="160" max_height="160" >
2123 <group type="list" id="text_list" hardtext="uiCongifExplanation" shadow="true" fontsize="10"
2124 justification="justified" color="255 255 255 160" space="3"
2125 global_color="true" posref="TL TL" x="8" y="-8" sizeref="hw" w="-16" h="-16" />
2129 <ctrl style="skin_scroll" id="scroll_options" align="T" target="options" posparent="crop" posref="TR TR"
2133 <ctrl style="button_ok" id="create_new" x="0" y="-2" posparent="options_list" posref="BR TR"
2134 text_y="0" onclick_l="" params_l="" hardtext="uiR2EdCreateNew" tooltip="" />
2142 <!-- ************************************************************************************************** -->
2143 <!-- ********************************** EQUIPMENT ************************************************** -->
2144 <!-- ************************************************************************************************** -->
2145 <group id="equipment" posref="TL TL" sizeref="wh" x="0" w="0" y="-5" h="0" >
2146 <group id="equipment_content" posref="TL TL" sizeref="wh" x="10" w="0" y="-25" h="0" >
2150 <group id="armour" w="420" h="260" x="0" y="-10" posparent="parent" posref="TL TL">
2152 <group id="back_armour" sizeref="wh" posref="TL TL">
2153 <view type="bitmap" id="back" scale="true" sizeref="hw" h="0" w="0" texture="W_box_blank.tga"
2154 inherit_gc_alpha="true"/>
2157 <!-- first line of labels -->
2158 <group id="labels_line" w="400" h="22" x="10" y="-5" posref="TL TL" posparent="parent" >
2160 <group id="piece" w="85" h="12" x="112" y="-10" posref="TL TL" >
2161 <view type="text" id="faction_test" posref="TL TL" color="255 255 255 255"
2162 global_color="true" fontsize="12" shadow="true" hardtext="uiR2EdPiece" />
2165 <group id="color" w="56" h="12" x="103" y="0" posref="TR TL" posparent="piece" >
2166 <view type="text" id="drop_text" posref="TL TL" color="255 255 255 255"
2167 global_color="true" fontsize="12" shadow="true" hardtext="uiR2EdColor" />
2170 <instance template="label_toggle_button" id="color_link" posparent="color"
2171 y="1" posref="BR BL" w="70" hardtext="uiR2EdLink" fontsize="12" y_text="-5" params_l="r2:linkColor()"/>
2175 <instance template="label_combo_box_slider" id="helmet" posparent="labels_line"
2176 posref="BL TL" hardtext="uiR2EdHelmet" y="-7" on_change_params="r2:updatePieceEquipment()"
2177 params="r2:updatePieceEquipmentColor('local')" end_params="r2:updatePieceEquipmentColor('commit')"
2178 cancel_params="r2:updatePieceEquipmentColor('cancel')"/>
2181 <instance template="label_combo_box_slider" id="chest_plate" posparent="helmet"
2182 posref="BL TL" y="-5" hardtext="uiR2EdChestPlate" on_change_params="r2:updatePieceEquipment()"
2183 params="r2:updatePieceEquipmentColor('local')" end_params="r2:updatePieceEquipmentColor('commit')"
2184 cancel_params="r2:updatePieceEquipmentColor('cancel')" />
2187 <instance template="label_combo_box_slider" id="legs" posparent="chest_plate"
2188 posref="BL TL" y="-5" hardtext="uiR2EdLegs" on_change_params="r2:updatePieceEquipment()"
2189 params="r2:updatePieceEquipmentColor('local')" end_params="r2:updatePieceEquipmentColor('commit')"
2190 cancel_params="r2:updatePieceEquipmentColor('cancel')"/>
2193 <instance template="label_combo_box_slider" id="boots" posparent="legs"
2194 posref="BL TL" y="-5" hardtext="uiR2EdBoots" on_change_params="r2:updatePieceEquipment()"
2195 params="r2:updatePieceEquipmentColor('local')" end_params="r2:updatePieceEquipmentColor('commit')"
2196 cancel_params="r2:updatePieceEquipmentColor('cancel')" />
2199 <instance template="label_combo_box_slider" id="gloves" posparent="boots"
2200 posref="BL TL" y="-5" hardtext="uiR2EdGloves" on_change_params="r2:updatePieceEquipment()"
2201 params="r2:updatePieceEquipmentColor('local')" end_params="r2:updatePieceEquipmentColor('commit')"
2202 cancel_params="r2:updatePieceEquipmentColor('cancel')" />
2205 <instance template="label_combo_box_slider" id="arms_guard" posparent="gloves"
2206 posref="BL TL" y="-5" hardtext="uiR2EdArmsGuard" on_change_params="r2:updatePieceEquipment()"
2207 params="r2:updatePieceEquipmentColor('local')" end_params="r2:updatePieceEquipmentColor('commit')"
2208 cancel_params="r2:updatePieceEquipmentColor('cancel')" />
2210 <!-- equipment random button -->
2211 <ctrl style="button_ok" id="equ_random" x="110" y="-20" posparent="arms_guard" posref="BL TL"
2212 text_y="0" onclick_l="lua" params_l="r2:randomEquipment()" hardtext="uiR2EdRandomEquipment" />
2214 <!-- color random button -->
2215 <ctrl style="button_ok" id="color_random" x="30" y="0" posparent="equ_random" posref="TR TL"
2216 text_y="0" onclick_l="lua" params_l="r2:randomColor()" hardtext="uiR2EdRandomColor" />
2219 <instance template="h_label_combo_box" id="equipment_sets"
2220 posref="BL BL" w="270" w_label="110" w_combo="160" x="10" y="10" hardtext="uiR2EdSets"
2221 on_change_params="r2:selectEquipmentSets()" />
2223 <!-- save set button -->
2224 <ctrl style="button_ok" id="save_set" x="29" y="0" posparent="equipment_sets" posref="BR BL"
2225 text_y="0" hardtext="uiR2EdManageSets" onclick_l="proc" params_l="add_equipment_active" />
2230 <!-- COMBAT MODE button
2231 <group id="combat_mode" sizeref="w" w="0" h="16" x="0" y="-15" posparent="armour" posref="BL TL">
2232 <ctrl style="button_ok" id="combat_mode_button" x="10" posparent="parent" posref="TL TL"
2233 text_y="0" onclick_l="proc" params_l="combat_mode_active" hardtext="uiR2EdCombatMode" tooltip="" />
2237 <!-- LEFT / RIGHT HAND -->
2238 <group id="hands_gr" sizeref="w" w="0" h="40" x="0" y="-15" posparent="armour" posref="BL TL">
2240 <group id="back_hands" sizeref="wh" w="0" h="0" posref="TL TL">
2241 <view type="bitmap" id="back" scale="true" sizeref="hw" h="0" w="0" texture="W_box_blank.tga"
2242 inherit_gc_alpha="true"/>
2245 <instance template="h_label_combo_box" id="hands" posparent="parent" x="10" y="-10" posref="TL TL"
2246 w="400" w_label="110" w_combo="290" hardtext="uiR2EdSpecialization" on_change_params="r2:updateWeapons()"/>
2252 <group id="objets" sizeref="w" w="0" h="141" x="0" y="-9" posparent="hands_gr" posref="BL TL">
2254 <group id="back_objets" sizeref="h" w="420" posref="TL TL">
2255 <view type="bitmap" id="back" scale="true" sizeref="hw" h="0" w="0" texture="W_box_blank.tga"
2256 inherit_gc_alpha="true"/>
2259 <instance template="label_edit_box" id="existing_objects" posparent="parent" posref="TL TL"
2260 x="10" y="-10" w="180" hardtext="uiR2EdExistingLootableObjects" fontsize="12"/>
2262 <group id="objects_list" posparent="existing_objects" sizeref="w" w="0" h="60" posref="BL TL" x="0" y="-2">
2263 <instance template="box_widget" id="back" sizeref="wh" w="0" h="0" />
2265 <group id="crop" posparent="parent" posref="TL TL" x="0" y="0" sizeref="wh" w="-4" h="-4" />
2267 <group id="list" posparent="crop" posref="TL TL" x="0" y="-4" sizeref="w" child_resize_h="true"
2268 child_resize_hmargin="4" w="-4" max_sizeparent="crop" max_sizeref="h" max_h="-4" >
2270 <group type="scroll_text" id="list_txt" sizeref="w" child_resize_h="true" child_resize_wmargin="16"
2271 child_resize_hmargin="16" posref="TL TL" x="0" y="0" min_height="160" max_height="160" >
2273 <group type="list" id="text_list" hardtext="uiCongifExplanation" shadow="true" fontsize="10"
2274 justification="justified" color="255 255 255 160" space="3"
2275 global_color="true" posref="TL TL" x="8" y="-8" sizeref="hw" w="-16" h="-16" />
2279 <ctrl style="skin_scroll" id="scroll_objects" align="T" target="list" posparent="crop" posref="TR TR"
2283 <ctrl type="button" id="add" button_type="push_button" posparent="objects_list" x="12" y="-4" posref="TR TL"
2284 tx_normal="W_arrow_right_0.tga" tx_pushed="W_arrow_right_0.tga" tx_over="W_button_12_over.tga"
2285 onclick_l="" params_l="" onclick_r="" params_r="" />
2286 <ctrl type="button" id="remove" button_type="push_button" x="0" y="-6" posparent="add" posref="BL TL"
2287 tx_normal="W_arrow_left_0.tga" tx_pushed="W_arrow_left_0.tga" tx_over="W_button_12_over.tga"
2288 onclick_l="" params_l="" onclick_r="" params_r="" />
2290 <group id="objects_bag" w="180" h="12" x="40" y="0" posref="TR TL" posparent="existing_objects" >
2291 <view type="text" id="bag_text" posref="TL TL" color="255 255 255 255"
2292 global_color="true" fontsize="12" shadow="true" hardtext="uiR2EdInBag" />
2295 <group id="objects_in_bag" posparent="objects_bag" sizeref="w" w="0" h="82" posref="BL TL" x="0" y="-2">
2296 <instance template="box_widget" id="back" sizeref="wh" w="0" h="0" />
2298 <group id="crop" posparent="parent" posref="TL TL" x="0" y="0" sizeref="wh" w="-4" h="-4" />
2300 <group id="list" posparent="crop" posref="TL TL" x="0" y="-4" sizeref="w" child_resize_h="true"
2301 child_resize_hmargin="4" w="-4" max_sizeparent="crop" max_sizeref="h" max_h="-4" >
2303 <group type="scroll_text" id="list_txt" sizeref="w" child_resize_h="true" child_resize_wmargin="16"
2304 child_resize_hmargin="16" posref="TL TL" x="0" y="0" min_height="160" max_height="160" >
2306 <group type="list" id="text_list" hardtext="uiCongifExplanation" shadow="true" fontsize="10"
2307 justification="justified" color="255 255 255 160" space="3"
2308 global_color="true" posref="TL TL" x="8" y="-8" sizeref="hw" w="-16" h="-16" />
2312 <ctrl style="skin_scroll" id="scroll_objects_bag" align="T" target="list" posparent="crop" posref="TR TR"
2316 <instance template="h_label_edit_box" id="all" y="-5" x="0" posparent="objects_in_bag" posref="BL TL"
2317 hardtext="All" w_label="15"/>
2318 <instance template="h_label_edit_box" id="each" y="0" x="8" posparent="all" posref="TR TL"
2319 hardtext="Each" w_label="30"/>
2326 <!-- ************************************************************************************************** -->
2327 <!-- ********************************** BODY ******************************************************* -->
2328 <!-- ************************************************************************************************** -->
2329 <group id="body" posref="TL TL" sizeref="wh" x="0" w="-14" y="-5" h="-4" >
2330 <group id="body_content" posref="TL TL" sizeref="wh" x="0" w="0" y="-25" h="0" >
2334 <group id="top_left_body_features" w="205" h="204" x="10" y="-10" posref="TL TL">
2336 <group id="back_top_left" sizeref="h" w="205" posref="TL TL">
2337 <view type="bitmap" id="back" scale="true" sizeref="wh" h="0" w="0" texture="W_box_blank.tga"
2338 inherit_gc_alpha="true"/>
2341 <group id="body_sets_scroll_target" posparent="parent" posref="TL TL" x="10" y="-10"
2342 sizeref="wh" w="-20" h="-20" >
2344 <!-- Body sets combo box -->
2345 <instance template="h_label_combo_box" id="body_sets" posparent="parent" posref="TL TL"
2346 x="0" y="0" hardtext="uiR2EdBodySets" posref_combo="TR TL" on_change_params="r2:selectBodySets()"/>
2348 <!-- Height slider -->
2349 <instance template="label_slider" id="slider_height" y="-18" posparent="body_sets" hardtext="uiR2EdHeight"
2350 params="r2:changeBodyAttribute('GabaritHeight', 'local')"
2351 end_params="r2:changeBodyAttribute('GabaritHeight', 'commit')"
2352 cancel_params="r2:changeBodyAttribute('GabaritHeight', 'cancel')" max="14"/>
2354 <!-- Torso slider -->
2355 <instance template="label_slider" id="slider_torso" posparent="slider_height" hardtext="uiR2EdTorso"
2356 params="r2:changeBodyAttribute('GabaritTorsoWidth', 'local')"
2357 end_params="r2:changeBodyAttribute('GabaritTorsoWidth', 'commit')"
2358 cancel_params="r2:changeBodyAttribute('GabaritTorsoWidth', 'cancel')" max="14"/>
2360 <!-- Arms slider -->
2361 <instance template="label_slider" id="slider_arms" posparent="slider_torso" hardtext="uiR2EdArms"
2362 params="r2:changeBodyAttribute('GabaritArmsWidth', 'local')"
2363 end_params="r2:changeBodyAttribute('GabaritArmsWidth', 'commit')"
2364 cancel_params="r2:changeBodyAttribute('GabaritArmsWidth', 'cancel')" max="14"/>
2366 <!-- Legs slider -->
2367 <instance template="label_slider" id="slider_legs" posparent="slider_arms" hardtext="uiR2EdLegs"
2368 params="r2:changeBodyAttribute('GabaritLegsWidth', 'local')"
2369 end_params="r2:changeBodyAttribute('GabaritLegsWidth', 'commit')"
2370 cancel_params="r2:changeBodyAttribute('GabaritLegsWidth', 'cancel')" max="14"/>
2372 <!-- Breast slider -->
2373 <instance template="label_slider" id="slider_breast" posparent="slider_legs" hardtext="uiR2EdBreast"
2374 params="r2:changeBodyAttribute('GabaritBreastSize', 'local')"
2375 end_params="r2:changeBodyAttribute('GabaritBreastSize', 'commit')"
2376 cancel_params="r2:changeBodyAttribute('GabaritBreastSize', 'cancel')" max="14"/>
2378 <!-- Random and Add list buttons -->
2379 <instance template="button_random_add_list" id="body_sets_buttons" posparent="body_sets_scroll_target"
2380 posref="BL BL" x="0" y="0"
2381 onclick_random="lua" onclick_random_param="r2:randomBody()"
2382 onclick_add_list="proc" onclick_add_list_param="add_body_sets_active" />
2388 <group id="bottom_left_body_features" sizeref="w" w="0" h="179" x="0" y="-10"
2389 posparent="top_left_body_features" posref="BL TL">
2391 <group id="back_bottom_left" sizeref="h" w="205" posref="TL TL">
2392 <view type="bitmap" id="back" scale="true" sizeref="wh" h="0" w="0" texture="W_box_blank.tga"
2393 inherit_gc_alpha="true"/>
2396 <group id="face_sets_scroll_target" posparent="parent" posref="TL TL" x="10" y="-10"
2397 sizeref="wh" w="-20" h="-20">
2399 <!-- Face sets combo box -->
2400 <instance template="h_label_combo_box" id="face_sets" posparent="parent" posref="TL TL"
2401 x="0" y="0" hardtext="uiR2EdFaceSets" on_change_params="r2:selectFaceSets()" />
2403 <!-- Eye color slider -->
2404 <instance template="label_slider" id="slider_eye_color" y="-18" posparent="face_sets" hardtext="uiR2EdEyeColor"
2405 params="r2:changeBodyAttribute('EyesColor', 'local')"
2406 end_params="r2:changeBodyAttribute('EyesColor', 'commit')"
2407 cancel_params="r2:changeBodyAttribute('EyesColor', 'cancel')" max="7" />
2409 <!-- Tattoos slider -->
2410 <instance template="label_slider" id="slider_tattoos" posparent="slider_eye_color" hardtext="uiR2EdTattoos"
2411 params="r2:changeBodyAttribute('Tattoo', 'local')"
2412 end_params="r2:changeBodyAttribute('Tattoo', 'commit')"
2413 cancel_params="r2:changeBodyAttribute('Tattoo', 'cancel')" max="31" />
2415 <!-- Haircut slider -->
2416 <instance template="label_slider" id="slider_haircut" posparent="slider_tattoos" hardtext="uiR2EdHaircut"
2417 params="r2:changeBodyAttribute('HairType', 'local')"
2418 end_params="r2:changeBodyAttribute('HairType', 'commit')"
2419 cancel_params="r2:changeBodyAttribute('HairType', 'cancel')" max="6" />
2421 <!-- Hair color slider -->
2422 <instance template="label_slider" id="slider_hair_color" posparent="slider_haircut" hardtext="uiR2EdHairColor"
2423 params="r2:changeBodyAttribute('HairColor', 'local')"
2424 end_params="r2:changeBodyAttribute('HairColor', 'commit')"
2425 cancel_params="r2:changeBodyAttribute('HairColor', 'cancel')" max="5" />
2427 <!-- Random and Add list buttons -->
2428 <instance template="button_random_add_list" id="face_sets_buttons" posparent="bottom_left_body_features"
2429 posref="BL BL" x="0" y="0"
2430 onclick_random="lua" onclick_random_param="r2:randomFace()"
2431 onclick_add_list="proc" onclick_add_list_param="add_face_sets_active" />
2437 <group id="right_body_features" sizeref="w" w="0" h="393" x="10" y="0" posparent="top_left_body_features"
2440 <group id="back_right" sizeref="wh" posref="TL TL">
2441 <view type="bitmap" id="back" scale="true" sizeref="wh" h="0" w="0" texture="W_box_blank.tga"
2442 inherit_gc_alpha="true"/>
2445 <group id="face_morph_scroll_target" posparent="parent" posref="TL TL" x="10" y="-10" sizeref="wh" w="-20" h="-20">
2447 <!-- Face morph combo box -->
2448 <instance template="h_label_combo_box" id="face_morph" posparent="parent" posref="TL TL"
2449 x="0" y="0" hardtext="uiR2EdFaceMorph" on_change_params="r2:selectMorphSets()" />
2451 <!-- Morph1 slider -->
2452 <instance template="label_slider" y="-18" id="slider_morph_target1" posparent="face_morph"
2453 params="r2:changeBodyAttribute('MorphTarget1', 'local')"
2454 end_params="r2:changeBodyAttribute('MorphTarget1', 'commit')"
2455 cancel_params="r2:changeBodyAttribute('MorphTarget1', 'cancel')" max="7" />
2457 <!-- Morph2 slider -->
2458 <instance template="label_slider" id="slider_morph_target2" posparent="slider_morph_target1"
2459 params="r2:changeBodyAttribute('MorphTarget2', 'local')"
2460 end_params="r2:changeBodyAttribute('MorphTarget2', 'commit')"
2461 cancel_params="r2:changeBodyAttribute('MorphTarget2', 'cancel')" max="7" />
2463 <!-- Morph3 slider -->
2464 <instance template="label_slider" id="slider_morph_target3" posparent="slider_morph_target2"
2465 params="r2:changeBodyAttribute('MorphTarget3', 'local')"
2466 end_params="r2:changeBodyAttribute('MorphTarget3', 'commit')"
2467 cancel_params="r2:changeBodyAttribute('MorphTarget3', 'cancel')" max="7" />
2469 <!-- Morph4 slider -->
2470 <instance template="label_slider" id="slider_morph_target4" posparent="slider_morph_target3"
2471 params="r2:changeBodyAttribute('MorphTarget4', 'local')"
2472 end_params="r2:changeBodyAttribute('MorphTarget4', 'commit')"
2473 cancel_params="r2:changeBodyAttribute('MorphTarget4', 'cancel')" max="7" />
2475 <!-- Morph5 slider -->
2476 <instance template="label_slider" id="slider_morph_target5" posparent="slider_morph_target4"
2477 params="r2:changeBodyAttribute('MorphTarget5', 'local')"
2478 end_params="r2:changeBodyAttribute('MorphTarget5', 'commit')"
2479 cancel_params="r2:changeBodyAttribute('MorphTarget5', 'cancel')" max="7" />
2481 <!-- Morph6 slider -->
2482 <instance template="label_slider" id="slider_morph_target6" posparent="slider_morph_target5"
2483 params="r2:changeBodyAttribute('MorphTarget6', 'local')"
2484 end_params="r2:changeBodyAttribute('MorphTarget6', 'commit')"
2485 cancel_params="r2:changeBodyAttribute('MorphTarget6', 'cancel')" max="7" />
2487 <!-- Morph7 slider -->
2488 <instance template="label_slider" id="slider_morph_target7" posparent="slider_morph_target6"
2489 params="r2:changeBodyAttribute('MorphTarget7', 'local')"
2490 end_params="r2:changeBodyAttribute('MorphTarget7', 'commit')"
2491 cancel_params="r2:changeBodyAttribute('MorphTarget7', 'cancel')" max="7" />
2494 <instance template="label_slider" id="slider_morph_target8" posparent="slider_morph_target7"
2495 params="r2:changeBodyAttribute('MorphTarget8', 'local')"
2496 end_params="r2:changeBodyAttribute('MorphTarget8', 'commit')"
2497 cancel_params="r2:changeBodyAttribute('MorphTarget8', 'cancel')" max="7" />
2499 <!-- Random and Add list buttons -->
2500 <instance template="button_random_add_list" id="face_morph_buttons" posparent="right_body_features"
2501 posref="BL BL" x="0" y="0"
2502 onclick_random="lua" onclick_random_param="r2:randomFaceMorph()"
2503 onclick_add_list="proc" onclick_add_list_param="add_face_morph_active" />
2511 <ctrl style="button_ok" id="preview" x="11" y="0" posparent="menu" posref="BL TL"
2512 text_y="0" onclick_l="lua" params_l="r2:preview()" hardtext="uiR2EdPreview" />
2517 <tree node="r2ed_npc">
2521 <!-- ****************** -->
2522 <!-- combat mode widget -->
2523 <!-- ****************** -->
2524 <proc id="combat_mode_active">
2525 <action handler="enter_modal" params="group=ui:interface:r2ed_combat_mode" />
2528 <group type="modal" id="r2ed_combat_mode" exit_click_out="true" posref="ML ML" x="-70" w="440" h="255" options="skin_modal" >
2530 <group id="combat_mode_group" x="10" y="-10" w="420" h="209" posref="TL TL">
2532 <group id="back_combat_mode" sizeref="wh" posref="TL TL">
2533 <view type="bitmap" id="back" scale="true" sizeref="wh" h="0" w="0" texture="W_box_blank.tga"
2534 inherit_gc_alpha="true"/>
2538 <group id="filter" sizeref="w" h="20" x="10" y="-7" posparent="parent" posref="TL TL">
2541 <instance template="label_toggle_button" id="melee" posparent="parent"
2542 posref="TL TL" x="0" y="0" w="119" hardtext="uiR2EdMelee"/>
2545 <instance template="label_toggle_button" id="range" posparent="melee"
2546 posref="TR TL" x="0" w="119" hardtext="uiR2EdRange"/>
2549 <instance template="label_toggle_button" id="nuke" posparent="range"
2550 posref="TR TL" x="0" w="119" hardtext="uiR2EdNuke"/>
2553 <instance template="label_toggle_button" id="heal" posparent="nuke"
2554 posref="TR TL" x="0" w="119" hardtext="uiR2EdHeal"/>
2557 <!-- Action sets combo box -->
2558 <instance template="label_combo_box" id="action_sets" posparent="filter" posref="BL TL"
2559 y="-8" w="180" hardtext="uiR2EdActionSets" />
2563 <group id="actions" w="400" h="200" x="0" y="-10" posparent="action_sets" posref="BL TL">
2565 <!-- Action label -->
2566 <instance template="label_edit_box" id="action_label" posparent="parent" posref="TL TL"
2567 x="0" y="0" w="180" hardtext="uiR2EdActions" fontsize="10"/>
2569 <!-- Existing actions list -->
2570 <group id="actions_list" posparent="action_label" sizeref="w" w="0" h="82" posref="BL TL" x="0" y="-2">
2571 <instance template="box_widget" id="back" sizeref="wh" w="0" h="0" />
2573 <group id="crop" posparent="parent" posref="TL TL" x="0" y="0" sizeref="wh" w="-4" h="-4" />
2575 <group id="list" posparent="crop" posref="TL TL" x="0" y="-4" sizeref="w" child_resize_h="true"
2576 child_resize_hmargin="4" w="-4" max_sizeparent="crop" max_sizeref="h" max_h="-4" >
2578 <group type="scroll_text" id="list_txt" sizeref="w" child_resize_h="true" child_resize_wmargin="16"
2579 child_resize_hmargin="16" posref="TL TL" x="0" y="0" min_height="160" max_height="160" >
2581 <group type="list" id="text_list" hardtext="uiCongifExplanation" shadow="true" fontsize="10"
2582 justification="justified" color="255 255 255 160" space="3"
2583 global_color="true" posref="TL TL" x="8" y="-8" sizeref="hw" w="-16" h="-16" />
2587 <ctrl style="skin_scroll" id="scroll_actions" align="T" target="list" posparent="crop" posref="TR TR"
2591 <!-- Add/remove buttons -->
2592 <ctrl type="button" id="add" button_type="push_button" posparent="actions_list" x="12" y="-12" posref="TR TL"
2593 tx_normal="W_arrow_right_0.tga" tx_pushed="W_arrow_right_0.tga" tx_over="W_button_12_over.tga"
2594 onclick_l="" params_l="" onclick_r="" params_r="" />
2595 <ctrl type="button" id="remove" button_type="push_button" x="0" y="-6" posparent="add" posref="BL TL"
2596 tx_normal="W_arrow_left_0.tga" tx_pushed="W_arrow_left_0.tga" tx_over="W_button_12_over.tga"
2597 onclick_l="" params_l="" onclick_r="" params_r="" />
2599 <!-- Actions of NPC -->
2600 <group id="npc_actions" posparent="actions_list" w="180" h="82" posref="TR TL" x="40" y="22">
2603 <instance template="box_widget" id="back" sizeref="wh" w="0" h="0" />
2605 <group id="crop" posparent="parent" posref="TL TL" x="0" y="0" sizeref="wh" w="-4" h="-4" />
2607 <group id="list" posparent="crop" posref="TL TL" x="0" y="-4" sizeref="w" child_resize_h="true"
2608 child_resize_hmargin="4" w="-4" max_sizeparent="crop" max_sizeref="h" max_h="-4" >
2610 <group type="scroll_text" id="list_txt" sizeref="w" child_resize_h="true" child_resize_wmargin="16"
2611 child_resize_hmargin="16" posref="TL TL" x="0" y="0" min_height="160" max_height="160" >
2613 <group type="list" id="text_list" hardtext="uiCongifExplanation" shadow="true" fontsize="10"
2614 justification="justified" color="255 255 255 160" space="3"
2615 global_color="true" posref="TL TL" x="8" y="-8" sizeref="hw" w="-16" h="-16" />
2620 <ctrl style="skin_scroll" id="scroll_npc_actions" align="T" target="list" posparent="crop" posref="TR TR"
2626 <instance template="h_label_edit_box" id="weight" y="-2" x="0" posparent="npc_actions" posref="BL TL"
2627 hardtext="uiR2EdWeight" w="100" w_label="40" w_box="60" fontsize="10"/>
2629 <!-- Add list button -->
2630 <ctrl style="button_ok" id="add_list" x="18" y="0" posparent="weight" posref="BR BL"
2631 text_y="0" onclick_l="" params_l="" hardtext="uiR2EdAddList" tooltip="" />
2636 <!-- Ok / Cancel / Update buttons -->
2637 <group id="ok_cancel_update" w="400" h="20" x="10" y="-10" posparent="combat_mode_group" posref="BL TL">
2640 <ctrl style="button_ok" id="ok" x="0" y="0" posparent="parent" posref="TL TL"
2641 text_y="0" onclick_l="leave_modal" params_l="" hardtext=" OK " tooltip="" />
2644 <ctrl style="button_ok" id="cancel" x="110" y="0" posparent="ok" posref="TR TL"
2645 text_y="0" onclick_l="leave_modal" params_l="" hardtext=" CANCEL " tooltip="" />
2648 <ctrl style="button_ok" id="update" x="110" y="0" posparent="cancel" posref="TR TL"
2649 text_y="0" onclick_l="leave_modal" params_l="" hardtext=" UPDATE " tooltip="" />
2655 <!-- *********************** -->
2656 <!-- BODY / EQUIPMENT SET -->
2657 <!-- *********************** -->
2658 <template name="add_sets" edit_text="" combo_text="" hardtext="" add_params="" update_params=""
2659 remove_params="" params_l="" random_params="" >
2661 <group id="group_add_sets" sizeref="wh" x="0" y="-2" posref="TL TL" >
2663 <view type="text" id="title" posref="TL TL" x="70" y="-6" hardtext="#hardtext" shadow="true" color="255 255 255 255" fontsize="12"/>
2665 <!-- Close button -->
2666 <ctrl type="button" id="close" button_type="push_button" posref="TR TR" x="-8" y="-4"
2667 tx_normal="w_win_close.tga" tx_pushed="w_win_close.tga" tx_over="W_button_14_over.tga"
2668 onclick_l="lua" params_l="#params_l" />
2670 <group id="sets" x="10" y="-23" w="205" h="181" posref="TL TL">
2672 <group id="back_add_sets" sizeref="wh" posref="TL TL">
2673 <view type="bitmap" id="back" scale="true" sizeref="wh" h="0" w="0" texture="W_box_blank.tga"
2674 inherit_gc_alpha="true"/>
2678 <instance template="label_edit_box" id="new_sets" posparent="parent" posref="TL TL"
2679 x="10" y="-10" w="186" hardtext="#edit_text" fontsize="12" max_num_chars="20" />
2682 <ctrl style="button_ok" id="add" x="0" y="-2" posparent="new_sets" posref="BL TL"
2683 text_y="0" onclick_l="lua" params_l="#add_params" hardtext="uiR2EdAdd" />
2685 <!-- Random sets -->
2686 <ctrl style="button_ok" id="random_sets" x="40" y="-20" posparent="add" posref="BL TL"
2687 text_y="0" onclick_l="lua" params_l="#random_params" hardtext="uiR2EdRandomSet" />
2689 <!-- Update sets -->
2690 <instance template="label_combo_box" id="update_sets" posparent="random_sets" posref="BL TL"
2691 x="-40" y="-20" w="186" hardtext="#combo_text" fontsize="12" />
2694 <ctrl style="button_ok" id="update" x="0" y="-2" posparent="update_sets" posref="BL TL"
2695 text_y="0" onclick_l="lua" params_l="#update_params" hardtext="uiR2EdUpdate" />
2697 <!-- Remove button -->
2698 <ctrl style="button_ok" id="remove" x="28" y="0" posparent="update" posref="TR TL"
2699 text_y="0" onclick_l="lua" params_l="#remove_params" hardtext="uiR2EdRemove" tooltip="" />
2706 <proc id="add_body_sets_active">
2707 <action handler="enter_modal" params="group=ui:interface:r2ed_add_body_sets" />
2710 <group type="modal" id="r2ed_add_body_sets" exit_click_out="true" posref="ML ML" x="-70" w="225" h="218"
2711 options="skin_modal" >
2712 <instance template="add_sets" edit_text="New body sets" combo_text="Body sets list" hardtext="uiR2EdBodySets"
2713 add_params="r2:addBodySets()" update_params="r2:updateBodySets()" remove_params="r2:removeBodySets()"
2714 params_l="r2:closeModalBodySets()" random_params="r2:randomSets('body_sets')"/>
2718 <!-- ****************** -->
2720 <!-- ****************** -->
2721 <proc id="add_face_sets_active">
2722 <action handler="enter_modal" params="group=ui:interface:r2ed_add_face_sets" />
2725 <group type="modal" id="r2ed_add_face_sets" exit_click_out="true" posref="ML ML" x="-70" w="225" h="218"
2726 options="skin_modal" >
2727 <instance template="add_sets" edit_text="New face sets" combo_text="Face sets list" hardtext="uiR2EdFaceSets"
2728 add_params="r2:addFaceSets()" update_params="r2:updateFaceSets()" remove_params="r2:removeFaceSets()"
2729 params_l="r2:closeModalFaceSets()" random_params="r2:randomSets('face_sets')" />
2733 <!-- ****************** -->
2735 <!-- ****************** -->
2736 <proc id="add_face_morph_active">
2737 <action handler="enter_modal" params="group=ui:interface:r2ed_add_face_morph" />
2740 <group type="modal" id="r2ed_add_face_morph" exit_click_out="true" posref="ML ML" x="-300" w="225" h="218"
2741 options="skin_modal" onclick_out="lua" onclick_out_params="r2:closeModalFaceMorph()">
2742 <instance template="add_sets" edit_text="New face morph" combo_text="Face morph list" hardtext="uiR2EdFaceMorph"
2743 add_params="r2:addFaceMorph()" update_params="r2:updateFaceMorph()" remove_params="r2:removeFaceMorph()"
2744 params_l="r2:closeModalFaceMorph()" random_params="r2:randomSets('face_morph')" />
2748 <!-- ****************** -->
2750 <!-- ****************** -->
2751 <proc id="add_equipment_active">
2752 <action handler="enter_modal" params="group=ui:interface:r2ed_add_equipment_set" />
2755 <group type="modal" id="r2ed_add_equipment_set" exit_click_out="true" posref="ML ML" x="-300" w="225" h="218"
2756 options="skin_modal" onclick_out="lua" onclick_out_params="r2:closeModalEquipment()">
2757 <instance template="add_sets" edit_text="New equipment" combo_text="Equipment list" hardtext="uiR2EdEquipment"
2758 add_params="r2:addEquipmentSet()" update_params="r2:updateEquipmentSet()" remove_params="r2:removeEquipment()"
2759 params_l="r2:closeModalEquipment()" random_params="r2:randomSets('equipment_sets')" />
2763 <!-- ****************** -->
2764 <!-- ADMIN WINDOW -->
2765 <!-- ****************** -->
2767 <!-- MOVED TO help.xml
2768 <group type="container" id="r2ed_web_admin" w="410" h="400" title="uiR2EDWebAdminWindow" global_color="false"
2769 resizer="true" pop_min_w="100" pop_min_h="96" pop_max_w="2000" pop_max_h="1600"
2770 title_bar_open="false" open_button="false" force_open_out="true"
2771 lockable="true" openable="false" opened="true" movable="true" active="false">
2775 <group id="header_closed" x="0" y="0" h="12" posref="TL TL"
2776 group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color" >
2779 <group id="header_opened" x="0" y="0" w="0" h="16" posref="TL TL"
2780 group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color" >
2782 <ctrl style="text_button_header" button_type="push_button" id="browse_redo" posref="MR MR" x="-16" y="0"
2783 hardtext="uiR2EDRefreshButton" tooltip="uiR2EDRefreshButton" onclick_l="lua"
2784 params_l="getUICaller().parent.parent:refresh()" frozen="true" />
2785 <ctrl style="text_button_header" button_type="push_button" id="browse_redo" posref="MR MR" x="-16" y="0"
2786 hardtext="uiBrowseRedoButton" tooltip="uittBrowseRedo" onclick_l="browse_redo"
2787 params_l="name=ui:interface:r2ed_web_admin:admin_web_page" frozen="true" />
2788 <ctrl style="text_button_header" button_type="push_button" id="browse_undo" posparent="browse_redo" posref="ML MR" x="-4" y="0"
2789 hardtext="uiBrowseUndoButton" tooltip="uittBrowseUndo" onclick_l="browse_undo"
2790 params_l="name=ui:interface:r2ed_web_admin:admin_web_page" frozen="true" />
2795 <group id="header_closed" x="0" y="0" h="12" posref="TL TL">
2798 <group id="header_opened" x="0" y="0" w="0" h="16" posref="TL TL">
2799 <ctrl style="text_button_header" button_type="push_button" id="browse_refresh" posref="MR MR" x="-16" y="0"
2800 hardtext="uiR2EDRefreshButton" tooltip="uiR2EDRefreshButton" onclick_l="browse_refresh"
2801 params_l="name=ui:interface:r2ed_web_admin:content:admin_web_page" frozen="false" /> -->
2802 <!-- <ctrl style="text_button_header" button_type="push_button" id="browse_redo" posref="MR MR" x="-16" y="0"
2803 hardtext="uiBrowseRedoButton" tooltip="uittBrowseRedo" onclick_l="browse_redo"
2804 params_l="name=ui:interface:r2ed_web_admin:admin_web_page" frozen="true" />
2805 <ctrl style="text_button_header" button_type="push_button" id="browse_undo" posparent="browse_redo" posref="ML MR" x="-4" y="0"
2806 hardtext="uiBrowseUndoButton" tooltip="uittBrowseUndo" onclick_l="browse_undo"
2807 params_l="name=ui:interface:r2ed_web_admin:admin_web_page" frozen="true" />
2811 <group id="content" x="0" y="0" w="0" h="0" posref="TL TL" >
2813 <group type="html" id="admin_web_page" posref="TL TL" posparent="parent" url="home" title_prefix="uiR2EDWebAdminWindow"
2814 sizeref="wh" x="6" y="0" w="-12" h="0"
2815 background_color="0 0 0 0"
2816 error_color="255 240 48 255"
2817 link_color="240 155 100 255"
2818 text_color="210 210 210 255"
2819 h1_color="255 255 255 255"
2820 h2_color="255 255 255 255"
2821 h3_color="255 255 255 255"
2822 h4_color="255 255 255 255"
2823 h5_color="255 255 255 255"
2824 h6_color="255 255 255 255"
2833 paragraph_begin_space="1"
2834 multi_line_space_factor="0.25"
2841 checkbox_bitmap_normal="w_slot_on.tga"
2842 checkbox_bitmap_pushed="w_opacity_on.tga"
2843 checkbox_bitmap_over=""
2844 background_bitmap_view="black2"
2846 browse_next_time="false"
2848 form_text_area_group="edit_box_widget_multiline"
2852 browse_refresh="ui:interface:r2ed_web_admin:header_opened:browse_refresh"
2854 <group id="black" posref="BR BR" sizeref="hw" w="-12" h="-12" inherit_gc_alpha="true"/>
2855 <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true"/>
2856 <view type="bitmap" id="black2" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" global_color="false"/>
2857 <group type="list" id="text_list" fontsize="9" posref="TL TL" posparent="black" x="2" y="-2" space="0" sizeref="hw" w="-4" h="-4" maxelements="2000"/>
2859 <ctrl style="skin_scroll" id="scroll_bar" />
2864 <!-- browse_undo="ui:interface:help_browser:header_opened:browse_undo"
2865 browse_redo="ui:interface:help_browser:header_opened:browse_redo"
2867 <!-- <tree node="r2ed_web_admin">
2871 <!-- ****************** -->
2873 <!-- ****************** -->
2875 <style style="r2_select_bar_button_style" type="text_button" button_type="push_button"
2876 tx_normal="r2_select_bar_start_normal" tx_pushed="r2_select_bar_start_normal" tx_over="r2_select_bar_start_over"
2880 global_color="false"
2881 force_text_over="true"
2882 global_color_normal="false" global_color_over="false" global_color_pushed="false"
2883 text_y="-2" fontsize="14" shadow="true"
2884 text_color_normal="255 255 255 128" text_color_pushed="255 255 255 128" text_color_over="255 255 255 255" />
2886 <style style="r2_select_menu_button_style" type="text_button" button_type="push_button"
2887 tx_normal="r2_select_menu" tx_pushed="r2_select_menu_pushed" tx_over="r2_select_menu_over"
2891 global_color="false"
2892 force_text_over="true"
2893 global_color_normal="false" global_color_over="false" global_color_pushed="false"
2894 text_y="-2" fontsize="14" shadow="true"
2895 text_color_normal="255 255 255 128" text_color_pushed="255 255 255 255" text_color_over="255 255 255 255" />
2899 <template name="r2ed_select_bar_button" id="" onclick_l="" params_l="" onclick_r="" params_r="" keep="true">
2900 <group id="#id" child_resize_w="true" child_resize_h="true">
2901 <ctrl style="r2_select_bar_button_style" over_when_pushed="false" id="b" x="0" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" hardtext="select" onclick_l="#onclick_l" params_l="#params_l" onclick_r="#onclick_r" params_r="#params_r"/>
2902 <!-- optionnal icon over the button -->
2903 <view type="bitmap" id="icon" active="false" w="14" h="14" posref="ML ML" x="12" y="1" scale="true" texture="blank.tga" global_color="false"/>
2907 <!-- max number of buttons in the select bar -->
2908 <define id="r2ed_max_num_select_bar_button" value="4"/>
2910 <group id="r2ed_select_bar" posref="BL BL" x="28" y="-2" child_resize_w="true" child_resize_h="true">
2911 <group id="buttons" type="list" addelt="R" align="B"
2912 active="true" x="0" y="0" posref="BL BL"
2913 child_resize_w="true"
2916 <!-- filled by code -->
2918 <ctrl style="r2_select_menu_button_style" active="false" over_when_pushed="false" id="sequences" x="16" posparent="buttons" posref="TR TL" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" hardtext="uiR2EDSequences" onclick_l="lua" params_l="r2.SelectBar:browseSequences()"/>
2921 <tree node="r2ed_select_bar">
2924 <group type="menu" id="r2ed_select_bar_menu" onpostclick_out="lua" onpostclick_out_params="r2.SelectBar:onMenuPostClickOut()" extends="r2ed_base_menu_look" mouse_pos="false" case_mode="0">
2925 <!-- filled by code -->
2929 <!-- mini toolbar -->
2930 <!-- max number of buttons in the contextual toobar -->
2931 <define id="r2ed_max_num_mini_buttons" value="8"/>
2934 <template name="r2ed_mini_tool" id="" onclick_l="" params_l="" onclick_r="" params_r="" keep="true" posref="BL BL" posparent="parent" size="20">
2935 <group id="#id" child_resize_w="true" child_resize_wmargin="2" child_resize_h="true" posref="#posref" posparent="#posparent">
2936 <ctrl type="button" w="#size" h="#size" over_when_pushed="false" id="b" x="0"
2937 button_type="push_button"
2938 color="255 255 255 255"
2939 col_over="255 255 255 255"
2940 col_pushed="255 255 255 255"
2942 onclick_l="#onclick_l"
2943 params_l="#params_l"
2944 onclick_r="#onclick_r"
2945 params_r="#params_r"
2946 global_color="false"
2947 global_color_normal="false"
2948 global_color_over="false"
2949 global_color_pushed="false"
2960 <tree node="r2ed_mini_toolbar">
2964 <!-- main menu button (also include the mini-bar -->
2965 <group id="r2ed_main_menu_button"
2966 active="true" x="0" y="0" posref="BR BR"
2967 child_resize_w="true"
2968 child_resize_h="true"
2970 <view type="bitmap" id="bg" w="256" h="28" scale="true" posref="BR BR" texture="r2_gradient.tga" color="255 255 255 127"/>
2971 <ctrl style="r2_main_menu_button_style" over_when_pushed="false" id="b" posref="BR BR" x="0" wmargin="8" color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" onclick_l="lua" params_l="r2:popMainMenu()" hardtext="uiR2EDMainMenu"/>
2972 <group id="mini_toolbar"
2973 active="true" x="0" y="-8"
2974 child_resize_w="true"
2975 child_resize_h="true"
2976 posparent="b" posref="TL TR"
2978 <group id="buttons" align="T" child_resize_h="true" child_resize_w="true" >
2979 <vector template="r2ed_mini_tool" _size="%r2ed_max_num_mini_buttons" _firstpos="BL BL" _nextpos="BR BL" id="b$i" texture="r2_icon_dialog_mini.tga" w="20" h="20"/>
2984 <tree node="r2ed_main_menu_button">
2989 <!-- *********************** -->
2990 <!-- CONTEXTUAL TOOLBAR -->
2991 <!-- *********************** -->
2993 <!-- max number of buttons in the contextual toobar -->
2994 <define id="r2ed_max_num_contextual_buttons" value="20"/>
2996 <group id="r2ed_contextual_toolbar_new"
2997 active="true" x="0" y="3" posparent="r2ed_select_bar" posref="TL BL"
2998 child_resize_w="true"
2999 child_resize_h="true"
3001 <group id="buttons" align="T" child_resize_h="true" child_resize_w="true">
3002 <vector template="r2ed_tool" _size="%r2ed_max_num_contextual_buttons" _firstpos="BL BL" _nextpos="BR BL" id="b$i" active="false" onclick_l="lua" params_l="r2.ContextualCommands:runCommand($i)" w="32" h="32"
3004 on_tooltip_params="r2:updateContextualCommandTooltip($i)"
3009 <tree node="r2ed_contextual_toolbar_new">
3012 <!-- *********************** -->
3013 <!-- FEATURES INFO -->
3014 <!-- *********************** -->
3016 <proc id="help_close">
3017 <action handler="lua" params="r2.setFeatureDisplayHelp()"/>
3018 <action handler="set" params="target='ui:interface:feature_help:active'|value=0"/>
3021 <group type="container" id="feature_help" w="370" pop_min_w="370" pop_max_w="370" h="550" pop_min_h="550" pop_max_h="550"
3022 title="" global_color="false" header_color="UI:SAVE:WIN:COLORS:R2_FEATURE_HELP" uc_title=""
3023 title_bar_open="false" open_button="false" force_open_out="true" right_button="false"
3024 lockable="true" openable="false" opened="true" movable="true" active="false" savable="true" >
3026 <group id="header_closed" x="0" y="0" child_resize_w="true" h="12" posref="TL TL"
3027 group_onclick_r="active_menu"
3028 group_params_r="menu=ui:interface:base_menu_with_color"
3032 <group id="header_opened" x="0" y="0" w="370" h="16" posref="TL TL"
3033 group_onclick_r="active_menu"
3034 group_params_r="menu=ui:interface:base_menu_with_color"
3038 <group id="content" x="0" y="0" posref="TL TL" w="0" h="0" sizeref="w">
3041 <!--<group id="tb_enclosing" sizeref="wh" w="-16" h="0" x="16" y="0" posref="TL TL">
3042 <instance template="inner_thin_border" inherit_gc_alpha="true"/>
3044 <group id="tb_enclosing" sizeref="w" w="-16" h="460" x="16" y="0" posref="TL TL" >
3045 <instance template="inner_thin_border" inherit_gc_alpha="true"/>
3047 <group id="enclosing" sizeref="w" w="-16" h="450" x="5" y="-5" posref="TL TL">
3048 <group id="help_text_enclosed"
3049 active="true" x="16" y="0" posref="TL TL"
3051 child_resize_h="true"
3055 <view type="text" id="help_text" posref="TL TL" posparent="parent" x="0" y="-14" color="255 255 255 255" fontsize="12" shadow="true"
3056 global_color="true" hardtext="" multi_line="true" multi_line_space="0" />
3058 <ctrl style="skin_scroll" id="scroll_bar" align="T" target="help_text_enclosed" />
3064 <!--<view type="text" id="help_text" posref="TL TL" posparent="parent" x="0" y="-14" color="255 255 255 255" fontsize="12" shadow="true"
3065 global_color="true" hardtext="" multi_line="true" multi_line_space="0" />
3067 <ctrl type="button" id="custom_bbox_enabled" button_type="toggle_button" posref="BL BL" posparent="tb_enclosing" x="0" y="-14"
3068 tx_normal="w_slot_on.tga" tx_pushed="w_opacity_on.tga" tx_over="w_slot_on.tga" pushed="true"
3069 color="255 255 255 255" col_pushed="255 255 255 255" col_over="255 255 255 0"
3071 params_l="r2.CustomBBox:updateFromUI()"
3073 <view type="text" id="text_custom" posparent="custom_bbox_enabled" posref="MR ML" x="4" y="-3" global_color="true" fontsize="12" shadow="true" hardtext="uiR2showMessageAgain" auto_clamp="true"/>
3075 <ctrl style="button_ok" x="0" y="6" posref="BM BM" text_y="0"
3076 onclick_l="proc" params_l="help_close" hardtext="uittOK" />
3082 <tree node="feature_help">
3086 <!-- context menu with edition look -->
3087 <group type="menu" id="game_context_menu_edition" extends="r2ed_base_menu_look" on_active="" on_active_params="">
3089 <!-- Put First NPC interaction, sorted by usage frequency-->
3091 <action id="trade_item" name="uimGcmTrade" handler="context_trade_item" params="" />
3092 <action id="trade_pact" name="uimGcmTradePact" handler="context_trade_pact" params="" />
3093 <action id="trade_phrase" name="uimGcmTradePhase" handler="context_trade_phrase" params="" />
3094 <action id="trade_teleport" name="uimGcmTeleport" handler="context_trade_teleport" params="" />
3095 <action id="trade_faction" name="uimGcmFaction" handler="context_trade_faction" params="" />
3096 <action id="trade_cosmetic" name="uimGcmCosmetic" handler="context_trade_cosmetic" params="" />
3098 <action id="trade_guild_options" name="uimGcmGuildOptions" handler="context_trade_guild_options" params="" />
3099 <action id="trade_outpost_building" name="uimGcmOutpostBuilding" handler="context_trade_outpost_building" params="" />
3100 <action id="trade_guild_role_master" name="uimGcmGuildRoleMaster" handler="context_trade_guild_role_master" params="" />
3101 <!-- choose mission -->
3102 <action id="choose_mission" name="uimGcmMissions" handler="context_choose_mission" params=""/>
3103 <!-- access to the web page -->
3104 <action id="web_page" name="" handler="context_web_page" params=""/>
3105 <!-- create guild -->
3106 <action id="create_guild" name="uimGcmCreateGuild" handler="context_create_guild" params="" />
3107 <!-- mission options -->
3108 <action id="mo0" name="" handler="mission_option" params="id=0" />
3109 <action id="mo1" name="" handler="mission_option" params="id=1" />
3110 <action id="mo2" name="" handler="mission_option" params="id=2" />
3111 <action id="mo3" name="" handler="mission_option" params="id=3" />
3112 <action id="mo4" name="" handler="mission_option" params="id=4" />
3113 <action id="mo5" name="" handler="mission_option" params="id=5" />
3114 <action id="mo6" name="" handler="mission_option" params="id=6" />
3115 <action id="mo7" name="" handler="mission_option" params="id=7" />
3116 <!-- mission ring -->
3117 <action id="mr0" name="" handler="mission_ring" params="id=0" />
3118 <action id="mr1" name="" handler="mission_ring" params="id=1" />
3119 <action id="mr2" name="" handler="mission_ring" params="id=2" />
3120 <action id="mr3" name="" handler="mission_ring" params="id=3" />
3121 <!-- Loot/Forage/Quartering -->
3122 <action id="loot_action" name="uimGcmLoot" handler="context_loot" params="" />
3123 <action id="quartering" name="uimGcmQuartering" handler="context_quartering" params="" />
3124 <!-- New BotChat By Yoyo -->
3125 <action id="choose_zc_charge" name="uimGcmZoneCharge" handler="context_choose_zc_charge" params=""/>
3126 <action id="cancel_zc_charge" name="uimGcmCancelZoneCharge" handler="context_cancel_zc_charge" params=""/>
3127 <action id="choose_building" name="uimGcmChooseBuilding" handler="context_choose_building" params=""/>
3128 <action id="destroy_building" name="uimGcmDestroyBuilding" handler="context_destroy_building" params=""/>
3129 <action id="outpost_state" name="uimGcmDeclareWar" handler="lua:game:outpostBCOpenStateWindow()" params=""/>
3130 <action id="buy_rm" name="uimGcmBuyRM" handler="context_buy_rm" params=""/>
3131 <action id="upgrade_rm" name="uimGcmUpgradeRM" handler="context_upgrade_rm" params=""/>
3132 <action id="outpost_bannish_player" name="uimGcmOutpostBanishPlayer" handler="outpost_ban_player" params=""/>
3133 <action id="outpost_bannish_guild" name="uimGcmOutpostBanishGuild" handler="outpost_ban_guild" params=""/>
3135 <!-- talk : engage conversation with player or ask news to a npc -->
3136 <action id="talk" name="uimGcmTalk" handler="context_talk" params="" />
3137 <action id="news" name="uimGcmNews" handler="context_talk" params="" />
3140 <!-- Action misc with selection -->
3143 <action id="attack" name="uimGcmAttack" handler="context_attack" params="" />
3144 <action id="duel" name="uimGcmDuel" handler="context_duel" params="" />
3145 <action id="unduel" name="uimGcmUnDuel" handler="context_unduel" params="" />
3146 <action id="pvp_challenge" name="uimGcmPvpChallenge" handler="context_pvp_challenge" params="" />
3147 <action id="unpvp_challenge" name="uimGcmUnPvpChanllenge" handler="context_unpvp_challenge" params="" />
3148 <action id="disengage" name="uimGcmDisengage" handler="context_disengage" params="" />
3150 <action id="assist" name="uimAssist" handler="assist_target" params="" />
3151 <action id="exchange" name="uimGcmExchange" handler="context_exchange" params="" />
3152 <action id="invit" name="uimGcmInvit" handler="context_invit" params="" />
3153 <action id="guild_invit" name="uimGcmGuildInvit" handler="context_guild_invit" params="" />
3154 <action id="add_to_friend_list" name="uimGcmAddToFriendList" handler="context_add_to_friend_list" params="" />
3156 <action id="mount" name="uimGcmMount" handler="beast_order" params="order=mount|beast_index=@UI:GCM_BEAST_SELECTED" />
3157 <action id="pa_follow" name="uimFollowMe" handler="beast_order" params="order=follow|beast_index=@UI:GCM_BEAST_SELECTED"/>
3158 <action id="pa_stop" name="uimGcmStop" handler="beast_order" params="order=stop|beast_index=@UI:GCM_BEAST_SELECTED"/>
3159 <action id="pa_free" name="uimGcmFree" handler="beast_order" params="order=free|beast_index=@UI:GCM_BEAST_SELECTED"/>
3160 <action id="pa_enter_stable" name="uimGcmEnterStable" handler="beast_order" params="order=enter_stable|beast_index=@UI:GCM_BEAST_SELECTED"/>
3161 <action id="extract_rm" name="uimGcmExtractRM" handler="context_extract_rm" params="" />
3162 <action id="follow" name="uimFollow" handler="command" params="follow" />
3163 <action id="quit_team" name="uimGcmQuitTeam" handler="context_quit_team" params="" />
3164 <action id="info" name="uimGcmInfo" handler="open_title_help" params="from=target" />
3165 <action id="build_totem" name="uimGcmChooseBuilding" handler="build_totem" params="" />
3167 <!-- Action with no selection -->
3169 <action id="free_look" name="uiMouseHead" handler="context_free_look" params="" />
3170 <action id="move" name="uimGcmMove" handler="context_move" params="" />
3171 <action id="stop" name="uimGcmStopMove" handler="context_stop" params="" />
3172 <action id="unseat" name="uimUnmount" handler="beast_order" params="order=unmount|beast_index=0" />