3 <root id="interface" x="0" y="0" w="800" h="600" active="true" />
5 <link expr="depends(@SERVER:USER:ACT_NUMBER)" action="macro_receive_action_end" />
7 <!-- ************************************ -->
8 <!-- * EDITION DES COMMANDES * -->
9 <!-- ************************************ -->
11 <!-- ASSIGN KEY TO COMMAND MODAL BOX -->
12 <proc id="modal_get_key_ok">
13 <action handler="reset_keyboard_focus" />
14 <action handler="ah_assign_key" />
17 <proc id="modal_get_key_cancel">
18 <action handler="reset_keyboard_focus" />
19 <action handler="leave_modal" />
22 <group type="modal_get_key" id="assign_key" exit_click_out="true" posref="MR MM" w="224" child_resize_h="true" child_resize_hmargin="8" >
23 <view type="text" id="text" posref="TL TL" x="6" y="-4" color="255 255 255 255" global_color="false" fontsize="14" shadow="true" hardtext="uiAssignKey" />
25 <instance template="box_widget" id="back_key" posref="TM TM" w="176" h="20" x="0" y="-20" />
26 <view type="text" id="keytext" posparent="back_key" posref="MM MM" x="0" y="-1" color="255 255 255 255" global_color="false" fontsize="10" shadow="true" />
27 <view type="text" id="inuse" posref="TM TM" x="0" y="-44" color="255 255 255 128" fontsize="10" shadow="true" multi_line="true" multi_line_space="0" line_maxw="216" />
29 <instance template="button_ok_cancel" posref="TR TR" x="-4" y="-70"
31 onclick_ok_param="modal_get_key_ok"
33 onclick_cancel_param="modal_get_key_cancel" />
38 <!-- EDIT COMMAND MAIN CONTAINER -->
39 <!-- Choose Category, Action, Params and Key association -->
40 <template name="teditcmd" id="" keep="true" db_sel_cat="" db_sel_act="" db_sel_1p="" db_sel_2p="" db_disp_1p="" db_disp_2p="" >
41 <group style="container_modal" id="#id" w="338" h="256" title="uiEditCmd"
42 on_active="editcmd_open" on_active_params="#id"
43 header_color="UI:SAVE:WIN:COLORS:OPT" >
45 <group id="header_closed" x="0" y="0" h="16" posref="TL TL" >
48 <group id="header_opened" x="0" y="0" h="16" posref="TL TL" >
51 <group id="content" x="0" y="0" w="0" child_resize_h="true" child_resize_hmargin="0" posref="TL TL" >
53 <!-- Background : now used to define the comboSzone -->
54 <group id="back" posref="TL TL" w="320" h="216" x="0" y="0"/>
56 <!-- Category combo -->
57 <group type="combo_box" id="combo_cat" w="320" h="20" value="#db_sel_cat" posref="TL TL" x="0" y="-20" >
58 <instance template="combo_box_def1" />
60 <view type="text" id="combo_cat_name" posparent="combo_cat" posref="TL BL" x="0" y="0" color="255 255 255 128" fontsize="10" shadow="true" hardtext="uiCategory" />
63 <group type="combo_box" id="combo_action" w="320" h="20" value="#db_sel_act" posref="TL TL" x="0" y="-60" >
64 <instance template="combo_box_def1" />
66 <view type="text" id="combo_action_name" posparent="combo_action" posref="TL BL" x="0" y="0" color="255 255 255 128" fontsize="10" shadow="true" hardtext="uiAction" />
68 <!-- Param 1 : params diplayed depends on type of params -->
69 <group type="combo_box" id="first_param_list" value="#db_sel_1p" w="320" h="20" posref="TL TL" x="0" y="-100" >
70 <instance template="combo_box_def1" />
73 <instance template="edit_box_widget" id="first_param_editbox" w="320" h="20" posref="TL TL" x="0" y="-100" reset_focus_on_hide="true"
74 max_historic="10" prompt="" enter_loose_focus="true" multi_line="false" line_maxw="312"
75 onenter="editcmd_change_first_param" params="#id"
76 onchange="editcmd_change_first_param" onchange_params="#id" />
78 <link expr="eq(@#db_disp_1p,0)" target="first_param_list:active" />
79 <link expr="eq(@#db_disp_1p,1)" target="first_param_editbox:active" />
81 <view type="text" id="first_param_name" posparent="first_param_list" posref="TL BL" x="0" y="0" color="255 255 255 128" fontsize="10" shadow="true" hardtext="" />
84 <group type="combo_box" id="second_param_list" value="#db_sel_2p" w="320" h="20" posref="TL TL" x="0" y="-140" >
85 <instance template="combo_box_def1" />
88 <instance template="edit_box_widget" id="second_param_editbox" w="320" h="20" posref="TL TL" x="0" y="-140" reset_focus_on_hide="true"
89 max_historic="10" prompt="" enter_loose_focus="true" multi_line="false" line_maxw="312"
90 onenter="editcmd_change_second_param" params="#id"
91 onchange="editcmd_change_first_param" onchange_params="#id" />
93 <link expr="eq(@#db_disp_2p,0)" target="second_param_list:active" />
94 <link expr="eq(@#db_disp_2p,1)" target="second_param_editbox:active" />
96 <view type="text" id="second_param_name" posparent="second_param_list" posref="TL BL" x="0" y="0" color="255 255 255 128" fontsize="10" shadow="true" hardtext="" />
98 <!-- Action to do when category, action, 1st or 2nd params change -->
99 <link expr="@#db_sel_cat" action="editcmd_change_category" params="#id" />
100 <link expr="@#db_sel_act" action="editcmd_change_action" params="#id" />
101 <link expr="@#db_sel_1p" action="editcmd_change_first_param" params="#id"/>
102 <link expr="@#db_sel_2p" action="editcmd_change_second_param" params="#id"/>
104 <!-- Button key to directly define a key for this action (not displayed in macro mode) -->
105 <group id="keygrp" sizeref="w" h="42" posref="BM BM" y="4" posparent="back" >
106 <instance template="box_widget" id="back_key" posref="BM BM" w="176" h="20"/>
107 <view type="text" id="key_name" posparent="back_key" posref="TL BL" x="0" y="0" color="255 255 255 128" fontsize="8" shadow="true" hardtext="uiCmdKey" />
108 <view type="bitmap" id="sep" posref="BM BM" scale="true" sizeref="w" h="2" w="0" texture="W_line_hor.tga" y="40" />
110 <ctrl type="button" id="butkey" button_type="push_button" posref="BM BM" w="176" h="20" scale="true"
111 texture="blank.tga" tx_over="blank.tga" tx_pushed="blank.tga"
112 color="255 255 255 0" col_pushed="255 255 255 0" col_over="255 255 255 90"
113 global_color_normal="true" global_color_pushed="true" global_color_over="true"
114 onclick_l="editcmd_cmd_def_key" params_l="#id" />
115 <view type="text" id="txtkey" posparent="back_key" posref="MM MM" x="0" y="-1" color="255 255 255 255" fontsize="8" shadow="true" hardtext="uiEditCmdNone" />
118 <instance template="button_ok_cancel" posparent="back" posref="BR TR" x="0" y="-4"
119 onclick_ok="editcmd_ok"
120 onclick_ok_param="#id"
122 onclick_cancel_param="target_property=ui:interface:#id:active|value=0" />
128 <!-- ************************************ -->
129 <!-- * DEFINTION DES TOUCHES * -->
130 <!-- ************************************ -->
132 <!-- Menu for key edition -->
133 <variable entry="UI:VARIABLES:KEYS:MENU_LINE_EDITED" type="sint32" value="-1" />
134 <group type="menu" id="menu_key" extends="base_menu">
135 <action name="uimAssignKey" handler="keys_assign"/>
136 <action name="uimEditKey" handler="keys_edit" cond="canEditKey(@UI:VARIABLES:KEYS:MENU_LINE_EDITED)" />
137 <action name="uimDeleteKey" handler="keys_delete" cond="canDeleteKey(@UI:VARIABLES:KEYS:MENU_LINE_EDITED)" />
140 <!-- Called when keys container opend -->
141 <proc id="proc_keys_open">
142 <action handler="keys_open" params="" />
143 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:KEYS|value=1" />
145 <!-- Called when keys container closed -->
146 <proc id="proc_keys_close">
147 <action handler="set" params="target_property=ui:interface:editcmd:active|value=0" />
148 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:KEYS|value=0" />
150 <!-- Called when right-click on a key line -->
151 <proc id="proc_keys_menu">
152 <action handler="set" params="dblink=UI:VARIABLES:KEYS:MENU_LINE_EDITED|value=@0" />
153 <action handler="active_menu" params="menu=ui:interface:menu_key" />
156 <!-- TEMPLATE FOR ONE KEY -->
157 <template name="tk_line" keep="true" posparent="parent" posref="TL TL" h="14" id="" lineid="">
158 <group id="#id" w="388" h="#h" posparent="#posparent" posref="#posref"
159 group_onclick_r="proc" group_params_r="proc_keys_menu|#lineid"
160 group_onclick_l="keys_assign">
161 <!-- if change name.x, change command.line_maxw please -->
162 <view type="text" id="name" x="248" y="0" fontsize="10" shadow="true" />
163 <view type="text" id="command" line_maxw="238" x="0" y="0" fontsize="10" shadow="true"
164 over_extend_view_text="true" over_extend_parent_rect="true" />
168 <!-- KEYS MAIN CONTAINER -->
169 <group type="container" id="keys" w="420" h="16" resizer="false" openable="false" title="uiKeysTitle"
170 global_color="false" opened="true" pop_min_h="64"
171 movable="true" active="false" header_color="UI:SAVE:WIN:COLORS:OPT"
172 on_active="proc" on_active_params="proc_keys_open"
173 on_deactive="proc" on_deactive_params="proc_keys_close"
177 <group id="header_closed" x="0" y="0" h="16" posref="TL TL" >
180 <group id="header_opened" x="0" y="0" h="16" posref="TL TL"
181 group_onclick_r="active_menu"
182 group_params_r="menu=ui:interface:base_menu_with_color" >
184 <ctrl style="new_element_header" id="add_button" posref="MR MR" x="-16" y="0" wmargin="8" hardtext="uittNewKeyShortcut"
185 onclick_l="keys_new" />
187 <ctrl style="new_element_header" id="save_button" posparent="add_button" posref="ML MR" x="-4" y="0" wmargin="8" hardtext="uiSaveUI"
188 onclick_l="save_ui" />
192 <group id="content" x="0" y="0" w="0" child_resize_h="true" child_resize_hmargin="0" posref="TL TL" >
197 <!-- KEYS CONTAINER FOR ALL KEYS-->
198 <!-- Needed for scroll bar of the main container -->
199 <template name="t_all_keys" keep="false" id="" title="" >
200 <group type="container" id="#id" title="#title" w="320" h="128" openable="false" global_color="false" opened="true" resizer="false" savable="false" >
201 <group id="header_closed" x="0" y="0" h="16" posref="TL TL" >
203 <group id="header_opened" x="0" y="0" h="20" posref="TL TL" >
205 <group id="content" type="list" x="0" y="0" sizeref="w" over="true" posref="TL TL" >
210 <!-- the id must be keys_### where ### is the name of the category -->
211 <!-- dont remember if you add / remove a category to update hierarchy.xml -->
212 <instance template="t_all_keys" id="keys_player" title="uiKeysPlayerTitle" />
213 <instance template="t_all_keys" id="keys_animals" title="uiAnimalsTitle" />
214 <instance template="t_all_keys" id="keys_movement" title="uiKeysMovementTitle" />
215 <instance template="t_all_keys" id="keys_actions" title="uiKeysActionsTitle" />
216 <instance template="t_all_keys" id="keys_chat" title="uiKeysChatTitle" />
217 <instance template="t_all_keys" id="keys_view" title="uiKeysViewTitle" />
218 <instance template="t_all_keys" id="keys_windows" title="uiKeysWindowsTitle" />
219 <instance template="t_all_keys" id="keys_system" title="uiKeysSystemTitle" />
220 <instance template="t_all_keys" id="keys_edit" title="uiKeysEditTitle" />
221 <instance template="t_all_keys" id="keys_debug" title="uiKeysDebugTitle" />
222 <instance template="t_all_keys" id="keys_r2ed" title="uiR2EDActionCategory" />
225 <!-- ************************************************************************************************************************************************ -->
226 <!-- ************************************************************************************************************************************************ -->
227 <!-- ************************************************************************************************************************************************ -->
229 <!-- ************************************ -->
230 <!-- * DEFINTION DES MACROS * -->
231 <!-- ************************************ -->
233 <!-- ++++++++++++++++ -->
234 <!-- MACROS CONTAINER -->
235 <!-- ++++++++++++++++ -->
237 <group type="menu" id="options_macro" exit_click_b="true" extends="base_menu" >
238 <action name="uimMacroExec" handler="macros_exec" icon="r2ed_tool_start.tga" />
239 <action name="uimMacroEdit" handler="macros_edit" icon="r2ed_edit_dialog_small.tga" />
240 <action name="uimMacroCopy" handler="macros_copy" icon="r2ed_tool_copy.tga" />
242 <action name="uimMacroDel" handler="macros_del" icon="patch_off.tga" />
245 <!-- Template defining one macro in the macros container -->
246 <template name="element_macro" keep="true" posparent="parent" posref="TL TL" w="392" h="30" id="" >
247 <group id="#id" w="#w" h="#h" posparent="#posparent" posref="#posref" group_onclick_r="active_menu" group_params_r="menu=ui:interface:options_macro" >
248 <view type="bitmap" id="sep1" posref="TL TL" scale="true" sizeref="h" h="0" w="2" texture="W_line_ver.tga" x="-1" />
249 <view type="bitmap" id="sep2" posref="TR TR" scale="true" sizeref="h" h="0" w="2" texture="W_line_ver.tga" x="1" />
251 <view type="bitmap" id="sep3" posref="TL TL" scale="true" sizeref="w" h="2" w="0" texture="W_line_hor.tga" y="1" />
252 <view type="bitmap" id="sep4" posref="BL BL" scale="true" sizeref="w" h="2" w="0" texture="W_line_hor.tga" y="-1" />
255 <ctrl type="sheet" id="icon" nature="macro" posref="ML ML" x="4" y="0" dragable="true" />
257 <view type="bitmap" id="fakebutton" texture="W_slot_brick.tga" />
258 <view type="bitmap" id="back_icon" posparent="fakebutton" posref="TL TL" x="1" y="-1" texture="US_back_0.tga" global_color="false" />
259 <view type="bitmap" id="icon_icon" posparent="back_icon" posref="TL TL" texture="US_ico_0.tga" global_color="false"/>
260 <view type="bitmap" id="over_icon" posparent="icon_icon" posref="TL TL" texture="US_over_2.tga" global_color="false"/>
262 <ctrl type="button" id="icon_button" button_type="push_button" posref="ML ML" x="5" render_layer="2"
263 tx_normal="W_button_24_over.tga" tx_over="W_button_24_over.tga" tx_pushed="W_button_24_over.tga"
264 color="255 255 255 0" col_over="255 255 255 128" col_pushed="255 255 255 0" global_color_over="false"
265 onclick_l="" params_l="" />
268 <view type="text" id="macro_name" posparent="icon" posref="MR ML" x="8" fontsize="12" y="-1" shadow="true" />
270 <instance template="box_widget" id="back_key" posref="MR MR" w="128" h="20" x="-4" y="0"/>
272 <view type="text" id="macro_key" posref="MR MR" x="-4" y="-1" fontsize="10" shadow="true" hardtext="" color="255 255 255 128" />
276 <!-- Called when macro container opened -->
277 <proc id="proc_macros_open">
278 <action handler="macros_open" />
279 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:MACROS|value=1" />
281 <!-- Called when macro container closed -->
282 <proc id="proc_macros_close">
283 <action handler="set" params="target_property=ui:interface:editcmd:active|value=0" />
284 <action handler="set" params="target_property=ui:interface:new_macro:active|value=0" />
285 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:MACROS|value=0" />
288 <!-- MACROS MAIN CONTAINER -->
289 <!-- This container holds in its content 'element_macro' instances of the macros -->
290 <group type="container" id="macros" w="420" h="512" title="uiMacrosTitle" resizer="false" openable="false"
291 global_color="false" opened="true" header_color="UI:SAVE:WIN:COLORS:OPT"
292 movable="true" active="false"
293 on_active="proc" on_active_params="proc_macros_open"
294 on_deactive="proc" on_deactive_params="proc_macros_close"
298 <group id="header_closed" x="0" y="0" h="16" posref="TL TL" >
301 <group id="header_opened" x="0" y="0" h="18" posref="TL TL"
302 group_onclick_r="active_menu"
303 group_params_r="menu=ui:interface:base_menu_with_color" >
306 <ctrl style="new_element_header" id="add_button" posref="MR MR" x="-16" y="0" wmargin="8" hardtext="uittNewMacro"
307 onclick_l="macros_new_macro" />
309 <ctrl style="new_element_header" id="save_button" posparent="add_button" posref="ML MR" x="-4" y="0" wmargin="8" hardtext="uiSaveUI"
310 onclick_l="save_ui" />
314 <group id="content" x="0" y="0" over="true" child_resize_h="true" child_resize_hmargin="4" posref="TL TL" >
315 <group id="macros" x="10" y="-4" sizeref="w" posref="TL TL" child_resize_h="true" max_h="300" >
316 <group id="list" type="list" x="0" y="0" posref="TL TL" />
318 <ctrl style="skin_scroll" id="sv" posref="TL TL" y="-4" target="macros" />
321 <group id="content" x="0" y="0" w="0" h="0" posref="TL TL" >
325 <tree node="macros" />
328 <!-- +++++++++++++ -->
329 <!-- MACRO EDITION -->
330 <!-- +++++++++++++ -->
332 <group type="menu" id="options_macro_command" exit_click_b="true" extends="base_menu" >
333 <action name="uimMCMoveUp" handler="new_macro_cmd_move_up" icon="w_arrow_up_0.tga" />
334 <action name="uimMCMoveDown" handler="new_macro_cmd_move_down" icon="w_arrow_down_0.tga" />
335 <action name="uimMCEdit" handler="new_macro_cmd_edit" icon="r2ed_edit_dialog_small.tga" />
336 <action name="uimMCCopy" handler="new_macro_cmd_copy" icon="r2ed_tool_copy.tga" />
338 <action name="uimMCDel" handler="new_macro_cmd_delete" icon="patch_off.tga" />
341 <!-- Definition d'une commande dans une macro -->
342 <template name="macro_command" keep="true" posparent="parent" posref="TL TL" w="412" h="20" id="" >
343 <group id="#id" w="#w" h="#h" posparent="#posparent" posref="#posref" group_onclick_r="active_menu" group_params_r="menu=ui:interface:options_macro_command" >
344 <view type="bitmap" id="sep1" posref="TL TL" scale="true" sizeref="h" h="0" w="2" texture="W_line_ver.tga" x="-1" />
345 <view type="bitmap" id="sep2" posref="TR TR" scale="true" sizeref="h" h="0" w="2" texture="W_line_ver.tga" x="1" />
347 <view type="bitmap" id="sep3" posref="TL TL" scale="true" sizeref="w" h="2" w="0" texture="W_line_hor.tga" y="1" />
348 <view type="bitmap" id="sep4" posref="BL BL" scale="true" sizeref="w" h="2" w="0" texture="W_line_hor.tga" y="-1" />
350 <view type="bitmap" id="sep5" posref="BL BL" scale="true" sizeref="w" h="2" w="0" texture="W_line_hor.tga" y="-1" />
352 <view type="bitmap" id="fakebutton" posref="ML ML" x="4" y="0" texture="W_button_10_choice.tga" />
353 <view type="text" id="macro_name" posparent="fakebutton" posref="MR ML" x="4" fontsize="10" shadow="true" />
354 <view type="text" id="cmd_key" posref="MR MR" x="-4" fontsize="8" shadow="true" color="255 255 255 128" hardtext="" />
358 <!-- MACRO EDITION MAIN CONTAINER -->
359 <group style="container_modal" id="new_macro" w="420" h="512" title="uiNewMacro"
360 on_active="new_macro_open" modal_parent="macros"
361 header_color="UI:SAVE:WIN:COLORS:OPT" >
363 <group id="header_closed" x="0" y="0" h="16" posref="TL TL" >
366 <group id="header_opened" x="0" y="0" h="20" posref="TL TL" >
369 <group id="content" x="0" y="0" w="0" child_resize_h="true" child_resize_hmargin="4" posref="TL TL" >
371 <ctrl type="sheet" id="icon" nature="macro" posref="TL TL" x="2" y="-10" tooltip="uittMacroUserDefIcon" onclick_l="enter_modal" params_l="group=ui:interface:macro_icon_creation" dragable="false" />
373 <view type="bitmap" id="fakebutton" posref="TL TL" x="0" y="-10" texture="W_slot_brick.tga" />
374 <view type="bitmap" id="back_icon" posparent="fakebutton" posref="TL TL" x="1" y="-1" texture="US_back_0.tga" global_color="false"/>
375 <view type="bitmap" id="icon_icon" posparent="back_icon" posref="TL TL" texture="US_ico_0.tga" global_color="false"/>
376 <view type="bitmap" id="over_icon" posparent="icon_icon" posref="TL TL" texture="US_over_2.tga" global_color="false"/>
380 <group type="edit_box" id="edit_name" posparent="icon" posref="MR ML" x="4" y="0" w="198" h="20" child_resize_h="true"
381 onenter="new_macro_enter_name" params="" max_num_chars="19" prompt="" enter_loose_focus="true"
382 entry_type="text" reset_focus_on_hide="true" menu_r="" >
384 <instance template="box_widget" id="back_name" posref="TL TL" sizeref="w" w="0" h="20" />
385 <view type="text" id="edit_text" x="4" y="-1" posref="ML ML" multi_line="false"
386 fontsize="10" shadow="true" hardtext="" global_color="false"/>
391 <instance template="box_widget" id="back_key" posparent="edit_name" posref="MR ML" w="176" h="20" x="4" y="0"/>
392 <view type="text" id="macro_key" posparent="back_key" posref="MM MM" fontsize="8" y="-1" shadow="true" />
394 <!--<ctrl type="button" id="icon_button" button_type="push_button" posref="TL TL" y="-11" x="1" render_layer="2"
395 tx_normal="W_button_24_over.tga" tx_over="W_button_24_over.tga" tx_pushed="W_button_24_over.tga"
396 color="255 255 255 0" col_over="255 255 255 128" col_pushed="255 255 255 0" global_color_over="false"
397 onclick_l="" params_l="" />
399 <ctrl type="button" id="key_button" button_type="push_button" posparent="back_key" posref="TL TL" render_layer="2"
400 w="176" h="20" scale="true"
401 tx_normal="blank.tga" tx_over="blank.tga" tx_pushed="blank.tga"
402 color="255 255 255 0" col_pushed="255 255 255 0" col_over="255 255 255 90"
403 global_color_normal="true" global_color_pushed="true" global_color_over="true"
404 onclick_l="editcmd_cmd_def_key" params_l="editcmd" />
406 <view type="text" id="txticon" posparent="icon" posref="TL BL" fontsize="8" shadow="true" hardtext="uiMacroIcon" x="2" y="-3" />
407 <view type="text" id="name" posparent="edit_name" posref="TL BL" fontsize="8" shadow="true" hardtext="uiMacroName" x="2" y="0" />
408 <view type="text" id="key" posparent="back_key" posref="TL BL" fontsize="8" shadow="true" hardtext="uiMacroKey" x="2" y="0" />
410 <view type="bitmap" id="sep" posref="TL TL" scale="true" sizeref="w" h="2" w="0" texture="W_line_hor2.tga" color="255 255 255 128" y="-40" />
412 <view type="text" id="commands" posparent="sep" posref="BL TL" fontsize="10" shadow="true" hardtext="uiMacroCom" y="-6" />
415 <ctrl style="new_element_header" id="add_button" posparent="sep" posref="BR TR" x="0" y="-4" wmargin="8" hardtext="uiMacroAddCom"
416 onclick_l="new_macro_new_cmd" />
419 <group id="cmds" x="0" y="-22" over="true" sizeref="w" posref="TL TL" posparent="sep" child_resize_h="true" child_resize_hmargin="4">
420 <group id="macros" x="10" y="-4" sizeref="w" posref="TL TL" child_resize_h="true" max_h="300" >
421 <group id="list" type="list" x="0" y="0" posref="TL TL" />
423 <ctrl style="skin_scroll" id="sv" posref="TL TL" y="-4" target="macros" />
426 <instance template="button_ok_cancel" posparent="cmds" posref="BR TR" x="0" y="-4"
427 onclick_ok="new_macro_ok"
430 onclick_cancel_param="target_property=ui:interface:new_macro:active|value=0" />
435 <tree node="new_macro" />
439 <!-- +++++++++++++ -->
440 <!-- ICON CREATION -->
441 <!-- +++++++++++++ -->
443 <!-- Template that define slots -->
444 <template name="icon_sheet" id="" posparent="parent" posref="TL TL" x="0" y="0" w="0" h="26" >
445 <group id="#id" x="#x" y="#y" posparent="#posparent" posref="#posref" sizeref="w" h="#h" >
446 <view type="bitmap" id="sht1" posref="TL TL" x="0" y="0" texture="W_slot_brick.tga" />
447 <view type="bitmap" id="sht2" posparent="sht1" posref="TR TL" x="4" y="0" texture="W_slot_brick.tga" />
448 <view type="bitmap" id="sht3" posparent="sht2" posref="TR TL" x="4" y="0" texture="W_slot_brick.tga" />
449 <view type="bitmap" id="sht4" posparent="sht3" posref="TR TL" x="4" y="0" texture="W_slot_brick.tga" />
450 <view type="bitmap" id="sht5" posparent="sht4" posref="TR TL" x="4" y="0" texture="W_slot_brick.tga" />
454 <!-- ICON CREATION PROCEDURES -->
457 <proc id="change_icon_bg">
458 <action handler="set_macro_back" params="target=ui:interface:macro_icon_creation:icon|value=@0" />
462 <proc id="change_icon_fg">
463 <action handler="set_macro_icon" params="target=ui:interface:macro_icon_creation:icon|value=@0" />
467 <proc id="change_icon_pa">
468 <action handler="set_macro_over" params="target=ui:interface:macro_icon_creation:icon|value=@0" />
471 <!-- ICON CREATION MAIN MODAL WINDOW -->
472 <group type="modal" id="macro_icon_creation" exit_click_out="true" posref="TL TR" w="162" h="336" on_enter="" on_enter_params=""
473 on_active="macro_icon_creation_open" on_active_params="new_macro" options="skin_modal">
475 <view type="text" id="title" posref="TL TL" x="6" y="-4" color="255 255 255 255" fontsize="14" shadow="true" global_color="false" hardtext="uiIconCreation" />
478 <ctrl type="sheet" id="icon" nature="macro" posref="TM TM" x="0" y="-24" dragable="false" />
479 <view type="bitmap" id="sep" posref="TL TL" scale="true" sizeref="w" h="2" w="0" texture="W_line_hor.tga" y="-54" />
483 <group id="IconBackground" posref="TL TL" w="146" h="72" x="8" y="-64" >
484 <view type="text" id="Ico_back" posref="TL TL" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiIconBack" />
485 <instance template="icon_sheet" id="sheet1" posref="TL TL" y="-14" />
486 <instance template="icon_sheet" id="sheet2" posparent="sheet1" posref="BL TL" y="-4" />
489 <view type="bitmap" id="bg1" posparent="sheet1" posref="TL TL" x="1" y="-1" texture="US_back_0.tga" global_color="false"/>
490 <view type="bitmap" id="bg2" posparent="bg1" posref="TR TL" x="6" y="0" texture="US_back_1.tga" global_color="false"/>
491 <view type="bitmap" id="bg3" posparent="bg2" posref="TR TL" x="6" y="0" texture="US_back_2.tga" global_color="false"/>
492 <view type="bitmap" id="bg4" posparent="bg3" posref="TR TL" x="6" y="0" texture="US_back_3.tga" global_color="false"/>
493 <view type="bitmap" id="bg5" posparent="bg4" posref="TR TL" x="6" y="0" texture="US_back_4.tga" global_color="false"/>
496 <view type="bitmap" id="bg6" posparent="sheet2" posref="TL TL" x="1" y="-1" texture="US_back_5.tga" global_color="false"/>
497 <view type="bitmap" id="bg7" posparent="bg6" posref="TR TL" x="6" y="0" texture="US_back_6.tga" global_color="false"/>
498 <view type="bitmap" id="bg8" posparent="bg7" posref="TR TL" x="6" y="0" texture="US_back_7.tga" global_color="false"/>
499 <view type="bitmap" id="bg9" posparent="bg8" posref="TR TL" x="6" y="0" texture="US_back_8.tga" global_color="false"/>
500 <view type="bitmap" id="bg10" posparent="bg9" posref="TR TL" x="6" y="0" texture="US_back_9.tga" global_color="false"/>
502 <ctrl type="button" button_type="radio_button" id="but1" posparent="sheet1" posref="TL TL"
503 tx_normal="W_slot_brick_selected.tga" tx_over="W_slot_brick_selected.tga" tx_pushed="W_slot_brick_selected.tga"
504 color="255 255 255 0" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_over="false"
505 onclick_l="proc" params_l="change_icon_bg|0" />
506 <ctrl type="button" button_type="radio_button" id="but2" posparent="but1" posref="TR TL" x="4"
507 tx_normal="W_slot_brick_selected.tga" tx_over="W_slot_brick_selected.tga" tx_pushed="W_slot_brick_selected.tga"
508 color="255 255 255 0" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_over="false"
509 onclick_l="proc" params_l="change_icon_bg|1" />
510 <ctrl type="button" button_type="radio_button" id="but3" posparent="but2" posref="TR TL" x="4"
511 tx_normal="W_slot_brick_selected.tga" tx_over="W_slot_brick_selected.tga" tx_pushed="W_slot_brick_selected.tga"
512 color="255 255 255 0" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_over="false"
513 onclick_l="proc" params_l="change_icon_bg|2" />
514 <ctrl type="button" button_type="radio_button" id="but4" posparent="but3" posref="TR TL" x="4"
515 tx_normal="W_slot_brick_selected.tga" tx_over="W_slot_brick_selected.tga" tx_pushed="W_slot_brick_selected.tga"
516 color="255 255 255 0" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_over="false"
517 onclick_l="proc" params_l="change_icon_bg|3" />
518 <ctrl type="button" button_type="radio_button" id="but5" posparent="but4" posref="TR TL" x="4"
519 tx_normal="W_slot_brick_selected.tga" tx_over="W_slot_brick_selected.tga" tx_pushed="W_slot_brick_selected.tga"
520 color="255 255 255 0" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_over="false"
521 onclick_l="proc" params_l="change_icon_bg|4" />
522 <ctrl type="button" button_type="radio_button" id="but6" posparent="sheet2" posref="TL TL"
523 tx_normal="W_slot_brick_selected.tga" tx_over="W_slot_brick_selected.tga" tx_pushed="W_slot_brick_selected.tga"
524 color="255 255 255 0" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_over="false"
525 onclick_l="proc" params_l="change_icon_bg|5" />
526 <ctrl type="button" button_type="radio_button" id="but7" posparent="but6" posref="TR TL" x="4"
527 tx_normal="W_slot_brick_selected.tga" tx_over="W_slot_brick_selected.tga" tx_pushed="W_slot_brick_selected.tga"
528 color="255 255 255 0" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_over="false"
529 onclick_l="proc" params_l="change_icon_bg|6" />
530 <ctrl type="button" button_type="radio_button" id="but8" posparent="but7" posref="TR TL" x="4"
531 tx_normal="W_slot_brick_selected.tga" tx_over="W_slot_brick_selected.tga" tx_pushed="W_slot_brick_selected.tga"
532 color="255 255 255 0" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_over="false"
533 onclick_l="proc" params_l="change_icon_bg|7" />
534 <ctrl type="button" button_type="radio_button" id="but9" posparent="but8" posref="TR TL" x="4"
535 tx_normal="W_slot_brick_selected.tga" tx_over="W_slot_brick_selected.tga" tx_pushed="W_slot_brick_selected.tga"
536 color="255 255 255 0" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_over="false"
537 onclick_l="proc" params_l="change_icon_bg|8" />
538 <ctrl type="button" button_type="radio_button" id="but10" posparent="but9" posref="TR TL" x="4"
539 tx_normal="W_slot_brick_selected.tga" tx_over="W_slot_brick_selected.tga" tx_pushed="W_slot_brick_selected.tga"
540 color="255 255 255 0" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_over="false"
541 onclick_l="proc" params_l="change_icon_bg|9" />
546 <group id="IconForeground" posparent="IconBackground" posref="BL TL" w="146" h="72" x="0" y="-8" >
547 <view type="text" id="Ico_back" posref="TL TL" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiIconFore" />
548 <instance template="icon_sheet" id="sheet1" posref="TL TL" y="-14" />
549 <instance template="icon_sheet" id="sheet2" posparent="sheet1" posref="BL TL" y="-4" />
552 <view type="bitmap" id="bg1" posparent="sheet1" posref="TL TL" x="1" y="-1" texture="US_ico_0.tga" global_color="false" />
553 <view type="bitmap" id="bg2" posparent="bg1" posref="TR TL" x="6" y="0" texture="US_ico_1.tga" global_color="false" />
554 <view type="bitmap" id="bg3" posparent="bg2" posref="TR TL" x="6" y="0" texture="US_ico_2.tga" global_color="false" />
555 <view type="bitmap" id="bg4" posparent="bg3" posref="TR TL" x="6" y="0" texture="US_ico_3.tga" global_color="false" />
556 <view type="bitmap" id="bg5" posparent="bg4" posref="TR TL" x="6" y="0" texture="US_ico_4.tga" global_color="false" />
559 <view type="bitmap" id="bg6" posparent="sheet2" posref="TL TL" x="1" y="-1" texture="US_ico_5.tga" global_color="false"/>
560 <view type="bitmap" id="bg7" posparent="bg6" posref="TR TL" x="6" y="0" texture="US_ico_6.tga" global_color="false" />
561 <view type="bitmap" id="bg8" posparent="bg7" posref="TR TL" x="6" y="0" texture="US_ico_7.tga" global_color="false" />
562 <view type="bitmap" id="bg9" posparent="bg8" posref="TR TL" x="6" y="0" texture="US_ico_8.tga" global_color="false" />
563 <view type="bitmap" id="bg10" posparent="bg9" posref="TR TL" x="6" y="0" texture="US_ico_9.tga" global_color="false" />
565 <ctrl type="button" button_type="radio_button" id="but1" posparent="sheet1" posref="TL TL"
566 tx_normal="W_slot_brick_selected.tga" tx_over="W_slot_brick_selected.tga" tx_pushed="W_slot_brick_selected.tga"
567 color="255 255 255 0" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_over="false"
568 onclick_l="proc" params_l="change_icon_fg|0" />
569 <ctrl type="button" button_type="radio_button" id="but2" posparent="but1" posref="TR TL" x="4"
570 tx_normal="W_slot_brick_selected.tga" tx_over="W_slot_brick_selected.tga" tx_pushed="W_slot_brick_selected.tga"
571 color="255 255 255 0" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_over="false"
572 onclick_l="proc" params_l="change_icon_fg|1" />
573 <ctrl type="button" button_type="radio_button" id="but3" posparent="but2" posref="TR TL" x="4"
574 tx_normal="W_slot_brick_selected.tga" tx_over="W_slot_brick_selected.tga" tx_pushed="W_slot_brick_selected.tga"
575 color="255 255 255 0" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_over="false"
576 onclick_l="proc" params_l="change_icon_fg|2" />
577 <ctrl type="button" button_type="radio_button" id="but4" posparent="but3" posref="TR TL" x="4"
578 tx_normal="W_slot_brick_selected.tga" tx_over="W_slot_brick_selected.tga" tx_pushed="W_slot_brick_selected.tga"
579 color="255 255 255 0" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_over="false"
580 onclick_l="proc" params_l="change_icon_fg|3" />
581 <ctrl type="button" button_type="radio_button" id="but5" posparent="but4" posref="TR TL" x="4"
582 tx_normal="W_slot_brick_selected.tga" tx_over="W_slot_brick_selected.tga" tx_pushed="W_slot_brick_selected.tga"
583 color="255 255 255 0" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_over="false"
584 onclick_l="proc" params_l="change_icon_fg|4" />
585 <ctrl type="button" button_type="radio_button" id="but6" posparent="sheet2" posref="TL TL"
586 tx_normal="W_slot_brick_selected.tga" tx_over="W_slot_brick_selected.tga" tx_pushed="W_slot_brick_selected.tga"
587 color="255 255 255 0" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_over="false"
588 onclick_l="proc" params_l="change_icon_fg|5" />
589 <ctrl type="button" button_type="radio_button" id="but7" posparent="but6" posref="TR TL" x="4"
590 tx_normal="W_slot_brick_selected.tga" tx_over="W_slot_brick_selected.tga" tx_pushed="W_slot_brick_selected.tga"
591 color="255 255 255 0" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_over="false"
592 onclick_l="proc" params_l="change_icon_fg|6" />
593 <ctrl type="button" button_type="radio_button" id="but8" posparent="but7" posref="TR TL" x="4"
594 tx_normal="W_slot_brick_selected.tga" tx_over="W_slot_brick_selected.tga" tx_pushed="W_slot_brick_selected.tga"
595 color="255 255 255 0" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_over="false"
596 onclick_l="proc" params_l="change_icon_fg|7" />
597 <ctrl type="button" button_type="radio_button" id="but9" posparent="but8" posref="TR TL" x="4"
598 tx_normal="W_slot_brick_selected.tga" tx_over="W_slot_brick_selected.tga" tx_pushed="W_slot_brick_selected.tga"
599 color="255 255 255 0" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_over="false"
600 onclick_l="proc" params_l="change_icon_fg|8" />
601 <ctrl type="button" button_type="radio_button" id="but10" posparent="but9" posref="TR TL" x="4"
602 tx_normal="W_slot_brick_selected.tga" tx_over="W_slot_brick_selected.tga" tx_pushed="W_slot_brick_selected.tga"
603 color="255 255 255 0" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_over="false"
604 onclick_l="proc" params_l="change_icon_fg|9" />
608 <group id="IconPattern" posparent="IconForeground" posref="BL TL" w="146" h="42" x="0" y="-8" >
609 <view type="text" id="Ico_Pat" posref="TL TL" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiIconPat" />
610 <instance template="icon_sheet" id="sheet1" posref="TL TL" y="-14" />
613 <view type="bitmap" id="bg1" posparent="sheet1" posref="TL TL" x="1" y="-1" texture="US_over_0.tga" global_color="false"/>
614 <view type="bitmap" id="bg2" posparent="bg1" posref="TR TL" x="6" y="0" texture="US_over_1.tga" global_color="false"/>
615 <view type="bitmap" id="bg3" posparent="bg2" posref="TR TL" x="6" y="0" texture="US_over_2.tga" global_color="false"/>
616 <view type="bitmap" id="bg4" posparent="bg3" posref="TR TL" x="6" y="0" texture="US_over_3.tga" global_color="false"/>
617 <view type="bitmap" id="bg5" posparent="bg4" posref="TR TL" x="6" y="0" texture="US_over_4.tga" global_color="false"/>
619 <ctrl type="button" button_type="radio_button" id="but1" posparent="sheet1" posref="TL TL"
620 tx_normal="W_slot_brick_selected.tga" tx_over="W_slot_brick_selected.tga" tx_pushed="W_slot_brick_selected.tga"
621 color="255 255 255 0" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_over="false"
622 onclick_l="proc" params_l="change_icon_pa|0" />
623 <ctrl type="button" button_type="radio_button" id="but2" posparent="but1" posref="TR TL" x="4"
624 tx_normal="W_slot_brick_selected.tga" tx_over="W_slot_brick_selected.tga" tx_pushed="W_slot_brick_selected.tga"
625 color="255 255 255 0" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_over="false"
626 onclick_l="proc" params_l="change_icon_pa|1" />
627 <ctrl type="button" button_type="radio_button" id="but3" posparent="but2" posref="TR TL" x="4"
628 tx_normal="W_slot_brick_selected.tga" tx_over="W_slot_brick_selected.tga" tx_pushed="W_slot_brick_selected.tga"
629 color="255 255 255 0" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_over="false"
630 onclick_l="proc" params_l="change_icon_pa|2" />
631 <ctrl type="button" button_type="radio_button" id="but4" posparent="but3" posref="TR TL" x="4"
632 tx_normal="W_slot_brick_selected.tga" tx_over="W_slot_brick_selected.tga" tx_pushed="W_slot_brick_selected.tga"
633 color="255 255 255 0" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_over="false"
634 onclick_l="proc" params_l="change_icon_pa|3" />
635 <ctrl type="button" button_type="radio_button" id="but5" posparent="but4" posref="TR TL" x="4"
636 tx_normal="W_slot_brick_selected.tga" tx_over="W_slot_brick_selected.tga" tx_pushed="W_slot_brick_selected.tga"
637 color="255 255 255 0" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_over="false"
638 onclick_l="proc" params_l="change_icon_pa|4" />
642 <view type="text" id="Ico_txt" posparent="IconPattern" posref="BL TL" y="-8" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiIconTxt" />
643 <group type="edit_box" id="edit_name" posparent="Ico_txt" posref="TL TL" x="0" y="-14" w="146" h="20" child_resize_h="true"
644 onenter="" params="" max_num_chars="17" prompt="" enter_loose_focus="true"
645 onchange="eb_update_macro_text" onchange_params="ui:interface:macro_icon_creation:icon"
646 entry_type="alpha_num" reset_focus_on_hide="true" menu_r="" >
648 <instance template="box_widget" id="back_name" posref="TL TL" sizeref="w" w="0" h="20" />
649 <view type="text" id="edit_text" x="4" y="1" posref="ML ML" multi_line="false"
650 fontsize="12" shadow="true" hardtext="" global_color="false"/>
653 <instance template="button_ok_cancel" posref="BR BR" x="-4" y="4"
654 onclick_ok="macro_icon_creation_ok"
656 onclick_cancel="leave_modal"
657 onclick_cancel_param="" />
662 <tree node="keys_player"/>
663 <tree node="keys_animals"/>
664 <tree node="keys_movement"/>
665 <tree node="keys_actions"/>
666 <tree node="keys_chat"/>
667 <tree node="keys_view"/>
668 <tree node="keys_windows"/>
669 <tree node="keys_system"/>
670 <tree node="keys_edit"/>
671 <tree node="keys_debug"/>
672 <tree node="keys_r2ed"/>