summaryrefslogtreecommitdiff
path: root/demos/2d/screen_space_shaders/screen_shaders.gd
blob: 4e8a548539fa9afb40c9e4788c84e47420732e91 (plain)
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

extends Control

# member variables here, example:
# var a=2
# var b="textvar"

func _ready():
	# Initialization here
	for c in get_node("pictures").get_children():
		get_node("picture").add_item("PIC: "+c.get_name())
	for c in get_node("effects").get_children():
		get_node("effect").add_item("FX: "+c.get_name())
	pass




func _on_picture_item_selected( ID ):
	for c in range(get_node("pictures").get_child_count()):
		if (ID==c):
			get_node("pictures").get_child(c).show()
		else:
			get_node("pictures").get_child(c).hide()


func _on_effect_item_selected( ID ):
	for c in range(get_node("effects").get_child_count()):
		if (ID==c):
			get_node("effects").get_child(c).show()
		else:
			get_node("effects").get_child(c).hide()