2015-03-10 04:53:09 +01:00
|
|
|
extends Control
|
|
|
|
|
|
|
|
func _ready():
|
2020-02-03 09:53:07 +01:00
|
|
|
for c in $Pictures.get_children():
|
|
|
|
$Picture.add_item("PIC: " + c.get_name())
|
|
|
|
for c in $Effects.get_children():
|
|
|
|
$Effect.add_item("FX: " + c.get_name())
|
2015-03-10 04:53:09 +01:00
|
|
|
|
|
|
|
|
2015-11-21 16:13:43 +01:00
|
|
|
func _on_picture_item_selected(ID):
|
2020-02-03 09:53:07 +01:00
|
|
|
for c in range($Pictures.get_child_count()):
|
2017-11-12 04:53:14 +01:00
|
|
|
if ID == c:
|
2020-02-03 09:53:07 +01:00
|
|
|
$Pictures.get_child(c).show()
|
2015-03-10 04:53:09 +01:00
|
|
|
else:
|
2020-02-03 09:53:07 +01:00
|
|
|
$Pictures.get_child(c).hide()
|
2015-03-10 04:53:09 +01:00
|
|
|
|
|
|
|
|
2015-11-21 16:13:43 +01:00
|
|
|
func _on_effect_item_selected(ID):
|
2020-02-03 09:53:07 +01:00
|
|
|
for c in range($Effects.get_child_count()):
|
2017-11-12 04:53:14 +01:00
|
|
|
if ID == c:
|
2020-02-03 09:53:07 +01:00
|
|
|
$Effects.get_child(c).show()
|
2015-03-10 04:53:09 +01:00
|
|
|
else:
|
2020-02-03 09:53:07 +01:00
|
|
|
$Effects.get_child(c).hide()
|