Add infos into target window
[ryzomcore.git] / ryzom / client / data / gamedev / interfaces_v3 / outgame_select.xml
blob55bb28abc5ed169f41bfbb34982ff8b6aed57ddc
1 <interface_config>
3 <root id="outgame" x="0" y="0" w="800" h="600" active="false" />
6 <!-- ***************** -->
7 <!-- *   PROCEDURES  * -->
8 <!-- ***************** -->
10 <variable entry="UI:TEMP:CHARSELCLICK" type="sint64" value="-1"/>
11 <variable entry="UI:TEMP:CHARSELOPT1" type="sint64" value="0"/>
12 <variable entry="UI:TEMP:CHARSELOPT2" type="sint64" value="0"/>
13 <variable entry="UI:TEMP:CHARSELDELCHAR" type="sint64" value="0"/>
15 <variable entry="UI:TEMP:HAIRCUT" type="sint64" value="1" />
16 <variable entry="UI:TEMP:RAND" type="sint64" value="1" />
17 <variable entry="UI:TEMP:CHAR3DFYROS:PEOPLE" type="sint64" value="0" />
18 <variable entry="UI:TEMP:CHAR3DMATIS:PEOPLE" type="sint64" value="1" />
19 <variable entry="UI:TEMP:CHAR3DTRYKER:PEOPLE" type="sint64" value="2" />
20 <variable entry="UI:TEMP:CHAR3DZORAI:PEOPLE" type="sint64" value="3" />
23 <!-- ********************** -->
24 <!-- *  RESET APPEARANCE  * -->
25 <!-- ********************** -->
26 <proc id="proc_backup_species">
28         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:TATTOO|value=0" />
29         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPA:HATCOLOR|value=0" />
30         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:EYESCOLOR|value=0" />
31         <action handler="set" params="dblink=UI:TEMP:HAIRCUT|value=2" />
32         
33         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:CHARACTERHEIGHT|value=7" />
34         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:TORSOWIDTH|value=7" />
35         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:ARMSWIDTH|value=7" />
36         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:LEGSWIDTH|value=7" />
38         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPA:WEAPONRIGHTHAND|value=0" />
39         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPA:WEAPONLEFTHAND|value=0" />
41         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPA:JACKETCOLOR|value=0" />
42         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPA:ARMCOLOR|value=0" />
43         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPB:HANDSCOLOR|value=0" />
44         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPA:TROUSERCOLOR|value=0" />
45         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPB:FEETCOLOR|value=0" />
46         
47         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:MORPHTARGET1|value=0" />
48         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:MORPHTARGET2|value=0" />
49         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:MORPHTARGET3|value=0" />
50         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:MORPHTARGET4|value=0" />
51         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:MORPHTARGET5|value=0" />
52         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:MORPHTARGET6|value=0" />
53         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:MORPHTARGET7|value=0" />
55         <action handler="proc"  params="init_backup_fyros" />
56         <action handler="proc"  params="init_backup_matis" />
57         <action handler="proc"  params="init_backup_tryker" />
58         <action handler="proc"  params="init_backup_zorai" />
59         
60 </proc>
62 <proc id="init_backup_fyros">
63         <action handler="set" params="dblink=UI:TEMP:CHAR3D:PEOPLE|value=0" />
64         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('fy_cheveux_medium01.sitem','HEAD')" />
65         <action handler="copy" params="dbdst=UI:TEMP:CHAR3DFYROS|dbsrc=UI:TEMP:CHAR3D" />
66 </proc>
68 <proc id="init_backup_matis">
69         <action handler="set" params="dblink=UI:TEMP:CHAR3D:PEOPLE|value=1" />
70         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('ma_cheveux_medium01.sitem','HEAD')" />
71         <action handler="copy" params="dbdst=UI:TEMP:CHAR3DMATIS|dbsrc=UI:TEMP:CHAR3D" />
72 </proc>
74 <proc id="init_backup_tryker">
75         <action handler="set" params="dblink=UI:TEMP:CHAR3D:PEOPLE|value=2" />
76         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('tr_cheveux_medium01.sitem','HEAD')" />
77         <action handler="copy" params="dbdst=UI:TEMP:CHAR3DTRYKER|dbsrc=UI:TEMP:CHAR3D" />
78 </proc>
80 <proc id="init_backup_zorai">
81         <action handler="set" params="dblink=UI:TEMP:CHAR3D:PEOPLE|value=3" />
82         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('zo_cheveux_medium01.sitem','HEAD')" />
83         <action handler="copy" params="dbdst=UI:TEMP:CHAR3DZORAI|dbsrc=UI:TEMP:CHAR3D" />
84 </proc>
88 <!-- called when we click on a slot -->
89 <proc id="proc_click_slot">
90         <action handler="play_sound"    params="name=charsel_slot_click" />
91         
92         <action handler="reset_pushed"  params="dblink=ui:outgame:character_selection:option1" />
93         <action handler="reset_pushed"  params="dblink=ui:outgame:character_selection:option2" />
94         <action handler="set"                   params="dblink=UI:TEMP:CHARSELOPT1|value=0"/>
95         <action handler="set"                   params="dblink=UI:TEMP:CHARSELOPT2|value=0"/>
96         <action handler="set"                   params="target_property=ui:outgame:character_selection:option1:play:pushed|value=1"/>
97         <action handler="set"                   params="target_property=ui:outgame:character_selection:option2:manualy:pushed|value=1"/>
98         
99         <action handler="set"   params="target_property=ui:outgame:character_selection:char3d:char:anim|value=0" />
100         <action handler="set"   params="target_property=ui:outgame:character_selection:option1:active|value=1" />
101         <action handler="set"   params="target_property=ui:outgame:character_selection:option2:active|value=1" />
102         <action handler="set"   params="target_property=ui:outgame:character_selection:next:active|value=1" />
103         <action handler="copy"  params="dbdst=UI:TEMP:CHARSELCLICK|dbsrc=UI:NEW_SELECTED_SLOT" />
104         <action handler="set"   params="dblink=UI:NEW_SELECTED_SLOT|@0" />
105         <action handler="proc"  cond="eq(@UI:TEMP:CHARSELCLICK,-1)" params="proc_click_slot_init|@0" />
106         <action handler="proc"  cond="ne(@UI:TEMP:CHARSELCLICK,-1)" params="proc_click_slot_normal|@0" />
107         <action handler="set"   params="dblink=UI:SELECTED_SLOT|@0" />
108         
109 </proc>
111 <proc id="proc_select_init_right_screen" >
112         <action handler="get_slot"      params="prop=title      |target=ui:outgame:character_selection:titles:title_txt:uc_hardtext|slot=@UI:NEW_SELECTED_SLOT" />
113 <!--    <action handler="get_slot"      params="prop=job        |target=ui:outgame:character_selection:titles:job_txt:uc_hardtext|slot=@UI:NEW_SELECTED_SLOT" /> 
114         <action handler="get_slot"      params="prop=level      |target=ui:outgame:character_selection:titles:level_txt:uc_hardtext|slot=@UI:NEW_SELECTED_SLOT" />-->
115         <action handler="get_slot"      params="prop=pos        |target=ui:outgame:character_selection:titles:pos_txt:textid|slot=@UI:NEW_SELECTED_SLOT" />
116         <action handler="get_slot"      params="prop=name       |target=ui:outgame:character_selection:titles:name_txt:uc_hardtext|slot=@UI:NEW_SELECTED_SLOT" />
117         <action handler="reset_camera"          params="target=ui:outgame:character_selection:char3d:cam" />
118         <action handler="set_db_from_slot"      params="dblink=UI:TEMP:CHAR3D|slot=@UI:NEW_SELECTED_SLOT" />
119         <action handler="proc"                          params="proc_charsel_init3d" />
120 </proc>
122 <!-- called when we click on a slot for the first time -->
123 <proc id="proc_click_slot_init">
124         <action handler="reset_pushed"  params="dblink=ui:outgame:character_selection:option1" />
125         <action handler="reset_pushed"  params="dblink=ui:outgame:character_selection:option2" />
126         <action handler="set"                   params="dblink=UI:TEMP:CHARSELOPT1|value=0"/>
127         <action handler="set"                   params="dblink=UI:TEMP:CHARSELOPT2|value=0"/>
128         <action handler="set"                   params="target_property=ui:outgame:character_selection:option1:play:pushed|value=1"/>
129         <action handler="set"                   params="target_property=ui:outgame:character_selection:option2:manualy:pushed|value=1"/>
130         
131         <action handler="anim_start" cond="isCharSelSlotEmpty(@UI:NEW_SELECTED_SLOT)" params="anim=anim_init_empty" />
132         
133         <action handler="proc" cond="not(isCharSelSlotEmpty(@UI:NEW_SELECTED_SLOT))"
134                         params="proc_select_init_right_screen" />
135         
136         <action handler="anim_start" cond="not(isCharSelSlotEmpty(@UI:NEW_SELECTED_SLOT))" params="anim=anim_init_full" />
137 </proc>
139 <!-- called when we click on a slot and we are already initialized
140         if the last slot is empty and the new one too do nothing
141         if the last slot is full and the new one is empty call anim full to empty 
142         if the last slot is empty and the new one is full initialize the 3D view then call the anim empty to full
143         if the last slot is full and the new one is full call anim full to empty then proc empty to full (proc_click_slot2)
144         -->
145 <proc id="proc_click_slot_normal">
147         <action handler="anim_start" cond="and(not(isCharSelSlotEmpty(@UI:SELECTED_SLOT)),isCharSelSlotEmpty(@UI:NEW_SELECTED_SLOT))" 
148                                                                 params="anim=anim_char_sel_full_to_empty" />
150         <action handler="proc" cond="and(isCharSelSlotEmpty(@UI:SELECTED_SLOT),not(isCharSelSlotEmpty(@UI:NEW_SELECTED_SLOT)))" 
151                         params="proc_select_init_right_screen" />
153         <action handler="anim_start"            cond="and(isCharSelSlotEmpty(@UI:SELECTED_SLOT),not(isCharSelSlotEmpty(@UI:NEW_SELECTED_SLOT)))" 
154                                                                                 params="anim=anim_char_sel_empty_to_full" />
155         <action handler="anim_start" cond="and(not(isCharSelSlotEmpty(@UI:SELECTED_SLOT)),not(isCharSelSlotEmpty(@UI:NEW_SELECTED_SLOT)))" 
156                                                                 params="anim=anim_char_sel_full_to_full_1" />
157 </proc>
159 <!-- called at the end of the first animation part of the full_to_full anim
160         used to change at the end of full_to_full_1 anim the 3D view of the character and launch the second part
161         -->
162 <proc id="proc_click_slot2">
163         <action handler="get_slot" cond="not(isCharSelSlotEmpty(@UI:NEW_SELECTED_SLOT))" params="prop=title     |target=ui:outgame:character_selection:titles:title_txt:uc_hardtext|dbslot=UI:NEW_SELECTED_SLOT" />
164 <!--    <action handler="get_slot" cond="not(isCharSelSlotEmpty(@UI:NEW_SELECTED_SLOT))" params="prop=job       |target=ui:outgame:character_selection:titles:job_txt:uc_hardtext|dbslot=UI:NEW_SELECTED_SLOT" />
165         <action handler="get_slot" cond="not(isCharSelSlotEmpty(@UI:NEW_SELECTED_SLOT))" params="prop=level     |target=ui:outgame:character_selection:titles:level_txt:uc_hardtext|dbslot=UI:NEW_SELECTED_SLOT" />-->
166         <action handler="get_slot" cond="not(isCharSelSlotEmpty(@UI:NEW_SELECTED_SLOT))" params="prop=pos       |target=ui:outgame:character_selection:titles:pos_txt:textid|dbslot=UI:NEW_SELECTED_SLOT" />
167         <action handler="get_slot" cond="not(isCharSelSlotEmpty(@UI:NEW_SELECTED_SLOT))" params="prop=name      |target=ui:outgame:character_selection:titles:name_txt:uc_hardtext|dbslot=UI:NEW_SELECTED_SLOT" />
168         <action handler="reset_camera"  cond="not(isCharSelSlotEmpty(@UI:NEW_SELECTED_SLOT))" params="target=ui:outgame:character_selection:char3d:cam" />
169         <action handler="set_db_from_slot" params="dblink=UI:TEMP:CHAR3D|slot=@UI:SELECTED_SLOT" />
170         <action handler="proc" params="proc_charsel_init3d" />
171         <action handler="anim_start" params="anim=anim_char_sel_full_to_full_2" />
172 </proc>
174 <!-- called when we click on the next button (just call the outro anim and after call proc_choice_next_screen_when_outro_finished -->
175 <proc id="proc_choice_next_screen">
176         <action handler="play_sound" params="name=generic_next_click" />
177         <!--<action handler="proc" params="proc_select_close_help2" />-->
178                 
179         <action handler="anim_start" params="anim=anim_char_sel_outro" />
180 </proc>
182 <!-- choose if we have to launch the game or go to character creation -->
184 <proc id="proc_choice_next_screen_when_outro_finished">
185         <action handler="anim_start" cond="and(isCharSelSlotEmpty(@UI:SELECTED_SLOT),eq(@UI:TEMP:CHARSELOPT2,0))"               params="anim=anim_char_sel_outro2" />
186         <action handler="anim_start" cond="and(isCharSelSlotEmpty(@UI:SELECTED_SLOT),eq(@UI:TEMP:CHARSELOPT2,1))"               params="anim=anim_char_sel_outro2" />
187         <action handler="anim_start" cond="and(not(isCharSelSlotEmpty(@UI:SELECTED_SLOT)),eq(@UI:TEMP:CHARSELOPT1,0))"  params="anim=anim_char_sel_outro_char" />
188         <action handler="anim_start" cond="and(not(isCharSelSlotEmpty(@UI:SELECTED_SLOT)),eq(@UI:TEMP:CHARSELOPT1,2))"  params="anim=anim_char_sel_outro_char" />
190         <action handler="anim_start" cond="and(not(isCharSelSlotEmpty(@UI:SELECTED_SLOT)),eq(@UI:TEMP:CHARSELOPT1,1))"  params="anim=anim_char_sel_delete_title" />
191 </proc>
194 <proc id="proc_choice_next_screen_when_outro_finished2">
195         <action handler="set" cond="and(isCharSelSlotEmpty(@UI:SELECTED_SLOT),eq(@UI:TEMP:CHARSELOPT2,0))" params="dblink=UI:CURRENT_SCREEN|value=%screen_specie" />
196         <action handler="proc" cond="and(isCharSelSlotEmpty(@UI:SELECTED_SLOT),eq(@UI:TEMP:CHARSELOPT2,1))" params="proc_charsel_randomcreate" />
197         <action handler="stop_music"  cond="and(not(isCharSelSlotEmpty(@UI:SELECTED_SLOT)),eq(@UI:TEMP:CHARSELOPT1,0))" params="name=music_intro" />
198         <action handler="launch_game" cond="and(not(isCharSelSlotEmpty(@UI:SELECTED_SLOT)),eq(@UI:TEMP:CHARSELOPT1,0))" params="slot=@UI:SELECTED_SLOT" />
199         <!--<action handler="proc" cond="and(not(isCharSelSlotEmpty(@UI:SELECTED_SLOT)),eq(@UI:TEMP:CHARSELOPT1,2))" params="proc_charsel_renamechar" />-->
200 </proc>
202 <proc id="proc_choice_back_screen" >
203         <action handler="set" params="dblink=UI:TEMP:SKIP_INTRO|value=0" />
204         <action handler="set" params="dblink=UI:CURRENT_SCREEN|value=%screen_intro" />
205 </proc>
207 <proc id="proc_charsel_randomcreate">
209         <!-- INI  TS -->
210         <action handler="set" params="dblink=UI:TEMP:RAND|value=1" />
211         <action handler="set" params="dblink=UI:TEMP:HAIRCUT|value=rand(0,6)" />
213         <!-- SPECIE AND SEX -->
214         <action handler="proc" params="proc_rand_specie" />
216         <!-- BODY -->
217         <action handler="proc" params="proc_rand_appear" />     
218                                 
219         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPA:JACKETMODEL|value=0" />
220         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPA:ARMMODEL|value=0" />
221         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPB:HANDSMODEL|value=0" />
222         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPA:TROUSERMODEL|value=0" />
223         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPB:FEETMODEL|value=0" />
224         
225         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPA:WEAPONRIGHTHAND|value=0" />
226         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPA:WEAPONLEFTHAND|value=0" />
228         <!-- RANDOM CAREER -->
230         <action handler="proc" params="export_fyros" />
231         <action handler="proc" params="export_matis" />
232         <action handler="proc" params="export_tryker" />
233         <action handler="proc" params="export_zorai" />
235         <action handler="set" params="dblink=UI:CURRENT_SCREEN|value=%screen_summary" />
237         
238 </proc>
240 <proc id="convert_careerclickjob_to_char3dcareer">
241         <action handler="set" params="dblink=UI:TEMP:CHAR3D:CAREER|value=getRoleId('Refugee')" />
242 </proc>
244 <proc id="proc_rand_career2">
245         <action handler="set" params="dblink=UI:TEMP:CAREERCLICKJOB|value=rand(1,3)" />
246         <action handler="proc" params="convert_careerclickjob_to_char3dcareer" />
247 </proc>
249 <proc id="proc_rand_career">
250         <action handler="repeatuntil" params="proc=proc_rand_career2|cond=isCareerActive(@UI:TEMP:CHAR3D:CAREER)" />
251         <action handler="disp_info" params="str='isCareerActive(@UI:TEMP:CHAR3D:CAREER) = '|val=isCareerActive(@UI:TEMP:CHAR3D:CAREER)" />
252         <action handler="disp_info" params="str='@UI:TEMP:CHAR3D:CAREER = '|val=@UI:TEMP:CHAR3D:CAREER" />
253         <action handler="proc" params="proc_update_career" />
254 </proc>
256 <proc id="proc_update_career">
257         <action handler="proc" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,0)" params="proc_set_base_caracs_fy" />
258         <action handler="proc" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,1)" params="proc_set_base_caracs_ma" />
259         <action handler="proc" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,2)" params="proc_set_base_caracs_tr" />
260         <action handler="proc" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,3)" params="proc_set_base_caracs_zo" />
261         
262         <action handler="proc" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,0)" params="proc_set_add_caracs_fy" />
263         <action handler="proc" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,1)" params="proc_set_add_caracs_ma" />
264         <action handler="proc" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,2)" params="proc_set_add_caracs_tr" />
265         <action handler="proc" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,3)" params="proc_set_add_caracs_zo" />
266         
267         <action handler="copy" params="dbdst=UI:TEMP:CHAR3D:CARACS|dbsrc=UI:TEMP:CARACS" />
269         <action handler="proc" params="convert_careerclickjob_to_char3dcareer" />
270 </proc>
272 <proc id="proc_rand_specie2">
273         <action handler="set" params="dblink=UI:TEMP:CHAR3D:PEOPLE|value=rand(0,3)" />
274 </proc>
276 <proc id="proc_rand_specie">
277         <action handler="repeatuntil" params="proc=proc_rand_specie2|cond=isPeopleActive(@UI:TEMP:CHAR3D:PEOPLE)" />
278         <action handler="proc" params="proc_change_haircut" />
279 </proc>
280         
281 <proc id="proc_change_haircut">
282         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,0),eq(@UI:TEMP:HAIRCUT,0))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('fy_cheveux_shave01.sitem','HEAD')" />
283         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,0),eq(@UI:TEMP:HAIRCUT,1))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('fy_cheveux_short01.sitem','HEAD')" />
284         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,0),eq(@UI:TEMP:HAIRCUT,2))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('fy_cheveux_short02.sitem','HEAD')" />
285         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,0),eq(@UI:TEMP:HAIRCUT,3))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('fy_cheveux_medium01.sitem','HEAD')" />
286         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,0),eq(@UI:TEMP:HAIRCUT,4))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('fy_cheveux_medium02.sitem','HEAD')" />
287         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,0),eq(@UI:TEMP:HAIRCUT,5))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('fy_cheveux_medium03.sitem','HEAD')" />
288         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,0),eq(@UI:TEMP:HAIRCUT,6))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('fy_cheveux_long01.sitem','HEAD')" />
290         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,1),eq(@UI:TEMP:HAIRCUT,0))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('ma_cheveux_shave01.sitem','HEAD')" />
291         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,1),eq(@UI:TEMP:HAIRCUT,1))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('ma_cheveux_short01.sitem','HEAD')" />
292         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,1),eq(@UI:TEMP:HAIRCUT,2))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('ma_cheveux_short02.sitem','HEAD')" />
293         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,1),eq(@UI:TEMP:HAIRCUT,3))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('ma_cheveux_medium01.sitem','HEAD')" />
294         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,1),eq(@UI:TEMP:HAIRCUT,4))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('ma_cheveux_medium02.sitem','HEAD')" />
295         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,1),eq(@UI:TEMP:HAIRCUT,5))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('ma_cheveux_long01.sitem','HEAD')" />
296         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,1),eq(@UI:TEMP:HAIRCUT,6))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('ma_cheveux_long02.sitem','HEAD')" />
298         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,2),eq(@UI:TEMP:HAIRCUT,0))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('tr_cheveux_shave01.sitem','HEAD')" />
299         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,2),eq(@UI:TEMP:HAIRCUT,1))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('tr_cheveux_short01.sitem','HEAD')" />
300         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,2),eq(@UI:TEMP:HAIRCUT,2))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('tr_cheveux_short02.sitem','HEAD')" />
301         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,2),eq(@UI:TEMP:HAIRCUT,3))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('tr_cheveux_short03.sitem','HEAD')" />
302         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,2),eq(@UI:TEMP:HAIRCUT,4))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('tr_cheveux_medium01.sitem','HEAD')" />
303         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,2),eq(@UI:TEMP:HAIRCUT,5))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('tr_cheveux_medium02.sitem','HEAD')" />
304         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,2),eq(@UI:TEMP:HAIRCUT,6))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('tr_cheveux_long01.sitem','HEAD')" />
306         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,3),eq(@UI:TEMP:HAIRCUT,0))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('zo_cheveux_shave01.sitem','HEAD')" />
307         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,3),eq(@UI:TEMP:HAIRCUT,1))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('zo_cheveux_short01.sitem','HEAD')" />
308         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,3),eq(@UI:TEMP:HAIRCUT,2))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('zo_cheveux_medium01.sitem','HEAD')" />
309         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,3),eq(@UI:TEMP:HAIRCUT,3))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('zo_cheveux_medium02.sitem','HEAD')" />
310         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,3),eq(@UI:TEMP:HAIRCUT,4))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('zo_cheveux_medium03.sitem','HEAD')" />
311         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,3),eq(@UI:TEMP:HAIRCUT,5))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('zo_cheveux_long01.sitem','HEAD')" />
312         <action handler="set" cond="and(eq(@UI:TEMP:CHAR3D:PEOPLE,3),eq(@UI:TEMP:HAIRCUT,6))" params="dblink=UI:TEMP:CHAR3D:VPA:HATMODEL|value=getVSIndex('zo_cheveux_long02.sitem','HEAD')" />
313         
314 </proc>
316 <proc id="proc_rand_appear">
317         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPA:SEX|value=not(@UI:TEMP:CHAR3D:VPA:SEX)" />
318         <!--
319         <action handler="proc" params="proc_rand_body" />       
320         <action handler="proc" params="proc_rand_face" />
321         <action handler="proc" params="proc_rand_colors" />
322         -->
323 </proc>
326 <proc id="proc_rand_body">
328         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:CHARACTERHEIGHT|value=rand(0,14)" />
329         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:TORSOWIDTH|value=rand(0,14)" />
330         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:ARMSWIDTH|value=rand(0,14)" />
331         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:LEGSWIDTH|value=rand(0,14)" />
332 </proc>
334 <proc id="proc_rand_face">
335         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:MORPHTARGET1|value=rand(0,7)" />
336         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:MORPHTARGET2|value=rand(0,7)" />
337         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:MORPHTARGET3|value=rand(0,7)" />
338         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:MORPHTARGET4|value=rand(0,7)" />
339         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:MORPHTARGET5|value=rand(0,7)" />
340         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:MORPHTARGET6|value=rand(0,7)" />
341         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:MORPHTARGET7|value=rand(0,7)" />
342         
343         <action handler="set" params="dblink=UI:TEMP:HAIRCUT|value=rand(0,6)" />
345         <action handler="proc" params="proc_change_haircut" />
346         
347         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:TATTOO|value=rand(0,31)" />
348 </proc>
350 <proc id="proc_rand_colors">
351         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPC:EYESCOLOR|value=rand(0,6)" />
352         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPA:HATCOLOR|value=rand(0,5)" />
354 <!--    
355         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPA:JACKETCOLOR|value=rand(0,7)" />
356         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPA:ARMCOLOR|value=rand(0,7)" />
357         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPB:HANDSCOLOR|value=rand(0,7)" />
358         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPA:TROUSERCOLOR|value=rand(0,7)" />
359         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPB:FEETCOLOR|value=rand(0,7)" />
361 </proc>
366 <!-- Delete character -->
367 <proc id="proc_charsel_deletechar">
368         <action handler="set" params="dblink=UI:TEMP:CHARSELDELCHAR|value=1"/>
369         <action handler="enter_modal" params="group=ui:outgame:charsel_delchar_confirm" />
370 </proc>
372 <proc id="proc_charsel_delchar_confirm_ok">
373         <action handler="play_sound" params="name=charsel_delok_click" />
374         <action handler="leave_modal" params="" />
375         <action handler="ask_delete_char" params="slot=@UI:SELECTED_SLOT" />
376 </proc>
378 <proc id="proc_charsel_delchar_confirm_ok2">
379         <action handler="set" params="dblink=UI:TEMP:CHARSELDELCHAR|value=0"/>
380         <action handler="anim_start" params="anim=anim_char_sel_delete" />
381 </proc>
383 <proc id="proc_charsel_test">
384         <action handler="proc" params="proc_charsel_delchar_confirm_ok2"
385                 cond="and(eq(@UI:TEMP:CHARSELDELCHAR,1),eq(@UI:CURRENT_SCREEN, %screen_select),eq(@UI:SERVER_RECEIVED_CHARS,1))" />
386 </proc>
388 <!-- When we got the answer from server terminate delchar -->
389 <link expr="depends(@UI:CURRENT_SCREEN,@UI:SERVER_RECEIVED_CHARS)" action="proc" params="proc_charsel_test" />
390         
392 <proc id="proc_charsel_delchar_confirm_cancel">
393         <action handler="play_sound" params="name=charsel_delno_click" />
394         <action handler="leave_modal" params="" />
395         <action handler="anim_start" params="anim=anim_char_sel_delete" />
396 </proc>
398 <!-- Rename character -->
399 <!--
400 <proc id="proc_charsel_renamechar">
401         <action handler="get_slot" params="prop=name    |target=ui:outgame:charsel_renchar_confirm:ebname:eb:input_string|dbslot=UI:SELECTED_SLOT" />
402         <action handler="get_slot" params="prop=surname |target=ui:outgame:charsel_renchar_confirm:ebsurname:eb:input_string|dbslot=UI:SELECTED_SLOT" />
403         <action handler="enter_modal" params="group=ui:outgame:charsel_renchar_confirm" />
404 </proc>
406 <proc id="proc_charsel_renchar_confirm_ok">
407         <action handler="leave_modal" params="" />
408         <action handler="ask_rename_char" params="dbslot=UI:SELECTED_SLOT|name=ui:outgame:charsel_renchar_confirm:ebname:eb:input_string|surname=ui:outgame:charsel_renchar_confirm:ebsurname:eb:input_string" />
409         <action handler="proc" params="active_char_sel" />
410 </proc>
412 <proc id="proc_charsel_renchar_confirm_cancel">
413         <action handler="leave_modal" params="" />
414         <action handler="proc" params="active_char_sel" />
415 </proc>
418         
420 <!-- Initialize the 3d view from the database -->
421 <proc id="proc_charsel_init3d">
423         <action handler="set" params="target_property=ui:outgame:character_selection:logo_fy:active|value=0" />
424         <action handler="set" params="target_property=ui:outgame:character_selection:logo_ma:active|value=0" />
425         <action handler="set" params="target_property=ui:outgame:character_selection:logo_tr:active|value=0" />
426         <action handler="set" params="target_property=ui:outgame:character_selection:logo_zo:active|value=0" />
427         
428         <action handler="set" params="target_property=ui:outgame:character_selection:titles:active|value=1" />
429         
430         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPA:WEAPONRIGHTHAND|value=0" />
431         <action handler="set" params="dblink=UI:TEMP:CHAR3D:VPA:WEAPONLEFTHAND|value=0" />
432         
433         
434         <action handler="proc" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,0)" params="proc_charsel_init3d_fy" />
435         <action handler="proc" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,1)" params="proc_charsel_init3d_ma" />
436         <action handler="proc" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,2)" params="proc_charsel_init3d_tr" />
437         <action handler="proc" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,3)" params="proc_charsel_init3d_zo" />
438         
439         <action handler="set" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,0)" params="target_property=ui:outgame:character_selection:char3d:back:near|value=2.0" />
440         <action handler="set" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,0)" params="target_property=ui:outgame:character_selection:char3d:back:far|value=3.5" />
441         <action handler="set" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,0)" params="target_property=ui:outgame:character_selection:char3d:back:posz|value=2.0" />
442                 
443         <action handler="set" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,1)" params="target_property=ui:outgame:character_selection:char3d:back:near|value=1.5" />
444         <action handler="set" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,1)" params="target_property=ui:outgame:character_selection:char3d:back:far|value=3.0" />
445         <action handler="set" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,1)" params="target_property=ui:outgame:character_selection:char3d:back:posz|value=2.2" />
446                 
447         <action handler="set" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,2)" params="target_property=ui:outgame:character_selection:char3d:back:near|value=2.0" />
448         <action handler="set" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,2)" params="target_property=ui:outgame:character_selection:char3d:back:far|value=3.5" />
449         <action handler="set" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,2)" params="target_property=ui:outgame:character_selection:char3d:back:posz|value=2.0" />
450                 
451         <action handler="set" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,3)" params="target_property=ui:outgame:character_selection:char3d:back:near|value=3.0" />
452         <action handler="set" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,3)" params="target_property=ui:outgame:character_selection:char3d:back:far|value=4.0" />
453         <action handler="set" cond="eq(@UI:TEMP:CHAR3D:PEOPLE,3)" params="target_property=ui:outgame:character_selection:char3d:back:posz|value=2.4" />
454         
455         
456         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:char:posx|value=0.0"/>
457         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:char:posy|value=26.5"/>
458         
459         <action handler="set" cond="eq(@UI:TEMP:CHAR3D:VPA:SEX,0)" params="target_property=ui:outgame:character_selection:char3d:char:posz|value=0.0"/>
460         <action handler="set" cond="eq(@UI:TEMP:CHAR3D:VPA:SEX,1)" params="target_property=ui:outgame:character_selection:char3d:char:posz|value=0.04"/>
461         
462         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:char:rotx|value=0.0"/>
463         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:char:roty|value=0.0"/>
464         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:char:rotz|value=0.0"/>
465         
466         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:cam:posx|value=0.0"/>
467         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:cam:posy|value=23.5"/>
468         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:cam:tgtx|value=0.0"/>
469         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:cam:tgty|value=26.5"/>
470         
471         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:shadow:posx|value=0.0"/>
472         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:shadow:posy|value=26.5"/>
473         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:shadow:posz|value=0.85"/>
474         
475         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:back:posx|value=-0.4" />
476         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:back:posy|value=28.5" />
477         
478         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:lgt:posx|value=0.4" />
479         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:lgt:posy|value=25.3" />
480         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:lgt:posz|value=2.48" />
481         
482         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:lgt:colr|value=255" />
483         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:lgt:colg|value=255" />
484         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:lgt:colb|value=255" />
485         
486         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:char:anim|value=0" />
487 </proc>
492                         <!-- fyros -->
493 <proc id="proc_charsel_init3d_fy">
494         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:env:name|value='outgame_fyros.ig'"/>
495         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:env:posz|value=-1.03"/>
496         
497         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:cam:posz|value=2.3"/>
498         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:cam:tgtz|value=1.7"/>
499         
500         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:cam:fov|value=50.0"/>
501         
502         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:back:colr|value=255" />
503         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:back:colg|value=128" />
504         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:back:colb|value=0" />
505         
506         <action handler="set" params="target_property=ui:outgame:character_selection:logo_fy:active|value=1" />
508 </proc>
510                         <!-- matis -->
511 <proc id="proc_charsel_init3d_ma">
512         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:env:name|value='outgame_matis.ig'"/>
513         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:env:posz|value=0"/>
515         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:cam:posz|value=2.3"/>
516         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:cam:tgtz|value=1.7"/>
518         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:cam:fov|value=50.0"/>
519         
520         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:back:colr|value=192" />
521         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:back:colg|value=255" />
522         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:back:colb|value=64" />
523         
524         <action handler="set" params="target_property=ui:outgame:character_selection:logo_ma:active|value=1" />
525 </proc>
527                         <!-- tryker -->
528 <proc id="proc_charsel_init3d_tr">
529         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:env:name|value='outgame_tryker.ig'"/>
530         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:env:posz|value=0"/>
532         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:cam:posz|value=2.0"/>
533         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:cam:tgtz|value=1.6"/>
535         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:cam:fov|value=45.0"/>
536         
537         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:back:colr|value=64" />
538         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:back:colg|value=255" />
539         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:back:colb|value=255" />
540         
541         <action handler="set" params="target_property=ui:outgame:character_selection:logo_tr:active|value=1" />
542 </proc>
544                         <!-- zorai -->
545 <proc id="proc_charsel_init3d_zo">
546         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:env:name|value='outgame_zorai.ig'"/>
547         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:env:posz|value=0"/>
549         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:cam:posz|value=2.4"/>
550         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:cam:tgtz|value=1.9"/>
551         
552         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:cam:fov|value=60.0"/>
553         
554         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:back:colr|value=255" />
555         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:back:colg|value=128" />
556         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:back:colb|value=0" />
557         
558         <action handler="set" params="target_property=ui:outgame:character_selection:logo_zo:active|value=1" />
559 </proc>
561 <!-- activate character selection init from network and launch intro 
562         we have to setup alpha here if the init (click on a slot) is not done because alpha is not parsed but reflected 
563         -->
564 <proc id="active_char_sel">
565         <action handler="proc" params="proc_backup_species" />
566         
567         <action handler="set" params="dblink=UI:NEW_SELECTED_SLOT|value=-1" />
568         <action handler="set" params="dblink=UI:SELECTED_SLOT|value=-1" />
569         <action handler="set" params="dblink=UI:TEMP:RAND|value=0" />
570         <action handler="reset_pushed" params="dblink=ui:outgame:character_selection:slots" />
571         <action handler="net_init_char_sel" params="slottexts=ui:outgame:character_selection:slots" />
574         <action handler="set" params="target_property=ui:outgame:character_selection:titles:active|value=0" />
575         <action handler="set" params="target_property=ui:outgame:character_selection:bg_empty:alpha|value=0" />
576         
577         <action handler="set" params="target_property=ui:outgame:character_selection:options:alpha|value=0" />
578         <action handler="set" params="target_property=ui:outgame:character_selection:option1:alpha|value=0" />
579         <action handler="set" params="target_property=ui:outgame:character_selection:option2:alpha|value=0" />
580         <action handler="set" params="target_property=ui:outgame:character_selection:next:alpha|value=0" />
581         <action handler="set" params="target_property=ui:outgame:character_selection:option1:active|value=0" />
582         <action handler="set" params="target_property=ui:outgame:character_selection:option2:active|value=0" />
583         <action handler="set" params="target_property=ui:outgame:character_selection:option1:x|value=-176" />
584         <action handler="set" params="target_property=ui:outgame:character_selection:option2:x|value=-176" />
585         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:x|value=sub(getprop('ui:outgame:character_selection:w'),224)" />
586         <action handler="set" params="target_property=ui:outgame:character_selection:next:active|value=0" />
587         
588         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:shadow:posx|value=0.0" />
589         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:shadow:posy|value=26.5" />
590         <action handler="set" params="target_property=ui:outgame:character_selection:char3d:shadow:posz|value=1.0" />
591         
592         <action handler="anim_start" params="anim=anim_char_sel_intro" />
593 </proc>
595 <!-- OPTIONS -->
596 <proc id="proc_option1" >
597         <action handler="play_sound" params="name=charsel_option_click" />
598         <action handler="set" params="dblink=UI:TEMP:CHARSELOPT1|@0"/>
599 </proc>
600 <proc id="proc_option2" >
601         <action handler="play_sound" params="name=charsel_option_click" />
602         <action handler="set" params="dblink=UI:TEMP:CHARSELOPT2|@0"/>
603 </proc>
605 <!--
606 <proc id="proc_charsel_help" >
607         <action handler="play_sound" params="name=generic_help_click" />
608         <action handler="set" params="target_property=ui:outgame:character_selection:help_box:active|value=1"/>
609 </proc>
611 <proc id="proc_select_close_help" >
612         <action handler="play_sound" params="name=generic_help_close_click" />
613         <action handler="set" params="target_property=ui:outgame:character_selection:help_box:active|value=0"/>
614 </proc>
616 <proc id="proc_select_close_help2" >
617         <action handler="set" params="target_property=ui:outgame:character_selection:help_box:active|value=0"/>
618 </proc>
621 <proc id="proc_quit" >
622         <action handler="play_sound" params="name=charsel_quit_click" />
623         <action handler="stop_music" params="name=music_intro" />
624         <action handler="quit_ryzom" />
625 </proc>
628 <!-- ***************** -->
629 <!-- *   TEMPLATES   * -->
630 <!-- ***************** -->
632 <!-- a slot text is setup by net_init_char_sel action handler -->
633 <template name="select_slot" posparent="parent" posref="TL TL" x="16" y="0" w="128" h="20" id="" >
635         <ctrl type="button" button_type="radio_button" id="slot#id" posparent="#posparent" posref="#posref" x="#x" y="#y" w="#w" h="#h"
636                                                                                                         color="98 121 55 255" col_over="255 255 255 255" col_pushed="98 121 55 255" 
637                                                                                                         tx_normal="button_default.tga" tx_over="button_default.tga" tx_pushed="button_default_pushed.tga"
638                                                                                                         onover="play_sound" params_over="name=charsel_slot_over"
639                                                                                                         onclick_l="proc" params_l="proc_click_slot|value=#id" render_layer="3"/>
641         <view type="text" id="text#id" posparent="slot#id" posref="ML ML" x="30" hardtext="uiEmptySlot" fontsize="14" />
643 </template>
645 <!-- Window Border -->
646 <template name="window_border" posparent="parent">
647                 <view type="bitmap" id="t" texture="border_hor.tga" posref="TM TM" posparent="#posparent" scale="true" sizeref="w" w="-2" h="1"/>
648                 <view type="bitmap" id="b" texture="border_hor.tga" posref="BM BM" posparent="#posparent" scale="true" sizeref="w" w="-2" h="1"/>
649                 <view type="bitmap" id="l" texture="border_ver.tga" posref="TL TL" posparent="#posparent" scale="true" sizeref="h" w="1" h="0" />
650                 <view type="bitmap" id="r" texture="border_ver.tga" posref="TR TR" posparent="#posparent" scale="true" sizeref="h" w="1" h="0" />
651 </template>
653 <!-- ***************** -->
654 <!-- * MODALS WINDOW * -->
655 <!-- ***************** -->
656 <!-- delete character -->
657 <group type="modal" id="charsel_delchar_confirm" mouse_pos="false" escapable="false" exit_click_out="false" posref="MM ML" x="-394" w="224" h="64" y="24">
659         <view type="text" id="text" posref="TM TM" x="0" y="0" color="255 255 255 255" global_color="false" fontsize="16" shadow="true" hardtext="uiDelChar" />
661         <ctrl type="button" id="ok" button_type="push_button" posref="BM BL" x="2" y="6"
662                         tx_normal="answer_valid.tga" tx_pushed="answer_valid.tga" tx_over="answer_over.tga" 
663                         onover="play_sound" params_over="name=charsel_delok_over"
664                         onclick_l="proc" params_l="proc_charsel_delchar_confirm_ok" global_color_normal="false" global_color_pushed="false" />
666         <ctrl type="button" id="cancel" button_type="push_button" posref="BM BR" x="-2" y="6"
667                         tx_normal="answer_cancel.tga" tx_pushed="answer_cancel.tga" tx_over="answer_over.tga" 
668                         onover="play_sound" params_over="name=charsel_delno_over"
669                         onclick_l="proc" params_l="proc_charsel_delchar_confirm_cancel" global_color_normal="false" global_color_pushed="false" />      
670 </group>
672 <!-- rename character -->
673 <!--
674 <group type="modal" id="charsel_renchar_confirm" mouse_pos="false" escapable="false" exit_click_out="false" posref="MM MM" w="320" h="148">
676         <view type="bitmap" id="bg" sizeref="wh" posref="TL TL" x="0" y="0" texture="blank.tga" scale="true" color="0 0 0 192" global_color="false" />
677         <instance template="window_border" id="bord" posref="MM MM" />
679         <view type="text" id="title" posref="TL TL" x="4" y="-4" color="255 255 255 255" global_color="false" fontsize="12" shadow="true" hardtext="uiRenChar" />
681         <instance template="edit_box_widget" id="ebname" posparent="title" posref="BL TL" x="64" y="-48" w="128" onenter="" reset_focus_on_hide="false" prompt=" " max_num_chars="16" />
682         <view type="text" id="titname" posparent="ebname" posref="TL BL" x="0" y="8" hardtext="uiName" color="255 255 255 255" fontsize="12"/>
684         <instance template="edit_box_widget" id="ebsurname" posparent="ebname" posref="BL TL" x="0" y="-16" w="128" onenter="" reset_focus_on_hide="false" prompt=" " max_num_chars="16" />
685         <view type="text" id="titsurname" posparent="ebsurname" posref="TL BL" x="0" y="8" hardtext="uiSurName" color="255 255 255 255" fontsize="12"/>
687         <ctrl type="button" id="ok" button_type="push_button" posparent="ebsurname" posref="BR TR" y="-4"
688                         tx_normal="w_answer_16_valid.tga" tx_pushed="w_answer_16_valid.tga" tx_over="W_button_16_over.tga" 
689                         onclick_l="proc" params_l="proc_charsel_renchar_confirm_ok" global_color_normal="false" global_color_pushed="false" />
691         <ctrl type="button" id="cancel" button_type="push_button" posparent="ok" posref="TL TR" x="-4"
692                         tx_normal="w_answer_16_cancel.tga" tx_pushed="w_answer_16_cancel.tga" tx_over="W_button_16_over.tga" 
693                         onclick_l="proc" params_l="proc_charsel_renchar_confirm_cancel" global_color_normal="false" global_color_pushed="false" />      
694 </group>
697 <!-- ***************** -->
698 <!-- *  MAIN WINDOW  * -->
699 <!-- ***************** -->
701 <group id="character_selection" w="800" h="600" posref="MM MM"
702                                                                 on_active="proc" on_active_params="active_char_sel" >
704         <!-- BLACK BACK -->
705 <!--
706         <view type="bitmap" id="bg" posref="TL TL" x="0" y="-32" sizeref="w" w="0" h="0" texture="blank.tga" color="0 0 0 255" scale="true" global_color="false" />
708         <view type="bitmap" id="bg" txtoffsetx="0" txtoffsety="0" txtwidth="800" txtheight="488"
709                         global_color="false" color="255 255 255 255" posref="TL TL" x="0" y="-32" texture="bk_select.tga" w="800" h="488" scale="true" /> 
710                         
711                         
712         <view type="bitmap" id="bg_empty" txtoffsetx="0" txtoffsety="0" txtwidth="512" txtheight="512"
713                         global_color="false" color="255 255 255 255" posref="MR MR" x="-32" y="24" texture="bk_empty.tga" w="512" h="512" /> 
714                                 
715                                 
716         
717         <!-- Title -->
718         <view type="text" id="title" posref="TL TL" x="8" y="-6" hardtext="uiSelectTitle" fontsize="20"/>
719         
720         <!-- Title Delete -->
721         <view type="text" id="del_title" posref="TL TL" x="8" y="20" hardtext="uiDeleteTitle" fontsize="20"/>
722         
724         <!-- TIMELINE -->
725         <group id="timeline" sizeref="w" w="-16" h="32" posref="BL BL" x="8" y="16" >
726                 <view type="bitmap" id="line" posref="ML ML" x="0" y="0" texture="time_line.tga" scale="true" sizeref="w" w="-64" h="4" global_color="false" />
727                 <view type="bitmap" id="back_bg" posref="TL TL" x="0" y="0" texture="time_back.tga" global_color="false" />
728                 <view type="bitmap" id="next_bg" posref="TR TR" x="0" y="0" texture="time_next.tga" global_color="false" />
729         </group>
730         
731                 
732         <!-- Quit & Help -->
733         <ctrl type="button" id="quit" button_type="push_button" posref="TR MM" x="-24" y="-16"
734                 tx_normal="button_quit.tga" tx_pushed="button_quit.tga" tx_over="button_quit_over.tga" 
735                 onover="play_sound" params_over="name=charsel_quit_over"
736                 onclick_l="proc" params_l="proc_quit" tooltip="uiQuit" />
737                 
738         <!-- Removed for Beta 1
739         <ctrl type="button" id="help" button_type="push_button" posparent="quit" posref="TL TR" x="-8" y="0"
740                 tx_normal="button_help.tga" tx_pushed="button_help.tga" tx_over="button_help_over.tga" 
741                 onover="play_sound" params_over="name=generic_help_over"
742                 onclick_l="launch_help" params_l="url=help_outgame.html" tooltip="uiHelp" />
743         -->
745         <!-- Menu titles -->
746         <view type="text" id="select" posref="TL TL" x="24" y="-112" hardtext="uiSelCharTitle" fontsize="14"/>
747         <view type="text" id="options" posref="TL TL" x="24" y="-320" hardtext="uiOptTitle" fontsize="14" />
748         
750         <!-- Buttons timeline -->
752         <ctrl type="button" id="back" button_type="push_button" posref="BL BL" x="8" y="16"
753                 tx_normal="button_back.tga" tx_pushed="button_back_over.tga" tx_over="button_back_over.tga" 
754                 onover="play_sound" params_over="name=generic_prev_over"
755                 onclick_l="proc" params_l="proc_choice_back_screen" tooltip="uiPrevStep" />
757         <ctrl type="button" id="next" button_type="push_button" posref="BR BR" x="-8" y="16"
758                 tx_normal="button_next.tga" tx_pushed="button_next_over.tga" tx_over="button_next_over.tga" 
759                 onover="play_sound" params_over="name=generic_next_over"
760                 onclick_l="proc" params_l="proc_choice_next_screen" tooltip="uiNextStep"/>
761                 
762         <!-- SLOTS -->
763         <group id="slots" w="272" h="256" posparent="select" posref="BL TL" x="0" y="-16" >
764                 <instance template="select_slot" id="0" posref="TL TL" />
765                 <instance template="select_slot" id="1" posparent="slot0"       posref="TL TL" y="-32" />
766                 <instance template="select_slot" id="2" posparent="slot1"       posref="TL TL" y="-32" />
767                 <instance template="select_slot" id="3" posparent="slot2"       posref="TL TL" y="-32" />
768                 <instance template="select_slot" id="4" posparent="slot3"       posref="TL TL" y="-32" />
769         </group>
770         
771         
772         <!-- Options if the slot is full (play, delete, rename) -->
773         
774         <group id="option1" w="160" h="84" posparent="options" posref="BL TL" x="-176" y="-16" >
775         
776                 <ctrl type="button" button_type="radio_button" id="play" posref="TL TL" pushed="true" render_layer="3"
777                                                         color="203 190 112 255" col_over="255 255 255 255" col_pushed="203 190 112 255" 
778                                                         tx_normal="button_default.tga" tx_over="button_default.tga" tx_pushed="button_default_pushed.tga"
779                                                         onover="play_sound" params_over="name=charsel_option_over"
780                                                         onclick_l="proc" params_l="proc_option1|value=0"/>
782                 <view type="text" id="pl" posparent="play" posref="ML ML" x="30" hardtext="uiPlay" fontsize="14" />
783         
784                 <ctrl type="button" button_type="radio_button" id="delete" posref="ML ML" render_layer="3"
785                                                         color="203 190 112 255" col_over="255 255 255 255" col_pushed="203 190 112 255"
786                                                         tx_normal="button_default.tga" tx_over="button_default.tga" tx_pushed="button_default_pushed.tga"
787                                                         onover="play_sound" params_over="name=charsel_option_over"
788                                                         onclick_l="proc" params_l="proc_option1|value=1"/>
790                 <view type="text" id="del" posparent="delete" posref="ML ML" x="30" hardtext="uiDelete" fontsize="14" />
791 <!--            
792                 <ctrl type="button" button_type="radio_button" id="rename" posref="BL BL"
793                                                         color="203 190 112 255" col_over="255 255 255 255" col_pushed="203 190 112 255"
794                                                         tx_normal="button_default.tga" tx_over="button_default.tga" tx_pushed="button_default_pushed.tga"
795                                                         onclick_l="set" params_l="dblink=UI:TEMP:CHARSELOPT1|value=2"/>
797                 <view type="text" id="ren" posparent="rename" posref="ML ML" x="30" hardtext="uiRename" fontsize="14" />
799         </group>
800         
801         <!-- Options if the slot is empty (manual creation, random creation) -->
802         
803         <group id="option2" w="160" h="52" posparent="options" posref="BL TL" x="-176" y="-16" >
804                 <ctrl type="button" button_type="radio_button" id="manualy" posref="TL TL" pushed="true" render_layer="3"
805                                                         color="203 190 112 255" col_over="255 255 255 255" col_pushed="203 190 112 255"
806                                                         tx_normal="button_default.tga" tx_over="button_default.tga" tx_pushed="button_default_pushed.tga"
807                                                         onover="play_sound" params_over="name=charsel_option_over"
808                                                         onclick_l="proc" params_l="proc_option2|value=0"/>
810                 <view type="text" id="man" posparent="manualy" posref="ML ML" x="30" hardtext="uiManCrea" fontsize="14" />
811                 
812                 <ctrl type="button" button_type="radio_button" id="random" posref="BL BL" render_layer="3"
813                                                         color="203 190 112 255" col_over="255 255 255 255" col_pushed="203 190 112 255"
814                                                         tx_normal="button_default.tga" tx_over="button_default.tga" tx_pushed="button_default_pushed.tga"
815                                                         onover="play_sound" params_over="name=charsel_option_over"
816                                                         onclick_l="proc" params_l="proc_option2|value=1"/>
818                 <view type="text" id="ran" posparent="random" posref="ML ML" x="30" hardtext="uiRanCrea" fontsize="14" />
819         </group>
820         
821         
822         <group type="scroll_text" id="sel_infos" posref="TM TL" x="-60" y="-112" w="340" h="120" min_height="120" max_height="400" >
823                 <group id="black" posref="TL TL" sizeref="hw" w="0" h="0" />
824                 <group type="list" id="text_list" hardtext="uiSelInfos" shadow="true" fontsize="12" justification="justified" color="255 255 255 255" space="0" 
825                                                                                         posref="TL TL" posparent="black" x="0" y="0" sizeref="hw" w="0" h="0" />
826         </group>
827         
828         
829         <!-- vue 3D du perso -->
830         <scene3d id="char3d" x="576" y="-32" sizeref="wh" w="-224" h="-112" posref="TR TR" curcam="cam" curcs="env"
831                                                 user_interaction="true" rotz_factor="0.017"
832                                                 roty_factor="0.005" roty_limit_min="-10" roty_limit_max="15"
833                                                 dist_factor="0.005" dist_limit_min="3.0" dist_limit_max="4.0"   
834                                                 ambient="0 0 0" sun_ambient="20 20 20" sun_diffuse="80 64 32" sun_specular="0 0 0" sun_direction="-1.0 1.0 -1.0" >
835                                                 
836         
837                 <character3d id="char" dblink="UI:TEMP:CHAR3D" pos="0 26.5 0.0" rot="0.0 0.0 0.0" />
838                 
839                 <camera id="cam" fov="80" pos="0.0 24.0 2.2" target="0.0 26.5 2.2" roll="0" />
840         
841                 <light id="back" pos="0.0 28.2 1.6" color="255 128 0" near="2.5" far="4.0" />
842                 <light id="lgt" pos="0.0 25.3 2.48" color="255 255 255" near="2.0" far="2.5" />
843                         
844                 <ig id="env" name="matis.ig" pos="0 0 0" />   
845                 
846                 <shape id="shadow" name="shadow.shape" pos="0.0 26.5 0.85" rot="0.0 0.0 0.0" />
847                 
848                 <auto_anim name="waterfall01_maserre.anim"/>
849                 <auto_anim name="waterfall02_maserre.anim"/>
850         </scene3d>
853         <!-- TITLES -->
854         <group id="titles" x="0" y="0" posparent="char3d" posref="TL TL" w="576" h="488" >
855                 <view type="text" id="name_txt"         render_layer="0"                                                posref="TL TL" x="20"   y="-16" hardtext="uiEmptySlot"          shadow="true" fontsize="28" color="255 255 255 255" />
857                 <view type="text" id="title_txt"        render_layer="0" posparent="name_txt"   posref="BL TL" x="0"    y="-12" hardtext="uiCaNaBoldMF"         shadow="true" fontsize="24" color="255 192 64 255"      />
858 <!--
859                 <view type="text" id="job_txt"          render_layer="0" posparent="career_txt" posref="BL TL" x="0"    y="-12" hardtext="uiCaNaBoldMF"         shadow="true" fontsize="20" color="255 192 64 255"      />
860                 <view type="text" id="level"            render_layer="0" posparent="job_txt"    posref="TR TL" x="0"    y="0"   hardtext="uiSelLevel"           shadow="true" fontsize="20" color="255 192 64 255"       />
861                 <view type="text" id="level_txt"        render_layer="0" posparent="level"              posref="TR TL" x="4"    y="0"   hardtext="uiCaNaBoldMF"         shadow="true" fontsize="20" color="255 192 64 255"      />
862 -->             
863                 <view type="text_id" id="pos_txt"               render_layer="0"                                        posref="BL BL" x="20"   y="16"  shadow="true" fontsize="18" color="250 230 65 255"      />
865         </group>
867         <!-- LOGOS -->
868         
869         <view type="bitmap" id="logo_fy" render_layer="0" txtoffsetx="0" txtoffsety="0" txtwidth="200" txtheight="256"
870                 global_color="false" color="255 255 255 255" posparent="char3d" posref="TR TR" x="0" y="-8" texture="logo_species.tga"  active="false" />
871                 
872         <view type="bitmap" id="logo_ma" render_layer="0" txtoffsetx="200" txtoffsety="0" txtwidth="200" txtheight="256"
873                 global_color="false" color="255 255 255 255" posparent="char3d" posref="TR TR" x="0" y="-8" texture="logo_species.tga"  active="false" />
874                 
875         <view type="bitmap" id="logo_tr" render_layer="0" txtoffsetx="400" txtoffsety="0" txtwidth="200" txtheight="256"
876                 global_color="false" color="255 255 255 255" posparent="char3d" posref="TR TR" x="0" y="-8" texture="logo_species.tga"  active="false" />
877                 
878         <view type="bitmap" id="logo_zo" render_layer="0" txtoffsetx="600" txtoffsety="0" txtwidth="200" txtheight="256"
879                 global_color="false" color="255 255 255 255" posparent="char3d" posref="TR TR" x="0" y="-8" texture="logo_species.tga"  active="false" />
882         <!-- HELP -->
883         <!--
884         <group id="help_box" w="320" h="240" posref="MM MM" active="false" group_onclick_l="proc" group_params_l="proc_nothing" >
885                 <view type="bitmap" id="bg" sizeref="wh" posref="TL TL" x="0" y="0" texture="blank.tga" scale="true" color="0 0 0 192" global_color="false" />
886                 <instance template="window_border" id="bord" posref="MM MM" />
887                 <view type="text" id="title_help" posref="TL TL" x="8" y="-8" hardtext="uiHelpTitle" fontsize="12" />
888                 <ctrl type="button" id="close_help" button_type="push_button" posref="TR TR" x="-8" y="-8"
889                         onover="play_sound" params_over="name=generic_help_close_over"
890                         tx_normal="W_close.tga" tx_pushed="W_close.tga" tx_over="W_button_12_over.tga" 
891                         onclick_l="proc" params_l="proc_select_close_help" tooltip="uiClose" /> 
892         </group>
893         -->
894         
895         
896         <!-- BORDERS -->
897         <view type="bitmap" id="top_line" posref="TL TL" posparent="bg" x="0" y="1" texture="border_hor.tga" scale="true" sizeref="w" w="0" h="1" global_color="false" />
898         <view type="bitmap" id="bot_line" posref="BL BL" posparent="bg" x="0" y="-1" texture="border_hor.tga" scale="true" sizeref="w" w="0" h="1" global_color="false" />
899         <view type="bitmap" id="vertical_line" posparent="bg" posref="ML ML" x="224" y="0" texture="border_ver.tga" scale="true" w="1" sizeref="h" h="0" global_color="false" />
901         
902         <!-- Confirm delete char -->
906 </group>
908 <!-- This link is used to display the right screen among the outgame screens -->
909 <link expr="eq(@UI:CURRENT_SCREEN, %screen_select)" target="character_selection:active" />
911 <!-- ***************** -->
912 <!-- *  ANIMATIONS   * -->
913 <!-- ***************** -->
915 <!-- Intro -->
916 <anim id="anim_char_sel_intro" duration="4.0" loop="false" reverse="false" >
918         <track type="linear" target="character_selection:bg:h" dynamic="true" >
919                 <key time="0.1" value="0" />
920                 <key time="0.35" value="sub(getprop('ui:outgame:character_selection:h'),112)" />
921         </track>
923         <track type="linear" target="character_selection:bg:y" dynamic="true" > <!-- 0-(32+(h-112)/2) -->
924                 <key time="0.1" value="sub(0,add(div(sub(getprop('ui:outgame:character_selection:h'),112),2),32))" />
925                 <key time="0.35" value="-32" />
926         </track>
928 <!--
929         <track type="linear" target="character_selection:help:alpha">
930                 <key time="0.0" value="0" />
931                 <key time="0.5" value="255" />
932         </track>
934         
935         <track type="linear" target="character_selection:quit:alpha">
936                 <key time="0.0" value="0" />
937                 <key time="0.5" value="255" />
938         </track>        
940         <track type="linear" target="character_selection:title:y">
941                 <key time="0.0" value="20" />
942                 <key time="1.0" value="-6" />
943         </track>
944         
945         <track type="linear" target="character_selection:timeline:alpha">
946                 <key time="0.0" value="0" />
947                 <key time="1.0" value="255" />
948         </track>
950         <track type="linear" target="character_selection:back:alpha">
951                 <key time="0.0" value="0" />
952                 <key time="1.0" value="255" />
953         </track>
954 <!--            
955         <track type="linear" target="character_selection:vertical_line:x">
956                 <key time="1.0" value="-1" />
957                 <key time="1.5" value="224" />
958         </track>
960         <track type="linear" target="character_selection:select:alpha">
961                 <key time="2.0" value="0" />
962                 <key time="3.0" value="255" />
963         </track>
964                 
965         <track type="linear" target="character_selection:slots:slot0:alpha,character_selection:slots:text0:alpha">
966                 <key time="2.5" value="0" />
967                 <key time="3.0" value="255" />
968         </track>
969         
970         <track type="linear" target="character_selection:slots:slot1:alpha,character_selection:slots:text1:alpha">
971                 <key time="2.75" value="0" />
972                 <key time="3.25" value="255" />
973         </track>
974         
975         <track type="linear" target="character_selection:slots:slot2:alpha,character_selection:slots:text2:alpha">
976                 <key time="3.0" value="0" />
977                 <key time="3.5" value="255" />
978         </track>
979         
980         <track type="linear" target="character_selection:slots:slot3:alpha,character_selection:slots:text3:alpha">
981                 <key time="3.25" value="0" />
982                 <key time="3.75" value="255" />
983         </track>
984         
985         <track type="linear" target="character_selection:slots:slot4:alpha,character_selection:slots:text4:alpha">
986                 <key time="3.5" value="0" />
987                 <key time="4.0" value="255" />
988         </track>
989         
990         <track type="linear" target="character_selection:sel_infos:alpha">
991                 <key time="2.0" value="0" />
992                 <key time="3.0" value="255" />
993         </track>
994         
995         <track type="linear" target="character_selection:slots:slot0:x">
996                 <key time="2.5" value="0" />
997                 <key time="2.9" value="16" />
998         </track>
999         
1000         <track type="linear" target="character_selection:slots:slot1:x">
1001                 <key time="2.75" value="-16" />
1002                 <key time="3.15" value="0" />
1003         </track>
1004         
1005         <track type="linear" target="character_selection:slots:slot2:x">
1006                 <key time="3.0" value="-16" />
1007                 <key time="3.4" value="0" />
1008         </track>
1009         
1010         <track type="linear" target="character_selection:slots:slot3:x">
1011                 <key time="3.25" value="-16" />
1012                 <key time="3.65" value="0" />
1013         </track>
1014         
1015         <track type="linear" target="character_selection:slots:slot4:x">
1016                 <key time="3.5" value="-16" />
1017                 <key time="3.9" value="0" />
1018         </track>
1019         
1020 </anim>
1024 <!-- Outro -->
1025 <anim id="anim_char_sel_outro" duration="2.30" on_finish="proc" on_finish_params="proc_choice_next_screen_when_outro_finished" loop="false" reverse="false" >
1026         
1027         <track type="linear" target="character_selection:select:alpha">
1028                 <key time="0.0" value="255" />
1029                 <key time="1.0" value="0" />
1030         </track>
1031         
1032         <track type="linear" target="character_selection:options:alpha">
1033                 <key time="0.0" value="255" />
1034                 <key time="1.0" value="0" />
1035         </track>
1036 <!--            
1037         <track type="linear" target="character_selection:vertical_line:x">
1038                 <key time="1.0" value="224" />
1039                 <key time="1.5" value="-1" />
1040         </track>
1042         <track type="linear" target="character_selection:timeline:alpha">
1043                 <key time="0.0" value="255" />
1044                 <key time="1.5" value="0" />
1045         </track>
1047         <track type="linear" target="character_selection:back:alpha">
1048                 <key time="0.0" value="255" />
1049                 <key time="1.5" value="0" />
1050         </track>
1052         <track type="linear" target="character_selection:next:alpha">
1053                 <key time="0.0" value="255" />
1054                 <key time="1.5" value="0" />
1055         </track>
1056         
1057         <track type="linear" target="character_selection:slots:alpha">
1058                 <key time="0.0" value="255" />
1059                 <key time="0.5" value="0" />
1060         </track>
1061         
1062         <track type="linear" target="character_selection:option1:alpha">
1063                 <key time="0.0" value="255" />
1064                 <key time="0.5" value="0" />
1065         </track>
1066         
1067         <track type="linear" target="character_selection:option2:alpha">
1068                 <key time="0.0" value="255" />
1069                 <key time="0.5" value="0" />
1070         </track>        
1071         
1072         <track type="linear" target="character_selection:title:y">
1073                 <key time="1.0" value="-6" />
1074                 <key time="2.0" value="20" />
1075         </track>
1076         
1077         <track type="linear" target="character_selection:bg_empty:alpha" dynamic="true" >
1078                 <key time="0.0" value="getprop('ui:outgame:character_selection:bg_empty:alpha')" />
1079                 <key time="0.5" value="0" />
1080         </track>
1083 </anim>
1087 <anim id="anim_char_sel_outro2" duration="0.5"  on_finish="proc" on_finish_params="proc_choice_next_screen_when_outro_finished2">
1088         <track type="linear" target="character_selection:bg:h" dynamic="true" >
1089                 <key time="0.0" value="sub(getprop('ui:outgame:character_selection:h'),112)" />
1090                 <key time="0.5" value="0" />
1091         </track>
1093         <track type="linear" target="character_selection:bg:y" dynamic="true" >
1094                 <key time="0.0" value="-32" />
1095                 <key time="0.5" value="sub(0,add(div(sub(getprop('ui:outgame:character_selection:h'),112),2),32))" />
1096         </track>
1097 </anim>
1100 <anim id="anim_char_sel_outro_char" duration="1.0"  on_finish="anim_start" on_finish_params="anim=anim_char_sel_outro2" >
1102         <track type="linear" target="character_selection:char3d:x" dynamic="true" >
1103                 <key time="0.0" value="0" />
1104                 <key time="1.0" value="sub(getprop('ui:outgame:character_selection:w'),224)" />
1105         </track>
1107         <track type="linear" target="character_selection:logo_fy:alpha,character_selection:logo_ma:alpha,character_selection:logo_tr:alpha,character_selection:logo_zo:alpha" >
1108                 <key time="0.0" value="255" />
1109                 <key time="0.5" value="0" />
1110         </track>
1111         
1112 </anim>
1115 <anim id="anim_char_sel_delete_title" duration="1.0" on_finish="proc" on_finish_params="proc_charsel_deletechar" >
1117 <!--
1118         <track type="linear" target="character_selection:help:alpha">
1119                 <key time="0.0" value="255" />
1120                 <key time="0.5" value="0" />
1121         </track>
1123         
1124         <track type="linear" target="character_selection:quit:alpha">
1125                 <key time="0.0" value="255" />
1126                 <key time="0.5" value="0" />
1127         </track>
1129         <track type="linear" target="character_selection:del_title:y">
1130                 <key time="0.0" value="20" />
1131                 <key time="1.0" value="-6" />
1132         </track>
1133         
1134 </anim>
1137 <anim id="anim_char_sel_delete" duration="1.0"  on_finish="anim_start" on_finish_params="anim=anim_char_sel_delete2" >
1139         <track type="linear" target="character_selection:del_title:y">
1140                 <key time="0.0" value="-6" />
1141                 <key time="1.0" value="20" />
1142         </track>
1144         <track type="linear" target="character_selection:char3d:x" dynamic="true" >
1145                 <key time="0.0" value="0" />
1146                 <key time="1.0" value="sub(getprop('ui:outgame:character_selection:w'),224)" />
1147         </track>
1149         <track type="linear" target="character_selection:logo_fy:alpha,character_selection:logo_ma:alpha,character_selection:logo_tr:alpha,character_selection:logo_zo:alpha" >
1150                 <key time="0.0" value="255" />
1151                 <key time="0.5" value="0" />
1152         </track>
1153         
1155 </anim>
1158 <anim id="anim_char_sel_delete2" duration="0.5"  on_finish="proc" on_finish_params="active_char_sel">
1159         <track type="linear" target="character_selection:bg:h" dynamic="true" >
1160                 <key time="0.0" value="sub(getprop('ui:outgame:character_selection:h'),112)" />
1161                 <key time="0.5" value="0" />
1162         </track>
1164         <track type="linear" target="character_selection:bg:y" dynamic="true" >
1165                 <key time="0.0" value="-32" />
1166                 <key time="0.5" value="sub(0,add(div(sub(getprop('ui:outgame:character_selection:h'),112),2),32))" />
1167         </track>
1168 </anim>
1171 <!-- Anim called when we are on a full slot and we click on an empty slot -->
1172 <anim id="anim_char_sel_full_to_empty" duration="0.75" >
1173         <track type="linear" target="character_selection:char3d:x" dynamic="true" >
1174                 <key time="0.0" value="0" />
1175                 <key time="0.75" value="sub(getprop('ui:outgame:character_selection:w'),224)" />
1176         </track>
1177         
1178         <track type="linear" target="character_selection:bg_empty:alpha">
1179                 <key time="0.0" value="0" />
1180                 <key time="0.75" value="255" />
1181         </track>
1182         
1183         <track type="linear" target="character_selection:logo_fy:alpha,character_selection:logo_ma:alpha,character_selection:logo_tr:alpha,character_selection:logo_zo:alpha" >
1184                 <key time="0.0" value="255" />
1185                 <key time="0.75" value="0" />
1186         </track>
1187         
1188         <track type="linear" target="character_selection:option1:x">
1189                 <key time="0.0" value="16" />
1190                 <key time="0.75" value="-176" />
1191         </track>
1192         <track type="linear" target="character_selection:option2:x">
1193                 <key time="0.0" value="-176" />
1194                 <key time="0.75" value="16" />
1195         </track>
1196         <track type="linear" target="character_selection:option1:alpha">
1197                 <key time="0.0" value="255" />
1198                 <key time="0.75" value="0" />
1199         </track>
1200         <track type="linear" target="character_selection:option2:alpha">
1201                 <key time="0.0" value="0" />
1202                 <key time="0.75" value="255" />
1203         </track>
1204         
1205         
1206 </anim>
1208 <!-- Anim called when we are on a empty slot and we click on a full slot -->
1209 <anim id="anim_char_sel_empty_to_full" duration="0.75" >
1210         <track type="linear" target="character_selection:char3d:x" dynamic="true" >
1211                 <key time="0.0" value="sub(getprop('ui:outgame:character_selection:w'),224)" />
1212                 <key time="0.75" value="0" />
1213         </track>
1214         
1215         <track type="linear" target="character_selection:bg_empty:alpha">
1216                 <key time="0.0" value="255" />
1217                 <key time="0.75" value="0" />
1218         </track>
1219         
1220         <track type="linear" target="character_selection:logo_fy:alpha,character_selection:logo_ma:alpha,character_selection:logo_tr:alpha,character_selection:logo_zo:alpha" >
1221                 <key time="0.0" value="0" />
1222                 <key time="0.75" value="255" />
1223         </track>
1224         
1225         <track type="linear" target="character_selection:option2:x">
1226                 <key time="0.0" value="16" />
1227                 <key time="0.75" value="-176" />
1228         </track>
1229         <track type="linear" target="character_selection:option1:x">
1230                 <key time="0.0" value="-176" />
1231                 <key time="0.75" value="16" />
1232         </track>
1233         <track type="linear" target="character_selection:option2:alpha">
1234                 <key time="0.0" value="255" />
1235                 <key time="0.75" value="0" />
1236         </track>
1237         <track type="linear" target="character_selection:option1:alpha">
1238                 <key time="0.0" value="0" />
1239                 <key time="0.75" value="255" />
1240         </track>
1241         
1243 </anim>
1247 <!-- Anim called when we are on a full slot and we click on a full slot -->
1248 <anim id="anim_char_sel_full_to_full_1" duration="0.5" on_finish="proc" on_finish_params="proc_click_slot2" >
1249         <track type="linear" target="character_selection:char3d:x" dynamic="true" >
1250                 <key time="0.0" value="0" />
1251                 <key time="0.5" value="sub(getprop('ui:outgame:character_selection:w'),224)" />
1252         </track>
1253         
1254                 <track type="linear" target="character_selection:logo_fy:alpha,character_selection:logo_ma:alpha,character_selection:logo_tr:alpha,character_selection:logo_zo:alpha" >
1255                 <key time="0.0" value="255" />
1256                 <key time="0.5" value="0" />
1257         </track>
1259 </anim>
1261 <anim id="anim_char_sel_full_to_full_2" duration="0.5" >
1262         <track type="linear" target="character_selection:char3d:x" dynamic="true" >
1263                 <key time="0.0" value="sub(getprop('ui:outgame:character_selection:w'),224)" />
1264                 <key time="0.5" value="0" />
1265         </track>
1266         
1267                 <track type="linear" target="character_selection:logo_fy:alpha,character_selection:logo_ma:alpha,character_selection:logo_tr:alpha,character_selection:logo_zo:alpha" >
1268                 <key time="0.0" value="0" />
1269                 <key time="0.5" value="255" />
1270         </track>
1271         
1272 </anim>
1274 <!-- anim called the first time we click on a slot and this one is empty -->
1275 <anim id="anim_init_empty" duration="0.75" >
1276         <track type="linear" target="character_selection:next:alpha,character_selection:option2:alpha,character_selection:options:alpha">
1277                 <key time="0.0" value="0" />
1278                 <key time="0.75" value="255" />
1279         </track>
1280         <track type="linear" target="character_selection:option2:x">
1281                 <key time="0.0" value="-176" />
1282                 <key time="0.75" value="16" />
1283         </track>
1284         
1285         <track type="linear" target="character_selection:bg_empty:alpha">
1286                 <key time="0.0" value="0" />
1287                 <key time="0.75" value="255" />
1288         </track>
1289         
1290         <track type="linear" target="character_selection:sel_infos:alpha">
1291                 <key time="0.0" value="255" />
1292                 <key time="0.75" value="0" />
1293         </track>
1294         
1295 </anim>
1297 <!-- anim called the first time we click on a slot and this one is full -->
1298 <anim id="anim_init_full" duration="0.75" >
1299         <track type="linear" target="character_selection:next:alpha,character_selection:option1:alpha,character_selection:options:alpha">
1300                 <key time="0.0" value="0" />
1301                 <key time="0.75" value="255" />
1302         </track>
1303         <track type="linear" target="character_selection:option1:x">
1304                 <key time="0.0" value="-176" />
1305                 <key time="0.75" value="16" />
1306         </track>
1307         <track type="linear" target="character_selection:char3d:x" dynamic="true" >
1308                 <key time="0.0" value="sub(getprop('ui:outgame:character_selection:w'),224)" />
1309                 <key time="0.75" value="0" />
1310         </track>
1311         
1312                 <track type="linear" target="character_selection:logo_fy:alpha,character_selection:logo_ma:alpha,character_selection:logo_tr:alpha,character_selection:logo_zo:alpha" >
1313                 <key time="0.0" value="0" />
1314                 <key time="0.5" value="255" />
1315         </track>
1316         
1317         <track type="linear" target="character_selection:sel_infos:alpha">
1318                 <key time="0.0" value="255" />
1319                 <key time="0.75" value="0" />
1320         </track>
1321         
1322 </anim>
1324 <!-- ROTATION OF THE CHARACTER -->
1326 </interface_config>