godot-psd-training/UI/psl/psl_window.gd

33 lines
866 B
GDScript3
Raw Normal View History

2024-04-19 17:48:20 +08:00
extends Window
2024-04-22 15:32:19 +08:00
func _on_psl_click_signal() -> void:
self.show()
$"../stationKeys".show()
$"../stationKeys".shouAllKeys()
hidePSLAllowHandleKey()
hideInterlockReleaseSwitchHandleKey()
2024-04-19 17:48:20 +08:00
func _on_close_requested():
self.hide()
2024-04-22 15:32:19 +08:00
func shouPSLAllowHandleKey():
$PanelContainer/VBoxContainer/MarginContainer/GridContainer/PSLAllow.shouHandleKey()
2024-04-19 17:48:20 +08:00
2024-04-22 15:32:19 +08:00
func hidePSLAllowHandleKey():
$PanelContainer/VBoxContainer/MarginContainer/GridContainer/PSLAllow.hideHandleKey()
2024-04-19 17:48:20 +08:00
2024-04-22 15:32:19 +08:00
func shouInterlockReleaseSwitchHandleKey():
$PanelContainer/VBoxContainer/MarginContainer/GridContainer/InterlockReleaseSwitch.shouHandleKey()
func hideInterlockReleaseSwitchHandleKey():
$PanelContainer/VBoxContainer/MarginContainer/GridContainer/InterlockReleaseSwitch.hideHandleKey()
2024-04-19 17:48:20 +08:00
2024-04-22 15:32:19 +08:00
func onHandleSignal(openLight: bool, keySwitch: Variant) -> void:
print(openLight,keySwitch,666)