File: text_controller.cfg

package info (click to toggle)
frogatto-data 1.0-2
  • links: PTS, VCS
  • area: non-free
  • in suites: squeeze
  • size: 155,116 kB
  • sloc: makefile: 1
file content (42 lines) | stat: -rw-r--r-- 609 bytes parent folder | download
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
[object_type]
	id=text_controller
	ignore_collide=true
	
	on_create="[set(alpha, 0), if(txt, text(txt, 'door_label', size))]"
	on_end_anim="animation('normal')"
	zorder=50

	[vars]
	txt="'TEXT'"
	size=1
	[/vars]
	
	[editor_info]
	category=controllers
			[var]
			name=txt
			type=text
			value="'TEXT'"
			[/var]
			[var]
			name=size
			value="1"
			[/var]
	[/editor_info]

	[properties]
	 set_text="def(text) [set(vars.txt, text), fire_event(me, 'create')]"
	[/properties]

	[animation]
	id=normal
	image=effects/particles.png
	x=148
	y=42
	w=28
	h=28
	frames=1
	duration=1000
	[/animation]

[/object_type]