Fix checkRpItemsPosition
[ryzomcore.git] / ryzom / client / data / gamedev / interfaces_v3 / outgame_intro.xml
blob3a92222a37b66db6a94ec820d42c3097e9cb6c63
1 <interface_config>
3 <root id="outgame" x="0" y="0" w="800" h="600" active="false" />
4 <variable entry="UI:TEMP:INTROCLICKSTEP"        type="sint64" value="-1"/>
6 <!-- ***************** -->
7 <!-- *   PROCEDURES  * -->
8 <!-- ***************** -->
10 <proc id="proc_next_screen_when_intro_logo_finished">
11         <action handler="set" params="dblink=UI:CURRENT_SCREEN|value=%screen_select" />
12 </proc>
14 <proc id="proc_active_intro_logo_noskip">
15         <action handler="set" params="dblink=UI:TEMP:INTROCLICKSTEP|value=0" />
16         <action handler="set" params="target_property=ui:outgame:logo_intro:back:active|value=0" />
17         <action handler="set" params="target_property=ui:outgame:logo_intro:back_txt:active|value=0" />
18         <action handler="set" params="target_property=ui:outgame:logo_intro:tryton_text:texture|value='tryton1.tga'" />
19         <action handler="anim_start" params="anim=anim_intro_logo" />
20         <action handler="anim_start" params="anim=anim_tryton_fadein_start" />
21 </proc>
23 <!-- check if we have to skip the intro -->
24 <proc id="proc_active_intro_logo">
25         <action handler="proc" cond="eq(@UI:TEMP:SKIP_INTRO,0)" params="proc_active_intro_logo_noskip" />       
26         <action handler="set" params="target_property=ui:outgame:global_background:active|value=1" />
27         <action handler="proc" cond="ne(@UI:TEMP:SKIP_INTRO,0)" params="proc_intro_skip" />     
28 </proc>
30 <proc id="proc_intro_next_step">
31         <action handler="play_sound" params="name=intro_click" />
32         <action handler="set" params="dblink=UI:TEMP:INTROCLICKSTEP|value=add(@@UI:TEMP:INTROCLICKSTEP,1)" />
33         <action handler="anim_start" params="anim=anim_tryton_fadeout" />
34 </proc>
36 <proc id="proc_intro_back_step">
37         <action handler="play_sound" params="name=intro_click" />
38         <action handler="set" params="dblink=UI:TEMP:INTROCLICKSTEP|value=sub(@@UI:TEMP:INTROCLICKSTEP,1)" />
39         <action handler="anim_start" params="anim=anim_tryton_fadeout" />
40 </proc>
42 <proc id="proc_tryton_fadeout_finished">
43         <action handler="set" cond="ne(@UI:TEMP:INTROCLICKSTEP,0)" params="target_property=ui:outgame:logo_intro:back:active|value=1" />
44         <action handler="set" cond="ne(@UI:TEMP:INTROCLICKSTEP,0)" params="target_property=ui:outgame:logo_intro:back_txt:active|value=1" />
45         
46         <action handler="set" cond="eq(@UI:TEMP:INTROCLICKSTEP,0)" params="target_property=ui:outgame:logo_intro:back:active|value=0" />
47         <action handler="set" cond="eq(@UI:TEMP:INTROCLICKSTEP,0)" params="target_property=ui:outgame:logo_intro:back_txt:active|value=0" />
48         <action handler="proc" params="proc_tryton_fadeout_finished2" />
49 </proc>
51 <proc id="proc_tryton_fadeout_finished2">
52         <action handler="set" cond="eq(@UI:TEMP:INTROCLICKSTEP,0)" params="target_property=ui:outgame:logo_intro:tryton_text:texture|value='tryton1.tga'" />
53         <action handler="set" cond="eq(@UI:TEMP:INTROCLICKSTEP,1)" params="target_property=ui:outgame:logo_intro:tryton_text:texture|value='tryton2.tga'" />
54         <action handler="set" cond="eq(@UI:TEMP:INTROCLICKSTEP,2)" params="target_property=ui:outgame:logo_intro:tryton_text:texture|value='tryton3.tga'" />
55         <action handler="set" cond="eq(@UI:TEMP:INTROCLICKSTEP,3)" params="target_property=ui:outgame:logo_intro:tryton_text:texture|value='tryton4.tga'" />
56         <action handler="proc" cond="eq(@UI:TEMP:INTROCLICKSTEP,4)" params="proc_intro_skip" />
57         <action handler="anim_start" cond="ne(@UI:TEMP:INTROCLICKSTEP,4)" params="anim=anim_tryton_fadein" />
58 </proc>
61 <!-- Skip intro -->
62 <proc id="proc_intro_skip">
63         <action handler="play_sound" params="name=intro_click" />
64         <action handler="anim_stop" params="anim=anim_intro_logo" />
65         <action handler="set" params="target_property=ui:outgame:global_background:back3d:cam:posx|value=-3.18" />
66         <action handler="set" params="target_property=ui:outgame:global_background:back3d:cam:posy|value=-13.0" />
67         <action handler="set" params="target_property=ui:outgame:global_background:back3d:cam:tgtx|value=-3.23" />
68         <action handler="set" params="target_property=ui:outgame:global_background:back3d:cam:tgtz|value=0.0" />
69         <action handler="set" params="dblink=UI:CURRENT_SCREEN|value=%screen_select" />
70 </proc>
72 <!-- loop forever -->
73 <proc id="proc_when_atys_turn_finished">
74         <action handler="anim_start" params="anim=anim_atys_turn" />
75 </proc>
81 <!-- *********************** -->
82 <!-- *  GLOBAL BACKGROUND  * -->
83 <!-- *********************** -->
84 <!-- for all screens -->
86 <group id="global_background" sizeref="wh" w="0" h="0" on_active="anim_start" on_active_params="anim=anim_atys_turn" active="false" overlappable="false" >
88         <view type="bitmap" id="stars" render_layer="1" txtoffsetx="0" txtoffsety="0" txtwidth="800" txtheight="600"
89         global_color="false" color="255 255 255 255" posref="BL BL" x="0" y="0" sizeref="wh" w="0" h="0" texture="default_bg.tga" scale="true" />
91         <!-- ATYS -->
92         <scene3d id="back3d" x="0" y="0" sizeref="wh" w="0" h="0" posref="TL TL" curcam="cam" 
93                                                 ambient="0 0 0" sun_ambient="50 50 50" sun_diffuse="160 160 160" sun_specular="255 255 255" sun_direction="1.0 1.0 -1.0" >
95                 <camera id="cam" fov="45" pos="-3.18 -13.0 0.0" target="-3.23 0 0.0" roll="0" />
97                 <light id="l1" pos="-4.6 -5.0 4.0" color="255 255 192" near="8.0" far="10.0" />
99                 <shape id="glow" name="atysglow.shape" pos="0 0 0" rot="0.0 0.0 0.0" />
100                 <shape id="atys" name="atys.shape" pos="0 0 0" rot="0.0 0.0 0.0" />
101                 <shape id="atm1" name="atmos1.shape" pos="0 0 0" rot="0.0 0.0 0.0" />
102                 <shape id="atm2" name="atmos2.shape" pos="0 0 0" rot="0.0 0.0 0.0" />
103                 
104         </scene3d>
105 </group>
107 <!-- ***************** -->
108 <!-- * INTRODUCTION  * -->
109 <!-- ***************** -->
111 <group id="logo_intro" sizeref="wh" w="0" h="0" on_active="proc" on_active_params="proc_active_intro_logo" >
113         <!-- BLACK BACK -->
114         <view type="bitmap" id="bg" posref="MM MM" x="0" y="0" render_layer="0" texture="blank.tga" color="0 0 0 255" scale="true" global_color="false" />
116         
117         
118         <!--
119         <view type="bitmap" id="nevrax" render_layer="1" txtoffsetx="0" txtoffsety="0" txtwidth="352" txtheight="48"
120         global_color="false" color="255 255 255 255" posref="MM MM" x="0" y="0" texture="logos_intro.tga" />
122         <view type="bitmap" id="presents" render_layer="1" txtoffsetx="0" txtoffsety="176" txtwidth="128" txtheight="32"
123         global_color="false" color="255 255 255 255" posref="MM MM" x="0" y="0" texture="logos_intro.tga" />
124         
125         <view type="bitmap" id="ryzom" render_layer="1" txtoffsetx="0" txtoffsety="48" txtwidth="400" txtheight="128"
126                 global_color="false" color="255 255 255 0" posref="MM MM" x="0" y="0" texture="logos_intro.tga" />
127         -->
129         <!-- EXIT BUTTON -->
130         
131         <ctrl type="button" id="skip" button_type="push_button" posref="TR TR" x="-8" y="-16"
132                         tx_normal="button_next.tga" tx_pushed="button_next_over.tga" tx_over="button_next_over.tga" color="255 128 0 255"
133                         onclick_l="proc" params_l="proc_intro_skip"  tooltip="uiSkipIntro" />
134                         
135         <view type="text" id="skip_txt" posparent="skip" posref="MR MR" x="-36" y="-1" hardtext="uiSkipTryton" shadow="true" fontsize="16" color="255 255 255 255" render_layer="2" />          
136         
137         <ctrl type="button" id="next" button_type="push_button" posref="BR BR" x="-8" y="16"
138                         tx_normal="button_next.tga" tx_pushed="button_next_over.tga" tx_over="button_next_over.tga" color="255 255 255 255"
139                         onclick_l="proc" params_l="proc_intro_next_step"  tooltip="uiNextStep" />
140                         
141         <view type="text" id="next_txt" posparent="next" posref="MR MR" x="-36" y="-1" hardtext="uiNextTryton" shadow="true" fontsize="16" color="255 255 255 255" render_layer="2" />          
142         
143         <ctrl type="button" id="back" button_type="push_button" posref="BL BL" x="8" y="16"
144                         tx_normal="button_back.tga" tx_pushed="button_back_over.tga" tx_over="button_back_over.tga" color="255 255 255 0"
145                         onclick_l="proc" params_l="proc_intro_back_step"  tooltip="uiPrevStep" />
146                         
147         <view type="text" id="back_txt" posparent="back" posref="ML ML" x="36" y="-1" hardtext="uiBackTryton" shadow="true" fontsize="16" color="255 255 255 255" render_layer="2" />           
149         
150                 
151         <!-- TRYTON's TEXT -->
152         <!--
153         <group type="scroll_text" id="tryton_text" sizeref="w" w="-200" child_resize_h="true" child_resize_wmargin="16" child_resize_hmargin="16" posref="MM MM" x="0" y="0" min_height="64" max_height="500" active="true" >
154                 <group id="black" posref="TL TL" sizeref="hw" w="0" h="0" />
155                 <group type="list" id="text_list" hardtext="uiTryton1" shadow="true" fontsize="36" justification="justified" color="255 255 255 255" space="3" 
156                                                                                         posref="TL TL" posparent="black" x="8" y="-8" sizeref="hw" w="-16" h="-16" />
157         </group>        
158         -->
159         <view type="bitmap" id="tryton_text" render_layer="1" global_color="false" color="255 255 255 255"
160                 posref="MM MM" x="0" y="0" texture="tryton1.tga" txtoffsetx="128" txtoffsety="120" txtwidth="760" txtheight="272" />
161         
162 </group>
164 <!-- This link is used to display the right screen among the outgame screens -->
165 <link expr="eq(@UI:CURRENT_SCREEN, %screen_intro)" target="logo_intro:active" />
168 <!-- ***************** -->
169 <!-- *  ANIMATIONS   * -->
170 <!-- ***************** -->
172 <!-- Intro -->
173 <anim id="anim_intro_logo" duration="60.0" disable_buttons="false" >
174                                                         
175         <track type="linear" target="global_background:back3d:cam:posx">
176                 <key time="0.0" value="-5.0" />
177                 <key time="60.0" value="-3.18"/>
178         </track>
179         
180         <track type="linear" target="global_background:back3d:cam:tgtx">
181                 <key time="0.0" value="-25.0" />
182                 <key time="60.0" value="-3.23"/>
183         </track>
184         
185         <track type="linear" target="global_background:back3d:cam:tgtz">
186                 <key time="0.0" value="20.0" />
187                 <key time="60.0" value="0"/>
188         </track>
190         <track type="linear" target="global_background:back3d:cam:posy">
191                 <key time="0.0" value="-45.0" />
192                 <key time="60.0" value="-13.0"/>
193         </track>
194         
195 </anim>
197 <anim id="anim_tryton_fadein" duration="1.0" disable_buttons="true" >
198         <track type="linear" target="logo_intro:tryton_text:alpha">
199                 <key time="0.0" value="0" />
200                 <key time="1.0" value="255"/>
201         </track>
202         
203         <track type="linear" target="logo_intro:next:alpha,logo_intro:next_txt:alpha">
204                 <key time="0.0" value="0" />
205                 <key time="1.0" value="255"/>
206         </track>
207         
208         <track type="linear" target="logo_intro:back:alpha,logo_intro:back_txt:alpha">
209                 <key time="0.0" value="0" />
210                 <key time="1.0" value="255"/>
211         </track>
212 </anim>
216 <anim id="anim_tryton_fadein_start" duration="4.0" disable_buttons="true" >
218         <track type="linear" target="global_background:stars:alpha">
219                 <key time="0.0" value="0.0" />
220                 <key time="1.0" value="0.0" />
221                 <key time="3.0" value="255"/>
222         </track>
224         <track type="linear" target="logo_intro:tryton_text:alpha">
225                 <key time="0.0" value="0" />
226                 <key time="3.0" value="0"/>
227                 <key time="4.0" value="255"/>
228         </track>
229         
230         <track type="linear" target="logo_intro:skip:alpha,logo_intro:skip_txt:alpha">
231                 <key time="0.0" value="0" />
232                 <key time="3.0" value="0"/>
233                 <key time="4.0" value="255"/>
234         </track>
235         
236         <track type="linear" target="logo_intro:next:alpha,logo_intro:next_txt:alpha">
237                 <key time="0.0" value="0" />
238                 <key time="3.0" value="0"/>
239                 <key time="4.0" value="255"/>
240         </track>
241         
242 </anim>
245 <anim id="anim_tryton_fadeout" duration="1.0" disable_buttons="true" on_finish="proc" on_finish_params="proc_tryton_fadeout_finished" >
246         <track type="linear" target="logo_intro:tryton_text:alpha">
247                 <key time="0.0" value="255" />
248                 <key time="1.0" value="0"/>
249         </track>
250         
251         <track type="linear" target="logo_intro:next:alpha,logo_intro:next_txt:alpha">
252                 <key time="0.0" value="255" />
253                 <key time="1.0" value="0"/>
254         </track>
255         
256         <track type="linear" target="logo_intro:back:alpha,logo_intro:back_txt:alpha">
257                 <key time="0.0" value="255" />
258                 <key time="1.0" value="0"/>
259         </track>
260 </anim>
264 <!-- atys is turning around forever -->
265 <anim id="anim_atys_turn" duration="360.0" disable_buttons="false"
266                                                         on_finish="proc" on_finish_params="proc_when_atys_turn_finished" >
268         <track type="linear" target="global_background:back3d:atys:roty">
269                 <key time="0.0" value="0.0" />
270                 <key time="360.0" value="-360.0"/>
271         </track>
272         
273         <track type="linear" target="global_background:back3d:atm1:roty">
274                 <key time="0.0" value="0.0" />
275                 <key time="360.0" value="720.0"/>
276         </track>
277         
278         <track type="linear" target="global_background:back3d:atm2:roty">
279                 <key time="0.0" value="0.0" />
280                 <key time="360.0" value="-720.0"/>
281         </track>
283 </anim>
286 </interface_config>