34 lines
776 B
GDScript
34 lines
776 B
GDScript
extends Window
|
|
|
|
|
|
func _on_psl_click_signal() -> void:
|
|
self.show()
|
|
$"../stationKeys".show()
|
|
$"../stationKeys".shouAllKeys()
|
|
hidePSLAllowHandleKey()
|
|
hideInterlockReleaseSwitchHandleKey()
|
|
|
|
|
|
func _on_close_requested():
|
|
self.hide()
|
|
$"../stationKeys".hide()
|
|
|
|
|
|
func shouPSLAllowHandleKey():
|
|
$MarginContainer/GridContainer/PSLAllow.shouHandleKey()
|
|
|
|
|
|
func hidePSLAllowHandleKey():
|
|
$MarginContainer/GridContainer/PSLAllow.hideHandleKey()
|
|
|
|
|
|
func shouInterlockReleaseSwitchHandleKey():
|
|
$MarginContainer/GridContainer/InterlockReleaseSwitch.shouHandleKey()
|
|
|
|
func hideInterlockReleaseSwitchHandleKey():
|
|
$MarginContainer/GridContainer/InterlockReleaseSwitch.hideHandleKey()
|
|
|
|
|
|
func onHandleSignal(openLight: bool, keySwitch: Variant) -> void:
|
|
print(openLight,keySwitch,666)
|