godot-psd-training/UI/JJTC/jjlc.gd
2024-04-29 17:13:14 +08:00

37 lines
982 B
GDScript

extends Window
func _on_jjtc_click_jjtc_signal():
self.show()
$"../stationKeys".onShowWindow(StationKeyWindow.WindowType.JJTC)
func _on_close_requested():
$"../stationKeys".hide()
self.hide() # Replace with function body.
func _on_station_keys_gui_input(event):
if event.button_mask == MouseButtonMask.MOUSE_BUTTON_MASK_LEFT:
$"../stationKeys".onShowWindow(StationKeyWindow.WindowType.JJTC)
func shouJJTCKey():
$JJTC_Key.show()
$JJTC_Right_Rotate.show()
$JJTC_Left_Rotate.show()
func _on_jjtc_button_gui_input(event):
if event.button_mask == MouseButtonMask.MOUSE_BUTTON_MASK_LEFT:
print('jjtc button 按下')
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)
func pullOutKey():
$"../stationKeys".showKeyAfterRemoveKey('JJTC_Key')