1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
[object_type]
id="text_controller_fading"
ignore_collide="true"
on_create="[set(alpha, 0), if(txt, text(txt, font, size)),animation('fadein')]"
on_end_fadein_anim="animation('normal')"
on_end_fadeout_anim="animation('invisible')"
on_end_invisible_anim="animation('invisible')"
on_end_normal_anim="animation('normal')"
on_enter_invisible_anim="set(text_alpha,0)"
on_enter_normal_anim="set(text_alpha,255)"
on_hide="animation('fadeout')"
on_process_fadein="set(text_alpha, (time_in_animation * 255)/100 )"
on_process_fadeout="set(text_alpha, ((100-time_in_animation) * 255)/100 )"
zorder="50"
[vars]
size="1"
txt="'TEXT'"
[/vars]
[properties]
hide="def() [fire_event(me, 'hide')]"
set_text="def(text) [set(vars.txt, text), fire_event(me, 'create')]"
[/properties]
[animation]
duration="100"
frame_info="2,2,2,1,838,226,24,25"
frames="1"
id="fadein"
image="compiled-2.png"
rect="836,224,863,251"
[/animation]
[animation]
duration="100"
frame_info="2,2,2,1,838,226,24,25"
frames="1"
id="fadeout"
image="compiled-2.png"
rect="836,224,863,251"
[/animation]
[animation]
duration="100"
frame_info="2,2,2,1,838,226,24,25"
frames="1"
id="normal"
image="compiled-2.png"
rect="836,224,863,251"
[/animation]
[animation]
duration="100"
frame_info="2,2,2,1,838,226,24,25"
frames="1"
id="invisible"
image="compiled-2.png"
rect="836,224,863,251"
[/animation]
[/object_type]
|