Fix checkRpItemsPosition
[ryzomcore.git] / ryzom / client / data / gamedev / interfaces_v3 / tp_interface.xml
blobca630aeaab423164f81cc1603a2a6a914dca7bdf
1 <interface_config>
2     <root id="interface" x="0" y="0" w="800" h="600" active="true" />
4     <variable entry="UI:SAVE:TELEPORT:DO_PACT" type="sint32" value="0" />
5     <variable entry="UI:SAVE:TELEPORT:BANNER" type="sint32" value="1" />
6     <variable entry="UI:SAVE:TELEPORT:CLOSE_AFTER_TP" type="sint32" value="1" />
7     <variable entry="UI:SAVE:TELEPORT:ISDETACHED" type="sint32" value="1" />
8     <variable entry="UI:SAVE:ISACTIVE:ARTEFACT" type="sint32" value="0" />
10     <!-- artefact v1 -->
11     <lua file="tp_interface.lua" />
12     <lua file="misc.lua" />
14     <proc id="artefact_proc_active">
15         <action handler="set" params="dblink=UI:SAVE:ISACTIVE:ARTEFACT|value=1" />
16         <action handler="lua" params="artefact:onActive()" />
17     </proc>
18     <proc id="artefact_proc_deactive">
19         <action handler="set" params="dblink=UI:SAVE:ISACTIVE:ARTEFACT|value=0" />
20         <action handler="lua" params="artefact:onDeactive()" />
21     </proc>
22     <proc id="artefact_win_attach">
23         <action handler="set" params="target_property=ui:interface:inventory:content:bag:iil:active|value=0" />
24         <action handler="set" params="target_property=ui:interface:inventory:content:bag:ryzhome:active|value=0" />
25         <action handler="set" params="target_property=ui:interface:inventory:content:bag:webitems:active|value=0" />
26         <action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_content:active|value=1" />
27         <action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_bottom:active|value=1" />
28         <action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_tab:active|value=1" />
29         <action handler="set" params="dblink=UI:SAVE:TELEPORT:ISDETACHED|value=0" />
30         <action handler="lua" params="artefact:attachWindow()" />
31     </proc>
32     <proc id="artefact_win_detach">
33         <action handler="set" params="target_property=ui:interface:inventory:content:bag:iil:active|value=1" />
34         <action handler="set" params="target_property=ui:interface:inventory:content:bag:ryzhome:active|value=0" />
35         <action handler="set" params="target_property=ui:interface:inventory:content:bag:webitems:active|value=0" />
36         <action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_content:active|value=0" />
37         <action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_bottom:active|value=0" />
38         <action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_tab:active|value=0" />
39         <action handler="set" params="dblink=UI:SAVE:TELEPORT:ISDETACHED|value=1" />
40         <action handler="lua" params="artefact:detachWindow()" />
41     </proc>
43     <group type="menu" id="base_menu_artefact" extends="base_menu_with_color">
44         <action id="toggle_banner_hide" name="uimIhideBanner" handler="lua" params="artefact:onSelect(1)" icon="r2_icon_stop_possess.tga"/>
45         <action id="toggle_banner_show" name="uimIshowBanner" handler="lua" params="artefact:onSelect(1)" icon="r2_icon_possess.tga"/>
46         <action id="window_on_tp_close" name="uimIcloseOnTp" handler="lua" params="artefact:onSelect(2)" icon="r2_icon_acts_pushed.tga"/>
47         <action id="window_on_tp_open" name="uimIopenOnTp" handler="lua" params="artefact:onSelect(2)" icon="r2_icon_acts.tga"/>
48         <action id="window_refresh" name="uimIrefresh" handler="lua" params="artefact:onSelect(3)" icon="r2ed_tool_rotate.tga"/>
49         <action id="window_compact" name="uimIcompact" handler="lua" params="artefact:onSelect(4)" icon="r2_icon_light_off_small.tga"/>
50         <separator />
51     </group>
53     <group id="artefact" type="container"
54         w="526" h="479"
55         x="0" y="0"
56         pop_max_w="603"
57         pop_max_h="479"
58         pop_min_w="200"
59         pop_min_h="234"
60         header_color="UI:SAVE:WIN:COLORS:COM"
61         posref="TL TL"
62         global_color="true"
63         global_color_over="true"
64         right_button="true"
65         savable="true"
66         movable="true"
67         lockable="true"
68         active="false"
69         openable="false"
70         opened="false"
71         resizer="true"
72         header_active="false"
73         on_active="proc"
74         on_active_params="artefact_proc_active"
75         on_deactive="proc"
76         on_deactive_params="artefact_proc_deactive"
77         on_close_button="lua"
78         on_close_button_params="artefact:onClose()"
79         on_resize="lua"
80         on_resize_params="artefact:onResize()">
81         <group id="header_opened"
82             h="16"
83             w="480"
84             posref="TL TL"
85             on_active="lua"
86             on_active_params="artefact:onClickHeader(1)"
87             group_onclick_r="lua"
88             group_params_r="artefact:onMenu('ui:interface:base_menu_artefact')">
89             <ctrl id="header_attach"
90                 type="button"
91                 button_type="push_button"
92                 posref="MR MR"
93                 y="0"
94                 x="-16"
95                 tx_normal="w_win_popin.tga"
96                 tx_pushed="w_win_popin.tga"
97                 tx_over="W_button_16_over.tga"
98                 onclick_l="lua"
99                 params_l="artefact:onSelect(5)" />
100             <ctrl id="header_minimize"
101                 type="button"
102                 button_type="push_button"
103                 posref="ML ML"
104                 y="5"
105                 x="0"
106                 tx_normal="ark_move_z.tga"
107                 tx_pushed="ark_move_z.tga"
108                 tx_over="ark_move_z.tga"
109                 onclick_l="lua"
110                 params_l="artefact:onClickHeader(0)" />
111             <group id="faketab"
112                 type="tab"
113                 child_resize_w="true"
114                 h="0"
115                 posref="TL TL"
116                 x="0"
117                 y="0">
118                 <ctrl style="tab_button_new"
119                   id="tab0"
120                   x="0"
121                   posref="TL TL"
122                   group="content:html"
123                   hardtext=""
124                   tooltip=""
125                   onclick_r=""
126                   params_r=""
127                   onclick_l=""
128                   params_l="" />
129             </group>
130         </group>
131         <group id="content" x="0" y="0" w="0" h="0" posref="TL TL">
132             <instance template="webig_html" />
133         </group>
134     </group>
136     <tree node="artefact" />
138     <template name="webig_inv_item_artefact" ql0="" ql1="" ql2=""  q0="" q1="" q2="" q3="" q4="" q5="" q6="" q7="" o0="" o1="" o2="" o3="" o4="" o5="" o6="" o7="" render_layer1="1" render_layer2="2" render_layer3="3" render_layer4="4" w="43" keep="true" img1="token_basic.tga" img2="" img3="" tooltip="" quality="" quantity="" overlay="" text="" text2="" color="255 255 255 255" gc1="true" gc2="true" color2="255 255 255 255" slotbg="w_slot_item.tga" slotbg_gc="true" bg="blank2.tga" tx_normal="blank.tga" tx_pushed="blank.tga" tx_over="blank.tga" ctrl_color="0 0 0 0" col_over="255 255 255 50" col_pushed="255 255 255 0" params_over="" params_l="" params_r="" x="0" y="0">
139         <group id="#id" posref="MM MM" w="#w" h="43" x="#x" y="#y" sizeref="" render_layer="#render_layer1">
140             <view type="bitmap" id="back" posref="ML ML" x="0" y="0" h="42" w="42" scale="true" render_layer="#render_layer1" texture="#slotbg" color="255 255 255 255" global_color="#slotbg_gc" />
141             <view type="bitmap" id="bg" posparent="back" posref="MM MM" x="0" y="0" w="40" h="40" render_layer="#render_layer2" scale="false" texture="#bg"  global_color="false" />
142             <view type="bitmap" id="img1" posparent="back" posref="MM MM" x="0" y="0" w="40" h="40" scale="false" render_layer="#render_layer3" texture="#img1" global_color="false" />
143             <view type="bitmap" id="img2" posparent="back" posref="MM MM" render_layer="#render_layer3" x="0" y="0" texture="#img2" global_color="false" />
144             <view type="bitmap" id="img3" posparent="back" posref="MM MM"  render_layer="#render_layer4" x="0" y="0" texture="#img3" global_color="false" />
146             <instance id="over" template="typo_ryzom_artefact" posref="TL TL" render_layer="6" x="1" y="-2" t0="#o0" t1="#o1" t2="#o2" t3="#o3" t4="#o4" t5="#o5" t6="#o6" t7="#o7" />
147             <instance id="quantity" template="typo_ryzom_artefact" posref="BL BL" typo="numbers" render_layer="4" posparent="" x="2" y="2" t0="#q0" t1="#q1" t2="#q2" t3="#q3" t4="#q4" t5="#q5" t6="#q6" t7="#q7" />
148             <instance id="quality" template="typo_ryzom_artefact" posref="BL BL" typo="numbers" render_layer="4" posparent="back" x="24" y="1" t0="#ql0" t1="#ql1" t2="#ql2" gc="true"/>
150             <view type="text" id="text1" multi_line="true" posref="TR TL" posparent="back" x="3" y="1" fontsize="8" hardtext_format="#text" color="#color1" shadow="true" global_color="#gc1" />
151             <view type="text" id="text2" multi_line="true" posref="BL TL" posparent="text1" x="0" y="-2" fontsize="8" hardtext_format="#text2" color="#color2" shadow="true" global_color="#gc2" />
152             <ctrl type="button" id="tooltip" posparent="back" scale="true" posref="MM MM" x="0" y="0" h="40" w="40" tooltip="#tooltip" instant_help="false" tooltip_posref="TR BL" />
153             <ctrl type="button" id="ctrl" button_type="push_button" global_color_normal="false" posref="MM MM"  posparent="back" x="0" y="0" tx_normal="#tx_normal" tx_pushed="#tx_pushed" tx_over="#tx_over" scale="true" w="0" sizeref="w" h="42" color="#ctrl_color" col_over="#col_over" col_pushed="#col_pushed" render_layer="#render_layer2" onover="lua" params_over="#params_over" onclick_l="lua" params_l="#params_l" onclick_r="lua" params_r="#params_r"  />
154         </group>
155     </template>
157     <template name="typo_ryzom_artefact" keep="true" typo="typo" posref="TL TL" posparent="" x="0" y="0" render_layer="3" t0="" t1="" t2="" t3="" t4="" t5="" t6="" t7="" gc="false" >
158         <group id="#id"  posref="#posref" posparent="#posparent" x="#x" y="#y" render_layer="#render_layer">
159             <view type="bitmap" id="t0" posref="#posref" render_layer="#render_layer" texture="#typo_#t0.tga" global_color="#gc"/>
160             <view type="bitmap" id="t1" posref="BR BL" posparent="t0" x="0" render_layer="#render_layer" texture="#typo_#t1.tga" global_color="#gc"/>
161             <view type="bitmap" id="t2" posref="MR ML" posparent="t1" x="0" render_layer="#render_layer" texture="#typo_#t2.tga" global_color="#gc"/>
162             <view type="bitmap" id="t3" posref="MR ML" posparent="t2" x="0" render_layer="#render_layer" texture="#typo_#t3.tga" global_color="#gc"/>
163             <view type="bitmap" id="t4" posref="MR ML" posparent="t3" x="0" render_layer="#render_layer" texture="#typo_#t4.tga" global_color="#gc"/>
164             <view type="bitmap" id="t5" posref="MR ML" posparent="t4" x="0" render_layer="#render_layer" texture="#typo_#t5.tga" global_color="#gc"/>
165             <view type="bitmap" id="t6" posref="MR ML" posparent="t5" x="0" render_layer="#render_layer" texture="#typo_#t6.tga" global_color="#gc"/>
166             <view type="bitmap" id="t7" posref="MR ML" posparent="t6" x="0" render_layer="#render_layer" texture="#typo_#t7.tga" global_color="#gc"/>
167         </group>
168     </template>
170 </interface_config>