screen_shaders.gd 529 B

1234567891011121314151617181920212223
  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 $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()