File: scale.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 (26 lines) | stat: -rw-r--r-- 860 bytes parent folder | download | duplicates (2)
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
[object_type]
	id=scale
	timer_frequency = 10
	

		[editor_info]
		category=machines
		[/editor_info]
		
	platform_area=3,56,27,56
	zorder=-1
	
	on_create="[spawn('text_controller', midpoint_x+10, midpoint_y+8, 1), set(vars.target_weight, 0), set(vars.displayed_weight, 0), set(vars.increase, 0)]"
	on_child_spawned="[set(vars.display, child), set(child.vars.txt, '0f')]"
	on_jumped_on="[set(vars.target_weight, (jumped_on_by.mass + jumped_on_by.tmp.swallowed.mass) * 10)]"
	on_timer="[	set(vars.displayed_weight, vars.displayed_weight + vars.increase),
				set(vars.increase, (((vars.target_weight - vars.displayed_weight) * 10) / 15)),
				set(vars.display.vars.txt, (vars.displayed_weight) + 'f'), fire_event(vars.display, 'create')]"
		
		[animation]
			id=normal
			image=props/scale.png
			rect=0,0,31,63
			collide=5,0,26,7
		[/animation]
[/object_type]