Add infos into target window
[ryzomcore.git] / ryzom / client / mods / syui_v3 / syui / widgets.xml
blob610db6dccfa93ef62e76998a3310b1f97b5b10cc
1 <!-- ****************************************** -->
2 <!-- *                  WIDGETS               * -->
3 <!-- ****************************************** -->
4 <interface_config>
5   <root id="interface"
6         x="0"
7         y="0"
8         w="800"
9         h="600"
10         active="true" />
11   <proc id="proc_nothing"></proc>
12   <!-- template for border inside of a group -->
13   <template name="inner_thin_border_group"
14             posparent="parent"
15             keep="true"
16             inherit_gc_alpha="false"
17             posref="BL BL"
18             w="0"
19             h="0">
20     <group id="itb"
21            posparent="#posparent"
22            sizeref="hw"
23            w="#w"
24            h="#h"
25            posref="#posref">
26       <view type="bitmap"
27             id="bg"
28             texture="W_box_blank.tga"
29             scale="true"
30             posref="MM MM"
31             sizeref="hw"
32             w="-8"
33             h="-8"
34             inherit_gc_alpha="#inherit_gc_alpha" />
35       <view type="bitmap"
36             id="tlb"
37             texture="W_box_top_left.tga"
38             posref="TL TL"
39             inherit_gc_alpha="#inherit_gc_alpha" />
40       <view type="bitmap"
41             id="trb"
42             texture="W_box_top_right.tga"
43             posref="TR TR"
44             inherit_gc_alpha="#inherit_gc_alpha" />
45       <view type="bitmap"
46             id="brb"
47             texture="W_box_bot_right.tga"
48             posref="BR BR"
49             inherit_gc_alpha="#inherit_gc_alpha" />
50       <view type="bitmap"
51             id="blb"
52             texture="W_box_bot_left.tga"
53             posref="BL BL"
54             inherit_gc_alpha="#inherit_gc_alpha" />
55       <view type="bitmap"
56             id="tb"
57             texture="W_box_top.tga"
58             posref="TM TM"
59             scale="true"
60             sizeref="w"
61             w="-8"
62             h="4"
63             inherit_gc_alpha="#inherit_gc_alpha" />
64       <view type="bitmap"
65             id="bb"
66             texture="W_box_bot.tga"
67             posref="BM BM"
68             scale="true"
69             sizeref="w"
70             w="-8"
71             h="4"
72             inherit_gc_alpha="#inherit_gc_alpha" />
73       <view type="bitmap"
74             id="lb"
75             texture="W_box_left.tga"
76             posref="ML ML"
77             scale="true"
78             sizeref="h"
79             h="-8"
80             w="4"
81             inherit_gc_alpha="#inherit_gc_alpha" />
82       <view type="bitmap"
83             id="rb"
84             texture="W_box_right.tga"
85             posref="MR MR"
86             scale="true"
87             sizeref="h"
88             h="-8"
89             w="4"
90             inherit_gc_alpha="#inherit_gc_alpha" />
91     </group>
92   </template>
93   <!-- *********************************** -->
94   <!-- *  TEMPLATE FOR SCENE INFORMATION * -->
95   <!-- *********************************** -->
96   <!-- * In scene user info with guild logo * -->
97   <define id="in_scene_user_info_bar_h"
98           value="4" />
99   <define id="in_scene_user_info_bar_space"
100           value="2" />
101   <define id="in_scene_user_bar_length"
102           value="120" />
103   <!-- * In scene Target Selected * -->
104   <template name="string_cursor"
105             id=""
106             keep="true">
107     <group id="#id"
108            posref="BL TL"
109            x="0"
110            y="0"
111            child_resize_w="true"
112            h="32"
113            active="true">
114       <!-- TEXT -->
115       <view type="text"
116             id="fake_txt"
117             posref="TL TL"
118             x="22"
119             fontsize="12"
120             shadow="true"
121             hardtext="uimGcmTradePact"
122             color="255 255 255 0" />
123       <!-- BMP -->
124       <view type="bitmap"
125             id="curs_L"
126             posref="TL TL"
127             texture="curs_L.tga"
128             global_color="false" />
129       <view type="bitmap"
130             id="curs_R"
131             posref="TR TL"
132             posparent="fake_txt"
133             x="-10"
134             texture="curs_R.tga"
135             global_color="false" />
136       <view type="bitmap"
137             id="curs_M"
138             posref="TM TM"
139             posparent="fake_txt"
140             sizeref="w"
141             w="-20"
142             scale="true"
143             h="32"
144             texture="curs_M.tga"
145             global_color="false" />
146       <view type="text"
147             id="real_txt"
148             posref="ML ML"
149             x="26"
150             y="-2"
151             fontsize="12"
152             shadow="true"
153             hardtext="uimGcmTradePact"
154             color="255 255 255 255"
155             global_color="false" />
156     </group>
157   </template>
158   <!-- hardware version of the text cursor : mouse cursor is not duplicated on the left of the text -->
159   <template name="string_cursor_hardware"
160             id=""
161             keep="true">
162     <group id="#id"
163            posref="BL TL"
164            x="0"
165            y="0"
166            child_resize_w="true"
167            h="32"
168            active="true">
169       <!-- TEXT -->
170       <view type="text"
171             id="fake_txt"
172             posref="TL TL"
173             x="22"
174             fontsize="12"
175             shadow="true"
176             hardtext="uimGcmTradePact"
177             color="255 255 255 0" />
178       <!-- BMP -->
179       <view type="bitmap"
180             id="curs_L"
181             posref="TL TL"
182             texture="curs_L_no_mouse.tga"
183             global_color="false" />
184       <view type="bitmap"
185             id="curs_R"
186             posref="TR TL"
187             posparent="fake_txt"
188             x="-10"
189             texture="curs_R.tga"
190             global_color="false" />
191       <view type="bitmap"
192             id="curs_M"
193             posref="TM TM"
194             posparent="fake_txt"
195             sizeref="w"
196             w="-20"
197             scale="true"
198             h="32"
199             texture="curs_M.tga"
200             global_color="false" />
201       <view type="text"
202             id="real_txt"
203             posref="ML ML"
204             x="26"
205             y="-2"
206             fontsize="12"
207             shadow="true"
208             hardtext="uimGcmTradePact"
209             color="255 255 255 255"
210             global_color="false" />
211     </group>
212   </template>
213   <template name="in_scene_user_info"
214             id=""
215             keep="true">
216     <group id="isui"
217            type="in_scene_user_info"
218            header_active="false"
219            options="no_bordure"
220            openable="false"
221            savable="false"
222            resizer="true"
223            movable="false"
224            right_button="false"
225            opened="true"
226            child_resize_w="true"
227                    child_resize_h="true"
228            w="0"
229                    h="0"
230            win_priority="%win_priority_world_space"
231            posref="BL BM"
232            use_cursor="false">
234       <group id="right"
235              child_resize_w="true"
236                          child_resize_h="true"
237              w="180"
238                          x="38"
239                          h="158"
240              posref="TL TL" >
241                 
242                 <!-- Player Name --> 
243         <view type="text"
244               id="info0"
245               posref="TL TL"
246               x="0"
247               y="-17"
248               fontsize="14"
249               shadow="true"
250               hardtext=""
251               color="255 255 255 255"
252               global_color="true" />
253                 <!-- Player Title -->
254         <view type="text"
255               id="info1"
256               posref="BL TL"
257                           posparent="info0"
258               x="0"
259               fontsize="10"
260               shadow="true"
261               hardtext=""
262               color="255 255 255 255"
263               global_color="true" />
264                 <!-- Player Guild -->
265         <view type="text"
266               id="info2"
267               posref="BL TL"
268                           posparent="info1"
269               x="0"
270               fontsize="10"
271               shadow="true"
272               hardtext=""
273               color="255 255 255 255"
274               global_color="true" />
275         <view type="bitmap"
276               id="permanent_content"
277               posref="TR TL"
278               posparent="info0"
279               y="0"
280               x="4"
281               texture=""
282               global_color="false" />
283                   <!-- target eyes -->
284         <view type="bitmap"
285               id="target"
286               posref="TL TL"
287                           posparent="info0"
288                           w="48"
289                           h="23"
290               x="40"
291                           y="25"
292               texture="target_eyes.tga"
293               global_color="false" />
294       <view type="bitmap"
295             id="invisible_logo"
296             posref="TR TL"
297             posparent="target"
298             x="2"
299                         y="3"
300             scale="true"
301             w="20"
302             h="20"
303             texture="ico_fear.tga"
304             active="false"
305             global_color="false" />
306         <view type="bitmap"
307               id="mission_target"
308               posref="TR TL"
309               posparent="invisible_logo"
310               x="2"
311               y="4"
312               texture="target_mission.tga"
313               global_color="false" />
314        <view type="bitmap"
315             id="rp_logo_1"
316             posref="TR TL"
317             x="2"
318             y="0"
319             slot="false"
320             posparent="mission_target"
321             color="255 255 255 255"
322             render_layer="1"
323             texture=""
324             global_color="false" />
325       <view type="bitmap"
326             id="rp_logo_2"
327             posref="TR TL"
328             x="2"
329             y="0"
330             slot="false"
331             posparent="rp_logo_1"
332             color="255 255 255 255"
333             render_layer="1"
334             texture=""
335             global_color="false" />
336       <view type="bitmap"
337             id="rp_logo_3"
338             posref="TR TL"
339             x="2"
340             y="0"
341             slot="false"
342             posparent="rp_logo_2"
343             color="255 255 255 255"
344             render_layer="1"
345             texture=""
346             global_color="false" />
347       <view type="bitmap"
348             id="rp_logo_4"
349             posref="TR TL"
350             x="2"
351             y="0"
352             slot="false"
353             posparent="rp_logo_3"
354             color="255 255 255 255"
355             render_layer="1"
356             texture=""
357             global_color="false" />
358                         
359         <view type="bitmap"
360               id="win_top"
361                           posparent="info2"
362               posref="BL TL"
363                           y="-8"
364               texture="Infos_top.tga"
365               global_color="true" />
366         <view type="bitmap"
367               id="win_mid"
368               posparent="win_top"
369               posref="BL TL"
370               scale="true"
371               w="70"
372               h="1"
373               texture="Infos_mid.tga"
374               global_color="true" />
375         <view type="bitmap"
376               id="win_bot"
377               posparent="win_mid"
378               posref="BL TL"
379               texture="Infos_bot.tga"
380               global_color="true" />
381         <view type="bitmap"
382               id="win_jauge_mid"
383               posparent="win_bot"
384               posref="TL ML"
385               x="0"
386               y="-2"
387               scale="true"
388               w="128"
389               h="24"
390               texture="Bg_jauge_mid.tga"
391               global_color="true" />
392         <view type="bitmap"
393               id="win_jauge_top"
394               posparent="win_jauge_mid"
395               posref="TL BL"
396               texture="Bg_jauge_top.tga"
397               global_color="true" />
398         <view type="bitmap"
399               id="win_jauge_bot"
400               posparent="win_jauge_mid"
401               posref="BL TL"
402               texture="Bg_jauge_bot.tga"
403               global_color="true" />
404       <!-- In Scene Bar -->
405       <view type="bitmap"
406               id="bar0"
407               posparent="win_jauge_top"
408               posref="TL TL"
409               x="3"
410               y="-3"
411               scale="true"
412               w="64"
413               h="4"
414               texture="jauge_fill.tga"
415               color="234 46 41 255"
416               global_color="false" />
417                 <!-- In Scene Bar -->
418         <view type="bitmap"
419               id="bar1"
420               posparent="bar0"
421               posref="BL TL"
422               x="0"
423               y="-2"
424               scale="true"
425               w="120"
426               h="4"
427               texture="jauge_fill.tga"
428               color="41 234 114 255"
429               global_color="false" />
430                 <!-- In Scene Bar -->
431         <view type="bitmap"
432               id="bar2"
433               posparent="bar1"
434               posref="BL TL"
435               x="0"
436               y="-2"
437               scale="true"
438               w="112"
439               h="4"
440               texture="jauge_fill.tga"
441               color="232 41 234 255"
442               global_color="false" />
443                 <!-- In Scene Bar -->
444         <view type="bitmap"
445               id="bar3"
446               posparent="bar2"
447               posref="BL TL"
448               x="0"
449               y="-2"
450               scale="true"
451               w="30"
452               h="4"
453               texture="jauge_fill.tga"
454               color="41 218 234 255"
455               global_color="false" />
456                 <!-- In Scene Bar -->
457         <view type="bitmap"
458               id="bar4"
459               posparent="bar3"
460               posref="BL TL"
461               x="0"
462               y="-2"
463               scale="true"
464               w="0"
465               h="4"
466               texture="jauge_fill.tga"
467               color="246 255 0 255"
468               global_color="false" />
469       </group>
470       <!-- target Guild Logo -->
471           <ctrl type="sheet"
472             id="guild_logo"
473             posref="TL TR"
474                         posparent="right"
475                         x="-4"
476                         y="-16"
477                         scale="true"
478             slot="false"
479             nature="guild_flag"
480             value="UI:TEMP:GUILD_SHEET"
481             dragable="false"
482             color="255 255 255 255" />
483           <view type="bitmap"
484             id="npc_mission_logo"
485             posref="TL TL"
486             slot="false"
487             x="0"
488             color="255 255 255 255"
489             render_layer="1"
490             texture=""
491             global_color="false" />
492       <view type="bitmap"
493             id="npc_mission_logo_over"
494             posref="TL TL"
495             slot="false"
496             x="0"
497             color="255 255 255 255"
498             render_layer="2"
499             texture=""
500             global_color="false" />
501    
502         <group id="right_pvp"
503                posref="TR TL"
504                posparent="right"
505                child_resize_w="true"
506                child_resize_h="true" >
507           <group id="top_pvp"
508                  posref="TL TL"
509                                  w="0"
510                  h="0"
511                  child_resize_w="true"
512                  child_resize_h="true" >
513             <view type="bitmap"
514                   id="pvp_faction_logo"
515                   posref="TL TL"
516                   active="false"
517                   texture="mp_pearl.tga"
518                   global_color="false" />
519             <view type="bitmap"
520                   id="pvp_safe_logo"
521                   posref="TR TL"
522                   active="false"
523                   posparent="pvp_faction_logo"
524                   texture="mp_pearl.tga"
525                   x="2"
526                   global_color="false" />
527           </group>
528           <group id="bottom_pvp"
529                  posref="BL TL"
530                  posparent="top_pvp"
531                  child_resize_w="true"
532                  child_resize_h="true" >
533             <view type="bitmap"
534                   id="pvp_outpost_logo"
535                   posref="TL TL"
536                                   active="false"
537                   texture="building_state_24x24.tga"
538                   global_color="false" />
539             <view type="bitmap"
540                   id="pvp_duel_logo"
541                   posref="TR TL"
542                   posparent="pvp_outpost_logo"
543                   active="false"
544                   x="2"
545                                   y="0"
546                   texture="pvp_duel.tga"
547                   global_color="false" />
548           </group>
549         </group>
551     </group>
552   </template>
553   <!-- prototype for fast cloning -->
554   <instance template="in_scene_user_info"
555             id="in_scene_user_info_proto" />
556   <template name="in_scene_user_info_back"
557             id=""
558             keep="true">
559     <group id="#id"
560            type="in_scene_user_info"
561            header_active="false"
562            options="no_bordure"
563            openable="false"
564            savable="false"
565            resizer="true"
566            movable="false"
567            right_button="false"
568            opened="true"
569            child_resize_w="true"
570            child_resize_h="true"
571            child_resize_hmargin="20"
572            w="0"
573            h="86"
574            win_priority="%win_priority_world_space"
575            posref="BL BM"
576            use_cursor="false">
577       <group id="right"
578              x="42"
579              y="-20"
580              child_resize_w="true"
581              w="0"
582              h="86"
583              posref="TL TL">
584         <view type="bitmap"
585               id="win_top"
586               posref="TL TL"
587               y="-10"
588               texture="Infos_top.tga"
589               global_color="true" />
590         <view type="bitmap"
591               id="win_mid"
592               posref="BL TL"
593               posparent="win_top"
594               scale="true"
595               w="7"
596               h="50"
597               texture="Infos_mid.tga"
598               global_color="true" />
599         <view type="bitmap"
600               id="win_bot"
601               posref="BL TL"
602               posparent="win_mid"
603               texture="Infos_bot.tga"
604               global_color="true" />
605         <view type="bitmap"
606               id="win_jauge_mid"
607               posref="BR ML"
608               x="-1"
609               y="1"
610               posparent="win_bot"
611               scale="true"
612               w="128"
613               h="24"
614               texture="Bg_jauge_mid.tga"
615               global_color="true" />
616         <view type="bitmap"
617               id="win_jauge_top"
618               posref="TL BL"
619               posparent="win_jauge_mid"
620               texture="Bg_jauge_top.tga"
621               global_color="true" />
622         <view type="bitmap"
623               id="win_jauge_bot"
624               posref="BL TL"
625               posparent="win_jauge_mid"
626               texture="Bg_jauge_bot.tga"
627               global_color="true" />
628         <view type="text"
629               id="info0"
630               posref="TL TL"
631               x="8"
632               y="-3"
633               fontsize="14"
634               shadow="true"
635               hardtext=""
636               color="255 255 255 255"
637               global_color="true" />
638         <view type="text"
639               id="info1"
640               posref="TL TL"
641               x="8"
642               y="-17"
643               fontsize="12"
644               shadow="true"
645               hardtext=""
646               color="255 255 255 255"
647               global_color="true" />
648         <view type="text"
649               id="info2"
650               posref="TL TL"
651               x="8"
652               y="-32"
653               fontsize="10"
654               shadow="true"
655               hardtext=""
656               color="255 255 255 255"
657               global_color="true" />
658         <view type="bitmap"
659               id="target"
660               posref="TR TL"
661               posparent="info0"
662               x="4"
663               y=""
664               texture="target.tga"
665               global_color="false" />
666         <view type="bitmap"
667               id="mission_target"
668               posref="TR TL"
669               posparent="info0"
670               x="25"
671               y=""
672               texture="target_mission.tga"
673               global_color="false" />
674         <view type="bitmap"
675               id="bar0"
676               posref="TL TL"
677               posparent="win_jauge_top"
678               x="3"
679               y="-2"
680               scale="true"
681               w="64"
682               h="4"
683               texture="Jauge_fill.tga"
684               color="128 128 128 255"
685               global_color="false" />
686         <view type="bitmap"
687               id="bar1"
688               posref="BL TL"
689               posparent="bar0"
690               x="0"
691               y="-2"
692               scale="true"
693               w="120"
694               h="4"
695               texture="Jauge_fill.tga"
696               color="128 128 128 255"
697               global_color="false" />
698         <view type="bitmap"
699               id="bar2"
700               posref="BL TL"
701               posparent="bar1"
702               x="0"
703               y="-2"
704               scale="true"
705               w="112"
706               h="4"
707               texture="Jauge_fill.tga"
708               color="128 128 128 255"
709               global_color="false" />
710         <view type="bitmap"
711               id="bar3"
712               posref="BL TL"
713               posparent="bar2"
714               x="0"
715               y="-2"
716               scale="true"
717               w="30"
718               h="4"
719               texture="Jauge_fill.tga"
720               color="128 128 128 255"
721               global_color="false" />
722         <view type="bitmap"
723               id="bar4"
724               posref="BL TL"
725               posparent="bar3"
726               x="0"
727               y="-2"
728               scale="true"
729               w="0"
730               h="4"
731               texture="Jauge_fill.tga"
732               color="128 128 128 255"
733               global_color="false" />
734       </group>
735       <ctrl type="sheet"
736             id="guild_logo"
737             posref="ML MR"
738             x="-8"
739             slot="false"
740             posparent="right"
741             nature="guild_flag"
742             value="UI:TEMP:GUILD_SHEET"
743             dragable="false"
744             color="255 255 255 255" />
745     </group>
746   </template>
747   <instance template="in_scene_user_info_back"
748             id="in_scene_user_info_back_proto" />
749   <template name="forage_source"
750             id=""
751             keep="true">
752     <group id="#id"
753            type="in_scene_user_info"
754            header_active="false"
755            options="no_bordure"
756            openable="false"
757            savable="false"
758            resizer="true"
759            movable="false"
760            right_button="false"
761            opened="true"
762            child_resize_w="true"
763            child_resize_h="true"
764    
765            win_priority="%win_priority_world_space"
766            posref="BL BM"
767            use_cursor="true">
768       <!--<group id="right" x="240" y="320" child_resize_w="true" w="0" h="126"  posref="TL TL" >-->
769       <group id="right"
770              child_resize_w="true"
771              w="0"
772              h="158"
773              x="42"
774              y="-20"
775              posref="TL TL" >
776         <view type="text"
777               id="info0"
778               posref="TL TL"
779               x="0"
780               y="0"
781               fontsize="14"
782               shadow="true"
783               hardtext="Forage_Source"
784               color="255 255 255 255"
785               global_color="true" />
786         <view type="bitmap"
787               id="win_jauge_mid"
788               posref="BL TL"
789                           posparent="info0"
790               x="0"
791               y="-6"
792               scale="true"
793               w="152"
794               h="100"
795               texture="Bg_source_mid.tga"
796               global_color="true" />
797         <view type="bitmap"
798               id="win_jauge_top"
799               posref="TL BL"
800               posparent="win_jauge_mid"
801               texture="Bg_source_top.tga"
802               global_color="true" />
803         <view type="bitmap"
804               id="win_jauge_bot"
805               posref="BL TL"
806               posparent="win_jauge_mid"
807               texture="Bg_source_bot.tga"
808               global_color="true" />
809         <view type="bitmap"
810               id="bar0"
811               posref="TL TL"
812               posparent="win_jauge_top"
813               x="27"
814               y="-14"
815               scale="true"
816               w="64"
817               h="4"
818               texture="Jauge_fill.tga"
819               color="255 255 255 255"
820               global_color="false" />
821         <view type="bitmap"
822               id="bar1"
823               posref="BL TL"
824               posparent="bar0"
825               x="0"
826               y="-16"
827               scale="true"
828               w="112"
829               h="4"
830               texture="Jauge_fill.tga"
831               color="0 180 255 255"
832               global_color="false" />
833         <view type="bitmap"
834               id="bar2"
835               posref="BL TL"
836               posparent="bar1"
837               x="0"
838               y="-16"
839               scale="true"
840               w="120"
841               h="4"
842               texture="Jauge_fill.tga"
843               color="255 127 127 255"
844               global_color="false" />
845         <view type="bitmap"
846               id="bar3"
847               posref="BL TL"
848               posparent="bar2"
849               x="0"
850               y="-16"
851               scale="true"
852               w="30"
853               h="4"
854               texture="Jauge_fill.tga"
855               color="255 175 0 255"
856               global_color="false" />
857         <view type="bitmap"
858               id="bar4"
859               posref="BL TL"
860               posparent="bar3"
861               x="0"
862               y="-16"
863               scale="true"
864               w="98"
865               h="4"
866               texture="Jauge_fill.tga"
867               color="255 125 0 255"
868               global_color="false" />
869         <view type="bitmap"
870               id="icon0"
871               posref="ML MR"
872               posparent="bar0"
873               x="0"
874               y="0"
875               texture="forage_time.tga"
876               global_color="false" />
877         <view type="bitmap"
878               id="icon1"
879               posref="ML MR"
880               posparent="bar1"
881               x="0"
882               y="-2"
883               texture="forage_content.tga"
884               global_color="false" />
885         <view type="bitmap"
886               id="icon2"
887               posref="ML MR"
888               posparent="bar2"
889               x="0"
890               y="-1"
891               texture="forage_life.tga"
892               global_color="false" />
893         <view type="bitmap"
894               id="icon3"
895               posref="ML MR"
896               posparent="bar3"
897               x="0"
898               y="0"
899               texture="forage_danger.tga"
900               global_color="false" />
901         <view type="bitmap"
902               id="icon4"
903               posref="ML MR"
904               posparent="bar4"
905               x="0"
906               y="0"
907               texture="forage_spawn.tga"
908               global_color="false" />
909         <!-- Some ToolTip Info -->
910         <ctrl type="tooltip"
911               id="tt0"
912               posparent="icon0"
913               posref="TL TL"
914               sizeref="wh"
915               w="0"
916               h="0"
917               tooltip="uittForageTime" />
918         <ctrl type="tooltip"
919               id="tt1"
920               posparent="icon1"
921               posref="TL TL"
922               sizeref="wh"
923               w="0"
924               h="0"
925               tooltip="uittForageContent" />
926         <ctrl type="tooltip"
927               id="tt2"
928               posparent="icon2"
929               posref="TL TL"
930               sizeref="wh"
931               w="0"
932               h="0"
933               tooltip="uittForageLife" />
934         <ctrl type="tooltip"
935               id="tt3"
936               posparent="icon3"
937               posref="TL TL"
938               sizeref="wh"
939               w="0"
940               h="0"
941               tooltip="uittForageDanger" />
942         <ctrl type="tooltip"
943               id="tt4"
944               posparent="icon4"
945               posref="TL TL"
946               sizeref="wh"
947               w="0"
948               h="0"
949               tooltip="uittForageKami" />
950         <ctrl type="tooltip"
951               id="ttb0"
952               posparent="bar0"
953               posref="ML ML"
954               sizeref="w"
955               w="0"
956               h="24"
957               tooltip="uittForageTime" />
958         <ctrl type="tooltip"
959               id="ttb1"
960               posparent="bar1"
961               posref="ML ML"
962               sizeref="w"
963               w="0"
964               h="24"
965               tooltip="uittForageContent" />
966         <ctrl type="tooltip"
967               id="ttb2"
968               posparent="bar2"
969               posref="ML ML"
970               sizeref="w"
971               w="0"
972               h="24"
973               tooltip="uittForageLife" />
974         <ctrl type="tooltip"
975               id="ttb3"
976               posparent="bar3"
977               posref="ML ML"
978               sizeref="w"
979               w="0"
980               h="24"
981               tooltip="uittForageDanger" />
982         <ctrl type="tooltip"
983               id="ttb4"
984               posparent="bar4"
985               posref="ML ML"
986               sizeref="w"
987               w="0"
988               h="24"
989               tooltip="uittForageKami" />
990       </group>
991       <view type="bitmap"
992             id="guild_logo"
993             posref="TL TR"
994             x="-2"
995             y="16"
996             slot="false"
997             posparent="right"
998             color="255 255 255 255"
999             texture=""
1000             global_color="false" />
1001     </group>
1002   </template>
1003   <instance template="forage_source"
1004             id="forage_source_proto" />
1005   <!-- flying text in scene (deltax is the delta xcoord to apply right for the user, and left for the ennemy) -->
1006   <define id="in_scene_flying_char_offsetx"
1007           value="30" />
1008   <template name="in_scene_flying_text"
1009             id=""
1010             keep="true">
1011     <group id="#id"
1012            type="in_scene_user_info"
1013            header_active="false"
1014            options="no_bordure"
1015            openable="false"
1016            savable="false"
1017            resizer="false"
1018            movable="false"
1019            right_button="false"
1020            opened="true"
1021            child_resize_w="true"
1022            child_resize_h="true"
1023            w="0"
1024            h="0"
1025            win_priority="%win_priority_world_space"
1026            posref="BL BM"
1027            use_cursor="false"
1028            user_scale="true"
1029            in_scene_offset_y="20">
1030       <view type="text"
1031             id="text"
1032             posref="TL TL"
1033             x="0"
1034             y="0"
1035             fontsize="18"
1036             shadow="true"
1037             hardtext=""
1038             color="255 255 255 255"
1039             global_color="false" />
1040     </group>
1041   </template>
1042   <!-- *  Bulle de dialogue a droite du perso * -->
1043   <!-- NOT USED FOR THE MOMENT !!!
1044 <template name="3dbulle_R" id="" >
1045         <group id="#id" type="container" header_active="false" options="no_bordure" openable="false" savable="false" resizer="true" movable="false" right_button="false" opened="true" child_resize_w="true" w="0" max_w="256" min_w="48" h="48" >
1046         
1047                 <group id="header_opened" x="0" y="0" child_resize_w="true" w="0" child_resize_h="true" h="0" max_w="256" min_w="48" max_h="256" min_h="48" posref="TL TL" >
1048                                                                 
1049                         <group id="window" x="0" y="0" child_resize_w="true" w="0" child_resize_h="true" h="0" posref="TL TL" >
1050                                 <view type="bitmap" id="win_M" posref="MM MM" scale="true" sizeref="wh" w="-10" h="-10" texture="Bulle_M.tga" global_color="false"/>
1051                                 <view type="bitmap" id="win_T" posparent="win_M" posref="TL BL" scale="true" sizeref="w" w="0" h="5" texture="Bulle_T.tga" global_color="false"/>
1052                                 <view type="bitmap" id="win_B" posparent="win_M" posref="BL TL" scale="true" sizeref="w" w="0" h="5" texture="Bulle_B.tga" global_color="false"/>
1053                                 <view type="bitmap" id="win_L" posparent="win_M" posref="TL TR" scale="true" sizeref="h" w="5" h="0" texture="Bulle_L.tga" global_color="false"/>
1054                                 <view type="bitmap" id="win_R" posparent="win_M" posref="TR TL" scale="true" sizeref="h" w="5" h="0" texture="Bulle_R.tga" global_color="false"/>
1055                                 <view type="bitmap" id="win_TL" posref="TL TL" texture="Bulle_TL.tga" global_color="false"/>
1056                                 <view type="bitmap" id="win_TR" posref="TR TR" texture="Bulle_TR.tga" global_color="false"/>
1057                                 <view type="bitmap" id="win_BL" posref="BL BL" texture="Bulle_BL.tga" global_color="false"/>
1058                                 <view type="bitmap" id="win_BR" posref="BR BR" texture="Bulle_BR.tga" global_color="false"/>
1059                                 
1060                                 <view type="text" id="text" posref="TL TL" x="5" y="-5" hardtext="#hardtext" 
1061                                         fontsize="12" justification="justified" color="0 0 0 255" global_color="false" 
1062                                         multi_line="true" multi_line_space="0" line_maxw="160" multi_line_maxw_only="true" />
1063                                 <! - Yoyo: Fake to have minimum bubble size - >
1064                                 <group id="min_w" posparent="text" posref="TL TL" x="0" y="0" w="48" h="14" />
1065                                 
1066                         </group>
1067                         
1068                         <view type="bitmap" id="win_talk" posref="BL TL" x="24" y="2" posparent="window" texture="Bulle_Say_R.tga" global_color="false"/>
1069                 
1070                 </group>
1071                 
1072         </group>
1073 </template>
1075   <!-- *  Bulle de dialogue a gauche du perso * -->
1076   <template name="3dbulle_L"
1077             id=""
1078             hardtext="uiTestDialogue"
1079             keep="true">
1080     <group id="#id"
1081            type="in_scene_bubble"
1082            header_active="false"
1083            options="no_bordure"
1084            openable="false"
1085            savable="false"
1086            resizer="true"
1087            movable="false"
1088            right_button="false"
1089            opened="true"
1090            child_resize_w="true"
1091            w="0"
1092            max_w="512"
1093            min_w="48"
1094            child_resize_h="true"
1095            in_scene_offset_x="-95"
1096            win_priority="%win_priority_world_space"
1097            posref="BL BR"
1098            use_cursor="true">
1099       <group id="header_opened"
1100              x="0"
1101              y="0"
1102              child_resize_w="true"
1103              w="0"
1104              child_resize_h="true"
1105              h="0"
1106              max_w="512"
1107              min_w="48"
1108              max_h="256"
1109              min_h="48"
1110              posref="TL TL">
1111         <group id="window"
1112                x="0"
1113                y="0"
1114                child_resize_w="true"
1115                child_resize_wmargin="10"
1116                child_resize_h="true"
1117                child_resize_hmargin="10"
1118                posref="TL TL">
1119           <group id="back"
1120                  x="0"
1121                  y="0"
1122                  w="0"
1123                  h="0"
1124                  sizeref="wh"
1125                  posref="TL TL">
1126             <view type="bitmap"
1127                   id="win_M"
1128                   posref="MM MM"
1129                   scale="true"
1130                   sizeref="wh"
1131                   w="-10"
1132                   h="-10"
1133                   texture="Bulle_M.tga"
1134                   global_color="false" />
1135             <view type="bitmap"
1136                   id="win_T"
1137                   posparent="win_M"
1138                   posref="TL BL"
1139                   scale="true"
1140                   sizeref="w"
1141                   w="0"
1142                   h="5"
1143                   texture="Bulle_T.tga"
1144                   global_color="false" />
1145             <view type="bitmap"
1146                   id="win_B"
1147                   posparent="win_M"
1148                   posref="BL TL"
1149                   scale="true"
1150                   sizeref="w"
1151                   w="0"
1152                   h="5"
1153                   texture="Bulle_B.tga"
1154                   global_color="false" />
1155             <view type="bitmap"
1156                   id="win_L"
1157                   posparent="win_M"
1158                   posref="TL TR"
1159                   scale="true"
1160                   sizeref="h"
1161                   w="5"
1162                   h="0"
1163                   texture="Bulle_L.tga"
1164                   global_color="false" />
1165             <view type="bitmap"
1166                   id="win_R"
1167                   posparent="win_M"
1168                   posref="TR TL"
1169                   scale="true"
1170                   sizeref="h"
1171                   w="5"
1172                   h="0"
1173                   texture="Bulle_R.tga"
1174                   global_color="false" />
1175             <view type="bitmap"
1176                   id="win_TL"
1177                   posref="TL TL"
1178                   texture="Bulle_TL.tga"
1179                   global_color="false" />
1180             <view type="bitmap"
1181                   id="win_TR"
1182                   posref="TR TR"
1183                   texture="Bulle_TR.tga"
1184                   global_color="false" />
1185             <view type="bitmap"
1186                   id="win_BL"
1187                   posref="BL BL"
1188                   texture="Bulle_BL.tga"
1189                   global_color="false" />
1190             <view type="bitmap"
1191                   id="win_BR"
1192                   posref="BR BR"
1193                   texture="Bulle_BR.tga"
1194                   global_color="false" />
1195           </group>
1196           <view type="text"
1197                 id="text"
1198                 posref="TL TL"
1199                 x="5"
1200                 y="-24"
1201                 hardtext="#hardtext"
1202                 fontsize="12"
1203                 justification="dont_clip_word"
1204                 color="0 0 0 255"
1205                 global_color="false"
1206                 multi_line="true"
1207                 multi_line_space="0"
1208                 line_maxw="320"
1209                 multi_line_maxw_only="true" />
1210           <ctrl type="button"
1211                 button_type="push_button"
1212                 tx_normal="Bulle_next.tga"
1213                 tx_pushed="Bulle_next.tga"
1214                 tx_over="Bulle_next.tga"
1215                 color="255 255 255 255"
1216                 col_over="255 255 255 0"
1217                 col_pushed="255 255 255 255"
1218                 global_color_normal="false"
1219                 global_color_over="false"
1220                 global_color_pushed="false"
1221                 tooltip="uiNext"
1222                 id="but_next"
1223                 posref="TR TR"
1224                 x="-5"
1225                 y="-5"
1226                 onclick_l="bubble_next"
1227                 active="false" />
1228           <ctrl type="button"
1229                 button_type="push_button"
1230                 tx_normal="Bulle_quit.tga"
1231                 tx_pushed="Bulle_quit.tga"
1232                 tx_over="Bulle_quit.tga"
1233                 color="255 255 255 255"
1234                 col_over="255 255 255 0"
1235                 col_pushed="255 255 255 255"
1236                 global_color_normal="false"
1237                 global_color_over="false"
1238                 global_color_pushed="false"
1239                 tooltip="uiSkip"
1240                 id="but_skip"
1241                 posref="TL TR"
1242                 posparent="but_next"
1243                 x="-4"
1244                 y="0"
1245                 onclick_l="bubble_skip"
1246                 active="false" />
1247           <!-- Yoyo: Fake to have minimum bubble size -->
1248           <group id="min_w"
1249                  posparent="text"
1250                  posref="TL TL"
1251                  x="0"
1252                  y="0"
1253                  w="48"
1254                  h="14" />
1255         </group>
1256         <view type="bitmap"
1257               id="win_talk"
1258               posref="BR TR"
1259               x="-24"
1260               y="2"
1261               posparent="window"
1262               texture="Bulle_Say_L.tga"
1263               global_color="false" />
1264       </group>
1265     </group>
1266   </template>
1267   <!-- *  Bulle de dialogue dynamique a gauche du perso 
1268                 textid of the views are updated by code * -->
1269   <style style="dynchat_desc"
1270          type="text"
1271          fontsize="12"
1272          justification="dont_clip_word"
1273          color="0 0 0 255"
1274          global_color="false"
1275          multi_line="true"
1276          multi_line_space="0"
1277          line_maxw="320"
1278          multi_line_maxw_only="true" />
1279   <style style="dynchat_option"
1280          type="text_id"
1281          dynamic_string="true"
1282          format_taged="true"
1283          fontsize="10"
1284          justification="dont_clip_word"
1285          color="0 0 64 255"
1286          underlined="true"
1287          global_color="false"
1288          multi_line="true"
1289          multi_line_space="0"
1290          line_maxw="320"
1291          multi_line_maxw_only="true" />
1292   <style style="dynchat_option_but"
1293          type="button_link"
1294          posref="TL TL"
1295          x="0"
1296          y="0"
1297          sizeref="wh"
1298          w="0"
1299          h="0"
1300          onclick_l="dynchat_click_option" />
1301   <template name="dyn_3dbulle_L"
1302             id=""
1303             keep="true">
1304     <group id="#id"
1305            type="in_scene_bubble"
1306            header_active="false"
1307            options="no_bordure"
1308            openable="false"
1309            savable="false"
1310            resizer="true"
1311            movable="false"
1312            right_button="false"
1313            opened="true"
1314            child_resize_w="true"
1315            w="0"
1316            max_w="512"
1317            min_w="48"
1318            child_resize_h="true"
1319            in_scene_offset_x="-95"
1320            win_priority="%win_priority_world_space"
1321            posref="BL BR"
1322            use_cursor="true">
1323       <group id="header_opened"
1324              x="0"
1325              y="0"
1326              child_resize_w="true"
1327              w="0"
1328              child_resize_h="true"
1329              h="0"
1330              max_w="512"
1331              min_w="48"
1332              max_h="256"
1333              min_h="48"
1334              posref="TL TL">
1335         <group id="window"
1336                x="0"
1337                y="0"
1338                child_resize_w="true"
1339                child_resize_wmargin="10"
1340                child_resize_h="true"
1341                child_resize_hmargin="10"
1342                posref="TL TL">
1343           <group id="back"
1344                  x="0"
1345                  y="0"
1346                  w="0"
1347                  h="0"
1348                  sizeref="wh"
1349                  posref="TL TL">
1350             <view type="bitmap"
1351                   id="win_M"
1352                   posref="MM MM"
1353                   scale="true"
1354                   sizeref="wh"
1355                   w="-10"
1356                   h="-10"
1357                   texture="Bulle_M.tga"
1358                   global_color="false" />
1359             <view type="bitmap"
1360                   id="win_T"
1361                   posparent="win_M"
1362                   posref="TL BL"
1363                   scale="true"
1364                   sizeref="w"
1365                   w="0"
1366                   h="5"
1367                   texture="Bulle_T.tga"
1368                   global_color="false" />
1369             <view type="bitmap"
1370                   id="win_B"
1371                   posparent="win_M"
1372                   posref="BL TL"
1373                   scale="true"
1374                   sizeref="w"
1375                   w="0"
1376                   h="5"
1377                   texture="Bulle_B.tga"
1378                   global_color="false" />
1379             <view type="bitmap"
1380                   id="win_L"
1381                   posparent="win_M"
1382                   posref="TL TR"
1383                   scale="true"
1384                   sizeref="h"
1385                   w="5"
1386                   h="0"
1387                   texture="Bulle_L.tga"
1388                   global_color="false" />
1389             <view type="bitmap"
1390                   id="win_R"
1391                   posparent="win_M"
1392                   posref="TR TL"
1393                   scale="true"
1394                   sizeref="h"
1395                   w="5"
1396                   h="0"
1397                   texture="Bulle_R.tga"
1398                   global_color="false" />
1399             <view type="bitmap"
1400                   id="win_TL"
1401                   posref="TL TL"
1402                   texture="Bulle_TL.tga"
1403                   global_color="false" />
1404             <view type="bitmap"
1405                   id="win_TR"
1406                   posref="TR TR"
1407                   texture="Bulle_TR.tga"
1408                   global_color="false" />
1409             <view type="bitmap"
1410                   id="win_BL"
1411                   posref="BL BL"
1412                   texture="Bulle_BL.tga"
1413                   global_color="false" />
1414             <view type="bitmap"
1415                   id="win_BR"
1416                   posref="BR BR"
1417                   texture="Bulle_BR.tga"
1418                   global_color="false" />
1419           </group>
1420           <view style="dynchat_desc"
1421                 id="text"
1422                 posref="TL TL"
1423                 x="5"
1424                 y="-24" />
1425           <ctrl type="button"
1426                 button_type="push_button"
1427                 tx_normal="Bulle_next.tga"
1428                 tx_pushed="Bulle_next.tga"
1429                 tx_over="Bulle_next.tga"
1430                 color="255 255 255 255"
1431                 col_over="255 255 255 0"
1432                 col_pushed="255 255 255 255"
1433                 global_color_normal="false"
1434                 global_color_over="false"
1435                 global_color_pushed="false"
1436                 tooltip="uiNext"
1437                 id="but_next"
1438                 posref="TR TR"
1439                 x="-5"
1440                 y="-5"
1441                 onclick_l="bubble_next"
1442                 active="false" />
1443           <ctrl type="button"
1444                 button_type="push_button"
1445                 tx_normal="Bulle_quit.tga"
1446                 tx_pushed="Bulle_quit.tga"
1447                 tx_over="Bulle_quit.tga"
1448                 color="255 255 255 255"
1449                 col_over="255 255 255 0"
1450                 col_pushed="255 255 255 255"
1451                 global_color_normal="false"
1452                 global_color_over="false"
1453                 global_color_pushed="false"
1454                 tooltip="uiSkip"
1455                 id="but_skip"
1456                 posref="TL TR"
1457                 posparent="but_next"
1458                 x="-4"
1459                 y="0"
1460                 onclick_l="bubble_skip"
1461                 active="false" />
1462           <!-- Yoyo: Fake to have minimum bubble size -->
1463           <group id="min_w"
1464                  posparent="text"
1465                  posref="TL TL"
1466                  x="0"
1467                  y="0"
1468                  w="48"
1469                  h="14" />
1470           <view style="dynchat_option"
1471                 id="opt0"
1472                 posparent="text"
1473                 posref="BL TL"
1474                 x="16"
1475                 y="-4" />
1476           <view style="dynchat_option"
1477                 id="opt1"
1478                 posparent="opt0"
1479                 posref="BL TL"
1480                 x="0"
1481                 y="-4" />
1482           <view style="dynchat_option"
1483                 id="opt2"
1484                 posparent="opt1"
1485                 posref="BL TL"
1486                 x="0"
1487                 y="-5" />
1488           <view style="dynchat_option"
1489                 id="opt3"
1490                 posparent="opt2"
1491                 posref="BL TL"
1492                 x="0"
1493                 y="-5" />
1494           <view style="dynchat_option"
1495                 id="opt4"
1496                 posparent="opt3"
1497                 posref="BL TL"
1498                 x="0"
1499                 y="-5" />
1500           <view style="dynchat_option"
1501                 id="opt5"
1502                 posparent="opt4"
1503                 posref="BL TL"
1504                 x="0"
1505                 y="-5" />
1506           <view style="dynchat_option"
1507                 id="opt6"
1508                 posparent="opt5"
1509                 posref="BL TL"
1510                 x="0"
1511                 y="-5" />
1512           <view style="dynchat_option"
1513                 id="opt7"
1514                 posparent="opt6"
1515                 posref="BL TL"
1516                 x="0"
1517                 y="-5" />
1518           <ctrl style="dynchat_option_but"
1519                 id="optb0"
1520                 posparent="opt0"
1521                 params_l="0" />
1522           <ctrl style="dynchat_option_but"
1523                 id="optb1"
1524                 posparent="opt1"
1525                 params_l="1" />
1526           <ctrl style="dynchat_option_but"
1527                 id="optb2"
1528                 posparent="opt2"
1529                 params_l="2" />
1530           <ctrl style="dynchat_option_but"
1531                 id="optb3"
1532                 posparent="opt3"
1533                 params_l="3" />
1534           <ctrl style="dynchat_option_but"
1535                 id="optb4"
1536                 posparent="opt4"
1537                 params_l="4" />
1538           <ctrl style="dynchat_option_but"
1539                 id="optb5"
1540                 posparent="opt5"
1541                 params_l="5" />
1542           <ctrl style="dynchat_option_but"
1543                 id="optb6"
1544                 posparent="opt6"
1545                 params_l="6" />
1546           <ctrl style="dynchat_option_but"
1547                 id="optb7"
1548                 posparent="opt7"
1549                 params_l="7" />
1550         </group>
1551         <view type="bitmap"
1552               id="win_talk"
1553               posref="BR TR"
1554               x="-24"
1555               y="2"
1556               posparent="window"
1557               texture="Bulle_Say_L.tga"
1558               global_color="false" />
1559       </group>
1560     </group>
1561   </template>
1562   <!-- *  Bulle d'IA a droite * -->
1563   <template name="3dIA_R"
1564             id="">
1565     <group id="#id"
1566            type="container"
1567            header_active="false"
1568            options="no_bordure"
1569            openable="false"
1570            savable="false"
1571            resizer="true"
1572            movable="false"
1573            right_button="false"
1574            opened="true"
1575            w="66"
1576            h="72">
1577       <group id="header_opened"
1578              x="0"
1579              y="0"
1580              w="66"
1581              h="72"
1582              posref="TL TL">
1583         <view type="bitmap"
1584               id="win_ia"
1585               posref="TL TL"
1586               texture="Bulle_IA.tga"
1587               global_color="false" />
1588         <view type="bitmap"
1589               id="win_think"
1590               posref="BL BL"
1591               x="2"
1592               y="0"
1593               texture="Bulle_Think_R.tga"
1594               global_color="false" />
1595         <view type="bitmap"
1596               id="ia"
1597               posparent="win_ia"
1598               posref="MM MM"
1599               texture="IA_Surpris.tga"
1600               global_color="false" />
1601       </group>
1602     </group>
1603   </template>
1604   <!-- *  Bulle d'IA a gauche * -->
1605   <template name="3dIA_L"
1606             id="">
1607     <group id="#id"
1608            type="container"
1609            header_active="false"
1610            options="no_bordure"
1611            openable="false"
1612            savable="false"
1613            resizer="true"
1614            movable="false"
1615            right_button="false"
1616            opened="true"
1617            w="66"
1618            h="72">
1619       <group id="header_opened"
1620              x="0"
1621              y="0"
1622              w="66"
1623              h="72"
1624              posref="TL TL">
1625         <view type="bitmap"
1626               id="win_ia"
1627               posref="TL TL"
1628               texture="Bulle_IA.tga"
1629               global_color="false" />
1630         <view type="bitmap"
1631               id="win_think"
1632               posref="BR BR"
1633               x="-2"
1634               y="0"
1635               texture="Bulle_Think_L.tga"
1636               global_color="false" />
1637         <view type="bitmap"
1638               id="ia"
1639               posparent="win_ia"
1640               posref="MM MM"
1641               texture="IA_Surpris.tga"
1642               global_color="false" />
1643       </group>
1644     </group>
1645   </template>
1646   <!-- ********************************* -->
1647   <!-- *  TEMPLATE FOR MENU SEPARATORS * -->
1648   <!-- ********************************* -->
1649   <template name="menu_separator"
1650             keep="true">
1651     <group id="sep_gr"
1652            posref="BL BL"
1653            sizeref="w"
1654            w="0"
1655            h="4">
1656       <!-- width is setupped by the menu -->
1657       <view type="bitmap"
1658             id="m"
1659             scale="true"
1660             w="0"
1661             h="0"
1662             sizeref="wh"
1663             texture="W_line_hor3.tga" />
1664     </group>
1665   </template>
1666   <!-- the same as menu_separator, but this is just a place holder (must give height of the separator -->
1667   <template name="menu_separator_empty"
1668             keep="true">
1669     <group id="sep"
1670            posref="BL BL"
1671            w="4"
1672            h="4"
1673            x="-4">
1674       <!-- <view type="bitmap" id="l" posref="TL TL" texture="w_button_08_over.tga" /> -->
1675     </group>
1676   </template>
1677   <!-- ******************************* -->
1678   <!-- *  TEMPLATE FOR MENU CHECKBOX * -->
1679   <!-- ******************************* -->
1680   <template name="menu_checkbox"
1681             keep="true"
1682             onclick_l=""
1683             params_l="">
1684     <group id="cb"
1685            child_resize_h="true"
1686            child_resize_w="true">
1687       <ctrl type="button"
1688             id="b"
1689             button_type="toggle_button"
1690             posref="TL TL"
1691             tx_normal="W_sound_off.tga"
1692             tx_pushed="W_sound_on.tga"
1693             tx_over="W_button_14_over.tga"
1694             color="255 255 255 255"
1695             col_pushed="255 255 255 255"
1696             col_over="255 255 255 255"
1697             global_color_pushed="false"
1698             onclick_l="#onclick_l"
1699             params_l="#params_l" />
1700     </group>
1701   </template>
1702   <!-- **************************************** -->
1703   <!-- *  BASE PARAMETERS FOR MENU (COLOR ..) * -->
1704   <!-- **************************************** -->
1705   <group type="menu"
1706          id="base_menu"
1707          mouse_pos="true"
1708          exit_click_b="true"
1709          win_priority="%win_priority_highest"
1710          space="1"
1711          fontsize="12"
1712          shadow="true"
1713          color="255 255 255 200"
1714          shadow_color="0 0 0 255"
1715          color_over="0 0 0 255"
1716          shadow_color_over="0 0 0 0"
1717          color_grayed="255 255 255 64"
1718          shadow_color_grayed="0 0 0 255"
1719          highlight_over="255 255 255 150"
1720          case_mode="%case_normal"></group>
1721   <group type="menu"
1722          id="base_menu_with_color"
1723          extends="base_menu">
1724     <action id="choose_ui_alpha"
1725             name="uimChooseUIAlpha"
1726             handler="choose_ui_alpha"
1727             cond="eq(@UI:VARIABLES:GC_POPUP, 1)" />
1728     <action id="lock_unlock"
1729             name="uimLockUnlock"
1730             handler="lock_unlock"
1731             cond="eq(@UI:VARIABLES:GC_POPUP, 1)" />
1732     <action id="help"
1733             name="uimHelp"
1734             handler="ic_help"
1735             cond="eq(@UI:VARIABLES:GC_HAS_HELP, 1)" />
1736   </group>
1737   <!-- ************** -->
1738   <!-- *  ITEM MENU * -->
1739   <!-- ************** -->
1740   <proc id="move_to_bag">
1741     <action handler="move_item"
1742             params="to=lists|nblist=1|
1743                                                                                 listsheet0=ui:interface:inventory:content:bag:iil:bag_icons" />
1744   </proc>
1745   <proc id="move_to_pa">
1746     <action handler="move_item"
1747             params="to=lists|nblist=1|
1748                                                                                 listsheet0=ui:interface:inventory:content:pa@0:iil:bag_icons" />
1749   </proc>
1750   <proc id="move_to_room">
1751     <action handler="move_item"
1752             params="to=lists|nblist=1|
1753                                                                                 listsheet0=ui:interface:inventory:content:room:iil:bag_icons" />
1754   </proc>
1755   <proc id="move_to_guild">
1756     <action handler="move_item"
1757             params="to=lists|nblist=1|
1758                                                                                 listsheet0=ui:interface:inventory:content:guild:iil:bag_icons" />
1759   </proc>
1760   <!-- item menu when we are in bags (do not modify hierarchy or ids if you do not modify the code) -->
1761   <group type="menu"
1762          id="item_menu_in_bag"
1763          extends="base_menu"
1764          on_deactive="item_menu_deactivate"
1765          on_active="item_menu_check">
1766     <action id="cris_enchant"
1767             name="uimCristalEnchant"
1768             handler="item_cristal_enchant" />
1769     <action id="cris_reload"
1770             name="uimCristalReload"
1771             handler="item_cristal_reload" />
1772     <action id="teleport_use"
1773             name="uimTeleportUse"
1774             handler="teleport_use" />
1775     <action id="item_consume"
1776             name="uimItemConsume"
1777             handler="item_consume" />
1778     <action id="xp_catalyser_use"
1779             name="uimXpCatalyserUse"
1780             handler="xp_catalyser_use" />
1781     <action id="item_text_display"
1782             name="uiOpen"
1783             handler="item_text_display"
1784             params="ui:interface:edit_custom" />
1785    <separator />
1786     <!-- Move to an Animal -->
1787     <action id="move"
1788             name="uimMoveTo">
1789       <action id="bag"
1790               name="uimMtBag"
1791               handler="proc"
1792               params="move_to_bag" />
1793       <!-- MAX_INVENTORY_ANIMAL -->
1794       <action id="pa0"
1795               name="uimMtPaMount0"
1796               handler="proc"
1797               params="move_to_pa|0" />
1798       <action id="pa1"
1799               name="uimMtPaMount1"
1800               handler="proc"
1801               params="move_to_pa|1" />
1802       <action id="pa2"
1803               name="uimMtPaMount2"
1804               handler="proc"
1805               params="move_to_pa|2" />
1806       <action id="pa3"
1807               name="uimMtPaMount3"
1808               handler="proc"
1809               params="move_to_pa|3" />
1810       <action id="guild"
1811               name="uimMtGuild"
1812               handler="proc"
1813               params="move_to_guild" />
1814       <action id="room"
1815               name="uimMtRoom"
1816               handler="proc"
1817               params="move_to_room" />
1818     </action>
1819     <!--<action id="drop"           name="uimDrop"          handler="proc"  params="drop_item_proc" />-->
1820     <action id="destroy"
1821             name="uimDestroy"
1822             handler="proc"
1823             params="destroy_item_proc" />
1824     <action id="equip"
1825             name="uimEquip"
1826             handler="inv_auto_equip" />
1827     <action id="infos"
1828             name="uimBoldInfo"
1829             handler="open_item_help" />
1830     <action id="lockunlock"
1831             name="uimLockItem"
1832             handler="lock_inv_item" />
1833     <action id="item_text_edition"
1834             name="uimItemTextEdit"
1835             handler="item_text_edition"
1836             params="ui:interface:edit_custom" />
1837   </group>
1838   <!-- MAX_INVENTORY_ANIMAL -->
1839   <link expr="switch(@%pa_beast0:TYPE, 'uimMtPaMount0', 'uimMtPaMount0', 'uimMtPaPacker0', 'uimMtPaDemon0')"
1840         target="ui:interface:item_menu_in_bag:move:pa0:hardtext" />
1841   <link expr="switch(@%pa_beast1:TYPE, 'uimMtPaMount1', 'uimMtPaMount1', 'uimMtPaPacker1', 'uimMtPaDemon1')"
1842         target="ui:interface:item_menu_in_bag:move:pa1:hardtext" />
1843   <link expr="switch(@%pa_beast2:TYPE, 'uimMtPaMount2', 'uimMtPaMount2', 'uimMtPaPacker2', 'uimMtPaDemon2')"
1844         target="ui:interface:item_menu_in_bag:move:pa2:hardtext" />
1845   <link expr="switch(@%pa_beast3:TYPE, 'uimMtPaMount3', 'uimMtPaMount3', 'uimMtPaPacker3', 'uimMtPaDemon3')"
1846         target="ui:interface:item_menu_in_bag:move:pa3:hardtext" />
1847   <!-- item menu when we are in self -->
1848   <group type="menu"
1849          id="item_menu_in_self"
1850          extends="base_menu"
1851          on_active="item_menu_base_check" >
1852     <!--<action id="drop"    name="uimDrop"     handler="proc" params="drop_item_proc"/>-->
1853     <action id="destroy"
1854             name="uimDestroy"
1855             handler="proc"
1856             params="destroy_item_proc" />
1857     <action id="infos"
1858             name="uimBoldInfo"
1859             handler="open_item_help"
1860             params="" />
1861     <action id="lockunlock"
1862             name="uimLockItem"
1863             handler="lock_inv_item" />
1864   </group>
1865   <!-- item menu default -->
1866   <group type="menu"
1867          id="item_menu"
1868          extends="base_menu"
1869          on_active="item_menu_base_check" >
1870     <!--<action id="drop"    name="uimDrop"     handler="proc" params="drop_item_proc"/>-->
1871     <action id="destroy"
1872             name="uimDestroy"
1873             handler="proc"
1874             params="destroy_item_proc" />
1875     <action id="move"
1876             name="uimMoveTo">
1877       <!--<action id="bag"    name="uimMtBag"         handler="proc" params="move_to_bag" /> -->
1878     </action>
1879     <action id="infos"
1880             name="uimBoldInfo"
1881             handler="open_item_help"
1882             params="" />
1883     <action id="lockunlock"
1884             name="uimLockItem"
1885             handler="lock_inv_item" />
1886   </group>
1887   <define id="item_modal_menu"
1888           value="ui:interface:item_menu" />
1889   <define id="self_item_modal_menu"
1890           value="ui:interface:item_menu_in_self" />
1891   <!-- ************************ -->
1892   <!-- *  ITEM DROP PROCEDURE * -->
1893   <!-- ************************ -->
1894   <!-- modal de selection d'armure/fourreaux -->
1895   <group type="modal"
1896          id="bag_choose"
1897          x="0"
1898          y="0"
1899          w="182"
1900          posref="BL TL"
1901          child_resize_h="true"
1902          exit_click_out="true"
1903          exit_click_l="true"
1904          options="skin_modal">
1905     <group type="list_sheet_filter_clm_slot"
1906            id="list"
1907            posref="TL TL"
1908            value="%bag"
1909            wspace="2"
1910            hspace="2"
1911            array="false"
1912            x="0"
1913            y="0"
1914            w="182"
1915            display_empty_slot="true"
1916            onclick_l="inv_drop"
1917            params_l="src=ctrl_launch_modal"
1918            onclick_r="open_help_auto"
1919            lmargin="4"
1920            rmargin="4"
1921            tmargin="4"
1922            bmargin="4"
1923            column_max="4"
1924            child_resize_h="true"></group>
1925   </group>
1926   <!-- the player buy an item from a bot -->
1927   <!--
1928 <proc id="buy_item">
1930   <!-- set sheet of item to buy -->
1931   <!--<action handler="set" params="dblink=%item_to_trade_sheet:SHEET|value=getSheetID(getDraggedSheet())" /> -->
1932   <!-- activate the box to choose the number of item to but (stackable item) -->
1933   <!--<action handler="set_active" params="target=ui:interface:confirm_buy:content:quantity|active=isStackable(getDraggedSheet())"/>-->
1934   <!-- set the number of item to 1 -->
1935   <!--<action handler="set" params="dblink=%num_stackable_item_to_trade|value=1"/>-->
1936   <!-- activate the dialog to choose -->
1937   <!--<action handler="buy_dropped_item"/>-->
1938   <!--</proc>-->
1939   <!--
1940 <proc id="drop_item" >
1942   <!-- If the item is from the inventory, just swap the item -->
1943   <!-- <action handler="swap_item"        params="@0" cond="eq(getSheetSelectionGroup(getDraggedSheet()), 'inventory_selection')"/>       -->
1944   <!-- If the items comes from a bot inventory, display the dialog to buy it -->
1945   <!-- <action handler="proc" cond="eq(getDroppedItemSelectionGroup(), 'buy_selection')" params="buy_item"/>-->
1946   <!--</proc>-->
1947   <proc id="drop_item">
1948     <action handler="swap_item"
1949             params="@0" />
1950   </proc>
1951   <proc id="drag_item"></proc>
1952   <!--
1953 <proc id="test_can_drop"> -->
1954   <!-- If the item is from the inventory, can drop if it is an item -->
1955   <!--
1956         <action handler="isitem"        params="@0" cond="eq(getSheetSelectionGroup(getDraggedSheet()), 'inventory_selection')"/>       
1957         -->
1958   <!-- If the items comes from a bot inventory, can drop on an empty slot only. The source must also be an item -->
1959   <!--
1960         <action handler="itemtoemptyslottest"  params="@0" cond="eq(getSheetSelectionGroup(getDraggedSheet()), 'buy_selection')"/>
1961         -->
1962   <!--    
1963 </proc>
1965   <proc id="test_can_drop">
1966     <action handler="isitem"
1967             params="@0" />
1968   </proc>
1969   <!-- ******************* -->
1970   <!-- *     THUNES      * -->
1971   <!-- ******************* -->
1972   <template name="argent"
1973             posparent="parent"
1974             x="0"
1975             y="0"
1976             w="110"
1977             h="16"
1978             posref="TL TL"
1979             id=""
1980             tooltip="uittPlayerMoney">
1981     <group id="#id"
1982            posparent="#posparent"
1983            posref="#posref"
1984            w="#w"
1985            h="#h"
1986            x="#x"
1987            y="#y">
1988       <!-- Yoyo: pust scale=true, because this texture may be replaced with Faction icones (32x32) -->
1989       <view type="bitmap"
1990             id="icone"
1991             posref="TL TL"
1992             texture="money_seve.tga"
1993             scale="true"
1994             w="16"
1995             h="16"
1996             global_color="false" />
1997       <instance template="box_widget"
1998                 id="box1"
1999                 posref="TL TL"
2000                 sizeref="w"
2001                 w="-18"
2002                 h="16"
2003                 x="18" />
2004       <view type="text_number"
2005             id="val1"
2006             posparent="box1"
2007             posref="MR MR"
2008             x="-3"
2009             y="0"
2010             color="135 243 28 255"
2011             shadow="true"
2012             fontsize="10"
2013             value="#value"
2014             global_color="false"
2015             positive="true"
2016             format="true" />
2017       <view type="text"
2018             id="bad_price"
2019             posparent="box1"
2020             posref="MR MR"
2021             x="-3"
2022             y="0"
2023             color="192 192 192 255"
2024             shadow="true"
2025             fontsize="10"
2026             hardtext="uiBadPrice"
2027             global_color="false" />
2028       <ctrl type="tooltip"
2029             id="tt"
2030             posparent="box1"
2031             posref="TL TL"
2032             sizeref="wh"
2033             w="0"
2034             h="0"
2035             tooltip="#tooltip" />
2036       <!-- display bad price text if price value is -1 -->
2037       <link expr="eq(@#value, -1)"
2038             target="bad_price:active" />
2039       <link expr="ne(@#value, -1)"
2040             target="val1:active" />
2041     </group>
2042   </template>
2043   <!-- ********************* -->
2044   <!-- *     SKILL POINTS  * -->
2045   <!-- ********************* -->
2046   <template name="skill_points_widget"
2047             posparent="parent"
2048             sizeref="w"
2049             posref="TL TL"
2050             x="0"
2051             y="0"
2052             id=""
2053             fontsize_text="10"
2054             fontsize_number="10"
2055             hardtext="uiSkillPoints"
2056             tooltip=""
2057             global_color="true">
2058     <group id="#id"
2059            child_resize_h="true"
2060            posparent="#posparent"
2061            posref="#posref"
2062            sizeref="w"
2063            x="#x"
2064            y="#y"
2065            global_color="#global_color">
2066       <view type="text"
2067             id="sp_text"
2068             posref="ML ML"
2069             color="255 255 255 255"
2070             x="8"
2071             shadow="true"
2072             fontsize="#fontsize_text"
2073             hardtext="#hardtext"
2074             global_color="#global_color" />
2075       <view type="text_number"
2076             id="sp_value"
2077             posref="MR MR"
2078             x="-4"
2079             y="0"
2080             color="255 255 255 255"
2081             shadow="true"
2082             fontsize="#fontsize_number"
2083             value="#value"
2084             global_color="#global_color" />
2085     </group>
2086     <instance template="text_tt"
2087               posparent="#id"
2088               tooltip="#tooltip" />
2089   </template>
2090   <template name="skill_points_widget2"
2091             posparent="parent"
2092             posref="TL TL"
2093             x="0"
2094             y="0"
2095             id=""
2096             fontsize_text="10"
2097             fontsize_number="10"
2098             hardtext="uiSkillPoints">
2099     <group id="#id"
2100            child_resize_h="true"
2101            posparent="#posparent"
2102            posref="#posref"
2103            child_resize_w="true"
2104            x="#x"
2105            y="#y">
2106       <view type="text"
2107             id="sp_text"
2108             posref="ML ML"
2109             color="255 255 255 255"
2110             shadow="true"
2111             fontsize="#fontsize_text"
2112             hardtext="#hardtext"
2113             global_color="false" />
2114       <view type="text_number"
2115             id="sp_value"
2116             posref="MR ML"
2117             posparent="sp_text"
2118             x="4"
2119             y="0"
2120             color="255 255 255 255"
2121             shadow="true"
2122             fontsize="#fontsize_number"
2123             value="#value"
2124             global_color="false" />
2125     </group>
2126   </template>
2128   <!-- ********************* -->
2129   <!-- *   FACTION POINTS  * -->
2130   <!-- ********************* -->
2131   <template name="faction_points_widget"
2132             id=""
2133             posref="TL TL"
2134             posparent="parent"
2135             x="0"
2136             y="0"
2137             sizeref="w"
2138             sizeparent="parent"
2139             w="0">
2140     <group id="#id"
2141            posref="#posref"
2142            posparent="#posparent"
2143            x="#x"
2144            y="#y"
2145            sizeref="#sizeref"
2146            sizeparent="#sizeparent"
2147            w="#w"
2148            h="74">
2149       <!-- the title -->
2150       <view type="text"
2151             id="factionpt_t"
2152             posref="TL TL"
2153             x="0"
2154             y="0"
2155             hardtext="uiFactionPointTable"
2156             shadow="true"
2157             color="255 255 255 255"
2158             global_color="false"
2159             fontsize="12" />
2160       <instance template="text_tt"
2161                 tooltip="uittIdentityFaction"
2162                 posparent="factionpt_t" />
2163       <!-- left part : kami fyros zorai -->
2164       <group id="left"
2165              posref="TL TL"
2166              x="0"
2167              y="-14"
2168              sizeref="w5"
2169              w="0"
2170              h="60"
2171              inherit_gc_alpha="true">
2172         <!-- texts -->
2173         <view type="text"
2174               id="tkami"
2175               posref="TL TL"
2176               x="8"
2177               y="-8"
2178               w="-16"
2179               color="255 255 255 255"
2180               fontsize="12"
2181               shadow="true"
2182               hardtext="uiFactionPoint_Kami" />
2183         <view type="text"
2184               id="tfyro"
2185               posref="TL TL"
2186               x="8"
2187               y="-24"
2188               color="255 255 255 255"
2189               fontsize="12"
2190               shadow="true"
2191               hardtext="uiFactionPoint_Fyros" />
2192         <view type="text"
2193               id="tzora"
2194               posref="TL TL"
2195               x="8"
2196               y="-40"
2197               color="255 255 255 255"
2198               fontsize="12"
2199               shadow="true"
2200               hardtext="uiFactionPoint_Zorai" />
2201         <!-- numbers -->
2202         <view type="text_number"
2203               id="vkami"
2204               posref="TR TR"
2205               x="-8"
2206               y="-8"
2207               w="-16"
2208               color="255 255 255 255"
2209               shadow="true"
2210               fontsize="12"
2211               value="%faction_points_kami"
2212               positive="true" />
2213         <view type="text_number"
2214               id="vfyro"
2215               posref="TR TR"
2216               x="-8"
2217               y="-24"
2218               color="255 255 255 255"
2219               shadow="true"
2220               fontsize="12"
2221               value="%faction_points_fyros"
2222               positive="true" />
2223         <view type="text_number"
2224               id="vzora"
2225               posref="TR TR"
2226               x="-8"
2227               y="-40"
2228               color="255 255 255 255"
2229               shadow="true"
2230               fontsize="12"
2231               value="%faction_points_zorai"
2232               positive="true" />
2233         <instance template="inner_thin_border"
2234                   posparent="parent"
2235                   inherit_gc_alpha="true" />
2236       </group>
2237       <!-- right part : karavan matis tryker -->
2238       <group id="right"
2239              posref="TR TR"
2240              x="0"
2241              y="-14"
2242              sizeref="w5"
2243              w="0"
2244              h="60"
2245              inherit_gc_alpha="true">
2246         <!-- texts -->
2247         <view type="text"
2248               id="tkara"
2249               posref="TL TL"
2250               x="8"
2251               y="-8"
2252               w="-16"
2253               color="255 255 255 255"
2254               fontsize="12"
2255               shadow="true"
2256               hardtext="uiFactionPoint_Karavan" />
2257         <view type="text"
2258               id="tmati"
2259               posref="TL TL"
2260               x="8"
2261               y="-24"
2262               color="255 255 255 255"
2263               fontsize="12"
2264               shadow="true"
2265               hardtext="uiFactionPoint_Matis" />
2266         <view type="text"
2267               id="ttryk"
2268               posref="TL TL"
2269               x="8"
2270               y="-40"
2271               color="255 255 255 255"
2272               fontsize="12"
2273               shadow="true"
2274               hardtext="uiFactionPoint_Tryker" />
2275         <!-- numbers -->
2276         <view type="text_number"
2277               id="vkara"
2278               posref="TR TR"
2279               x="-8"
2280               y="-8"
2281               color="255 255 255 255"
2282               shadow="true"
2283               fontsize="12"
2284               value="%faction_points_karavan"
2285               positive="true" />
2286         <view type="text_number"
2287               id="vmati"
2288               posref="TR TR"
2289               x="-8"
2290               y="-24"
2291               color="255 255 255 255"
2292               shadow="true"
2293               fontsize="12"
2294               value="%faction_points_matis"
2295               positive="true" />
2296         <view type="text_number"
2297               id="vtryk"
2298               posref="TR TR"
2299               x="-8"
2300               y="-40"
2301               color="255 255 255 255"
2302               shadow="true"
2303               fontsize="12"
2304               value="%faction_points_tryker"
2305               positive="true" />
2306         <instance template="inner_thin_border"
2307                   posparent="parent"
2308                   inherit_gc_alpha="true" />
2309       </group>
2310     </group>
2311   </template>
2312   <!-- ******************* -->
2313   <!-- *  SELECT NUMBER  * -->
2314   <!-- ******************* -->
2315   <template name="SNH"
2316             id=""
2317             value=""
2318             loop="true"
2319             min="0"
2320             max="9"
2321             posparent="parent"
2322             posref="MM MM"
2323             x="0"
2324             y="0"
2325             w="28"
2326             h="20"
2327             delta="1">
2328     <group type="select_number"
2329            id="#id"
2330            value="#value"
2331            loop="#loop"
2332            min="#min"
2333            max="#max"
2334            x="#x"
2335            y="#y"
2336            w="#w"
2337            h="#h"
2338            posparent="#posparent"
2339            posref="#posref"
2340            delta="#delta">
2341       <view type="bitmap"
2342             id="slot_number"
2343             posref="ML ML"
2344             texture="W_slot_number.tga" />
2345       <view type="text"
2346             id="number"
2347             posparent="slot_number"
2348             posref="MM MM"
2349             x="-1"
2350             y="-2"
2351             color="255 255 255 255"
2352             fontsize="12"
2353             shadow="true"
2354             hardtext="0"
2355             global_color="false" />
2356       <ctrl type="button"
2357             id="arrow_up"
2358             button_type="push_button"
2359             posref="TR TR"
2360             tx_normal="W_arrow_up_2.tga"
2361             tx_pushed="W_arrow_up_2.tga"
2362             tx_over="W_button_10_over.tga" />
2363       <ctrl type="button"
2364             id="arrow_down"
2365             button_type="push_button"
2366             posref="BR BR"
2367             tx_normal="W_arrow_down_2.tga"
2368             tx_pushed="W_arrow_down_2.tga"
2369             tx_over="W_button_10_over.tga" />
2370     </group>
2371   </template>
2372   <template name="SNV"
2373             id=""
2374             value=""
2375             loop="true"
2376             min="0"
2377             max="9"
2378             posparent="parent"
2379             posref="MM MM"
2380             x="0"
2381             y="0"
2382             w="16"
2383             h="40"
2384             delta="1">
2385     <group type="select_number"
2386            id="#id"
2387            value="#value"
2388            loop="#loop"
2389            min="#min"
2390            max="#max"
2391            x="#x"
2392            y="#y"
2393            w="#w"
2394            h="#h"
2395            posparent="#posparent"
2396            posref="#posref"
2397            delta="#delta">
2398       <view type="bitmap"
2399             id="slot_number"
2400             posref="MM MM"
2401             texture="W_slot_number.tga" />
2402       <view type="text"
2403             id="number"
2404             posparent="slot_number"
2405             posref="MM MM"
2406             x="-1"
2407             y="-2"
2408             color="255 255 255 255"
2409             fontsize="12"
2410             shadow="true"
2411             hardtext="0"
2412             global_color="false" />
2413       <ctrl type="button"
2414             id="arrow_up"
2415             button_type="push_button"
2416             posref="TM TM"
2417             tx_normal="W_arrow_up_1.tga"
2418             tx_pushed="W_arrow_up_1.tga"
2419             tx_over="W_button_12_over.tga" />
2420       <ctrl type="button"
2421             id="arrow_down"
2422             button_type="push_button"
2423             posref="BM BM"
2424             tx_normal="W_arrow_down_1.tga"
2425             tx_pushed="W_arrow_down_1.tga"
2426             tx_over="W_button_12_over.tga" />
2427     </group>
2428   </template>
2429   <!-- ********** -->
2430   <!-- *  SETS  * -->
2431   <!-- ********** -->
2432   <!-- test if drop can be done depending on the mode 
2433         Param 0 is src=... (filled by code)
2435   <proc id="slot_can_drop">
2436     <action cond="eq(getSheetSelectionGroup(getDraggedSheet()), 'inventory_selection')"
2437             handler="isitem_slot"
2438             params="@0" />
2439     <action cond="eq(getSheetSelectionGroup(getDraggedSheet()), 'buy_selection')"
2440             handler="isitem_slot"
2441             params="@0|test_empty=true" />
2442   </proc>
2443   <!-- Exemple of ifthenelse function
2444         <view type="text" id="notabene" posparent="handr" posref="MM MM" color="255 255 255 255" fontsize="12" shadow="true" hardtext="0" /> 
2445         <link expr="ifthenelse(isRangeWeapon (@%set_base:#setnumber:%set_r),str('RW'),str('.'))" target="notabene:hardtext" />
2447   <!-- template for border inside of a group -->
2448   <template name="inner_thin_border"
2449             posparent="parent"
2450             keep="true"
2451             inherit_gc_alpha="false">
2452     <view type="bitmap"
2453           id="bg"
2454           texture="W_box_blank.tga"
2455           scale="true"
2456           posparent="#posparent"
2457           posref="MM MM"
2458           sizeref="hw"
2459           w="-8"
2460           h="-8"
2461           inherit_gc_alpha="#inherit_gc_alpha" />
2462     <view type="bitmap"
2463           id="tlb"
2464           texture="W_box_top_left.tga"
2465           posref="TL TL"
2466           posparent="#posparent"
2467           inherit_gc_alpha="#inherit_gc_alpha" />
2468     <view type="bitmap"
2469           id="trb"
2470           texture="W_box_top_right.tga"
2471           posref="TR TR"
2472           posparent="#posparent"
2473           inherit_gc_alpha="#inherit_gc_alpha" />
2474     <view type="bitmap"
2475           id="brb"
2476           texture="W_box_bot_right.tga"
2477           posref="BR BR"
2478           posparent="#posparent"
2479           inherit_gc_alpha="#inherit_gc_alpha" />
2480     <view type="bitmap"
2481           id="blb"
2482           texture="W_box_bot_left.tga"
2483           posref="BL BL"
2484           posparent="#posparent"
2485           inherit_gc_alpha="#inherit_gc_alpha" />
2486     <view type="bitmap"
2487           id="tb"
2488           texture="W_box_top.tga"
2489           posref="TM TM"
2490           posparent="#posparent"
2491           scale="true"
2492           sizeref="w"
2493           w="-8"
2494           h="4"
2495           inherit_gc_alpha="#inherit_gc_alpha" />
2496     <view type="bitmap"
2497           id="bb"
2498           texture="W_box_bot.tga"
2499           posref="BM BM"
2500           posparent="#posparent"
2501           scale="true"
2502           sizeref="w"
2503           w="-8"
2504           h="4"
2505           inherit_gc_alpha="#inherit_gc_alpha" />
2506     <view type="bitmap"
2507           id="lb"
2508           texture="W_box_left.tga"
2509           posref="ML ML"
2510           posparent="#posparent"
2511           scale="true"
2512           sizeref="h"
2513           h="-8"
2514           w="4"
2515           inherit_gc_alpha="#inherit_gc_alpha" />
2516     <view type="bitmap"
2517           id="rb"
2518           texture="W_box_right.tga"
2519           posref="MR MR"
2520           posparent="#posparent"
2521           scale="true"
2522           sizeref="h"
2523           h="-8"
2524           w="4"
2525           inherit_gc_alpha="#inherit_gc_alpha" />
2526   </template>
2527   <!-- ********** -->
2528   <!-- *  CHAT  * -->
2529   <!-- ********** -->
2530   <template name="chat_box"
2531             posparent="parent"
2532             posref="TL TL"
2533             x="0"
2534             y="0"
2535             w="0"
2536             h="64"
2537             sizeref=""
2538             maxelements="200"
2539             keep="true"
2540             chat="false">
2541     <group type="scroll_text"
2542            id="#id"
2543            sizeref="#sizeref"
2544            w="#w"
2545            h="#h"
2546            posparent="#posparent"
2547            posref="#posref"
2548            y="#y"
2549            x="#x"
2550            popup_minh="96">
2551       <!--
2552                 <ctrl type="button" id="button_add" posref="TR TR" button_type="push_button" tx_normal="W_scale_more_3.tga" tx_pushed="W_scale_more_3.tga" tx_over="W_button_08_over.tga"/>
2553                 <ctrl type="button" id="button_sub" posref="TL TR" posparent="button_add" x="-4" button_type="push_button" tx_normal="W_scale_less_3.tga" tx_pushed="W_scale_less_3.tga" tx_over="W_button_08_over.tga"/>
2554                 -->
2555       <group id="black"
2556              posref="BR BR"
2557              sizeref="hw"
2558              w="-10"
2559              h="-12"
2560              inherit_gc_alpha="true" />
2561       <instance template="inner_thin_border"
2562                 posparent="black"
2563                 inherit_gc_alpha="true" />
2564       <group type="list"
2565              id="text_list"
2566              chat="#chat"
2567              fontsize="10"
2568              posref="BL BL"
2569              posparent="black"
2570              x="2"
2571              y="2"
2572              space="0"
2573              sizeref="hw"
2574              w="-4"
2575              h="-4"
2576              maxelements="#maxelements" />
2577       <ctrl style="skin_scroll"
2578             id="scroll_bar" />
2579     </group>
2580   </template>
2581   <template name="chat_box_mainchat"
2582             posparent="parent"
2583             posref="TL TL"
2584             x="0"
2585             y="0"
2586             w="0"
2587             h="0"
2588             sizeref=""
2589             maxelements="200"
2590             keep="true"
2591             chat="false">
2592     <group type="scroll_text"
2593            id="#id"
2594            w="#w"
2595            h="#h"
2596            sizeref="#sizeref"
2597            posparent="#posparent"
2598            posref="#posref"
2599            y="#y"
2600            x="#x">
2601       <!--
2602                 <ctrl type="button" id="button_add" posref="TR TR" button_type="push_button" tx_normal="W_scale_more_3.tga" tx_pushed="W_scale_more_3.tga" tx_over="W_button_08_over.tga"/>
2603                 <ctrl type="button" id="button_sub" posref="TL TR" posparent="button_add" x="-4" button_type="push_button" tx_normal="W_scale_less_3.tga" tx_pushed="W_scale_less_3.tga" tx_over="W_button_08_over.tga"/>
2604                 -->
2605       <group id="black"
2606              posref="BR BR"
2607              sizeref="hw"
2608              w="-10"
2609              h="-4"
2610              inherit_gc_alpha="true" />
2611       <instance template="inner_thin_border"
2612                 posparent="black"
2613                 inherit_gc_alpha="true" />
2614       <group type="list"
2615              id="text_list"
2616              chat="#chat"
2617              fontsize="10"
2618              posref="BL BL"
2619              posparent="black"
2620              x="2"
2621              y="2"
2622              space="0"
2623              sizeref="hw"
2624              w="-4"
2625              h="-4"
2626              maxelements="#maxelements" />
2627       <ctrl style="skin_scroll"
2628             id="scroll_bar" />
2629     </group>
2630   </template>
2631   <!-- ********************* -->
2632   <!-- *  EDIT BOX WIDGET  * -->
2633   <!-- ********************* -->
2634   <template name="edit_box_widget"
2635             posref="TL TL"
2636             text_x="0"
2637             text_y="0"
2638             text_ref="BL BL"
2639             child_resize_h="true"
2640             child_resize_hmargin="0"
2641             multi_line="false"
2642             x="0"
2643             y="0"
2644             w="0"
2645             h="0"
2646             sizeref=""
2647             id="eb"
2648             posparent="parent"
2649             onenter="chat_box_entry"
2650             params=""
2651             reset_focus_on_hide="true"
2652             enter_loose_focus="true"
2653             prompt="&gt;"
2654             enter_recover_focus="true"
2655             max_num_chars="255"
2656             menu_r=""
2657             onchange=""
2658             onchange_params=""
2659             entry_type="text"
2660             keep="true"
2661             max_historic="40"
2662             fontsize="10"
2663             backup_father_container_pos="false"
2664             want_return="false"
2665             color="255 255 255 255"
2666             continuous_text_update="false"
2667             bg_texture="W_box_blank.tga"
2668             on_focus_lost=""
2669             on_focus_lost_params=""
2670             max_float_prec="5"
2671             tooltip=""
2672             tooltip_parent=""
2673             negative_filter="">
2674     <group id="#id"
2675            posref="#posref"
2676            x="#x"
2677            y="#y"
2678            posparent="#posparent"
2679            child_resize_h="#child_resize_h"
2680            child_resize_hmargin="#child_resize_hmargin"
2681            sizeref="#sizeref"
2682            w="#w"
2683            h="#h">
2684       <group type="edit_box"
2685              sizeref="w"
2686              w="-8"
2687              id="eb"
2688              posref="TL TL"
2689              x="4"
2690              y="-4"
2691              child_resize_h="true"
2692              onenter="#onenter"
2693              params="#params"
2694              onchange="#onchange"
2695              onchange_params="#onchange_params"
2696              max_num_chars="#max_num_chars"
2697              prompt="#prompt"
2698              enter_loose_focus="#enter_loose_focus"
2699              enter_recover_focus="#enter_recover_focus"
2700              entry_type="#entry_type"
2701              reset_focus_on_hide="#reset_focus_on_hide"
2702              menu_r="#menu_r"
2703              max_historic="#max_historic"
2704              want_return="#want_return"
2705              backup_father_container_pos="#backup_father_container_pos"
2706              on_focus_lost="#on_focus_lost"
2707              on_focus_lost_params="#on_focus_lost_params"
2708              max_float_prec="#max_float_prec"
2709              tooltip="#tooltip"
2710              tooltip_parent="#tooltip_parent"
2711              negative_filter="#negative_filter">
2712         <view type="bitmap"
2713               id="bg"
2714               scale="true"
2715               sizeref="hw"
2716               h="0"
2717               w="0"
2718               texture="#bg_texture"
2719               inherit_gc_alpha="true" />
2720         <view id="edit_text"
2721               type="text"
2722               continuous_update="#continuous_text_update"
2723               x="#text_x"
2724               y="#text_y"
2725               posref="#text_ref"
2726               multi_line="#multi_line"
2727               multi_line_space="0"
2728               fontsize="#fontsize"
2729               color="#color"
2730               shadow="true"
2731               hardtext=""
2732               global_color="false" />
2733       </group>
2734       <!-- border around the list -->
2735       <view type="bitmap"
2736             id="tlb"
2737             texture="W_box_top_left.tga"
2738             posparent="eb"
2739             posref="TL BR"
2740             inherit_gc_alpha="true" />
2741       <view type="bitmap"
2742             id="trb"
2743             texture="W_box_top_right.tga"
2744             posparent="eb"
2745             posref="TR BL"
2746             inherit_gc_alpha="true" />
2747       <view type="bitmap"
2748             id="brb"
2749             texture="W_box_bot_right.tga"
2750             posparent="eb"
2751             posref="BR TL"
2752             inherit_gc_alpha="true" />
2753       <view type="bitmap"
2754             id="blb"
2755             texture="W_box_bot_left.tga"
2756             posparent="eb"
2757             posref="BL TR"
2758             inherit_gc_alpha="true" />
2759       <view type="bitmap"
2760             id="tb"
2761             texture="W_box_top.tga"
2762             posparent="eb"
2763             posref="TL BL"
2764             scale="true"
2765             sizeref="w"
2766             w="0"
2767             h="4"
2768             inherit_gc_alpha="true" />
2769       <view type="bitmap"
2770             id="bb"
2771             texture="W_box_bot.tga"
2772             posparent="eb"
2773             posref="BL TL"
2774             scale="true"
2775             sizeref="w"
2776             w="0"
2777             h="4"
2778             inherit_gc_alpha="true" />
2779       <view type="bitmap"
2780             id="lb"
2781             texture="W_box_left.tga"
2782             posparent="eb"
2783             posref="TL TR"
2784             scale="true"
2785             sizeref="h"
2786             h="0"
2787             w="4"
2788             inherit_gc_alpha="true" />
2789       <view type="bitmap"
2790             id="rb"
2791             texture="W_box_right.tga"
2792             posparent="eb"
2793             posref="TR TL"
2794             scale="true"
2795             sizeref="h"
2796             h="0"
2797             w="4"
2798             inherit_gc_alpha="true" />
2799     </group>
2800   </template>
2801   <!-- ******************************* -->
2802   <!-- *  MULTILINE EDIT BOX WIDGET  * -->
2803   <!-- ******************************* -->
2804   <template name="edit_box_widget_multiline"
2805             posref="TL TL"
2806             text_x="0"
2807             text_y="0"
2808             text_ref="BL BL"
2809             child_resize_h="true"
2810             multi_line="true"
2811             multi_min_line="0"
2812             x="0"
2813             y="0"
2814             w="0"
2815             h="0"
2816             sizeref=""
2817             id="eb"
2818             posparent="parent"
2819             onenter="chat_box_entry"
2820             params=""
2821             reset_focus_on_hide="true"
2822             enter_loose_focus="true"
2823             prompt="&gt;"
2824             enter_recover_focus="true"
2825             max_num_chars="10000"
2826             max_num_return="50"
2827             menu_r=""
2828             onchange=""
2829             onchange_params=""
2830             entry_type="text"
2831             keep="true"
2832             max_historic="40"
2833             fontsize="10"
2834             backup_father_container_pos="false"
2835             want_return="false"
2836             color="255 255 255 255"
2837             sizeref_eb="w"
2838             render_layer="0"
2839             negative_filter="">
2840     <group id="#id"
2841            posref="#posref"
2842            x="#x"
2843            y="#y"
2844            posparent="#posparent"
2845            child_resize_h="#child_resize_h"
2846            sizeref="#sizeref"
2847            w="#w"
2848            h="#h"
2849            render_layer="#render_layer">
2850       <group type="edit_box"
2851              sizeref="#sizeref_eb"
2852              w="-8"
2853              id="eb"
2854              posref="TL TL"
2855              x="4"
2856              y="-4"
2857              child_resize_h="#child_resize_h"
2858              onenter="#onenter"
2859              params="#params"
2860              onchange="#onchange"
2861              onchange_params="#onchange_params"
2862              max_num_chars="#max_num_chars"
2863              max_num_return="#max_num_return"
2864              prompt="#prompt"
2865              enter_loose_focus="#enter_loose_focus"
2866              enter_recover_focus="#enter_recover_focus"
2867              entry_type="#entry_type"
2868              reset_focus_on_hide="#reset_focus_on_hide"
2869              menu_r="#menu_r"
2870              max_historic="#max_historic"
2871              want_return="#want_return"
2872              backup_father_container_pos="#backup_father_container_pos"
2873              render_layer="#render_layer"
2874              negative_filter="#negative_filter">
2875         <view type="bitmap"
2876               id="bg"
2877               scale="true"
2878               sizeref="hw"
2879               h="0"
2880               w="0"
2881               texture="W_box_blank.tga"
2882               inherit_gc_alpha="true"
2883               render_layer="#render_layer" />
2884         <view id="edit_text"
2885               type="text"
2886               x="#text_x"
2887               y="#text_y"
2888               posref="#text_ref"
2889               multi_line="#multi_line"
2890               multi_line_space="0"
2891               multi_min_line="#multi_min_line"
2892               fontsize="#fontsize"
2893               color="#color"
2894               shadow="true"
2895               hardtext=""
2896               global_color="false"
2897               render_layer="#render_layer" />
2898       </group>
2899       <!-- border around the list -->
2900       <view type="bitmap"
2901             id="tlb"
2902             texture="W_box_top_left.tga"
2903             posparent="eb"
2904             posref="TL BR"
2905             inherit_gc_alpha="true"
2906             render_layer="#render_layer" />
2907       <view type="bitmap"
2908             id="trb"
2909             texture="W_box_top_right.tga"
2910             posparent="eb"
2911             posref="TR BL"
2912             inherit_gc_alpha="true"
2913             render_layer="#render_layer" />
2914       <view type="bitmap"
2915             id="brb"
2916             texture="W_box_bot_right.tga"
2917             posparent="eb"
2918             posref="BR TL"
2919             inherit_gc_alpha="true"
2920             render_layer="#render_layer" />
2921       <view type="bitmap"
2922             id="blb"
2923             texture="W_box_bot_left.tga"
2924             posparent="eb"
2925             posref="BL TR"
2926             inherit_gc_alpha="true"
2927             render_layer="#render_layer" />
2928       <view type="bitmap"
2929             id="tb"
2930             texture="W_box_top.tga"
2931             posparent="eb"
2932             posref="TL BL"
2933             scale="true"
2934             sizeref="w"
2935             w="0"
2936             h="4"
2937             inherit_gc_alpha="true"
2938             render_layer="#render_layer" />
2939       <view type="bitmap"
2940             id="bb"
2941             texture="W_box_bot.tga"
2942             posparent="eb"
2943             posref="BL TL"
2944             scale="true"
2945             sizeref="w"
2946             w="0"
2947             h="4"
2948             inherit_gc_alpha="true"
2949             render_layer="#render_layer" />
2950       <view type="bitmap"
2951             id="lb"
2952             texture="W_box_left.tga"
2953             posparent="eb"
2954             posref="TL TR"
2955             scale="true"
2956             sizeref="h"
2957             h="0"
2958             w="4"
2959             inherit_gc_alpha="true"
2960             render_layer="#render_layer" />
2961       <view type="bitmap"
2962             id="rb"
2963             texture="W_box_right.tga"
2964             posparent="eb"
2965             posref="TR TL"
2966             scale="true"
2967             sizeref="h"
2968             h="0"
2969             w="4"
2970             inherit_gc_alpha="true"
2971             render_layer="#render_layer" />
2972     </group>
2973   </template>
2974   <!-- ******************** -->
2975   <!-- *  STACK SELECTION * -->
2976   <!-- ******************** -->
2977   <proc id="stack_dialog_ok">
2978     <action handler="stack_item" />
2979     <action handler="leave_modal" />
2980   </proc>
2981   <!-- declare the dummy stack selection slot -->
2982   <variable entry="UI:VARIABLES:STACK_SELECTED:DSPSLOT:SHEET"
2983             type="sint32"
2984             value="0" />
2985   <variable entry="UI:VARIABLES:STACK_SELECTED:DSPSLOT:QUANTITY"
2986             type="sint32"
2987             value="0" />
2988   <variable entry="UI:VARIABLES:STACK_SELECTED:DSPSLOT:QUALITY"
2989             type="sint32"
2990             value="0" />
2991   <variable entry="UI:VARIABLES:STACK_SELECTED:DSPSLOT:USER_COLOR"
2992             type="sint32"
2993             value="0" />
2994   <variable entry="UI:VARIABLES:STACK_SELECTED:DSPSLOT:WEIGHT"
2995             type="sint32"
2996             value="0" />
2997   <variable entry="UI:VARIABLES:STACK_SELECTED:DSPSLOT:NAMEID"
2998             type="sint32"
2999             value="0" />
3000   <variable entry="UI:VARIABLES:STACK_SELECTED:DSPSLOT:INFOVERSION"
3001             type="sint32"
3002             value="0" />
3003   <variable entry="UI:VARIABLES:STACK_SELECTED:DSPSLOT:ENCHANT"
3004             type="sint32"
3005             value="0" />
3006   <variable entry="UI:VARIABLES:STACK_SELECTED:DSPSLOT:RM_CLASS_TYPE"
3007             type="sint32"
3008             value="0" />
3009   <variable entry="UI:VARIABLES:STACK_SELECTED:DSPSLOT:RM_FABER_STAT_TYPE"
3010             type="sint32"
3011             value="0" />
3012   <!-- the modal -->
3013   <group type="modal"
3014          id="stack_dialog"
3015          exit_click_out="true"
3016          posref="TL TL"
3017          w="155"
3018          h="80"
3019          options="skin_modal"
3020          on_enter="proc"
3021          on_enter_params="stack_dialog_ok">
3022     <view type="text"
3023           id="text"
3024           posref="TL TL"
3025           x="4"
3026           y="-4"
3027           color="255 255 255 255"
3028           fontsize="12"
3029           shadow="true"
3030           global_color="false"
3031           hardtext="uiSelectQuantity" />
3032     <ctrl type="sheet"
3033           id="sheet"
3034           onclick_r="open_help_auto"
3035           value="UI:VARIABLES:STACK_SELECTED:DSPSLOT"
3036           posref="MM MM"
3037           x="-26"
3038           y="0"
3039           use_quantity="false" />
3040     <view type="text"
3041           id="x"
3042           posparent="sheet"
3043           posref="MR MM"
3044           x="8"
3045           y="0"
3046           color="255 255 255 255"
3047           fontsize="12"
3048           shadow="true"
3049           hardtext="X" />
3050     <instance template="edit_box_widget"
3051               id="edit"
3052               entry_type="positive_integer"
3053               text_ref="TR TR"
3054               text_y="0"
3055               fontsize="12"
3056               posparent="sheet"
3057               posref="MR ML"
3058               x="16"
3059               y="0"
3060               text_x="-2"
3061               w="32"
3062               prompt=""
3063               enter_loose_focus="false"
3064               multi_line="false"
3065               max_num_chars="3"
3066               onchange="editbox_number"
3067               onchange_params="value=UI:VARIABLES:STACK_SELECTED:CUR_QUANTITY|update_text=false"
3068               onenter="proc"
3069               params="stack_dialog_ok"
3070               max_historic="0" />
3071     <instance template="button_ok_cancel"
3072               posref="BR BR"
3073               x="-4"
3074               y="4"
3075               onclick_ok="proc"
3076               onclick_ok_param="stack_dialog_ok"
3077               onclick_cancel="leave_modal"
3078               onclick_cancel_param="" />
3079   </group>
3080   <!-- ************************ -->
3081   <!-- *  UI COLOR SELECTIONS * -->
3082   <!-- ************************ -->
3083   <variable entry="UI:TEMP:COLOR:R"
3084             type="sint64"
3085             value="0" />
3086   <variable entry="UI:TEMP:COLOR:G"
3087             type="sint64"
3088             value="0" />
3089   <variable entry="UI:TEMP:COLOR:B"
3090             type="sint64"
3091             value="0" />
3092   <variable entry="UI:VARIABLES:ALPHA_BG"
3093             type="sint32" />
3094   <variable entry="UI:VARIABLES:ALPHA_CONTENT"
3095             type="sint32" />
3096   <variable entry="UI:VARIABLES:ALPHA_ROLLOVER_BG"
3097             type="sint32" />
3098   <variable entry="UI:VARIABLES:ALPHA_ROLLOVER_CONTENT"
3099             type="sint32" />
3100   <variable entry="UI:VARIABLES:USER_ALPHA"
3101             type="sint32"
3102             value="0" />
3103   <proc id="cancel_choose_ui_alpha">
3104     <action handler="cancel_choose_ui_alpha"
3105             params="" />
3106     <action handler="leave_modal"
3107             params="" />
3108   </proc>
3109   <group type="modal"
3110          id="define_ui_transparency"
3111          posref="TM BM"
3112          y="-8"
3113          h="180"
3114          child_resize_w="true"
3115          child_resize_wmargin="16"
3116          exit_click_out="true"
3117          onclick_out="proc"
3118          onclick_out_params="cancel_choose_ui_alpha"
3119          options="skin_modal"
3120          win_priority="%win_priority_highest">
3121     <view type="text"
3122           id="text_opacity"
3123           posref="TM TM"
3124           x="0"
3125           y="-4"
3126           color="255 255 255 255"
3127           fontsize="12"
3128           shadow="true"
3129           global_color="false"
3130           hardtext="uimChooseUIAlpha" />
3131     <!-- button to use global settings -->
3132     <group id="globals_settings"
3133            posparent="text_opacity"
3134            posref="BM TM"
3135            y="-8"
3136            child_resize_h="true"
3137            child_resize_w="true">
3138       <view type="text"
3139             id="text_use_glob_alp"
3140             posref="TM TM"
3141             x="10"
3142             y="-2"
3143             color="255 255 255 255"
3144             fontsize="10"
3145             shadow="true"
3146             hardtext="uiUserAlpha" />
3147       <ctrl type="button"
3148             id="use_glob_alp"
3149             button_type="toggle_button"
3150             posparent="text_use_glob_alp"
3151             posref="ML MR"
3152             x="-4"
3153             y="0"
3154             tx_normal="w_opacity_on.tga"
3155             tx_pushed="w_slot_on.tga"
3156             tx_over="w_slot_on.tga"
3157             color="255 255 255 255"
3158             col_pushed="255 255 255 255"
3159             col_over="255 255 255 0"
3160             onclick_l="use_global_alpha_settings" />
3161       <link expr="@UI:VARIABLES:USER_ALPHA"
3162             target="use_glob_alp:pushed" />
3163     </group>
3164     <view type="text"
3165           id="pipo"
3166           posref="TM TM"
3167           x="0"
3168           y="-40"
3169           color="255 255 255 255"
3170           fontsize="10"
3171           shadow="true"
3172           hardtext="uiLocalAlpha" />
3173     <!-- background -->
3174     <view type="text"
3175           id="text_alp_bg"
3176           posparent="pipo"
3177           posref="BM TM"
3178           x="0"
3179           y="-8"
3180           color="255 255 255 160"
3181           fontsize="8"
3182           shadow="true"
3183           hardtext="uiAlphaBG" />
3184     <view type="bitmap"
3185           id="b1"
3186           posparent="text_alp_bg"
3187           posref="BM TM"
3188           scale="true"
3189           x="0"
3190           y="-4"
3191           w="64"
3192           h="2"
3193           texture="W_line_hor2.tga" />
3194     <ctrl type="scroll"
3195           id="alp1"
3196           posparent="b1"
3197           posref="MM MM"
3198           x="0"
3199           y="0"
3200           w="64"
3201           h="8"
3202           vertical="false"
3203           align="L"
3204           min="0"
3205           max="255"
3206           value="UI:VARIABLES:ALPHA_BG"
3207           tracksize="8"
3208           onscroll=""
3209           params=""
3210           tx_topright="w_scroll_R.tga"
3211           tx_middle="w_scroll_l123_m.tga"
3212           tx_bottomleft="w_scroll_L.tga" />
3213     <!-- content -->
3214     <view type="text"
3215           id="text_alp_content"
3216           posparent="b1"
3217           x="0"
3218           y="-8"
3219           posref="BM TM"
3220           color="255 255 255 160"
3221           fontsize="8"
3222           shadow="true"
3223           hardtext="uiAlphaContent" />
3224     <view type="bitmap"
3225           id="b2"
3226           posparent="text_alp_content"
3227           posref="BM TM"
3228           scale="true"
3229           x="0"
3230           y="-4"
3231           w="64"
3232           h="2"
3233           texture="W_line_hor2.tga" />
3234     <ctrl type="scroll"
3235           id="alp2"
3236           posparent="b2"
3237           posref="MM MM"
3238           x="0"
3239           y="0"
3240           w="64"
3241           h="8"
3242           vertical="false"
3243           align="L"
3244           min="64"
3245           max="255"
3246           value="UI:VARIABLES:ALPHA_CONTENT"
3247           tracksize="8"
3248           onscroll=""
3249           params=""
3250           tx_topright="w_scroll_R.tga"
3251           tx_middle="w_scroll_l123_m.tga"
3252           tx_bottomleft="w_scroll_L.tga" />
3253     <!-- rollover background -->
3254     <view type="text"
3255           id="text_alp_rollover_bg"
3256           posparent="b2"
3257           x="0"
3258           y="-8"
3259           posref="BM TM"
3260           color="255 255 255 160"
3261           fontsize="8"
3262           shadow="true"
3263           hardtext="uiAlphaRolloverBG" />
3264     <view type="bitmap"
3265           id="b3"
3266           posparent="text_alp_rollover_bg"
3267           posref="BM TM"
3268           scale="true"
3269           x="0"
3270           y="-4"
3271           w="64"
3272           h="2"
3273           texture="W_line_hor2.tga" />
3274     <ctrl type="scroll"
3275           id="alp3"
3276           posparent="b3"
3277           posref="MM MM"
3278           x="0"
3279           y="0"
3280           w="64"
3281           h="8"
3282           vertical="false"
3283           align="L"
3284           min="0"
3285           max="255"
3286           value="UI:VARIABLES:ALPHA_ROLLOVER_BG"
3287           tracksize="8"
3288           onscroll=""
3289           params=""
3290           tx_topright="w_scroll_R.tga"
3291           tx_middle="w_scroll_l123_m.tga"
3292           tx_bottomleft="w_scroll_L.tga" />
3293     <!-- rollover content -->
3294     <view type="text"
3295           id="text_alp_rollover_content"
3296           posparent="b3"
3297           x="0"
3298           y="-8"
3299           posref="BM TM"
3300           color="255 255 255 160"
3301           fontsize="8"
3302           shadow="true"
3303           hardtext="uiAlphaRolloverContent" />
3304     <view type="bitmap"
3305           id="b4"
3306           posparent="text_alp_rollover_content"
3307           posref="BM TM"
3308           scale="true"
3309           x="0"
3310           y="-4"
3311           w="64"
3312           h="2"
3313           texture="W_line_hor2.tga" />
3314     <ctrl type="scroll"
3315           id="alp4"
3316           posparent="b4"
3317           posref="MM MM"
3318           x="0"
3319           y="0"
3320           w="64"
3321           h="8"
3322           vertical="false"
3323           align="L"
3324           min="64"
3325           max="255"
3326           value="UI:VARIABLES:ALPHA_ROLLOVER_CONTENT"
3327           tracksize="8"
3328           onscroll=""
3329           params=""
3330           tx_topright="w_scroll_R.tga"
3331           tx_middle="w_scroll_l123_m.tga"
3332           tx_bottomleft="w_scroll_L.tga" />
3333     <link expr="@UI:VARIABLES:USER_ALPHA"
3334           target="alp1:active,alp2:active,alp3:active,alp4:active" />
3335     <link expr="ifthenelse(@UI:VARIABLES:USER_ALPHA, 255, 96)"
3336           target="pipo:alpha,text_alp_bg:alpha,b1:alpha,text_alp_content:alpha,b2:alpha,text_alp_rollover_bg:alpha,text_alp_rollover_content:alpha,b3:alpha,b4:alpha" />
3337     <link expr="ifthenelse(@UI:VARIABLES:USER_ALPHA, 96, 255)"
3338           target="globals_settings:text_use_glob_alp:alpha" />
3339     <instance template="button_ok_cancel"
3340               posref="BR BR"
3341               x="-4"
3342               y="4"
3343               onclick_ok="leave_modal"
3344               onclick_ok_param=""
3345               onclick_cancel="proc"
3346               onclick_cancel_param="cancel_choose_ui_alpha" />
3347     <link expr="depends(@UI:VARIABLES:ALPHA_CONTENT)"
3348           action="set"
3349           params="dblink=UI:VARIABLES:ALPHA_BG|value=min(@UI:VARIABLES:ALPHA_CONTENT, @UI:VARIABLES:ALPHA_BG)" />
3350     <link expr="depends(@UI:VARIABLES:ALPHA_BG)"
3351           action="set"
3352           params="dblink=UI:VARIABLES:ALPHA_CONTENT|value=max(@UI:VARIABLES:ALPHA_CONTENT, @UI:VARIABLES:ALPHA_BG)" />
3353     <link expr="depends(@UI:VARIABLES:ALPHA_ROLLOVER_CONTENT)"
3354           action="set"
3355           params="dblink=UI:VARIABLES:ALPHA_ROLLOVER_BG|value=min(@UI:VARIABLES:ALPHA_ROLLOVER_CONTENT, @UI:VARIABLES:ALPHA_ROLLOVER_BG)" />
3356     <link expr="depends(@UI:VARIABLES:ALPHA_ROLLOVER_BG)"
3357           action="set"
3358           params="dblink=UI:VARIABLES:ALPHA_ROLLOVER_CONTENT|value=max(@UI:VARIABLES:ALPHA_ROLLOVER_CONTENT, @UI:VARIABLES:ALPHA_ROLLOVER_BG)" />
3359   </group>
3360   <!-- **************** -->
3361   <!-- *  BOX WIDGET  * -->
3362   <!-- **************** -->
3363   <template name="box_widget"
3364             posref="TL TL"
3365             x="0"
3366             y="0"
3367             w="64"
3368             h="16"
3369             id=""
3370             posparent="parent"
3371             sizeref=""
3372             keep="true"
3373             render_layer="0">
3374     <group id="#id"
3375            posparent="#posparent"
3376            posref="#posref"
3377            w="#w"
3378            h="#h"
3379            x="#x"
3380            y="#y"
3381            sizeref="#sizeref">
3382       <group id="bg"
3383              sizeref="hw"
3384              h="0"
3385              w="0" />
3386       <view type="bitmap"
3387             render_layer="#render_layer"
3388             id="back"
3389             scale="true"
3390             posparent="bg"
3391             posref="MM MM"
3392             sizeref="hw"
3393             h="-8"
3394             w="-8"
3395             texture="W_box_blank.tga"
3396             inherit_gc_alpha="true" />
3397       <view type="bitmap"
3398             render_layer="#render_layer"
3399             id="bgb"
3400             scale="true"
3401             sizeref="hw"
3402             h="0"
3403             w="0"
3404             texture="W_box_blank.tga"
3405             inherit_gc_alpha="true" />
3406       <view type="bitmap"
3407             render_layer="#render_layer"
3408             id="tlb"
3409             texture="W_box_top_left.tga"
3410             posref="TL TL"
3411             inherit_gc_alpha="true" />
3412       <view type="bitmap"
3413             render_layer="#render_layer"
3414             id="trb"
3415             texture="W_box_top_right.tga"
3416             posref="TR TR"
3417             inherit_gc_alpha="true" />
3418       <view type="bitmap"
3419             render_layer="#render_layer"
3420             id="brb"
3421             texture="W_box_bot_right.tga"
3422             posref="BR BR"
3423             inherit_gc_alpha="true" />
3424       <view type="bitmap"
3425             render_layer="#render_layer"
3426             id="blb"
3427             texture="W_box_bot_left.tga"
3428             posref="BL BL"
3429             inherit_gc_alpha="true" />
3430       <view type="bitmap"
3431             render_layer="#render_layer"
3432             id="tb"
3433             texture="W_box_top.tga"
3434             posref="TM TM"
3435             scale="true"
3436             sizeref="w"
3437             w="-8"
3438             h="4"
3439             inherit_gc_alpha="true" />
3440       <view type="bitmap"
3441             render_layer="#render_layer"
3442             id="bb"
3443             texture="W_box_bot.tga"
3444             posref="BM BM"
3445             scale="true"
3446             sizeref="w"
3447             w="-8"
3448             h="4"
3449             inherit_gc_alpha="true" />
3450       <view type="bitmap"
3451             render_layer="#render_layer"
3452             id="lb"
3453             texture="W_box_left.tga"
3454             posref="ML ML"
3455             scale="true"
3456             sizeref="h"
3457             h="-8"
3458             w="4"
3459             inherit_gc_alpha="true" />
3460       <view type="bitmap"
3461             render_layer="#render_layer"
3462             id="rb"
3463             texture="W_box_right.tga"
3464             posref="MR MR"
3465             scale="true"
3466             sizeref="h"
3467             h="-8"
3468             w="4"
3469             inherit_gc_alpha="true" />
3470     </group>
3471   </template>
3472   <template name="frame_widget"
3473             posref="TL TL"
3474             x="0"
3475             y="0"
3476             w="64"
3477             h="16"
3478             id=""
3479             posparent="parent"
3480             sizeref=""
3481             keep="true">
3482     <group id="#id"
3483            posparent="#posparent"
3484            posref="#posref"
3485            w="#w"
3486            h="#h"
3487            x="#x"
3488            y="#y"
3489            sizeref="#sizeref">
3490       <group id="bg"
3491              sizeref="hw"
3492              h="0"
3493              w="0" />
3494       <view type="bitmap"
3495             id="t"
3496             texture="blank.tga"
3497             posref="TM TM"
3498             scale="true"
3499             sizeref="w"
3500             w="0"
3501             h="1"
3502             color="3 3 3 255" />
3503       <view type="bitmap"
3504             id="b"
3505             texture="blank.tga"
3506             posref="BM BM"
3507             scale="true"
3508             sizeref="w"
3509             w="0"
3510             h="1"
3511             color="160 160 160 255" />
3512       <view type="bitmap"
3513             id="l"
3514             texture="blank.tga"
3515             posref="ML ML"
3516             scale="true"
3517             sizeref="h"
3518             h="-2"
3519             w="1"
3520             color="45 45 45 255" />
3521       <view type="bitmap"
3522             id="r"
3523             texture="blank.tga"
3524             posref="MR MR"
3525             scale="true"
3526             sizeref="h"
3527             h="-2"
3528             w="1"
3529             color="129 129 129 255" />
3530     </group>
3531   </template>
3532   <template name="border_select_widget"
3533             posref="TL TL"
3534             x="0"
3535             y="0"
3536             w="64"
3537             h="16"
3538             id=""
3539             posparent="parent"
3540             sizeref=""
3541             keep="true"
3542             alpha="255"
3543             render_layer="0">
3544     <group id="#id"
3545            posparent="#posparent"
3546            posref="#posref"
3547            w="#w"
3548            h="#h"
3549            x="#x"
3550            y="#y"
3551            sizeref="#sizeref">
3552       <group id="bg"
3553              sizeref="hw"
3554              h="0"
3555              w="0" />
3556       <view type="bitmap"
3557             id="t"
3558             texture="blank.tga"
3559             posref="TM TM"
3560             scale="true"
3561             sizeref="w"
3562             w="0"
3563             h="1"
3564             global_color="false"
3565             color="255 255 255 #alpha"
3566             render_layer="#render_layer" />
3567       <view type="bitmap"
3568             id="b"
3569             texture="blank.tga"
3570             posref="BM BM"
3571             scale="true"
3572             sizeref="w"
3573             w="0"
3574             h="1"
3575             global_color="false"
3576             color="255 255 255 #alpha"
3577             render_layer="#render_layer" />
3578       <view type="bitmap"
3579             id="l"
3580             texture="blank.tga"
3581             posref="ML ML"
3582             scale="true"
3583             sizeref="h"
3584             h="-2"
3585             w="1"
3586             global_color="false"
3587             color="255 255 255 #alpha"
3588             render_layer="#render_layer" />
3589       <view type="bitmap"
3590             id="r"
3591             texture="blank.tga"
3592             posref="MR MR"
3593             scale="true"
3594             sizeref="h"
3595             h="-2"
3596             w="1"
3597             global_color="false"
3598             color="255 255 255 #alpha"
3599             render_layer="#render_layer" />
3600     </group>
3601   </template>
3602   <!-- template for the inner border of a dialog, with thick border on the left -->
3603   <template name="inner_thick_border"
3604             id="inner_thick_border"
3605             posparent="parent"
3606             keep="true">
3607     <group id="#id"
3608            posref="TL TL"
3609            sizeref="hw">
3610       <view type="bitmap"
3611             id="tlb"
3612             texture="W_L0_TL.tga"
3613             posparent="#posparent"
3614             posref="TL TL" />
3615       <view type="bitmap"
3616             id="trb"
3617             texture="W_L0_TR.tga"
3618             posparent="#posparent"
3619             posref="TR TR" />
3620       <view type="bitmap"
3621             id="brb"
3622             texture="W_L0_BR.tga"
3623             posparent="#posparent"
3624             posref="BR BR" />
3625       <view type="bitmap"
3626             id="blb"
3627             texture="W_L0_BL.tga"
3628             posparent="#posparent"
3629             posref="BL BL" />
3630       <view type="bitmap"
3631             id="tb"
3632             texture="W_L0_T.tga"
3633             posparent="#posparent"
3634             posref="TL TL"
3635             scale="true"
3636             sizeref="w"
3637             w="-24"
3638             h="8"
3639             x="16" />
3640       <view type="bitmap"
3641             id="bb"
3642             texture="W_L0_B.tga"
3643             posparent="#posparent"
3644             posref="BL BL"
3645             scale="true"
3646             sizeref="w"
3647             w="-24"
3648             h="8"
3649             x="16" />
3650       <view type="bitmap"
3651             id="lb"
3652             texture="W_L0_L.tga"
3653             posparent="#posparent"
3654             posref="TL TL"
3655             scale="true"
3656             sizeref="h"
3657             h="-16"
3658             w="16"
3659             y="-8" />
3660       <view type="bitmap"
3661             id="rb"
3662             texture="W_L0_R.tga"
3663             posparent="#posparent"
3664             posref="TR TR"
3665             scale="true"
3666             sizeref="h"
3667             h="-16"
3668             w="8"
3669             y="-8" />
3670     </group>
3671   </template>
3672   <!-- ***************** -->
3673   <!-- *  CONTEXT HELP * -->
3674   <!-- ***************** -->
3675   <define id="over_border_color"
3676           value="140 140 240 255" />
3677   <define id="help_bg_color"
3678           value="100 120 120 255" />
3680      <!-- Define varaibles for the list sheet of the root brick selection modal-->
3681     <!--<define id="phrase_brick_selection_max" value_from_code="getPhraseBrickSelectionMax()" />-->
3682     <variable entry="UI:VARIABLES:CRYSTALBRICKS:$i:SHEET" type="sint32" value="0" size="64" />
3684   <!-- Over Text used for buttons or controls -->
3685   <group id="context_help"
3686          posref="BL BL"
3687          child_resize_w="true"
3688          child_resize_wmargin="12"
3689          child_resize_h="true"
3690          child_resize_hmargin="9">
3691     <!--Decoration-->
3692     <view type="bitmap"
3693           id="midcolor"
3694           sizeref="wh"
3695           posref="MM MM"
3696           h="-4"
3697           w="-4"
3698           scale="true"
3699           color="%help_bg_color"
3700           global_color="false"
3701           texture="blank.tga" />
3702     <view type="bitmap"
3703           id="t"
3704           sizeref="w"
3705           posref="TM TM"
3706           w="-16"
3707           h="8"
3708           scale="true"
3709           color="%over_border_color"
3710           global_color="false"
3711           texture="W_hl_t.tga" />
3712     <view type="bitmap"
3713           id="b"
3714           sizeref="w"
3715           posref="BM BM"
3716           w="-16"
3717           h="8"
3718           scale="true"
3719           color="%over_border_color"
3720           global_color="false"
3721           texture="W_hl_b.tga" />
3722     <view type="bitmap"
3723           id="l"
3724           sizeref="h"
3725           posref="ML ML"
3726           w="8"
3727           h="-16"
3728           scale="true"
3729           color="%over_border_color"
3730           global_color="false"
3731           texture="W_hl_l.tga" />
3732     <view type="bitmap"
3733           id="r"
3734           sizeref="h"
3735           posref="MR MR"
3736           w="8"
3737           h="-16"
3738           scale="true"
3739           color="%over_border_color"
3740           global_color="false"
3741           texture="W_hl_r.tga" />
3742     <view type="bitmap"
3743           id="tl"
3744           avoid_resize_parent="true"
3745           posref="TL TL"
3746           w="8"
3747           h="8"
3748           scale="true"
3749           color="%over_border_color"
3750           global_color="false"
3751           texture="W_hl_tl.tga" />
3752     <view type="bitmap"
3753           id="bl"
3754           avoid_resize_parent="true"
3755           posref="BL BL"
3756           w="8"
3757           h="8"
3758           scale="true"
3759           color="%over_border_color"
3760           global_color="false"
3761           texture="W_hl_bl.tga" />
3762     <view type="bitmap"
3763           id="tr"
3764           avoid_resize_parent="true"
3765           posref="TR TR"
3766           w="8"
3767           h="8"
3768           scale="true"
3769           color="%over_border_color"
3770           global_color="false"
3771           texture="W_hl_tr.tga" />
3772     <view type="bitmap"
3773           id="br"
3774           avoid_resize_parent="true"
3775           posref="BR BR"
3776           w="8"
3777           h="8"
3778           scale="true"
3779           color="%over_border_color"
3780           global_color="false"
3781           texture="W_hl_br.tga" />
3782     <!--System, don'change the ids -->
3783     <view type="text"
3784           id="text"
3785           posref="TM TM"
3786           y="-6"
3787           color="255 255 255 255"
3788           global_color="false"
3789           fontsize="10"
3790           shadow="true"
3791           multi_line="true"
3792           multi_line_space="1"
3793           line_maxw="300"
3794           multi_line_maxw_only="true" />
3795   </group>
3796   <!-- Over Text used for actions : this include additionnal icons -->
3797   <group id="action_context_help"
3798          posref="BL BL"
3799          child_resize_w="true"
3800          child_resize_wmargin="12"
3801          child_resize_h="true"
3802          child_resize_hmargin="9">
3803     <!--Decoration-->
3804     <view type="bitmap"
3805           id="midcolor"
3806           sizeref="wh"
3807           posref="MM MM"
3808           h="-4"
3809           w="-4"
3810           scale="true"
3811           color="%help_bg_color"
3812           global_color="false"
3813           texture="blank.tga" />
3814     <view type="bitmap"
3815           id="t"
3816           sizeref="w"
3817           posref="TM TM"
3818           w="-16"
3819           h="8"
3820           scale="true"
3821           color="%over_border_color"
3822           global_color="false"
3823           texture="W_hl_t.tga" />
3824     <view type="bitmap"
3825           id="b"
3826           sizeref="w"
3827           posref="BM BM"
3828           w="-16"
3829           h="8"
3830           scale="true"
3831           color="%over_border_color"
3832           global_color="false"
3833           texture="W_hl_b.tga" />
3834     <view type="bitmap"
3835           id="l"
3836           sizeref="h"
3837           posref="ML ML"
3838           w="8"
3839           h="-16"
3840           scale="true"
3841           color="%over_border_color"
3842           global_color="false"
3843           texture="W_hl_l.tga" />
3844     <view type="bitmap"
3845           id="r"
3846           sizeref="h"
3847           posref="MR MR"
3848           w="8"
3849           h="-16"
3850           scale="true"
3851           color="%over_border_color"
3852           global_color="false"
3853           texture="W_hl_r.tga" />
3854     <view type="bitmap"
3855           id="tl"
3856           avoid_resize_parent="true"
3857           posref="TL TL"
3858           w="8"
3859           h="8"
3860           scale="true"
3861           color="%over_border_color"
3862           global_color="false"
3863           texture="W_hl_tl.tga" />
3864     <view type="bitmap"
3865           id="bl"
3866           avoid_resize_parent="true"
3867           posref="BL BL"
3868           w="8"
3869           h="8"
3870           scale="true"
3871           color="%over_border_color"
3872           global_color="false"
3873           texture="W_hl_bl.tga" />
3874     <view type="bitmap"
3875           id="tr"
3876           avoid_resize_parent="true"
3877           posref="TR TR"
3878           w="8"
3879           h="8"
3880           scale="true"
3881           color="%over_border_color"
3882           global_color="false"
3883           texture="W_hl_tr.tga" />
3884     <view type="bitmap"
3885           id="br"
3886           avoid_resize_parent="true"
3887           posref="BR BR"
3888           w="8"
3889           h="8"
3890           scale="true"
3891           color="%over_border_color"
3892           global_color="false"
3893           texture="W_hl_br.tga" />
3894     <!--System, don'change the ids -->
3895     <view type="text"
3896           id="text"
3897           posref="TL TL"
3898           y="-6"
3899           x="5"
3900           color="255 255 255 255"
3901           global_color="false"
3902           fontsize="10"
3903           shadow="true"
3904           multi_line="true"
3905           multi_line_space="1"
3906           line_maxw="300"
3907           multi_line_maxw_only="true" />
3908     <view type="text"
3909           id="success_rate"
3910           y="0"
3911           posparent="text"
3912           posref="BL TL"
3913           hardtext="success_rate"
3914           active="false"
3915           global_color="false"/>
3916     <view type="bitmap"
3917           id="hp_cost"
3918           texture="ico_heal.tga"
3919           global_color="false"
3920           posref="BL TL"
3921           posparent="success_rate" />
3922     <view type="bitmap"
3923           id="sta_cost"
3924           y="0"
3925           texture="ico_stamina.tga"
3926           global_color="false"
3927           posref="BL TL"
3928           posparent="hp_cost" />
3929     <view type="bitmap"
3930           id="sap_cost"
3931           y="0"
3932           texture="ico_sap.tga"
3933           global_color="false"
3934           posref="BL TL"
3935           posparent="sta_cost" />
3936     <view type="bitmap"
3937           id="focus_cost"
3938           y="0"
3939           texture="ico_focus.tga"
3940           global_color="false"
3941           posref="BL TL"
3942           posparent="sap_cost" />
3943     <view type="bitmap"
3944           id="cast_time"
3945           y="0"
3946           texture="ico_time.tga"
3947           global_color="false"
3948           posref="BL TL"
3949           posparent="focus_cost" />
3950     <view type="bitmap"
3951           id="cast_range"
3952           y="0"
3953           texture="ico_range.tga"
3954           global_color="false"
3955           posref="BL TL"
3956           posparent="cast_time" />
3957     <view type="text"
3958           id="hp_cost_text"
3959           posparent="hp_cost"
3960           posref="MR ML"
3961           hardtext="0"
3962           global_color="false"/>
3963     <view type="text"
3964           id="sta_cost_text"
3965           posparent="sta_cost"
3966           posref="MR ML"
3967           hardtext="0"
3968           global_color="false"/>
3969     <view type="text"
3970           id="sap_cost_text"
3971           posparent="sap_cost"
3972           posref="MR ML"
3973           hardtext="0"
3974           global_color="false"/>
3975     <view type="text"
3976           id="focus_cost_text"
3977           posparent="focus_cost"
3978           posref="MR ML"
3979           hardtext="0"
3980           global_color="false"/>
3981     <view type="text"
3982           id="cast_time_text"
3983           posparent="cast_time"
3984           posref="MR ML"
3985           hardtext="0"
3986           global_color="false"/>
3987     <view type="text"
3988           id="cast_range_text"
3989           posparent="cast_range"
3990           posref="MR ML"
3991           hardtext="0"
3992           global_color="false"/>
3993     <view type="text"
3994           id="disable_time"
3995           y="0"
3996           posparent="cast_range_text"
3997           posref="BL TL"
3998           hardtext="uittDisableTime"
3999           active="false"
4000           global_color="false"/>
4001     <view type="text"
4002           id="regen_time"
4003           y="0"
4004           posparent="disable_time"
4005           posref="BL TL"
4006           hardtext="regen_time"
4007           active="false"
4008           global_color="false"/>
4009   </group>
4010     <!-- Over Text used for Buff Items : this include additionnal icons -->
4011   <group id="buff_item_context_help"
4012          posref="BL BL"
4013          child_resize_w="true"
4014          child_resize_wmargin="12"
4015          child_resize_h="true"
4016          child_resize_hmargin="9"
4017          global_color="false">
4018              <!--Decoration-->
4019     <view type="bitmap"
4020           id="midcolor"
4021           sizeref="wh"
4022           posref="MM MM"
4023           h="-4"
4024           w="-4"
4025           scale="true"
4026           color="%help_bg_color"
4027           global_color="false"
4028           texture="blank.tga" />
4029     <view type="bitmap"
4030           id="t"
4031           sizeref="w"
4032           posref="TM TM"
4033           w="-16"
4034           h="8"
4035           scale="true"
4036           color="%over_border_color"
4037           global_color="false"
4038           texture="W_hl_t.tga" />
4039     <view type="bitmap"
4040           id="b"
4041           sizeref="w"
4042           posref="BM BM"
4043           w="-16"
4044           h="8"
4045           scale="true"
4046           color="%over_border_color"
4047           global_color="false"
4048           texture="W_hl_b.tga" />
4049     <view type="bitmap"
4050           id="l"
4051           sizeref="h"
4052           posref="ML ML"
4053           w="8"
4054           h="-16"
4055           scale="true"
4056           color="%over_border_color"
4057           global_color="false"
4058           texture="W_hl_l.tga" />
4059     <view type="bitmap"
4060           id="r"
4061           sizeref="h"
4062           posref="MR MR"
4063           w="8"
4064           h="-16"
4065           scale="true"
4066           color="%over_border_color"
4067           global_color="false"
4068           texture="W_hl_r.tga" />
4069     <view type="bitmap"
4070           id="tl"
4071           avoid_resize_parent="true"
4072           posref="TL TL"
4073           w="8"
4074           h="8"
4075           scale="true"
4076           color="%over_border_color"
4077           global_color="false"
4078           texture="W_hl_tl.tga" />
4079     <view type="bitmap"
4080           id="bl"
4081           avoid_resize_parent="true"
4082           posref="BL BL"
4083           w="8"
4084           h="8"
4085           scale="true"
4086           color="%over_border_color"
4087           global_color="false"
4088           texture="W_hl_bl.tga" />
4089     <view type="bitmap"
4090           id="tr"
4091           avoid_resize_parent="true"
4092           posref="TR TR"
4093           w="8"
4094           h="8"
4095           scale="true"
4096           color="%over_border_color"
4097           global_color="false"
4098           texture="W_hl_tr.tga" />
4099     <view type="bitmap"
4100           id="br"
4101           avoid_resize_parent="true"
4102           posref="BR BR"
4103           w="8"
4104           h="8"
4105           scale="true"
4106           color="%over_border_color"
4107           global_color="false"
4108           texture="W_hl_br.tga" />
4109     <!--System, don'change the ids -->
4110     <view type="text"
4111           id="text"
4112           posref="TL TL"
4113           y="-6"
4114           x="5"
4115           color="255 255 255 255"
4116           global_color="false"
4117           fontsize="10"
4118           shadow="true"
4119           multi_line="true"
4120           multi_line_space="1"
4121           line_maxw="300"
4122           multi_line_maxw_only="true" />
4123     <view type="bitmap"
4124           id="hp_buff"
4125           h="15"
4126           y="0"
4127           texture="ico_heal.tga"
4128           global_color="false"
4129           posref="BL TL"
4130           posparent="text" 
4131           active="true"/>
4132     <view type="bitmap"
4133           id="sta_buff"
4134           y="0"
4135           texture="ico_stamina.tga"
4136           global_color="false"
4137           posref="BL TL"
4138           posparent="hp_buff" />
4139     <view type="bitmap"
4140           id="sap_buff"
4141           y="0"
4142           texture="ico_sap.tga"
4143           global_color="false"
4144           posref="BL TL"
4145           posparent="sta_buff" />
4146     <view type="bitmap"
4147           id="focus_buff"
4148           y="0"
4149           texture="ico_focus.tga"
4150           global_color="false"
4151           posref="BL TL"
4152           posparent="sap_buff" />
4153     <view type="text"
4154           id="hp_buff_text"
4155           posparent="hp_buff"
4156           posref="MR ML"
4157           hardtext="0"
4158           global_color="false"/>
4159     <view type="text"
4160           id="sta_buff_text"
4161           posparent="sta_buff"
4162           posref="MR ML"
4163           hardtext="0"
4164           global_color="false"/>
4165     <view type="text"
4166           id="sap_buff_text"
4167           posparent="sap_buff"
4168           posref="MR ML"
4169           hardtext="0"
4170           global_color="false"/>
4171     <view type="text"
4172           id="focus_buff_text"
4173           posparent="focus_buff"
4174           posref="MR ML"
4175           hardtext="0"
4176           global_color="false"/>
4177   </group>
4178       <!-- Over Text used for Crystallized Spells: this include additionnal icons -->
4179   <define id="crystallized_spell_list_brick" value="ui:interface:crystallized_spell_context_help:list_brick" />
4180   <group id="crystallized_spell_context_help"
4181          posref="BL BL"
4182          child_resize_w="true"
4183          child_resize_wmargin="12"
4184          child_resize_h="true"
4185          child_resize_hmargin="9"
4186          global_color="false">
4187              <!--Decoration-->
4188     <view type="bitmap"
4189           id="midcolor"
4190           sizeref="wh"
4191           posref="MM MM"
4192           h="-4"
4193           w="-4"
4194           scale="true"
4195           color="%help_bg_color"
4196           global_color="false"
4197           texture="blank.tga" />
4198     <view type="bitmap"
4199           id="t"
4200           sizeref="w"
4201           posref="TM TM"
4202           w="-16"
4203           h="8"
4204           scale="true"
4205           color="%over_border_color"
4206           global_color="false"
4207           texture="W_hl_t.tga" />
4208     <view type="bitmap"
4209           id="b"
4210           sizeref="w"
4211           posref="BM BM"
4212           w="-16"
4213           h="8"
4214           scale="true"
4215           color="%over_border_color"
4216           global_color="false"
4217           texture="W_hl_b.tga" />
4218     <view type="bitmap"
4219           id="l"
4220           sizeref="h"
4221           posref="ML ML"
4222           w="8"
4223           h="-16"
4224           scale="true"
4225           color="%over_border_color"
4226           global_color="false"
4227           texture="W_hl_l.tga" />
4228     <view type="bitmap"
4229           id="r"
4230           sizeref="h"
4231           posref="MR MR"
4232           w="8"
4233           h="-16"
4234           scale="true"
4235           color="%over_border_color"
4236           global_color="false"
4237           texture="W_hl_r.tga" />
4238     <view type="bitmap"
4239           id="tl"
4240           avoid_resize_parent="true"
4241           posref="TL TL"
4242           w="8"
4243           h="8"
4244           scale="true"
4245           color="%over_border_color"
4246           global_color="false"
4247           texture="W_hl_tl.tga" />
4248     <view type="bitmap"
4249           id="bl"
4250           avoid_resize_parent="true"
4251           posref="BL BL"
4252           w="8"
4253           h="8"
4254           scale="true"
4255           color="%over_border_color"
4256           global_color="false"
4257           texture="W_hl_bl.tga" />
4258     <view type="bitmap"
4259           id="tr"
4260           avoid_resize_parent="true"
4261           posref="TR TR"
4262           w="8"
4263           h="8"
4264           scale="true"
4265           color="%over_border_color"
4266           global_color="false"
4267           texture="W_hl_tr.tga" />
4268     <view type="bitmap"
4269           id="br"
4270           avoid_resize_parent="true"
4271           posref="BR BR"
4272           w="8"
4273           h="8"
4274           scale="true"
4275           color="%over_border_color"
4276           global_color="false"
4277           texture="W_hl_br.tga" />
4278     <!--System, don'change the ids -->
4279     <view type="text"
4280           id="text"
4281           posref="TL TL"
4282           y="-6"
4283           x="5"
4284           color="255 255 255 255"
4285           global_color="false"
4286           fontsize="10"
4287           shadow="true"
4288           multi_line="true"
4289           multi_line_space="1"
4290           line_maxw="300"
4291           multi_line_maxw_only="true" />
4292     <!-- For Cristallized Phrase -->
4293     <instance template="template_info_list_brick"
4294           type="list_sheet_compo_brick"
4295           id="list_brick"
4296           brickdb="UI:VARIABLES:CRYSTALBRICKS"
4297           posparent="text"
4298           xcost="230"
4299           line_maxw="185"
4300           multi_line_maxw_only="true" 
4301           param_deltax="13"
4302           sizeref="none"
4303           child_resize_w="true"
4304           child_resize_wmargin="13"
4305           global_color="false"/>
4307   </group>
4308   
4309   <!-- Over Text used for SingleLine TextView that are clamped (group_tree, keys interface....) -->
4310   <group id="over_extend_view_text"
4311          child_resize_w="true"
4312          child_resize_h="true"
4313          child_resize_wmargin="4"
4314          child_resize_hmargin="4"
4315          posref="BL BL">
4316     <!-- System, don'change the ids, nor the posref -->
4317     <!-- color and modulate_color are replaced according to the view text to over -->
4318     <view type="bitmap"
4319           id="midoutline"
4320           sizeref="wh"
4321           posref="MM MM"
4322           w="0"
4323           h="0"
4324           scale="true"
4325           color="255 255 255 255"
4326           texture="blank.tga" />
4327     <view type="bitmap"
4328           id="midback"
4329           sizeref="wh"
4330           posref="MM MM"
4331           h="-2"
4332           w="-2"
4333           scale="true"
4334           color="64 64 64 255"
4335           texture="blank.tga" />
4336     <!-- fontsize, shadow, text, color, modulate_color.... are replaced according to the view text to over -->
4337     <view type="text"
4338           id="text"
4339           posref="BL BL"
4340           x="2"
4341           y="0"
4342           color="255 255 255 255"
4343           fontsize="12"
4344           shadow="true"
4345           multi_line="false" />
4346   </group>
4347   <!-- Helper to place a tooltip over a text or anything else
4348         Basically just define 'posparent', and 'tooltip'.  (id is the parent id prefixed by tt_
4349         Other params are for advanced use
4351   <template name="text_tt"
4352             posparent=""
4353             tooltip=""
4354             tooltip_i18n=""
4355             on_tooltip=""
4356             on_tooltip_params=""
4357             instant_help="true"
4358             tooltip_parent="ctrl"
4359             tooltip_posref="auto"
4360             tooltip_special_parent=""
4361             keep="true">
4362     <ctrl type="tooltip"
4363           id="tt_#posparent"
4364           sizeref="wh"
4365           x="0"
4366           y="0"
4367           w="0"
4368           h="0"
4369           posparent="#posparent"
4370           tooltip="#tooltip"
4371           tooltip_i18n="#tooltip_i18n"
4372           on_tooltip="#on_tooltip"
4373           on_tooltip_params="#on_tooltip_params"
4374           instant_help="#instant_help"
4375           tooltip_parent="#tooltip_parent"
4376           tooltip_posref="#tooltip_posref"
4377           tooltip_special_parent="#tooltip_special_parent" />
4378   </template>
4379   <!-- ******************************** -->
4380   <!-- *  ITEM DROP/DESTROY PROCEDURE * -->
4381   <!-- ******************************** -->
4382   <proc id="drop_item_proc">
4383     <!-- set the mode -->
4384     <action handler="set"
4385             params="dblink=UI:DROP_DESTROY_ITEM:DROP_MODE|value=1" />
4386     <action handler="proc"
4387             params="drop_destroy_item_proc" />
4388   </proc>
4389   <proc id="destroy_item_proc">
4390     <!-- set the mode -->
4391     <action handler="set"
4392             params="dblink=UI:DROP_DESTROY_ITEM:DROP_MODE|value=0" />
4393     <action handler="proc"
4394             params="drop_destroy_item_proc" />
4395   </proc>
4396   <proc id="drop_destroy_item_proc">
4397     <!-- copy infos about current sheet -->
4398     <action handler="eval_expr"
4399             params="expr=copySheet(getMenuItemSheet(), getSheetFromId('ui:interface:drop_destroy_item_quantity_modal:sheet'))" />
4400     <!-- set default quantity to 1 -->
4401     <action handler="set"
4402             params="dblink=UI:DROP_DESTROY_ITEM:ITEM:QUANTITY|value=1" />
4403     <!-- if the item is stackable, popup a menu to select the number of item to drop/destroy, else, directly drop/destroy the item (after confirmation)-->
4404     <action cond="isStackable(getMenuItemSheet())"
4405             handler="enter_modal"
4406             params="group=ui:interface:drop_destroy_item_quantity_modal" />
4407     <action cond="not(isStackable(getMenuItemSheet()))"
4408             handler="enter_modal"
4409             params="group=ui:interface:drop_destroy_item_confirm_modal" />
4410   </proc>
4411   <!-- proc to setup modal box to choose the number of item to drop/destroy -->
4412   <proc id="setup_drop_destroy_item_modal">
4413     <!-- copy the max number of items into the edit box (start value that is displayed), and the db -->
4414     <action handler="set"
4415             params="dblink=UI:DROP_DESTROY_ITEM:ITEM:QUANTITY|value=getSheetQuantity(getMenuItemSheet())" />
4416     <action handler="set"
4417             params="target_property=ui:interface:drop_destroy_item_quantity_modal:edit:eb:input_string|value=getSheetQuantity(getMenuItemSheet())" />
4418     <!-- set keyboard focus on the edit box -->
4419     <action handler="set_keyboard_focus"
4420             params="select_all=true|target=ui:interface:drop_destroy_item_quantity_modal:edit:eb" />
4421   </proc>
4422   <!-- proc that is called when the user has given the number of item to drop/destroy -->
4423   <proc id="drop_destroy_item_quantity_modal_ok">
4424     <!-- close the modal -->
4425     <action handler="leave_modal"
4426             params="" />
4427     <!-- clamp the number of item to drop/destroy -->
4428     <action handler="set"
4429             params="dblink=UI:DROP_DESTROY_ITEM:ITEM:QUANTITY|value=min(getSheetQuantity(getMenuItemSheet()), @@UI:DROP_DESTROY_ITEM:ITEM:QUANTITY)" />
4430     <!-- call the modal to confirm the choice -->
4431     <action cond="ne(@UI:DROP_DESTROY_ITEM:ITEM:QUANTITY, 0)"
4432             handler="enter_modal"
4433             params="group=ui:interface:drop_destroy_item_confirm_modal" />
4434   </proc>
4435   <!-- temp variables -->
4436   <variable entry="UI:DROP_DESTROY_ITEM:ITEM:SHEET"
4437             type="sint64"
4438             value="0" />
4439   <variable entry="UI:DROP_DESTROY_ITEM:ITEM:QUANTITY"
4440             type="sint64"
4441             value="0" />
4442   <variable entry="UI:DROP_DESTROY_ITEM:ITEM:QUALITY"
4443             type="sint64"
4444             value="0" />
4445   <variable entry="UI:DROP_DESTROY_ITEM:ITEM:USER_COLOR"
4446             type="sint64"
4447             value="0" />
4448   <variable entry="UI:DROP_DESTROY_ITEM:ITEM:LOCKED"
4449             type="sint64"
4450             value="0" />
4451   <variable entry="UI:DROP_DESTROY_ITEM:ITEM:WEIGHT"
4452             type="sint64"
4453             value="0" />
4454   <variable entry="UI:DROP_DESTROY_ITEM:ITEM:NAMEID"
4455             type="sint64"
4456             value="0" />
4457   <variable entry="UI:DROP_DESTROY_ITEM:ITEM:INFO_VERSION"
4458             type="sint64"
4459             value="0" />
4460   <variable entry="UI:DROP_DESTROY_ITEM:ITEM:ENCHANT"
4461             type="sint32"
4462             value="0" />
4463   <variable entry="UI:DROP_DESTROY_ITEM:ITEM:RM_CLASS_TYPE"
4464             type="sint32"
4465             value="0" />
4466   <variable entry="UI:DROP_DESTROY_ITEM:ITEM:RM_FABER_STAT_TYPE"
4467             type="sint32"
4468             value="0" />
4469   <variable entry="UI:DROP_DESTROY_ITEM:ITEM:PREREQUSIT_VALID"
4470             type="sint32"
4471             value="0" />
4472   <!-- drop or destroy/mode -->
4473   <variable entry="UI:DROP_DESTROY_ITEM:DROP_MODE"
4474             type="sint64"
4475             value="0" />
4476   <!-- modal box to choose the number of item to drop/destroy -->
4477   <group type="modal"
4478          id="drop_destroy_item_quantity_modal"
4479          exit_click_out="true"
4480          posref="TL TL"
4481          w="180"
4482          h="80"
4483          x="-8"
4484          y="8"
4485          on_active="proc"
4486          on_active_params="setup_drop_destroy_item_modal"
4487          options="skin_modal"
4488          on_enter="proc"
4489          on_enter_params="drop_destroy_item_quantity_modal_ok">
4490     <view type="bitmap"
4491           id="warning"
4492           posref="TL TL"
4493           x="4"
4494           y="-4"
4495           global_color="false"
4496           texture="w_warning_2.tga" />
4497     <view type="text"
4498           id="destroy_text"
4499           posref="TL TL"
4500           x="20"
4501           y="-5"
4502           fontsize="12"
4503           shadow="true"
4504           hardtext="uimQuantityDestroy"
4505           global_color="false"
4506           color="233 197 42 255" />
4507     <view type="text"
4508           id="drop_text"
4509           posref="TL TL"
4510           x="20"
4511           y="-5"
4512           fontsize="12"
4513           shadow="true"
4514           hardtext="uimQuantityDrop"
4515           global_color="false"
4516           color="233 197 42 255" />
4517     <ctrl type="sheet"
4518           id="sheet"
4519           value="UI:DROP_DESTROY_ITEM:ITEM"
4520           posparent="parent"
4521           posref="MM MM"
4522           x="-26"
4523           y="0" />
4524     <view type="text"
4525           id="x"
4526           posparent="sheet"
4527           posref="MR MM"
4528           x="8"
4529           y="0"
4530           color="255 255 255 255"
4531           fontsize="12"
4532           shadow="true"
4533           hardtext="X" />
4534     <instance template="edit_box_widget"
4535               entry_type="positive_integer"
4536               id="edit"
4537               text_ref="TR TR"
4538               text_y="0"
4539               fontsize="12"
4540               posparent="sheet"
4541               posref="MR ML"
4542               x="16"
4543               text_x="-2"
4544               w="32"
4545               prompt=""
4546               enter_loose_focus="false"
4547               multi_line="false"
4548               max_num_chars="3"
4549               onchange="editbox_number"
4550               onchange_params="value=UI:DROP_DESTROY_ITEM:ITEM:QUANTITY|update_text=false"
4551               onenter="proc"
4552               params="drop_destroy_item_quantity_modal_ok"
4553               max_historic="0" />
4554     <instance template="button_ok_cancel"
4555               posref="BR BR"
4556               x="-4"
4557               y="4"
4558               onclick_ok="proc"
4559               onclick_ok_param="drop_destroy_item_quantity_modal_ok"
4560               onclick_cancel="leave_modal"
4561               onclick_cancel_param="" />
4562     <!-- link to display the right text (drop or destroy) -->
4563     <link expr="eq(@UI:DROP_DESTROY_ITEM:DROP_MODE, 1)"
4564           target="drop_text:active" />
4565     <link expr="ne(@UI:DROP_DESTROY_ITEM:DROP_MODE, 1)"
4566           target="destroy_text:active" />
4567   </group>
4568   <!-- confirm drop/destroy item -->
4569   <proc id="confirm_drop_destroy_item">
4570     <action handler="leave_modal"
4571             params="" />
4572     <action cond="eq(@UI:DROP_DESTROY_ITEM:DROP_MODE, 1)"
4573             handler="drop_item"
4574             params="quantity=@@UI:DROP_DESTROY_ITEM:ITEM:QUANTITY" />
4575     <action cond="ne(@UI:DROP_DESTROY_ITEM:DROP_MODE, 1)"
4576             handler="destroy_item"
4577             params="quantity=@@UI:DROP_DESTROY_ITEM:ITEM:QUANTITY" />
4578   </proc>
4579   <!-- modal box to confirm destruction of the item -->
4580   <group type="modal"
4581          id="drop_destroy_item_confirm_modal"
4582          exit_click_out="true"
4583          posref="TL TL"
4584          x="-8"
4585          y="8"
4586          w="104"
4587          h="96"
4588          on_enter="proc"
4589          options="skin_modal"
4590          on_enter_params="confirm_drop_destroy_item">
4591     <view type="bitmap"
4592           id="warning"
4593           posref="TL TL"
4594           x="4"
4595           y="-4"
4596           global_color="false"
4597           texture="w_warning_2.tga" />
4598     <view type="text"
4599           id="destroy_text"
4600           posref="TL TL"
4601           x="20"
4602           y="-5"
4603           color="233 197 42 255"
4604           fontsize="12"
4605           shadow="true"
4606           global_color="false"
4607           hardtext="uimDestroy" />
4608     <view type="text"
4609           id="drop_text"
4610           posref="TL TL"
4611           x="20"
4612           y="-5"
4613           color="233 197 42 255"
4614           fontsize="12"
4615           shadow="true"
4616           global_color="false"
4617           hardtext="uimDrop" />
4618     <ctrl type="sheet"
4619           id="sheet"
4620           value="UI:DROP_DESTROY_ITEM:ITEM"
4621           posparent="parent"
4622           posref="MM MM"
4623           y="0"
4624           x="0"
4625           use_quantity="false" />
4626     <view type="text"
4627           id="disp_number"
4628           posref="MR MM"
4629           posparent="sheet"
4630           x="16"
4631           y="-1"
4632           color="255 255 255 255"
4633           fontsize="12"
4634           shadow="true"
4635           global_color="false"
4636           hardtext="" />
4637     <!-- link to display the right number of item -->
4638     <link expr="ifthenelse(eq(@UI:DROP_DESTROY_ITEM:ITEM:QUANTITY, 1), '', str('x', @UI:DROP_DESTROY_ITEM:ITEM:QUANTITY))"
4639           target="disp_number:hardtext" />
4640     <link expr="ifthenelse(eq(@UI:DROP_DESTROY_ITEM:ITEM:QUANTITY, 1), 0, -10)"
4641           target="sheet:x" />
4642     <instance template="button_ok_cancel"
4643               posref="BR BR"
4644               x="-4"
4645               y="4"
4646               onclick_ok="proc"
4647               onclick_ok_param="confirm_drop_destroy_item"
4648               onclick_cancel="leave_modal"
4649               onclick_cancel_param="" />
4650     <!-- link to display the right text (drop or destroy) -->
4651     <link expr="eq(@UI:DROP_DESTROY_ITEM:DROP_MODE, 1)"
4652           target="drop_text:active" />
4653     <link expr="ne(@UI:DROP_DESTROY_ITEM:DROP_MODE, 1)"
4654           target="destroy_text:active" />
4655   </group>
4656   <!-- ********************************************************* -->
4657   <!-- *     AUTOMATIC OPENING / RESTORING OF PLAYER INVENTORY * -->
4658   <!-- ********************************************************* -->
4659   <proc id="memorize_inventory_state">
4660     <!-- memorize previous state -->
4661     <!-- <action handler="set" params="dblink=%bag1_open_value|value=isOpen('ui:interface:userbag1')"/>
4662         <action handler="set" params="dblink=%bag2_open_value|value=isOpen('ui:interface:userbag2')"/>
4663         <action handler="set" params="dblink=%bag3_open_value|value=isOpen('ui:interface:userbag3')"/>
4664         <action handler="set" params="dblink=%bag4_open_value|value=isOpen('ui:interface:userbag4')"/>
4665         <action handler="set" params="dblink=%bags_open_value|value=isOpen('ui:interface:userbags')"/>
4666         <action handler="set" params="dblink=%player_open_value|value=isOpen('ui:interface:player')"/>
4667         <action handler="set" params="dblink=%money_open_value|value=isOpen('ui:interface:usermoney')"/> -->
4668     <action handler="set"
4669             params="dblink=%inventory_open_value|value=isOpen('ui:interface:inventory')" />
4670     <!-- force to open the inventory -->
4671     <!-- <action handler="set_open" cond="le(1,@%bag_nb)" params="target=ui:interface:userbags|open='true'"/>
4672         <action handler="set_open" cond="le(1,@%bag_nb)" params="target=ui:interface:userbag1|open='true'"/>    
4673         <action handler="set_open" cond="le(2,@%bag_nb)" params="target=ui:interface:userbag2|open='true'"/>
4674         <action handler="set_open" cond="le(3,@%bag_nb)" params="target=ui:interface:userbag3|open='true'"/>
4675         <action handler="set_open" cond="le(4,@%bag_nb)" params="target=ui:interface:userbag4|open='true'"/>
4676         <action handler="set_open" params="target=ui:interface:player|open='true'"/>
4677         <action handler="set_open" params="target=ui:interface:usermoney|open='true'"/> -->
4678     <action handler="set_open"
4679             params="target=ui:interface:inventory|open='true'" />
4680     <!-- reset flag to see if the user has opened the inventory -->
4681     <!--<action handler="set" params="dblink=%bag1_touched|value=0"/>
4682         <action handler="set" params="dblink=%bag2_touched|value=0"/>
4683         <action handler="set" params="dblink=%bag3_touched|value=0"/>
4684         <action handler="set" params="dblink=%bag4_touched|value=0"/>
4685         <action handler="set" params="dblink=%bags_touched|value=0"/>
4686         <action handler="set" params="dblink=%player_touched|value=0"/>
4687         <action handler="set" params="dblink=%money_touched|value=0"/>-->
4688     <action handler="set"
4689             params="dblink=%inventory_touched|value=0" />
4690   </proc>
4691   <proc id="restore_inventory_state">
4692     <!--<action handler="set_open" cond="and(eq(@%bag1_touched, 0), le(1,@%bag_nb))" params="target=ui:interface:userbag1|open=@@%bag1_open_value"/>
4693         <action handler="set_open" cond="and(eq(@%bag2_touched, 0), le(2,@%bag_nb))" params="target=ui:interface:userbag2|open=@@%bag2_open_value"/>
4694         <action handler="set_open" cond="and(eq(@%bag3_touched, 0), le(3,@%bag_nb))" params="target=ui:interface:userbag3|open=@@%bag3_open_value"/>
4695         <action handler="set_open" cond="and(eq(@%bag4_touched, 0), le(4,@%bag_nb))" params="target=ui:interface:userbag4|open=@@%bag4_open_value"/>
4696         <action handler="set_open" cond="and(eq(@%bags_touched, 0), le(1,@%bag_nb))" params="target=ui:interface:userbags|open=@@%bags_open_value"/>    
4697         <action handler="set_open" cond="eq(@%player_touched, 0)" params="target=ui:interface:player|open=@@%player_open_value"/>
4698         <action handler="set_open" cond="eq(@%money_touched, 0)" params="target=ui:interface:usermoney|open=@@%money_open_value"/>-->
4699     <action handler="set_open"
4700             cond="eq(@%inventory_touched, 0)"
4701             params="target=ui:interface:inventory|open=@@%inventory_open_value" />
4702   </proc>
4703   <!-- modal box -->
4704   <template name="modal_border"
4705             posparent="parent">
4706     <view type="bitmap"
4707           id="tlb"
4708           texture="W_modal_TL.tga"
4709           posparent="#posparent"
4710           posref="TL TL" />
4711     <view type="bitmap"
4712           id="trb"
4713           texture="W_modal_TR.tga"
4714           posparent="#posparent"
4715           posref="TR TR" />
4716     <view type="bitmap"
4717           id="brb"
4718           texture="W_modal_BR.tga"
4719           posparent="#posparent"
4720           posref="BR BR" />
4721     <view type="bitmap"
4722           id="blb"
4723           texture="W_modal_BL.tga"
4724           posparent="#posparent"
4725           posref="BL BL" />
4726     <view type="bitmap"
4727           id="tb"
4728           texture="W_modal_T.tga"
4729           posparent="#posparent"
4730           posref="TM TM"
4731           scale="true"
4732           sizeref="w"
4733           w="-8"
4734           h="4" />
4735     <view type="bitmap"
4736           id="bb"
4737           texture="W_modal_B.tga"
4738           posparent="#posparent"
4739           posref="BM BM"
4740           scale="true"
4741           sizeref="w"
4742           w="-8"
4743           h="4" />
4744     <view type="bitmap"
4745           id="lb"
4746           texture="W_modal_L.tga"
4747           posparent="#posparent"
4748           posref="ML ML"
4749           scale="true"
4750           sizeref="h"
4751           h="-8"
4752           w="4" />
4753     <view type="bitmap"
4754           id="rb"
4755           texture="W_modal_R.tga"
4756           posparent="#posparent"
4757           posref="MR MR"
4758           scale="true"
4759           sizeref="h"
4760           h="-8"
4761           w="4" />
4762   </template>
4763   <!-- *************************** -->
4764   <!-- *  COMBO BOX DEFINITIONS  * -->
4765   <!-- *************************** -->
4766   <!-- the modal Menu opened on a combo box 's click -->
4767   <group type="menu"
4768          id="combo_box_select_menu"
4769          posref="BL TL"
4770          x="0"
4771          y="0"
4772          mouse_pos="false"
4773          space="2"
4774          shadow="false"
4775          color="255 255 255 128"
4776          shadow_color="0 0 0 255"
4777          color_over="255 255 255 255"
4778          shadow_color_over="0 0 0 255"
4779          color_grayed="0 0 0 255"
4780          shadow_color_grayed="155 155 155 255"
4781          fontsize="12"
4782          highlight_over="255 255 255 128"
4783          force_inside_screen="true"></group>
4784   <group type="menu"
4785          id="combo_box_measure_menu"
4786          posref="BL TL"
4787          x="0"
4788          y="0"
4789          active="false"
4790          mouse_pos="false"
4791          space="2"
4792          shadow="false"
4793          color="255 255 255 128"
4794          shadow_color="0 0 0 255"
4795          color_over="255 255 255 255"
4796          shadow_color_over="0 0 0 255"
4797          color_grayed="0 0 0 255"
4798          shadow_color_grayed="155 155 155 255"
4799          fontsize="12"
4800          highlight_over="255 255 255 128"
4801          force_inside_screen="true" />
4802   <!-- the common children definitions of a combo box -->
4803   <!-- keep is true because this template is used in the teditcmd template -->
4804   <template name="combo_box_def1"
4805             keep="true"
4806             render_layer="0">
4807     <!-- DECORATION -->
4808     <instance template="box_widget"
4809               render_layer="#render_layer"
4810               id="back"
4811               sizeref="wh"
4812               w="0"
4813               h="0" />
4814     <view type="bitmap"
4815           render_layer="#render_layer"
4816           id="arrow"
4817           posref="MR MR"
4818           x="-4"
4819           texture="W_arrow_down_2.tga" />
4820     <!-- SYSTEM -->
4821     <view type="text"
4822           id="text"
4823           render_layer="#render_layer"
4824           posref="ML ML"
4825           x="2" />
4826     <ctrl type="button"
4827           render_layer="#render_layer"
4828           button_type="push_button"
4829           id="select"
4830           sizeref="wh"
4831           w="0"
4832           h="0"
4833           col_over="255 255 255 90"
4834           tx_over="blank.tga"
4835           scale="true" />
4836   </template>
4837   <!-- ******************* -->
4838   <!-- *    STYLES       * -->
4839   <!-- ******************* -->
4840   <!-- Common Style of a Modal Container. user should define 
4841         - the "modal_parent" window
4842         - and the "on_enter" ActionHandler to support all "Modal Container"     aspects.
4844   <style style="container_modal"
4845          type="container"
4846          movable="true"
4847          resizer="false"
4848          global_color="false"
4849          openable="false"
4850          opened="true"
4851          active="false"
4852          escapable="true"
4853          right_button="true" />
4854   <!-- Common Style for an OK Button. User should define:
4855         - "onclick_l" and "params_l"
4856         - x, y, posparent and posref
4858   <style style="button_ok"
4859          type="text_button"
4860          id="ok"
4861          button_type="push_button"
4862          tx_normal="w_text_button_normal"
4863          tx_pushed="w_text_button_pushed"
4864          tx_over="w_text_button_over"
4865          global_color_normal="true"
4866          global_color_over="true"
4867          global_color_pushed="true"
4868          text_y="0"
4869          fontsize="10"
4870          shadow="true"
4871          case_mode="%case_upper"
4872          wmargin="8" />
4873   <!-- Common Style for a Cancel Button. By default positioned according to the "ok" button. User should define:
4874         - "onclick_l" and "params_l"
4876   <style style="button_cancel"
4877          type="text_button"
4878          id="cancel"
4879          button_type="push_button"
4880          tx_normal="w_text_button_normal"
4881          tx_pushed="w_text_button_pushed"
4882          tx_over="w_text_button_over"
4883          global_color_normal="true"
4884          global_color_over="true"
4885          global_color_pushed="true"
4886          text_y="0"
4887          fontsize="10"
4888          shadow="true"
4889          case_mode="%case_upper"
4890          wmargin="8" />
4891   <!-- Group of two ok, cancel buttons
4893   <template name="button_ok_cancel"
4894             id="ok_cancel"
4895             ok_text="uittOK"
4896             cancel_text="uittCancel"
4897             posparent="parent"
4898             posref="BM TM"
4899             onclick_ok=""
4900             onclick_ok_param=""
4901             onclick_cancel=""
4902             onclick_cancel_param=""
4903             x="0"
4904             y="0"
4905             keep="true"
4906             tooltip_ok=""
4907             avoid_resize_parent="false">
4908     <group id="#id"
4909            posparent="#posparent"
4910            posref="#posref"
4911            child_resize_w="true"
4912            child_resize_h="true"
4913            x="#x"
4914            y="#y"
4915            avoid_resize_parent="#avoid_resize_parent">
4916       <ctrl style="button_ok"
4917             x="0"
4918             y="0"
4919             posref="TL TL"
4920             text_y="0"
4921             onclick_l="#onclick_ok"
4922             params_l="#onclick_ok_param"
4923             hardtext="#ok_text"
4924             tooltip="#tooltip_ok" />
4925       <ctrl style="button_cancel"
4926             x="4"
4927             posparent="ok"
4928             text_y="0"
4929             posref="TR TL"
4930             onclick_l="#onclick_cancel"
4931             params_l="#onclick_cancel_param"
4932             hardtext="#cancel_text" />
4933     </group>
4934   </template>
4935   <!-- Common Style for a Close Button.
4937   <style style="button_close"
4938          type="button"
4939          id="close"
4940          button_type="push_button"
4941          posref="TR TR"
4942          x="0"
4943          y="0"
4944          tx_normal="W_close_1.tga"
4945          tx_pushed="W_close_1.tga"
4946          tx_over="W_button_12_over.tga"
4947          global_color_normal="false"
4948          global_color_pushed="false" />
4949   <!-- Common Style for a text Button. User should define:
4950         - id
4951         - hardtext
4952         - "onclick_l" and "params_l"
4953         - x, y, posparent and posref
4955   <style style="text_button_16"
4956          type="text_button"
4957          button_type="push_button"
4958          tx_normal="w_text_button_normal"
4959          tx_pushed="w_text_button_pushed"
4960          tx_over="w_text_button_over"
4961          global_color_normal="true"
4962          global_color_over="true"
4963          global_color_pushed="true"
4964          text_y="0"
4965          fontsize="10"
4966          shadow="true"
4967          case_mode="%case_upper"
4968          wmargin="8"
4969          text_color_normal="255 255 255 128"
4970          text_color_pushed="255 255 255 255"
4971          text_color_over="255 255 255 255" />
4972   <style style="text_button_header"
4973          type="text_button"
4974          button_type="push_button"
4975          tx_normal="w_text_button_normal"
4976          tx_pushed="w_text_button_pushed"
4977          tx_over="w_text_button_over"
4978          text_y="0"
4979          fontsize="10"
4980          shadow="true"
4981          case_mode="%case_upper"
4982          wmargin="8"
4983          text_color_normal="255 255 255 128"
4984          text_color_pushed="255 255 255 255"
4985          text_color_over="255 255 255 255"
4986          global_color_normal="false"
4987          global_color_over="false"
4988          global_color_pushed="false"
4989          text_global_color_normal="false"
4990          text_global_color_pushed="false"
4991          text_global_color_over="false"
4992          text_header_color="true" />
4993   <style style="new_element_header"
4994          type="text_button"
4995          button_type="push_button"
4996          tx_normal="w_text_button_normal"
4997          tx_pushed="w_text_button_pushed"
4998          tx_over="w_text_button_over"
4999          global_color_normal="true"
5000          global_color_over="true"
5001          global_color_pushed="true"
5002          text_y="0"
5003          fontsize="10"
5004          shadow="true"
5005          case_mode="%case_upper"
5006          wmargin="8"
5007          text_global_color_normal="true"
5008          text_global_color_pushed="true"
5009          text_global_color_over="true"
5010          text_color_normal="255 255 255 128"
5011          text_color_pushed="255 255 255 255"
5012          text_color_over="255 255 255 255"
5013          text_header_color="true" />
5014   <style style="new_element_content"
5015          type="text_button"
5016          button_type="push_button"
5017          tx_normal="w_text_button_normal"
5018          tx_pushed="w_text_button_pushed"
5019          tx_over="w_text_button_over"
5020          text_y="0"
5021          fontsize="10"
5022          shadow="true"
5023          case_mode="%case_upper"
5024          wmargin="8"
5025          global_color_normal="true"
5026          global_color_over="true"
5027          global_color_pushed="true"
5028          text_global_color_normal="true"
5029          text_global_color_pushed="true"
5030          text_global_color_over="true"
5031          text_color_normal="255 255 255 128"
5032          text_color_pushed="255 255 255 255"
5033          text_color_over="255 255 255 255" />
5034   <style style="qh_button"
5035          type="text_button"
5036          button_type="radio_button"
5037          tx_normal="qh_off"
5038          tx_pushed="qh_on"
5039          tx_over="qh_off"
5040          wmin="208"
5041          wmargin="8"
5042          global_color_normal="true"
5043          global_color_over="true"
5044          global_color_pushed="false"
5045          color="255 255 255 128"
5046          col_over="255 255 255 0"
5047          col_pushed="255 128 0 192"
5048          text_y="0"
5049          fontsize="12"
5050          shadow="true"
5051          text_color_normal="255 255 255 255"
5052          text_color_pushed="255 255 255 255"
5053          text_color_over="255 255 255 255"
5054          text_shadow_color_normal="0 0 0 255"
5055          text_shadow_color_pushed="0 0 0 255"
5056          text_shadow_color_over="0 0 0 255"
5057          text_global_color_normal="true"
5058          text_global_color_pushed="false"
5059          text_global_color_over="false" />
5060   <style style="defense_style_button"
5061          type="text_button"
5062          button_type="radio_button"
5063          tx_normal="qh_off"
5064          tx_pushed="qh_on"
5065          tx_over="qh_off"
5066          wmin="86"
5067          wmargin="8"
5068          global_color_normal="true"
5069          global_color_over="true"
5070          global_color_pushed="false"
5071          color="255 255 255 128"
5072          col_over="255 255 255 0"
5073          col_pushed="255 190 0 192"
5074          text_y="0"
5075          fontsize="12"
5076          shadow="true"
5077          text_color_normal="255 255 255 160"
5078          text_color_pushed="255 255 255 255"
5079          text_color_over="255 255 255 255"
5080          text_shadow_color_normal="0 0 0 255"
5081          text_shadow_color_pushed="0 0 0 255"
5082          text_shadow_color_over="0 0 0 255"
5083          text_global_color_normal="true"
5084          text_global_color_pushed="false"
5085          text_global_color_over="false" />
5086   <style style="defense_button"
5087          type="button"
5088          button_type="radio_button"
5089          tx_normal="W_slot_item_selected.tga"
5090          tx_pushed="W_slot_item_selected.tga"
5091          tx_over="W_slot_item_selected.tga"
5092          color="255 255 255 0"
5093          col_over="255 255 255 255"
5094          col_pushed="255 190 0 255"
5095          global_color_normal="true"
5096          global_color_over="true"
5097          global_color_pushed="false" />
5098   <style style="quit_button"
5099          type="text_button"
5100          button_type="push_button"
5101          tx_normal="Quit_button_normal"
5102          tx_pushed="Quit_button_pushed"
5103          tx_over="Quit_button_over"
5104          wmargin="12"
5105          global_color_normal="false"
5106          global_color_over="false"
5107          global_color_pushed="false"
5108          color="255 255 255 255"
5109          col_over="255 255 255 255"
5110          col_pushed="255 255 255 255"
5111          text_y="0"
5112          fontsize="14"
5113          shadow="true"
5114          text_color_pushed="255 255 255 255"
5115          text_color_over="255 255 255 255"
5116          text_shadow_color_normal="0 0 0 255"
5117          text_shadow_color_pushed="0 0 0 255"
5118          text_shadow_color_over="0 0 0 255"
5119          text_global_color_normal="false"
5120          text_global_color_pushed="false"
5121          text_global_color_over="false" />
5122   <!-- Common Style for a Tab Button. User should define:
5123         - id: eg "tab1"
5124         - posparent: eg "tab0"
5125         - hardtext
5126         - x="0" and posref="TL TL" for tab0
5128   <style style="tab_button_16"
5129          type="tab_button"
5130          button_type="radio_button"
5131          x="-2"
5132          posref="TR TL"
5133          tx_normal="w_text_button_normal"
5134          tx_pushed="w_text_button_pushed"
5135          tx_over="w_text_button_over"
5136          global_color_normal="true"
5137          global_color_over="true"
5138          global_color_pushed="true"
5139          text_y="0"
5140          fontsize="10"
5141          shadow="true"
5142          case_mode="%case_upper"
5143          wmargin="8"
5144          text_color_normal="255 255 255 128"
5145          text_color_pushed="255 255 255 255"
5146          text_color_over="255 255 255 255" />
5147   <style style="tab_button_new"
5148          type="tab_button"
5149          button_type="radio_button"
5150          x="0"
5151          posref="TR TL"
5152          tx_normal="w_tab_normal"
5153          tx_pushed="w_tab_pushed"
5154          tx_over="w_tab_over"
5155          global_color_normal="true"
5156          global_color_over="true"
5157          global_color_pushed="true"
5158          color="255 255 255 255"
5159          col_over="255 255 255 255"
5160          col_pushed="255 255 255 255"
5161          text_y="0"
5162          fontsize="10"
5163          shadow="true"
5164          case_mode="%case_upper"
5165          wmargin="8"
5166          text_color_normal="255 255 255 128"
5167          text_color_pushed="255 255 255 255"
5168          text_color_over="255 255 255 255"
5169          text_global_color_normal="true"
5170          text_global_color_pushed="false"
5171          text_global_color_over="true" />
5172   <!-- **************** -->
5173   <!-- *  MESSAGE BOX * -->
5174   <!-- **************** -->
5175   <!-- Simple Message Box with just a OK button -->
5176   <group type="modal"
5177          id="message_box"
5178          exit_click_out="true"
5179          posref="MM MM"
5180          w="250"
5181          child_resize_h="true"
5182          child_resize_hmargin="46"
5183          on_enter="leave_modal"
5184          options="skin_modal">
5185     <view type="text"
5186           id="text"
5187           posref="TL TL"
5188           line_maxw="234"
5189           x="8"
5190           y="-12"
5191           w="0"
5192           h="0"
5193           color="255 255 255 255"
5194           fontsize="12"
5195           shadow="true"
5196           multi_line="true"
5197           multi_line_space="0"
5198           case_mode="%case_first_sentence_letter_up" />
5199     <ctrl style="button_ok"
5200           posref="BM BM"
5201           x="0"
5202           y="8"
5203           onclick_l="leave_modal"
5204           hardtext="uittOK"
5205           avoid_resize_parent="true" />
5206   </group>
5207   <!-- Message Box with just a OK/Browse Faq button -->
5208   <proc id="proc_browse_faq">
5209     <!--
5210         NB : do not leave the window here, this way the user can refer to the message in the help message box
5211         <action handler="leave_modal" />
5212         -->
5213     <action handler="browse_faq"
5214             params="" />
5215   </proc>
5216   <proc id="proc_message_box_with_help_ok">
5217     <action handler="leave_modal" />
5218     <!-- must leave modal first if another modal is to be displayed after this one -->
5219     <action handler=""
5220             params="" />
5221   </proc>
5222   <group type="modal"
5223          id="message_box_with_help"
5224          exit_click_out="false"
5225          posref="MM MM"
5226          w="250"
5227          child_resize_h="true"
5228          child_resize_hmargin="46"
5229          on_enter="proc"
5230          on_enter_params="proc_message_box_with_help_ok"
5231          on_deactive="proc"
5232          on_deactive_params="proc_message_box_with_help_ok"
5233          escapable="true"
5234          options="skin_modal">
5235     <view type="text"
5236           id="text"
5237           posref="TL TL"
5238           line_maxw="234"
5239           x="8"
5240           y="-12"
5241           w="0"
5242           h="0"
5243           color="255 255 255 255"
5244           fontsize="12"
5245           shadow="true"
5246           multi_line="true"
5247           multi_line_space="0"
5248           case_mode="%case_first_sentence_letter_up" />
5249     <ctrl style="button_ok"
5250           id="ok"
5251           posref="BM BL"
5252           x="2"
5253           y="8"
5254           onclick_l="proc"
5255           params_l="proc_message_box_with_help_ok"
5256           hardtext="uittOK"
5257           avoid_resize_parent="true" />
5258     <ctrl style="button_ok"
5259           id="browse_faq"
5260           posref="BM BR"
5261           x="-2"
5262           y="8"
5263           onclick_l="proc"
5264           params_l="proc_browse_faq"
5265           hardtext="uittBrowseFaq"
5266           avoid_resize_parent="true" />
5267   </group>
5268   <!-- Message Box with just a OK/Cancel button -->
5269   <proc id="proc_valid_message_box_ok">
5270     <action handler="leave_modal" />
5271     <!-- must leave modal first if another modal is to be displayed after this one -->
5272     <action handler=""
5273             params="" />
5274     <!-- Replaced with the user one -->
5275   </proc>
5276   <proc id="proc_valid_message_box_cancel">
5277     <action handler="leave_modal" />
5278     <!-- must leave modal first if another modal is to be displayed after this one -->
5279     <action handler=""
5280             params="" />
5281     <!-- Replaced with the user one -->
5282   </proc>
5283   <group type="modal"
5284          id="valid_message_box"
5285          exit_click_out="true"
5286          posref="MM MM"
5287          w="306"
5288          child_resize_h="true"
5289          child_resize_hmargin="46"
5290          on_enter="proc"
5291          on_enter_params="proc_valid_message_box_ok"
5292          options="skin_modal">
5293     <group id="icon_group"
5294            posref="TL TL"
5295            x="4"
5296            y="-8"
5297            w="24"
5298            h="24">
5299       <view type="bitmap"
5300             id="icon"
5301             posref="MM MM"
5302             texture=""
5303             global_color="false" />
5304     </group>
5305     <view type="text"
5306           id="text"
5307           posref="TL TL"
5308           line_maxw="270"
5309           x="32"
5310           y="-12"
5311           w="0"
5312           h="0"
5313           color="255 255 255 255"
5314           fontsize="12"
5315           shadow="true"
5316           multi_line_space="0"
5317           multi_line="true"
5318           case_mode="%case_first_sentence_letter_up" />
5319     <instance template="button_ok_cancel"
5320               posref="BM BM"
5321               x="0"
5322               y="8"
5323               onclick_ok="proc"
5324               onclick_ok_param="proc_valid_message_box_ok"
5325               onclick_cancel="proc"
5326               onclick_cancel_param="proc_valid_message_box_cancel"
5327               avoid_resize_parent="true" />
5328   </group>
5329   <!-- common Style for Message Box For Important Proposal feature (join PVP etc...) -->
5330   <style style="container_proposal"
5331          type="container"
5332          w="260"
5333          h="512"
5334          pop_max_h="512"
5335          resizer="false"
5336          active="false"
5337          savable="false"
5338          openable="false"
5339          opened="true"
5340          movable="true" />
5341   <!-- ********************************** -->
5342   <!-- * SERVER IMPORTANT MESSAGE BOX   * -->
5343   <!-- ********************************** -->
5344   <!-- Vars describing the message -->
5345   <variable entry="UI:TEMP:SERVER_POPUP:TITLE"
5346             type="sint32"
5347             value="0" />
5348   <!-- Change it to access the view text -->
5349   <define id="server_message_box_content_view_text"
5350           value="ui:interface:server_message_box:content:inside:limited_h:text" />
5351   <!-- The modal -->
5352   <group style="container_proposal"
5353          w="256"
5354          max_w="1024"
5355          pop_max_w="1024"
5356          max_h="700"
5357          pop_max_h="700"
5358          id="server_message_box"
5359          right_button="false"
5360          title="UI:TEMP:SERVER_POPUP:TITLE"
5361          title_class="text_dyn_string">
5362     <group id="header_opened"
5363            h="16"
5364            posref="TL TL" />
5365     <group id="content"
5366            child_resize_h="true"
5367            child_resize_hmargin="10">
5368       <!-- Description -->
5369       <group id="inside"
5370              sizeref="w"
5371              w="-6"
5372              posref="TL TL"
5373              y="-8"
5374              child_resize_h="true">
5375         <group id="limited_h"
5376                posref="TL TL"
5377                x="0"
5378                y="0"
5379                sizeref="w"
5380                w="0"
5381                child_resize_h="true"
5382                child_resize_hmargin="6"
5383                max_h="500">
5384           <view type="text"
5385                 id="text"
5386                 posref="MM MM"
5387                 x="0"
5388                 y="0"
5389                 color="255 255 255 255"
5390                 fontsize="10"
5391                 shadow="true"
5392                 multi_line="true"
5393                 multi_line_space="0"
5394                 global_color="false" />
5395         </group>
5396       </group>
5397       <!-- Choice -->
5398       <ctrl style="button_ok"
5399             id="ok"
5400             posref="BM TM"
5401             x="0"
5402             y="-8"
5403             posparent="inside"
5404             onclick_l="hide:server_message_box"
5405             hardtext="uittOK" />
5406     </group>
5407   </group>
5408   <tree node="server_message_box" />
5409   <!-- ********************* -->
5410   <!-- *  ITEM/BRICK HELP  * -->
5411   <!-- ********************* -->
5412   <!-- Max Help opened. "Infinity" -->
5413   <define id="MAX_HELP_WINDOW"
5414           value="8" />
5415   <!-- Variables for Sheet Help Widget -->
5416   <variable entry="UI:glob_var:help:$i:SHEET"
5417             type="sint32"
5418             value="0"
5419             size="%MAX_HELP_WINDOW" />
5420   <variable entry="UI:glob_var:help:$i:QUALITY"
5421             type="sint32"
5422             value="0"
5423             size="%MAX_HELP_WINDOW" />
5424   <variable entry="UI:glob_var:help:$i:QUANTITY"
5425             type="sint32"
5426             value="0"
5427             size="%MAX_HELP_WINDOW" />
5428   <variable entry="UI:glob_var:help:$i:SLOT_TYPE"
5429             type="sint32"
5430             value="0"
5431             size="%MAX_HELP_WINDOW" />
5432   <variable entry="UI:glob_var:help:$i:USER_COLOR"
5433             type="sint32"
5434             value="0"
5435             size="%MAX_HELP_WINDOW" />
5436   <variable entry="UI:glob_var:help:$i:NAMEID"
5437             type="sint32"
5438             value="0"
5439             size="%MAX_HELP_WINDOW" />
5440   <variable entry="UI:glob_var:help:$i:INFO_VERSION"
5441             type="sint32"
5442             value="0"
5443             size="%MAX_HELP_WINDOW" />
5444   <variable entry="UI:glob_var:help:$i:ENCHANT"
5445             type="sint32"
5446             value="0"
5447             size="%MAX_HELP_WINDOW" />
5448   <variable entry="UI:glob_var:help:$i:RM_CLASS_TYPE"
5449             type="sint32"
5450             value="0"
5451             size="%MAX_HELP_WINDOW" />
5452   <variable entry="UI:glob_var:help:$i:RM_FABER_STAT_TYPE"
5453             type="sint32"
5454             value="0"
5455             size="%MAX_HELP_WINDOW" />
5456   <variable entry="UI:glob_var:help:$i:PREREQUISIT_VALID"
5457             type="sint32"
5458             value="0"
5459             size="%MAX_HELP_WINDOW" />
5460   <!-- Variables for Sheet Help Bricks Widget -->
5461   <template name="help_def_bricks"
5462             index="">
5463     <variable entry="UI:glob_var:help:$i:BRICKS:#index:SHEET"
5464               type="sint32"
5465               value="0"
5466               size="%MAX_HELP_WINDOW" />
5467   </template>
5468   <vector template="help_def_bricks"
5469           index="$i"
5470           _size="64" />
5471   <!-- Same for requirement Bricks -->
5472   <template name="help_def_req_bricks"
5473             index="">
5474     <variable entry="UI:glob_var:help:$i:REQ_BRICKS:#index:SHEET"
5475               type="sint32"
5476               value="0"
5477               size="%MAX_HELP_WINDOW" />
5478     <variable entry="UI:glob_var:help:$i:REQ_BRICKS:#index:LOCKED"
5479               type="sint32"
5480               value="0"
5481               size="%MAX_HELP_WINDOW" />
5482   </template>
5483   <vector template="help_def_req_bricks"
5484           index="$i"
5485           _size="64" />
5486   <!-- Same for item list -->
5487   <template name="help_def_items"
5488             index="">
5489     <variable entry="UI:glob_var:help:$i:BUILD_ITEMS:#index:SHEET"
5490               type="sint32"
5491               value="0"
5492               size="%MAX_HELP_WINDOW" />
5493     <variable entry="UI:glob_var:help:$i:BUILD_ITEMS:#index:QUALITY"
5494               type="sint32"
5495               value="0"
5496               size="%MAX_HELP_WINDOW" />
5497     <variable entry="UI:glob_var:help:$i:BUILD_ITEMS:#index:QUANTITY"
5498               type="sint32"
5499               value="0"
5500               size="%MAX_HELP_WINDOW" />
5501     <variable entry="UI:glob_var:help:$i:BUILD_ITEMS:#index:SLOT_TYPE"
5502               type="sint32"
5503               value="0"
5504               size="%MAX_HELP_WINDOW" />
5505     <variable entry="UI:glob_var:help:$i:BUILD_ITEMS:#index:USER_COLOR"
5506               type="sint32"
5507               value="0"
5508               size="%MAX_HELP_WINDOW" />
5509     <variable entry="UI:glob_var:help:$i:BUILD_ITEMS:#index:NAMEID"
5510               type="sint32"
5511               value="0"
5512               size="%MAX_HELP_WINDOW" />
5513     <variable entry="UI:glob_var:help:$i:BUILD_ITEMS:#index:INFO_VERSION"
5514               type="sint32"
5515               value="0"
5516               size="%MAX_HELP_WINDOW" />
5517     <variable entry="UI:glob_var:help:$i:BUILD_ITEMS:#index:ENCHANT"
5518               type="sint32"
5519               value="0"
5520               size="%MAX_HELP_WINDOW" />
5521     <variable entry="UI:glob_var:help:$i:BUILD_ITEMS:#index:RM_CLASS_TYPE"
5522               type="sint32"
5523               value="0"
5524               size="%MAX_HELP_WINDOW" />
5525     <variable entry="UI:glob_var:help:$i:BUILD_ITEMS:#index:RM_FABER_STAT_TYPE"
5526               type="sint32"
5527               value="0"
5528               size="%MAX_HELP_WINDOW" />
5529     <variable entry="UI:glob_var:help:$i:BUILD_ITEMS:#index:PREREQUISIT_VALID"
5530               type="sint32"
5531               value="0"
5532               size="%MAX_HELP_WINDOW" />
5533   </template>
5534   <vector template="help_def_items"
5535           index="$i"
5536           _size="64" />
5537   <!-- Variables for Sheet Help: Mps -->
5538   <variable entry="UI:glob_var:help:$i:MP_ITEM_PART_CHOICE"
5539             type="sint32"
5540             value="0"
5541             size="%MAX_HELP_WINDOW" />
5542   <!-- Stat Craft Mp template -->
5543   <define id="MAX_STAT_MP_CRAFT"
5544           value="20" />
5545   <template name="template_mp_stat"
5546             id=""
5547             x="0"
5548             y="-2"
5549             posparent="text"
5550             posref="">
5551     <group id="#id"
5552            posparent="#posparent"
5553            posref="#posref"
5554            x="#x"
5555            y="#y"
5556            w="250"
5557            h="16"
5558            active="false">
5559       <view type="text"
5560             id="text"
5561             line_maxw="180"
5562             posref="ML ML"
5563             over_extend_view_text="true" />
5564       <view type="bar"
5565             id="bar"
5566             posref="MR MR"
5567             mini="true"
5568             value="0"
5569             range="100" />
5570     </group>
5571   </template>
5572   <!-- Template for MP statistics (used in info and in botchat validation) -->
5573   <template name="template_info_mp_stats"
5574             id=""
5575             posparent=""
5576             dbcombo=""
5577             cb_handler=""
5578             cb_params="">
5579     <group id="mp_stats"
5580            sizeparent="parent"
5581            sizeref="w"
5582            w="-12"
5583            child_resize_h="true"
5584            child_resize_hmargin="8"
5585            posparent="#posparent"
5586            posref="BL TL"
5587            x="0"
5588            y="0">
5589       <!-- main combo to select the item part to watch -->
5590       <group type="combo_box"
5591              id="item_part_choice"
5592              w="200"
5593              h="20"
5594              value="#dbcombo"
5595              posref="TM TM"
5596              x="0"
5597              y="-4">
5598         <instance template="combo_box_def1" />
5599       </group>
5600       <link expr="@#dbcombo"
5601             action="#cb_handler"
5602             params="#cb_params" />
5603       <!-- The item part info Icon -->
5604       <view type="bitmap"
5605             id="icon"
5606             posparent="item_part_choice"
5607             posref="ML MR"
5608             scale="true"
5609             x="-2"
5610             y="0"
5611             w="24"
5612             h="24"
5613             global_color="false" />
5614       <!-- header text for this item part -->
5615       <view type="text"
5616             id="text"
5617             multi_line="true"
5618             multi_line_space="0"
5619             posref="TL TL"
5620             x="0"
5621             y="-32" />
5622       <!-- stats -->
5623       <vector template="template_mp_stat"
5624               id="stat$i"
5625               _size="%MAX_STAT_MP_CRAFT"
5626               _firstpos="BL TL"
5627               _xfirst="0"
5628               _yfirst="-6"
5629               _nextpos="BL TL" />
5630     </group>
5631   </template>
5632   <!-- There can be 2 list of bricks in the Action Help: phrase descritopn, and Brick requirements. (Used in info and botchat validation) -->
5633   <template name="template_info_list_brick"
5634             type=""
5635             id=""
5636             posparent=""
5637             param_deltax=""
5638             force_keep=""
5639             brickdb=""
5640             sizeref="w"
5641             child_resize_w="false"
5642             child_resize_wmargin="0"
5643             line_maxw="170"
5644             multi_line_maxw_only="false" 
5645             xcost="215"
5646             auto_grayed="false"
5647             global_color="true">
5648     <group type="#type"
5649            id="#id"
5650            sizeparent="parent"
5651            sizeref="#sizeref"
5652            w="-12"
5653            child_resize_w="#child_resize_w"
5654            child_resize_wmargin="#child_resize_wmargin"
5655            child_resize_h="true"
5656            child_resize_hmargin="8"
5657            posparent="#posparent"
5658            posref="BL TL"
5659            x="0"
5660            y="0"
5661            xitem="2"
5662            yitem="-2"
5663            xtext="32"
5664            ytext="-2"
5665            xcost="#xcost"
5666            ycost="-8"
5667            param_deltax="#param_deltax"
5668            hspace="4"
5669            array="false"
5670            value="#brickdb"
5671            selection="false"
5672            auto_grayed="#auto_grayed"
5673            gray_text_with_ctrl="#auto_grayed"
5674            dragable="false"
5675            nature="sbrick"
5676            brick_over="false"
5677            onclick_r="open_sbrick_help"
5678            params_r="force_keep=#force_keep"
5679            over_color="%bot_chat_sheet_selection_normal"
5680            over_col_pushed="%bot_chat_sheet_selection_pushed"
5681            over_col_over="%bot_chat_sheet_selection_over"
5682            color="255 255 255 255"
5683            global_color="#global_color"
5684            fontsize="8"
5685            shadow="true"
5686            multi_line="true"
5687            multi_line_maxw_only="#multi_line_maxw_only"
5688            multi_line_space="0"
5689            line_maxw="#line_maxw">
5690       <!-- the scroll -->
5691       <ctrl style="skin_scroll"
5692             id="scroll_row"
5693             posref="TL TL"
5694             y="-2" />
5695       <!-- the group to scroll NO SCROLL (caller scroll) -->
5696       <group id="list"
5697              sizeref="#sizeref"
5698              child_resize_w="#child_resize_w"
5699              posref="TL TL"
5700              max_h="10000"
5701              x="8"
5702              y="0"
5703              w="-8"
5704              h="0"
5705              global_color="#global_color" />
5706     </group>
5707   </template>
5708   <!-- There can be 1 list of items: items built by a buuilding  -->
5709   <template name="template_info_list_item"
5710             type=""
5711             id=""
5712             posparent=""
5713             force_keep=""
5714             itemdb=""
5715             auto_grayed="false">
5716     <group type="#type"
5717            id="#id"
5718            sizeparent="parent"
5719            sizeref="w"
5720            w="-12"
5721            child_resize_h="true"
5722            child_resize_hmargin="8"
5723            posparent="#posparent"
5724            posref="BL TL"
5725            x="0"
5726            y="0"
5727            xitem="2"
5728            yitem="-2"
5729            xtext="48"
5730            ytext="-2"
5731            hspace="4"
5732            array="false"
5733            value="#itemdb"
5734            selection="false"
5735            auto_grayed="#auto_grayed"
5736            gray_text_with_ctrl="#auto_grayed"
5737            use_quantity="false"
5738            dragable="false"
5739            nature="item"
5740            onclick_r="open_item_help"
5741            params_r="force_keep=#force_keep"
5742            over_color="%bot_chat_sheet_selection_normal"
5743            over_col_pushed="%bot_chat_sheet_selection_pushed"
5744            over_col_over="%bot_chat_sheet_selection_over"
5745            color="255 255 255 255"
5746            fontsize="8"
5747            shadow="true"
5748            multi_line="true"
5749            multi_line_space="0"
5750            line_maxw="150">
5751       <!-- the scroll -->
5752       <ctrl style="skin_scroll"
5753             id="scroll_row"
5754             posref="TL TL"
5755             y="-2" />
5756       <!-- the group to scroll NO SCROLL (caller scroll) -->
5757       <group id="list"
5758              sizeref="w"
5759              posref="TL TL"
5760              max_h="10000"
5761              x="8"
5762              y="0"
5763              w="-8"
5764              h="0" />
5765     </group>
5766   </template>
5767   <!-- template for mission requesite -->
5768   <template name="template_mission_prereq"
5769             id=""
5770             nb=""
5771             posparent=""
5772             posref=""
5773             x="0"
5774             y="0">
5775     <view type="text"
5776           id="text_#nb"
5777           multi_line="false"
5778           posparent="#posparent"
5779           posref="BL TR" />
5780     <view type="text_id"
5781           id="#id"
5782           posparent="#posparent"
5783           multi_line="true"
5784           multi_line_space="0"
5785           posref="BL TL" />
5786   </template>
5787   <proc id="active_sheet_help">
5788     <action handler="set"
5789             params="target_property=ui:interface:@0:content:scroll_text:text_list:char3d:scene:char:anim|value=0" />
5790     <action handler="set"
5791             params="target_property=ui:interface:@0:content:scroll_text:text_list:char3d:scene:camface:posz|value=add(0.1,getprop('ui:interface:@0:content:scroll_text:text_list:char3d:scene:char:headz'))" />
5792     <action handler="set"
5793             params="target_property=ui:interface:@0:content:scroll_text:text_list:char3d:scene:camface:tgtz|value=add(0.16,getprop('ui:interface:@0:content:scroll_text:text_list:char3d:scene:char:headz'))" />
5794   </proc>
5795   <!-- The Sheet (item/brick) Help Widget -->
5796   <!-- if you change w="296", change also the line_maxw of id="text" below -->
5797   <template name="sheet_help"
5798             id=""
5799             index="">
5800     <group type="container"
5801            id="#id"
5802            w="296"
5803            title_delta_max_w="-80"
5804            h="80"
5805            title=""
5806            global_color="false"
5807            options="layer0_info"
5808            opened="true"
5809            openable="false"
5810            movable="true"
5811            resizer="false"
5812            win_priority="%win_priority_high"
5813            active="false"
5814            savable="false"
5815            escapable="true"
5816            header_color="UI:SAVE:WIN:COLORS:INFOS"
5817            on_active="proc"
5818            on_active_params="active_sheet_help|#id"
5819            on_deactive="on_close_help"
5820            on_deactive_params="#index"
5821            y="700">
5822       <group id="header_closed"
5823              x="0"
5824              y="0"
5825              w="0"
5826              h="16"
5827              posref="TL TL"></group>
5828       <group id="header_opened"
5829              x="0"
5830              y="0"
5831              w="0"
5832              h="16"
5833              posref="TL TL">
5834         <!-- The INFO icon
5835                         <view type="bitmap" id="ico" texture="W_user_info.tga" posref="ML ML" x="0" y="0" global_color="false" />
5836                         -->
5837         <!-- The "PUNAISE" button -->
5838         <ctrl type="button"
5839               button_type="toggle_button"
5840               id="keep"
5841               posref="MR MR"
5842               x="-16"
5843               y="0"
5844               tx_normal="pin_off.tga"
5845               tx_pushed="pin_on.tga"
5846               tx_over="W_button_16_over.tga"
5847               global_color_normal="false"
5848               global_color_pushed="false"
5849               global_color_over="false"
5850               tooltip="uittKeepInfo"
5851               onclick_l="help_keep"
5852               params_l="#index" />
5853         <!--            
5854                         <ctrl style="text_button_16" button_type="toggle_button" id="keep" posref="MR MR" x="-16" y="1" wmargin="8" hardtext="uiKeepInfoButton" tooltip="uittKeepInfo" onclick_l="help_keep" params_l="#index" />
5855                         -->
5856       </group>
5857       <group id="content"
5858              x="0"
5859              y="0"
5860              w="0"
5861              child_resize_h="true"
5862              child_resize_hmargin="6"
5863              posref="TL TL">
5864         <!-- Item is in auto mode -->
5865         <ctrl type="sheet"
5866               id="ctrl_slot"
5867               use_slot_type_db_entry="true"
5868               nature="auto"
5869               value="UI:glob_var:help:#index"
5870               posref="TR TR"
5871               x="-4"
5872               y="-10"
5873               use_quantity="true" />
5874         <view type="text_id"
5875               id="creator"
5876               posparent="ctrl_slot"
5877               posref="BR TR"
5878               y="-2"
5879               dynamic_string="false"
5880               fontsize="12" />
5881         <view type="text"
5882               id="creator_header"
5883               posparent="creator"
5884               posref="ML MR"
5885               fontsize="12"
5886               hardtext="uiCreatorHeader"
5887               active="false" />
5888         <!-- the scroll text (with only one text) -->
5889         <group id="scroll_text"
5890                sizeref="w"
5891                posref="TL TL"
5892                w="0"
5893                y="-6"
5894                child_resize_h="true"
5895                child_resize_hmargin="8">
5896           <instance template="inner_thin_border_group" />
5897           <group id="minh"
5898                  posref="TL TL"
5899                  x="0"
5900                  y="0"
5901                  w="1"
5902                  h="42" />
5903           <group id="text_list"
5904                  posref="TL TL"
5905                  x="16"
5906                  y="-4"
5907                  sizeref="w"
5908                  w="-16"
5909                  child_resize_h="true"
5910                  max_h="392">
5911             <!-- the line_maxw is set up so the text does not override the Ctrl Sheet on the right (or not so much...) -->
5912             <view type="text"
5913                   id="text"
5914                   multi_line="true"
5915                   line_maxw="226"
5916                   multi_line_space="0"
5917                   posref="TL TL" />
5918             <!-- for item, pacts, .. -->
5919             <!-- For Phrases and title requirement only. 2 lists and a header for the second list -->
5920             <instance template="template_info_list_brick"
5921                       type="list_sheet_text"
5922                       id="list_brick_requirement"
5923                       force_keep="#index"
5924                       brickdb="UI:glob_var:help:#index:REQ_BRICKS"
5925                       posparent="text"
5926                       param_deltax="0"
5927                       auto_grayed="true" />
5928             <view type="text"
5929                   id="list_brick_header"
5930                   multi_line="true"
5931                   multi_line_space="0"
5932                   posparent="list_brick_requirement"
5933                   posref="BL TL"
5934                   y="-12" />
5935             <instance template="template_info_list_brick"
5936                       type="list_sheet_compo_brick"
5937                       id="list_brick"
5938                       force_keep="#index"
5939                       brickdb="UI:glob_var:help:#index:BRICKS"
5940                       posparent="list_brick_header"
5941                       param_deltax="13"
5942                       auto_grayed="false" />
5943             <!-- For raw materials only. group to display stats -->
5944             <instance template="template_info_mp_stats"
5945                       cb_handler="item_help_mp_change_item_part"
5946                       cb_params="#index"
5947                       posparent="text"
5948                       dbcombo="UI:glob_var:help:#index:MP_ITEM_PART_CHOICE" />
5949             <!-- For outpost building, list of items this building build -->
5950             <instance template="template_info_list_item"
5951                       type="list_sheet_text"
5952                       id="list_item"
5953                       force_keep="#index"
5954                       itemdb="UI:glob_var:help:#index:BUILD_ITEMS"
5955                       posparent="text" />
5956             <!-- For Cosmetic only 3D preview -->
5957             <group id="char3d"
5958                    posref="TL TL"
5959                    sizeref="w"
5960                    w="-16"
5961                    h="304"
5962                    x="0"
5963                    y="-46">
5964               <instance template="box_widget"
5965                         id="back"
5966                         posref="TL TL"
5967                         sizeref="wh"
5968                         w="0"
5969                         h="0"
5970                         x="0"
5971                         y="0"
5972                         inherit_gc_alpha="true" />
5973               <view type="bitmap"
5974                     id="black"
5975                     posparent="back"
5976                     posref="MM MM"
5977                     sizeref="wh"
5978                     w="-2"
5979                     h="-2"
5980                     inherit_gc_alpha="true"
5981                     scale="true"
5982                     texture="blank.tga"
5983                     color="0 0 0 80" />
5984               <scene3d id="scene"
5985                        sizeref="wh"
5986                        w="-2"
5987                        h="-2"
5988                        posparent="back"
5989                        posref="TL TL"
5990                        x="1"
5991                        y="-1"
5992                        curcam="camface"
5993                        curcs="env"
5994                        render_layer="-2"
5995                        user_interaction="true"
5996                        rotz_factor="0.017"
5997                        roty_factor="0.005"
5998                        roty_limit_min="-20"
5999                        roty_limit_max="15"
6000                        dist_factor="0.005"
6001                        dist_limit_min="4.0"
6002                        dist_limit_max="6.0"
6003                        ambient="128 96 64"
6004                        sun_ambient="0 0 0"
6005                        sun_diffuse="255 255 196"
6006                        sun_specular="0 0 0"
6007                        sun_direction="-1.0 1.0 -1.0">
6008                 <character3d id="char"
6009                              dblink="UI:TEMP:CHAR3D"
6010                              pos="0.0 0.0 -1.75"
6011                              rot="0.0 0.0 0.0" />
6012                 <camera id="camface"
6013                         fov="5"
6014                         pos="0.0 -5.0 0.0"
6015                         target="0.0 0.0 0"
6016                         roll="0" />
6017                 <light id="back"
6018                        pos="0.0 28.2 1.6"
6019                        color="96 64 32"
6020                        near="1.0"
6021                        far="4.0" />
6022                 <light id="lgt"
6023                        pos="0.0 25.3 2.48"
6024                        color="255 255 255"
6025                        near="1.0"
6026                        far="4.0" />
6027               </scene3d>
6028             </group>
6029             
6030             <!-- Item preview 3D window -->
6031             
6032             <group id="item_preview"
6033                    posref="TL TL"
6034                    sizeref="w"
6035                    w="200"
6036                    h="300"
6037                    x="0"
6038                    y="-60">
6039               
6040               <scene3d id="scene_item_preview" 
6041                        sizeref="wh"
6042                        w="-2"
6043                        h="-2"
6044                        posref="TL TL" 
6045                        x="1"
6046                        curcam="cam_item_preview"
6047                        user_interaction="true"
6048                        ambient="128 96 64"
6049                        sun_ambient="70 70 70"
6050                        sun_diffuse="255 255 196"
6051                        sun_specular="0 0 0"
6052                        sun_direction="-1.0 1.0 -1.0"
6053                        rotz_factor="0.017"
6054                        roty_factor="0.005"
6055                        dist_factor="0.2"
6056                        camz="10"
6057                        dist_limit_min="20.0"
6058                        dist_limit_max="80.0" >
6060                 <character3d id="char"
6061                              dblink="UI:TEMP:CHAR3D"
6062                              pos="0.0 0.0 -1.8"
6063                              rot="0.0 0.0 -60.0"
6064                              anim="1" />
6065                 <camera id="cam_item_preview"
6066                         fov="5" 
6067                         pos="0.0 -40.0 0.0"
6068                         target="0.0 0.0 -0.85" 
6069                         roll="0" />
6071                 <light id="back" pos="0.0 28.2 1.6" color="96 64 32" near="1.0" far="4.0" />
6072                 <light id="lgt" pos="0.0 25.3 2.48" color="255 255 255" near="1.0" far="4.0" />
6074               </scene3d>
6075               
6076             </group>
6077             
6078           </group>          
6079           <ctrl style="skin_scroll"
6080                 id="sv"
6081                 posref="TL TL"
6082                 x="4"
6083                 y="-4"
6084                 target_stepy="14"
6085                 target="text_list" />
6086         </group>
6087         <!-- the scroll text id (use for missions) -->
6088         <group id="scroll_text_id"
6089                posref="TL TL"
6090                w="0"
6091                y="-6"
6092                sizeref="w"
6093                child_resize_h="true"
6094                child_resize_hmargin="8">
6095           <instance template="inner_thin_border_group" />
6096           <group id="minh"
6097                  posref="TL TL"
6098                  x="0"
6099                  y="0"
6100                  w="1"
6101                  h="42" />
6102           <group id="text_list"
6103                  posref="TL TL"
6104                  x="12"
6105                  y="-4"
6106                  sizeref="w"
6107                  w="-64"
6108                  child_resize_h="true"
6109                  max_h="392">
6110             <view type="text"
6111                   id="text_title"
6112                   hardtext="uiMissionTitle"
6113                   multi_line="false"
6114                   posref="TL TL" />
6115             <view type="text_id"
6116                   id="text_title_id"
6117                   posparent="text_title"
6118                   multi_line="true"
6119                   multi_line_space="0"
6120                   x="10"
6121                   posref="BL TL" />
6122             <view type="text"
6123                   id="text_mission_description"
6124                   posparent="text_title_id"
6125                   x="-10"
6126                   hardtext="uiMissionDesc"
6127                   multi_line="false"
6128                   posref="BL TL" />
6129             <view type="text_id_formated"
6130                   id="text_id"
6131                   posparent="text_mission_description"
6132                   multi_line="true"
6133                   multi_line_space="0"
6134                   x="10"
6135                   posref="BL TL" />
6136             <!-- for item, pacts, .. -->
6137             <view type="text"
6138                   id="text_mission_prereq"
6139                   hardtext="uiMissionPrereq"
6140                   multi_line="false"
6141                   posparent="text_id"
6142                   x="-10"
6143                   posref="BL TL" />
6144             <!-- must do the first in special way -->
6145             <view type="text"
6146                   id="text_1"
6147                   multi_line="false"
6148                   posparent="text_mission_prereq"
6149                   posref="BL TL"
6150                   x="5" />
6151             <view type="text_id"
6152                   id="text_id_prereq_1"
6153                   posparent="text_1"
6154                   multi_line="true"
6155                   multi_line_space="0"
6156                   posref="TR TL" />
6157             <!-- next are relative each others -->
6158             <vector template="template_mission_prereq"
6159                     _size="15"
6160                     _firstindex="2"
6161                     id="text_id_prereq_$i"
6162                     nb="$i"
6163                     posparent="text_id_prereq_1"
6164                     _firstpos="BL TL"
6165                     _nextpos="BL TL" />
6166           </group>
6167           <ctrl style="skin_scroll"
6168                 id="sv"
6169                 posref="TL TL"
6170                 x="4"
6171                 y="-4"
6172                 target="text_list" />
6173         </group>
6174       </group>
6175     </group>
6176     <tree node="#id" />
6177   </template>
6178   <!-- Instances -->
6179   <vector template="sheet_help"
6180           _size="%MAX_HELP_WINDOW"
6181           _firstpos=""
6182           _nextpos=""
6183           index="$i"
6184           id="sheet_help$i" />
6185   <!-- ***************** -->
6186   <!-- *  COMMON RULES * -->
6187   <!-- ***************** -->
6188   <define id="is_team_present"
6189           value="or(ne(@SERVER:GROUP:0:PRESENT,0),ne(@SERVER:GROUP:1:PRESENT,0),ne(@SERVER:GROUP:2:PRESENT,0),ne(@SERVER:GROUP:3:PRESENT,0),ne(@SERVER:GROUP:4:PRESENT,0),ne(@SERVER:GROUP:5:PRESENT,0),ne(@SERVER:GROUP:6:PRESENT,0),ne(@SERVER:GROUP:7:PRESENT,0))" />
6190   <define id="is_guild_present"
6191           value="ne(@SERVER:GUILD:NAME,0)" />
6192   <!-- ****************************** -->
6193   <!-- *  INVENTORIES COMMON STUFF  * -->
6194   <!-- ****************************** -->
6195   <!-- style of all free containers -->
6196   <style style="inv_container"
6197          type="container"
6198          w="350"
6199          h="310"
6200          resizer="true"
6201          pop_min_w="350"
6202          pop_min_h="110"
6203          pop_max_w="920"
6204          pop_max_h="1600"
6205          movable="true"
6206          active="false"
6207          opened="true"
6208          openable="false"
6209          global_color="false"
6210          global_color_over="true" />
6211   <style style="inv_container_guild"
6212          type="container"
6213          w="336"
6214          h="310"
6215          resizer="true"
6216          pop_min_w="336"
6217          pop_min_h="110"
6218          pop_max_w="920"
6219          pop_max_h="1600"
6220          movable="true"
6221          active="false"
6222          opened="true"
6223          openable="false"
6224          global_color="false"
6225          global_color_over="true" />
6226   <!-- template for the bulk and the weight -->
6227   <template name="tinv_nbslots_bulk_weight"
6228             id=""
6229             inv_branch_nb="256"
6230             inv_branch=""
6231             inv_bulk_max=""
6232             posparent="parent"
6233             posref="TL TL"
6234             x="0"
6235             y="0">
6236     <group id="#id"
6237            sizeref="w"
6238            h="16"
6239            posref="#posref">
6240       <group id="bulk_weight"
6241              w="128"
6242              h="16"
6243              posref="BR BR"
6244              posparent="#posparent">
6245         <view type="bitmap"
6246               id="weight"
6247               posref="MR MR"
6248               x="0"
6249               texture="W_weight.tga"
6250               global_color="false" />
6251         <view type="text"
6252               id="weight_txt"
6253               posparent="weight"
6254               posref="ML MR"
6255               y="-2"
6256               x="-2"
6257               color="255 255 255 255"
6258               global_color="false"
6259               shadow="true"
6260               fontsize="10" />
6261         <instance template="text_tt"
6262                   tooltip="uittInventoryWeight"
6263                   posparent="weight_txt" />
6264         <link expr="identity(getItemsWeight('#inv_branch',0,#inv_branch_nb),@#inv_branch)"
6265               target="weight_txt:hardtext" />
6266         <view type="bar"
6267               id="encombrement"
6268               mini="true"
6269               posref="MR MR"
6270               x="-48"
6271               range="#inv_bulk_max"
6272               color="%bulk_color" />
6273         <ctrl type="tooltip"
6274               id="encombrement_tt"
6275               posparent="encombrement"
6276               sizeref="wh"
6277               w="0"
6278               h="0"
6279               on_tooltip="get_tt_bulk"
6280               on_tooltip_params="dbbranch=#inv_branch|dbmax=#inv_bulk_max" />
6281         <link expr="identity(getItemsBulk('#inv_branch',0,#inv_branch_nb),@#inv_branch)"
6282               target="encombrement:value" />
6283       </group>
6284       <view type="text"
6285             id="slots_nb"
6286             posparent="bulk_weight"
6287             posref="BL BR"
6288             color="255 255 255 255"
6289             global_color="false"
6290             shadow="true"
6291             fontsize="10" />
6292       <ctrl type="tooltip"
6293             id="slots_tt"
6294             posparent="slots_nb"
6295             sizeref="wh"
6296             tooltip="uittInvSlots" />
6297       <link expr="identity(getInvSlotCounts('#inv_branch'),@#inv_branch)"
6298             target="slots_nb:hardtext" />
6299       <!-- uses identity(x,@branch) to add an observer on branch -->
6300     </group>
6301   </template>
6302   <!-- onClickR on a filter -->
6303   <proc id="pinv_item_filter">
6304     <!-- Reset all filter first -->
6305     <action handler="set"
6306             params="dblink=UI:SAVE:@0:FILTER_TP|value=0" />
6307     <action handler="set"
6308             params="dblink=UI:SAVE:@0:FILTER_MISSMP|value=0" />
6309     <action handler="set"
6310             params="dblink=UI:SAVE:@0:FILTER_MP|value=0" />
6311     <action handler="set"
6312             params="dblink=UI:SAVE:@0:FILTER_TOOL|value=0" />
6313     <action handler="set"
6314             params="dblink=UI:SAVE:@0:FILTER_WEAPON|value=0" />
6315     <action handler="set"
6316             params="dblink=UI:SAVE:@0:FILTER_ARMOR|value=0" />
6317     <!-- Set the one selected -->
6318     <action handler="set"
6319             params="dblink=@1|value=1" />
6320   </proc>
6321   <!-- template for the list of items FILTERS -->
6322   <template name="tinv_item_list_filter"
6323             id=""
6324             x="0"
6325             y="0"
6326             posref="BL BL"
6327             dblink=""
6328             texture=""
6329             tooltip=""
6330             inv_type="">
6331     <ctrl type="button"
6332           id="but_#id"
6333           button_type="toggle_button"
6334           posref="#posref"
6335           x="#x"
6336           y="#y"
6337           tx_normal="w_button_filter_off.tga"
6338           tx_pushed="w_button_filter_on.tga"
6339           tx_over=""
6340           onclick_l="set"
6341           params_l="dblink=#dblink|value=not(@#dblink)"
6342           onclick_r="proc"
6343           params_r="pinv_item_filter|#inv_type|#dblink"
6344           global_color_pushed="true"
6345           tooltip="#tooltip" />
6346     <view type="bitmap"
6347           id="bit_#id"
6348           posref="TL TL"
6349           posparent="but_#id"
6350           texture="#texture"
6351           global_color="false" />
6352     <link expr="@#dblink"
6353           target="but_#id:pushed" />
6354   </template>
6355   <!-- template for the mode 'icon' or 'text' (no right click) -->
6356   <template name="tinv_item_list_icon_swap"
6357             id=""
6358             x="0"
6359             y="0"
6360             posref="BL BL"
6361             dblink=""
6362             texture=""
6363             tooltip=""
6364             inv_type="">
6365     <ctrl type="button"
6366           id="but_#id"
6367           button_type="toggle_button"
6368           posref="#posref"
6369           x="#x"
6370           y="#y"
6371           tx_normal="w_button_filter_off.tga"
6372           tx_pushed="w_button_filter_on.tga"
6373           tx_over=""
6374           onclick_l="set"
6375           params_l="dblink=#dblink|value=not(@#dblink)"
6376           global_color_pushed="true"
6377           tooltip="#tooltip" />
6378     <view type="bitmap"
6379           id="bit_#id"
6380           posref="TL TL"
6381           posparent="but_#id"
6382           texture="#texture"
6383           global_color="false" />
6384     <link expr="@#dblink"
6385           target="but_#id:pushed" />
6386   </template>
6387   <!-- template for the list of items -->
6388   <template name="tinv_item_list"
6389             id=""
6390             animal_status=""
6391             inv_branch_nb="256"
6392             inv_branch=""
6393             inv_type=""
6394             posparent="parent"
6395             posref="TL TL"
6396             x="0"
6397             y="0"
6398             sizeparent="parent"
6399             sizeref="wh"
6400             w="0"
6401             h="0">
6402     <group id="#id"
6403            posparent="#posparent"
6404            posref="#posref"
6405            x="#x"
6406            y="#y"
6407            sizeparent="#sizeparent"
6408            sizeref="#sizeref"
6409            w="#w"
6410            h="#h">
6411       <!-- Bag Type -->
6412       <!-- Bags : icon list -->
6413       <group type="list_icon_bag"
6414              id="bag_icons"
6415              array="false"
6416              sizeref="wh"
6417              w="0"
6418              h="-24"
6419              posref="TL TL"
6420              x="0"
6421              y="0"
6422              child_resize_h="false"
6423              value="#inv_branch"
6424              maxitem="#inv_branch_nb"
6425              inv_type="#inv_type"
6426              sort_type="UI:SAVE:#inv_type:SORT_TYPE"
6427              filter_armor="UI:SAVE:#inv_type:FILTER_ARMOR"
6428              filter_weapon="UI:SAVE:#inv_type:FILTER_WEAPON"
6429              filter_tool="UI:SAVE:#inv_type:FILTER_TOOL"
6430              filter_mp="UI:SAVE:#inv_type:FILTER_MP"
6431              filter_missmp="UI:SAVE:#inv_type:FILTER_MISSMP"
6432              filter_tp="UI:SAVE:#inv_type:FILTER_TP"
6433              wspace="2"
6434              hspace="2"
6435              startitem="0"
6436              selection_group="inventory_selection"
6437              auto_grayed="true"
6438              dragable="true"
6439              oncandrag="inv_can_drag"
6440              ondrag="inv_drag"
6441              params_drag="from_icon_list"
6442              oncandrop="inv_can_drop"
6443              ondrop="inv_drop"
6444              menu_r="ui:interface:item_menu_in_bag"
6445              instant_help="false"
6446              lmargin="10"
6447              rmargin="0"
6448              tmargin="1"
6449              bmargin="0"
6450              column_center="false"
6451              db_animal_status="#animal_status">
6452         <ctrl style="skin_scroll"
6453               id="scroll_row"
6454               posref="TL TL"
6455               target_stepy="44" />
6456       </group>
6457       <view type="bitmap"
6458             id="sep1"
6459             x="0"
6460             y="0"
6461             posparent="bag_icons"
6462             posref="BL TL"
6463             scale="true"
6464             h="2"
6465             sizeref="w"
6466             texture="W_line_hor.tga" />
6467       <link expr="eq(@UI:SAVE:#inv_type:ICON_LIST, 1)"
6468             target="bag_icons:active,sep1:active" />
6469       <!-- Bags : detailed list -->
6470       <group type="list_sheet_bag"
6471              id="bag_list"
6472              array="false"
6473              sizeref="wh"
6474              w="0"
6475              h="-34"
6476              posref="TL TL"
6477              x="0"
6478              y="-10"
6479              child_resize_h="false"
6480              value="#inv_branch"
6481              maxitem="#inv_branch_nb"
6482              inv_type="#inv_type"
6483              sort_type="UI:SAVE:#inv_type:SORT_TYPE"
6484              filter_armor="UI:SAVE:#inv_type:FILTER_ARMOR"
6485              filter_weapon="UI:SAVE:#inv_type:FILTER_WEAPON"
6486              filter_tool="UI:SAVE:#inv_type:FILTER_TOOL"
6487              filter_mp="UI:SAVE:#inv_type:FILTER_MP"
6488              filter_missmp="UI:SAVE:#inv_type:FILTER_MISSMP"
6489              filter_tp="UI:SAVE:#inv_type:FILTER_TP"
6490              hspace="2"
6491              xitem="2"
6492              yitem="-2"
6493              xtext="46"
6494              ytext="-2"
6495              selection_group="inventory_selection"
6496              selection="false"
6497              auto_grayed="true"
6498              dragable="true"
6499              oncandrag="inv_can_drag"
6500              ondrag="inv_drag"
6501              params_drag="from_text_list"
6502              oncandrop="inv_can_drop"
6503              ondrop="inv_drop"
6504              menu_r="ui:interface:item_menu_in_bag"
6505              instant_help="false"
6506              over_color="%bot_chat_sheet_selection_normal"
6507              over_col_pushed="%bot_chat_sheet_selection_pushed"
6508              over_col_over="%bot_chat_sheet_selection_over"
6509              color="255 255 255 255"
6510              fontsize="8"
6511              shadow="true"
6512              multi_line="true"
6513              multi_line_space="0"
6514              db_animal_status="#animal_status">
6515         <!-- the scroll -->
6516         <ctrl style="skin_scroll"
6517               id="scroll_row"
6518               posref="TL TL"
6519               target_stepy="44" />
6520         <!-- the group to scroll -->
6521         <group id="list"
6522                max_sizeref="h"
6523                max_sizeparent="parent"
6524                max_h="0"
6525                sizeref="w"
6526                posref="TL TL"
6527                x="8"
6528                y="0"
6529                w="-16" />
6530       </group>
6531       <view type="bitmap"
6532             id="sep2"
6533             x="0"
6534             y="0"
6535             posparent="bag_list"
6536             posref="BL TL"
6537             scale="true"
6538             h="2"
6539             sizeref="w"
6540             texture="W_line_hor.tga" />
6541       <link expr="eq(@UI:SAVE:#inv_type:ICON_LIST, 0)"
6542             target="bag_list:active,sep2:active" />
6543       <instance template="tinv_item_list_filter"
6544                 id="filter_tp"
6545                 x="-35"
6546                 y="1"
6547                 posref="BR BR"
6548                 inv_type="#inv_type"
6549                 dblink="UI:SAVE:#inv_type:FILTER_TP"
6550                 texture="filter_tp.tga"
6551                 tooltip="uittFilterTP" />
6552       <instance template="tinv_item_list_filter"
6553                 id="filter_missmp"
6554                 x="-60"
6555                 y="1"
6556                 posref="BR BR"
6557                 inv_type="#inv_type"
6558                 dblink="UI:SAVE:#inv_type:FILTER_MISSMP"
6559                 texture="filter_mission.tga"
6560                 tooltip="uittFilterMissMP" />
6561       <instance template="tinv_item_list_filter"
6562                 id="filter_mp"
6563                 x="-85"
6564                 y="1"
6565                 posref="BR BR"
6566                 inv_type="#inv_type"
6567                 dblink="UI:SAVE:#inv_type:FILTER_MP"
6568                 texture="filter_mps.tga"
6569                 tooltip="uittFilterMP" />
6570       <instance template="tinv_item_list_filter"
6571                 id="filter_tool"
6572                 x="-110"
6573                 y="1"
6574                 posref="BR BR"
6575                 inv_type="#inv_type"
6576                 dblink="UI:SAVE:#inv_type:FILTER_TOOL"
6577                 texture="filter_tools.tga"
6578                 tooltip="uittFilterTool" />
6579       <instance template="tinv_item_list_filter"
6580                 id="filter_weapon"
6581                 x="-135"
6582                 y="1"
6583                 posref="BR BR"
6584                 inv_type="#inv_type"
6585                 dblink="UI:SAVE:#inv_type:FILTER_WEAPON"
6586                 texture="filter_weapon.tga"
6587                 tooltip="uittFilterWeapon" />
6588       <instance template="tinv_item_list_filter"
6589                 id="filter_armor"
6590                 x="-160"
6591                 y="1"
6592                 posref="BR BR"
6593                 inv_type="#inv_type"
6594                 dblink="UI:SAVE:#inv_type:FILTER_ARMOR"
6595                 texture="filter_armor.tga"
6596                 tooltip="uittFilterArmor" />
6597       <!-- details -->
6598       <instance template="tinv_item_list_icon_swap"
6599                 id="detail"
6600                 x="-4"
6601                 y="1"
6602                 posref="BR BR"
6603                 dblink="UI:SAVE:#inv_type:ICON_LIST"
6604                 texture="details_on.tga"
6605                 tooltip="uittDetail" />
6606       <link expr="ifthenelse(@UI:SAVE:#inv_type:ICON_LIST, 'details_off.tga', 'details_on.tga')"
6607             target="bit_detail:texture" />
6608     </group>
6609   </template>
6610   <!-- Link to trig brick action message. don't play when 0 (avoid flying text at startup) -->
6611   <link expr="@SERVER:FLAGS:CRITICAL"
6612         cond="not(eq(@SERVER:FLAGS:CRITICAL,0))"
6613         action="entity_flying_text"
6614         params="text=uiCriticalHit|entity=0|color=255 255 0 255" />
6615   <link expr="@SERVER:FLAGS:PARRY"
6616         cond="not(eq(@SERVER:FLAGS:PARRY,0))"
6617         action="entity_flying_text"
6618         params="text=uiParry|entity=0|color=255 255 0 255" />
6619   <link expr="@SERVER:FLAGS:DODGE"
6620         cond="not(eq(@SERVER:FLAGS:DODGE,0))"
6621         action="entity_flying_text"
6622         params="text=uiDodge|entity=0|color=255 255 0 255" />
6623   <!-- ****************************** -->
6624   <!-- *                  CHECK BOX                 * -->
6625   <!-- ****************************** -->
6626   <!-- A checkbox: toggle button with a text, linked to a database -->
6627   <template name="check_box"
6628             id=""
6629             posparent="parent"
6630             posref="TL TL"
6631             x="0"
6632             y="0"
6633             w="0"
6634             h="16"
6635             fontsize="10"
6636             hardtext=""
6637             dblink=""
6638             tooltip=""
6639             global_color="true">
6640     <group id="#id"
6641            posparent="#posparent"
6642            posref="#posref"
6643            x="#x"
6644            y="#y"
6645            w="#w"
6646            h="#h"
6647            child_resize_w="true">
6648       <ctrl type="button"
6649             id="button"
6650             button_type="toggle_button"
6651             posref="ML ML"
6652             x="0"
6653             y="0"
6654             pushed="false"
6655             tx_normal="w_slot_on.tga"
6656             tx_pushed="w_opacity_on.tga"
6657             tx_over="w_slot_on.tga"
6658             color="255 255 255 255"
6659             col_pushed="255 255 255 255"
6660             col_over="255 255 255 0"
6661             onclick_l="set"
6662             params_l="dblink=#dblink|value=not(@#dblink)" />
6663       <link expr="@#dblink"
6664             target="button:pushed" />
6665       <view type="text"
6666             id="text"
6667             posparent="button"
6668             posref="MR ML"
6669             x="4"
6670             y="-3"
6671             color="255 255 255 255"
6672             fontsize="#fontsize"
6673             shadow="true"
6674             hardtext="#hardtext"
6675             global_color="#global_color" />
6676       <ctrl type="tooltip"
6677             id="tt"
6678             posref="TL TL"
6679             sizeref="wh"
6680             tooltip="#tooltip" />
6681     </group>
6682   </template>
6683   <!-- ***************************** -->
6684   <!-- *  HTML FORM SELECT WIDGET  * -->
6685   <!-- ***************************** -->
6686   <template name="html_form_select_widget"
6687             keep="true"
6688             id="select">
6689     <group type="combo_box"
6690            id="#id"
6691            w="100"
6692            x="0"
6693            y="0"
6694            child_resize_h="true"
6695            child_resize_hmargin="6"
6696            linked_to_db="false"
6697            posref="BL BL"
6698            on_change=""
6699            on_change_params="">
6700       <instance template="combo_box_def1" />
6701     </group>
6702   </template>
6703   <!-- ***************************** -->
6704   <!-- *  HTML TEXT BUTTON WIDGET  * -->
6705   <!-- ***************************** -->
6706   <template name="html_text_button"
6707             id=""
6708             text=""
6709             posparent="parent"
6710             posref="TL TL"
6711             onclick=""
6712             onclick_param=""
6713             x="0"
6714             y="0"
6715             keep="true"
6716             frozen="false">
6717     <group id="#id"
6718            posparent="#posparent"
6719            posref="#posref"
6720            child_resize_w="true"
6721            child_resize_h="true"
6722            x="#x"
6723            y="#y">
6724       <ctrl style="text_button_16"
6725             id="b"
6726             onclick_l="#onclick"
6727             params_l="#onclick_param"
6728             hardtext="#text"
6729             frozen="#frozen" />
6730     </group>
6731   </template>
6732   <template name="frozen_html_text_button"
6733             id=""
6734             text=""
6735             posparent="parent"
6736             posref="TL TL"
6737             onclick=""
6738             onclick_param=""
6739             x="0"
6740             y="0"
6741             keep="true">
6742     <group id="#id"
6743            posparent="#posparent"
6744            posref="#posref"
6745            child_resize_w="true"
6746            child_resize_h="true"
6747            x="#x"
6748            y="#y">
6749       <ctrl style="text_button_16"
6750             id="b"
6751             onclick_l="#onclick"
6752             params_l="#onclick_param"
6753             hardtext="#text"
6754             frozen="true" />
6755     </group>
6756   </template>
6757   <!-- horizontal label/edit box template -->
6758   <template name="h_label_edit_box"
6759             keep="true"
6760             active="true"
6761             id=""
6762             h="20"
6763             x="0"
6764             y="0"
6765             posparent=""
6766             posref=""
6767             hardtext=""
6768             w="87"
6769             w_label=""
6770             w_box="50"
6771             fontsize="12"
6772             max_num_chars="6"
6773             entry_type="text"
6774             multi_line="false"
6775             onenter="lua"
6776             params=""
6777             onchange="lua"
6778             onchange_params=""
6779             on_focus_lost="lua"
6780             on_focus_lost_params="">
6781     <group id="#id"
6782            active="#active"
6783            x="#x"
6784            y="#y"
6785            w="#w"
6786            h="#h"
6787            posparent="#posparent"
6788            posref="#posref">
6789       <!-- label -->
6790       <group id="label"
6791              w="#w_label"
6792              h="20"
6793              x="0"
6794              y="0"
6795              posref="TL TL"
6796              posparent="parent">
6797         <view type="text"
6798               id="name_text"
6799               posref="BL BL"
6800               x="0"
6801               y="0"
6802               color="255 255 255 255"
6803               global_color="true"
6804               fontsize="#fontsize"
6805               shadow="true"
6806               hardtext="#hardtext" />
6807       </group>
6808       <!-- edit box -->
6809       <group type="edit_box"
6810              id="edit_box_group"
6811              w="#w_box"
6812              h="#h"
6813              x="5"
6814              y="0"
6815              posparent="label"
6816              posref="TR TL"
6817              onenter="#onenter"
6818              params="#params"
6819              onchange="#onchange"
6820              onchange_params="#onchange_params"
6821              on_focus_lost="#on_focus_lost"
6822              on_focus_lost_params="#on_focus_lost_params"
6823              max_num_chars="#max_num_chars"
6824              prompt=""
6825              enter_loose_focus="true"
6826              entry_type="#entry_type"
6827              reset_focus_on_hide="true"
6828              menu_r="">
6829         <instance template="box_widget"
6830                   id="back_edit_box"
6831                   posref="TL TL"
6832                   sizeref="w"
6833                   h="#h" />
6834         <view type="text"
6835               id="edit_text"
6836               x="4"
6837               y="-5"
6838               posref="TL TL"
6839               multi_line="#multi_line"
6840               fontsize="10"
6841               shadow="true"
6842               hardtext=""
6843               global_color="false" />
6844       </group>
6845     </group>
6846   </template>
6847   <!-- the common children definitions of a combo box -->
6848   <!-- keep is true because this template is used in the teditcmd template -->
6849   <template name="r2ed_combo_box"
6850             keep="true">
6851     <!-- DECORATION -->
6852     <instance template="box_widget"
6853               id="back"
6854               sizeref="wh"
6855               w="0"
6856               h="0" />
6857     <view type="bitmap"
6858           id="arrow"
6859           posref="MR MR"
6860           x="-4"
6861           texture="W_arrow_down_2.tga" />
6862     <!-- SYSTEM 
6863         <view type="text" id="text" posref="ML ML" x="2" />-->
6864     <group id="text_group"
6865            posparent="parent"
6866            posref="TL TL"
6867            sizeref="wh"
6868            x="0"
6869            w="-17"
6870            y="0"
6871            h="0">
6872       <view type="text"
6873             id="text"
6874             posref="ML ML"
6875             x="2"
6876             auto_clamp="true"
6877             over_extend_view_text="true"
6878             over_extend_parent_rect="true" />
6879     </group>
6880     <ctrl type="button"
6881           button_type="push_button"
6882           id="select"
6883           sizeref="wh"
6884           w="0"
6885           h="0"
6886           col_over="255 255 255 90"
6887           tx_over="blank.tga"
6888           scale="true" />
6889   </template>
6890   <!-- horizontal label/combo box template -->
6891   <template name="h_label_combo_box"
6892             keep="true"
6893             active="true"
6894             id=""
6895             x="0"
6896             y="0"
6897             w="195"
6898             w_label="95"
6899             w_combo="90"
6900             posparent=""
6901             posref=""
6902             hardtext=""
6903             on_change_params="">
6904     <group id="#id"
6905            active="#active"
6906            x="#x"
6907            y="#y"
6908            w="#w"
6909            h="20"
6910            posparent="#posparent"
6911            posref="#posref">
6912       <!-- label -->
6913       <group id="label"
6914              w="#w_label"
6915              h="20"
6916              x="0"
6917              y="0"
6918              posref="TL TL"
6919              posparent="parent">
6920         <view type="text"
6921               id="name_text"
6922               posref="BL BL"
6923               x="0"
6924               y="0"
6925               color="255 255 255 255"
6926               global_color="true"
6927               fontsize="12"
6928               shadow="true"
6929               hardtext="#hardtext" />
6930       </group>
6931       <!-- combo box -->
6932       <group type="combo_box"
6933              id="combo_box"
6934              w="#w_combo"
6935              h="20"
6936              x="0"
6937              y="0"
6938              posref="TR TL"
6939              posparent="label"
6940              linked_to_db="false"
6941              on_change="lua"
6942              on_change_params="#on_change_params">
6943         <instance template="r2ed_combo_box" />
6944       </group>
6945     </group>
6946   </template>
6948   <!-- html browsing context -->
6949   <template name="webig_html"
6950             keep="true"
6951             home=""
6952             browse_redo=""
6953             browse_undo=""
6954             browse_refresh="">
6955     <group id="html"
6956            type="webig_html"
6957            posref="TL TL"
6958            home="#home"
6959            title_prefix=""
6960            sizeref="wh"
6961            x="0"
6962            y="0"
6963            w="0"
6964            h="0"
6965            background_color="0 0 0 255"
6966            error_color="255 240 48 255"
6967            link_color="240 155 100 255"
6968            text_color="210 210 210 255"
6969            h1_color="255 255 255 255"
6970            h2_color="255 255 255 255"
6971            h3_color="255 255 255 255"
6972            h4_color="255 255 255 255"
6973            h5_color="255 255 255 255"
6974            h6_color="255 255 255 255"
6975            text_font_size="10"
6976            h1_font_size="20"
6977            h2_font_size="18"
6978            h3_font_size="16"
6979            h4_font_size="14"
6980            h5_font_size="12"
6981            h6_font_size="12"
6982            paragraph_begin_space="12"
6983            multi_line_space_factor="0.25"
6984            td_begin_space="0"
6985            li_begin_space="4"
6986            ul_begin_space="12"
6987            li_indent="-10"
6988            ul_indent="30"
6989            checkbox_bitmap_normal="w_slot_on.tga"
6990            checkbox_bitmap_pushed="w_opacity_on.tga"
6991            checkbox_bitmap_over=""
6992            background_bitmap_view="background_bitmap"
6993            browse_next_time="false"
6994            form_text_area_group="edit_box_widget_multiline"
6995            browse_refresh="#browse_refresh"
6996            browse_undo="#browse_undo"
6997            browse_redo="#browse_redo">
6998       <group id="black"
6999              posref="BR BR"
7000              sizeref="hw"
7001              w="-10"
7002              h="-12"
7003              inherit_gc_alpha="true" />
7004       <instance template="inner_thin_border"
7005                 posparent="black"
7006                 inherit_gc_alpha="true " />
7007       <view id="background_bitmap"
7008             type="bitmap"
7009             posparent="black"
7010             posref="MM MM"
7011             sizeref="wh"
7012             w="-2"
7013             h="-2"
7014             inherit_gc_alpha="true"
7015             scale="true"
7016             texture="blank.tga"
7017             global_color="false" />
7018       <group id="text_list"
7019              type="list"
7020              fontsize="9"
7021              posref="TL TL"
7022              posparent="black"
7023              x="2"
7024              y="-2"
7025              space="0"
7026              sizeref="hw"
7027              w="-4"
7028              h="-4"
7029              maxelements="2000" />
7030       <ctrl id="scroll_bar"
7031             style="skin_scroll" />
7032     </group>
7033   </template>
7035   <!-- html browser window -->
7036   <template name="webig_browser"
7037             keep="true"
7038             home=""
7039             w="480"
7040             h="400"
7041             browse_redo=""
7042             browse_undo=""
7043             browse_refresh="">
7044     <group id="browser"
7045            type="container"
7046            w="#w"
7047            h="#h"
7048            x="0"
7049            y="0"
7050            pop_max_w="2000"
7051            pop_max_h="2000"
7052            pop_min_w="64"
7053            pop_min_h="32"
7054            header_color="UI:SAVE:WIN:COLORS:COM"
7055            posref="TL TL"
7056            title=""
7057            global_color="true"
7058            global_color_over="true"
7059            right_button="true"
7060            movable="true"
7061            lockable="true"
7062            active="true"
7063            openable="true"
7064            opened="true"
7065            resizer="true"
7066            on_active="lua"
7067            on_active_params="WebBrowser:onActive()">
7068       <group id="header_closed"
7069              w="64"
7070              h="16"
7071              posref="TL TL"
7072              on_active="lua"
7073              on_active_params="WebBrowser:onClickHeaderClose()" />
7074       <group id="header_opened"
7075              h="16"
7076              w="480"
7077              posref="TL TL"
7078              on_active="lua"
7079              on_active_params="WebBrowser:onClickHeaderOpen()">
7080         <ctrl style="text_button_header"
7081               id="browse_redo"
7082               button_type="push_button"
7083               posref="MR MR"
7084               x="-16"
7085               y="0"
7086               hardtext="uiBrowseRedoButton"
7087               tooltip="uittBrowseRedo"
7088               onclick_l="lua"
7089               params_l="WebBrowser:onClickRedo()"
7090               frozen="true" />
7091         <ctrl style="text_button_header"
7092               id="browse_undo"
7093               button_type="push_button"
7094               posparent="browse_redo"
7095               posref="ML MR"
7096               x="-4"
7097               y="0"
7098               hardtext="uiBrowseUndoButton"
7099               tooltip="uittBrowseUndo"
7100               onclick_l="lua"
7101               params_l="WebBrowser:onClickUndo()"
7102               frozen="true" />
7103         <ctrl style="text_button_header"
7104               id="browse_refresh"
7105               button_type="push_button"
7106               posparent="browse_undo"
7107               posref="ML MR"
7108               x="-4"
7109               y="0"
7110               hardtext="uiBrowseRefresh"
7111               tooltip="uittBrowseRefresh"
7112               onclick_l="lua"
7113               params_l="WebBrowser:onClickRefresh()"
7114               frozen="true" />
7115         <ctrl style="text_button_header"
7116               id="browse_home"
7117               button_type="push_button"
7118               posparent="browse_refresh"
7119               posref="ML MR"
7120               x="-4"
7121               y="0"
7122               hardtext="uiBrowseHome"
7123               tooltip="uittBrowseHome"
7124               onclick_l="lua"
7125               params_l="WebBrowser:onClickHome()" />
7126       </group>
7128       <group id="content"
7129              x="0"
7130              y="0"
7131              w="0"
7132              h="0"
7133              posref="TL TL">
7134         <instance template="webig_html"
7135                   home="#home"
7136                   browse_redo="#browse_redo"
7137                   browse_undo="#browse_undo"
7138                   browse_refresh="#browse_refresh" />
7139       </group>
7140     </group>
7141   </template>
7143   <!-- html <hr> element -->
7144   <template name="html_hr"
7145             keep="true">
7146     <group id="sep_gr"
7147            posref="ML ML"
7148            sizeref="w"
7149            w="0"
7150            h="0"
7151            child_resize_h="true"
7152            child_resize_hmargin="12">
7153       <view type="bitmap"
7154             id="hr"
7155             posref="MM MM"
7156             sizeref="w"
7157             w="-2"
7158             h="2"
7159             inherit_gc_alpha="true"
7160             scale="true"
7161             texture="blank.tga"
7162             global_color="false" />
7163     </group>
7164   </template>
7166   <template name="html_form_select_box_menu_widget"
7167             keep="true"
7168             id="sb">
7169     <group type="menu"
7170         id="#id"
7171         posref="BL TL"
7172         x="0"
7173         y="0"
7174         mouse_pos="false"
7175         space="2"
7176         shadow="false"
7177         color="255 255 255 128"
7178         color_over="255 255 255 255"
7179         color_grayed="0 0 0 255"
7180         fontsize="12"
7181         highlight_over="255 255 255 128"
7182         force_inside_screen="false"></group>
7183     </template>
7185 </interface_config>