2024-04-26 15:14:40 +08:00
|
|
|
extends Window
|
|
|
|
|
2024-05-13 15:44:09 +08:00
|
|
|
##是否允许操作
|
|
|
|
var allowHandle :bool = true
|
|
|
|
|
2024-04-26 15:14:40 +08:00
|
|
|
func _on_jjtc_click_jjtc_signal():
|
2024-05-13 15:44:09 +08:00
|
|
|
allClickJJTCSignal.emit('JJTC',$".")
|
|
|
|
if !allowHandle :
|
|
|
|
return
|
2024-04-26 15:14:40 +08:00
|
|
|
self.show()
|
2024-04-29 17:13:14 +08:00
|
|
|
$"../stationKeys".onShowWindow(StationKeyWindow.WindowType.JJTC)
|
2024-04-26 15:14:40 +08:00
|
|
|
|
|
|
|
|
|
|
|
func _on_close_requested():
|
2024-04-28 11:21:59 +08:00
|
|
|
$"../stationKeys".hide()
|
2024-04-26 15:14:40 +08:00
|
|
|
self.hide() # Replace with function body.
|
2024-04-28 11:21:59 +08:00
|
|
|
|
|
|
|
|
|
|
|
func _on_station_keys_gui_input(event):
|
|
|
|
if event.button_mask == MouseButtonMask.MOUSE_BUTTON_MASK_LEFT:
|
2024-04-29 17:13:14 +08:00
|
|
|
$"../stationKeys".onShowWindow(StationKeyWindow.WindowType.JJTC)
|
2024-04-28 11:21:59 +08:00
|
|
|
|
|
|
|
func shouJJTCKey():
|
|
|
|
$JJTC_Key.show()
|
|
|
|
$JJTC_Right_Rotate.show()
|
|
|
|
$JJTC_Left_Rotate.show()
|
|
|
|
|
|
|
|
|
|
|
|
func _on_jjtc_button_gui_input(event):
|
2024-04-29 11:22:44 +08:00
|
|
|
if event.button_mask == MouseButtonMask.MOUSE_BUTTON_MASK_LEFT:
|
2024-05-13 15:44:09 +08:00
|
|
|
allClickJJTCSignal.emit('JJTCButton',$".")
|
|
|
|
if !allowHandle :
|
|
|
|
return
|
2024-05-15 13:44:54 +08:00
|
|
|
$JJTC_Button_Click.play()
|
2024-04-28 11:21:59 +08:00
|
|
|
|
|
|
|
|
|
|
|
func _on_jjtc_button_mouse_entered():
|
|
|
|
$JJTC_Button.set_default_cursor_shape(Control.CursorShape.CURSOR_POINTING_HAND)
|
|
|
|
|
|
|
|
|
|
|
|
func _on_jjtc_button_mouse_exited():
|
|
|
|
$PanelContainer/VBoxContainer/MarginContainer/JJTC_Box.set_default_cursor_shape(Control.CursorShape.CURSOR_ARROW)
|
2024-04-29 11:22:44 +08:00
|
|
|
|
|
|
|
func pullOutKey():
|
|
|
|
$"../stationKeys".showKeyAfterRemoveKey('JJTC_Key')
|
2024-05-11 14:10:07 +08:00
|
|
|
|
|
|
|
##所有LCB点击操作汇总
|
|
|
|
signal allClickJJTCSignal(equipmentName:String,equipmentInfo)
|