screen_shaders.gd 541 B

123456789101112131415161718192021222324
  1. extends Control
  2. func _ready():
  3. for c in $pictures.get_children():
  4. $picture.add_item("PIC: " + c.get_name())
  5. for c in get_node("effects").get_children():
  6. $effect.add_item("FX: " + c.get_name())
  7. func _on_picture_item_selected(ID):
  8. for c in range($pictures.get_child_count()):
  9. if ID == c:
  10. $pictures.get_child(c).show()
  11. else:
  12. $pictures.get_child(c).hide()
  13. func _on_effect_item_selected(ID):
  14. for c in range($effects.get_child_count()):
  15. if ID == c:
  16. $effects.get_child(c).show()
  17. else:
  18. $effects.get_child(c).hide()