ControUIl.gd 829 B

12345678910111213141516171819202122232425262728
  1. extends Control
  2. onready var global_v=get_tree().get_root().get_node("scene")
  3. func cb_press1():
  4. if !global_v.get_node("Control/CheckBox2").pressed:
  5. global_v.get_node("Control/CheckBox2").pressed=true
  6. return
  7. global_v.get_node("Control/CheckBox3").pressed=false
  8. global_v.get_node("Control/CheckBox4").pressed=false
  9. func cb_press2():
  10. if !global_v.get_node("Control/CheckBox3").pressed:
  11. global_v.get_node("Control/CheckBox3").pressed=true
  12. return
  13. global_v.get_node("Control/CheckBox2").pressed=false
  14. global_v.get_node("Control/CheckBox4").pressed=false
  15. func cb_press3():
  16. if !global_v.get_node("Control/CheckBox4").pressed:
  17. global_v.get_node("Control/CheckBox4").pressed=true
  18. return
  19. global_v.get_node("Control/CheckBox2").pressed=false
  20. global_v.get_node("Control/CheckBox3").pressed=false
  21. func _ready():
  22. pass