File: text_controller.cfg

package info (click to toggle)
frogatto-data 1.2%2Bdfsg-1
  • links: PTS, VCS
  • area: non-free
  • in suites: wheezy
  • size: 201,844 kB
  • sloc: python: 302; xml: 223; perl: 139; sh: 48; makefile: 13; ruby: 4
file content (51 lines) | stat: -rw-r--r-- 742 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
43
44
45
46
47
48
49
50
51
[object_type]
id="text_controller"
ignore_collide="true"
on_end_anim="animation('normal')"
on_load="[
		set(alpha, 0),
		if(txt, text(txt, 'white_outline', size, centered)),
		]"
zorder="50"
	[vars]
	centered="0"
	size="1"
	txt="'TEXT'"
	[/vars]

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

		[var]
		name="size"
		value="1"
		[/var]

		[var]
		name="centered"
		type="boolean"
		value="0"
		[/var]

	[/editor_info]

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

	[animation]
	duration="1000"
	frame_info="2,2,2,1,770,501,24,25"
	frames="1"
	id="normal"
	image="compiled-2.png"
	rect="768,499,795,526"
	[/animation]

[/object_type]