2024-06-18 08:45:49 +08:00
|
|
|
extends Node2D
|
|
|
|
|
|
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
|
|
func _ready():
|
|
|
|
pass # Replace with function body.
|
|
|
|
|
|
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
|
|
func _process(delta):
|
|
|
|
pass
|
|
|
|
|
2024-06-18 10:22:05 +08:00
|
|
|
func initButton():
|
|
|
|
$HBoxContainer/AExitGate.set_pressed_no_signal(true)
|
|
|
|
$HBoxContainer/ALowerStepSwitch.set_pressed_no_signal(false)
|
|
|
|
$HBoxContainer/ATVM.set_pressed_no_signal(false)
|
|
|
|
$HBoxContainer/AInboundGate.set_pressed_no_signal(false)
|
|
|
|
$HBoxContainer/AUpperStep.set_pressed_no_signal(false)
|
|
|
|
$HBoxContainer/ALowerStep.set_pressed_no_signal(false)
|
|
|
|
$HBoxContainer/AGangway.set_pressed_no_signal(false)
|
|
|
|
|
2024-06-18 08:45:49 +08:00
|
|
|
|
|
|
|
func _on_back_pressed():
|
2024-07-05 18:22:52 +08:00
|
|
|
$"..".back('StaionHall')
|
2024-06-18 08:45:49 +08:00
|
|
|
|
|
|
|
|
|
|
|
func _on_a_gangway_pressed():
|
2024-06-18 10:22:05 +08:00
|
|
|
$"..".switchCamera(LargePassengerFlowScene.Camera_name.AGangway)
|
2024-06-18 08:45:49 +08:00
|
|
|
|
|
|
|
|
|
|
|
func _on_a_lower_step_pressed():
|
2024-06-18 10:22:05 +08:00
|
|
|
$"..".switchCamera(LargePassengerFlowScene.Camera_name.ALowerStep)
|
2024-06-18 08:45:49 +08:00
|
|
|
|
|
|
|
|
|
|
|
func _on_a_upper_step_pressed():
|
2024-06-18 10:22:05 +08:00
|
|
|
$"..".switchCamera(LargePassengerFlowScene.Camera_name.AUpperStep)
|
2024-06-18 08:45:49 +08:00
|
|
|
|
|
|
|
|
|
|
|
func _on_a_exit_gate_pressed():
|
2024-06-18 10:22:05 +08:00
|
|
|
$"..".switchCamera(LargePassengerFlowScene.Camera_name.AExitGate)
|
2024-06-18 08:45:49 +08:00
|
|
|
|
|
|
|
|
|
|
|
func _on_a_inbound_gate_pressed():
|
2024-06-18 10:22:05 +08:00
|
|
|
$"..".switchCamera(LargePassengerFlowScene.Camera_name.AInboundGate)
|
2024-06-18 08:45:49 +08:00
|
|
|
|
|
|
|
|
|
|
|
func _on_atvm_pressed():
|
2024-06-18 10:22:05 +08:00
|
|
|
$"..".switchCamera(LargePassengerFlowScene.Camera_name.ATVM)
|
2024-06-18 08:45:49 +08:00
|
|
|
|
|
|
|
|
|
|
|
func _on_a_lower_step_switch_pressed():
|
2024-06-18 10:22:05 +08:00
|
|
|
$"..".switchCamera(LargePassengerFlowScene.Camera_name.ALowerStep)
|