2015-03-10 03:53:09 +00:00
|
|
|
|
|
|
|
extends Control
|
|
|
|
|
|
|
|
|
|
|
|
func _ready():
|
|
|
|
for c in get_node("pictures").get_children():
|
2015-11-21 15:13:43 +00:00
|
|
|
get_node("picture").add_item("PIC: " + c.get_name())
|
2015-03-10 03:53:09 +00:00
|
|
|
for c in get_node("effects").get_children():
|
2015-11-21 15:13:43 +00:00
|
|
|
get_node("effect").add_item("FX: " + c.get_name())
|
2015-03-10 03:53:09 +00:00
|
|
|
|
|
|
|
|
2015-11-21 15:13:43 +00:00
|
|
|
func _on_picture_item_selected(ID):
|
2015-03-10 03:53:09 +00:00
|
|
|
for c in range(get_node("pictures").get_child_count()):
|
2015-11-21 15:13:43 +00:00
|
|
|
if (ID == c):
|
2015-03-10 03:53:09 +00:00
|
|
|
get_node("pictures").get_child(c).show()
|
|
|
|
else:
|
|
|
|
get_node("pictures").get_child(c).hide()
|
|
|
|
|
|
|
|
|
2015-11-21 15:13:43 +00:00
|
|
|
func _on_effect_item_selected(ID):
|
2015-03-10 03:53:09 +00:00
|
|
|
for c in range(get_node("effects").get_child_count()):
|
2015-11-21 15:13:43 +00:00
|
|
|
if (ID == c):
|
2015-03-10 03:53:09 +00:00
|
|
|
get_node("effects").get_child(c).show()
|
|
|
|
else:
|
|
|
|
get_node("effects").get_child(c).hide()
|