Rescaled maps and reworked drone code
Rescaled maps and reworked drone code to support fpv remote and joy controller with a menu switch
This commit is contained in:
@@ -2,6 +2,9 @@ extends Control
|
||||
|
||||
@export var start_button: Button
|
||||
@export var quit_button: Button
|
||||
@export var controller_mode_button: CheckButton
|
||||
@export var joy_controller_label: Label
|
||||
@export var fpv_remote_label: Label
|
||||
|
||||
|
||||
func _ready():
|
||||
@@ -23,3 +26,14 @@ func _on_quit_button_pressed():
|
||||
func _on_visibility_changed() -> void:
|
||||
if visible:
|
||||
start_button.grab_focus()
|
||||
|
||||
|
||||
func _on_controller_mode_button_toggled(toggled_on):
|
||||
if toggled_on:
|
||||
GameManager.controller_mode = "FPVRemote"
|
||||
joy_controller_label.self_modulate = Color(0.5, 0.5, 0.5, 1.0)
|
||||
fpv_remote_label.self_modulate = Color(0.0, 1.0, 0.0, 1.0)
|
||||
elif !toggled_on:
|
||||
GameManager.controller_mode = "JoyController"
|
||||
joy_controller_label.self_modulate = Color(0.0, 1.0, 0.0, 1.0)
|
||||
fpv_remote_label.self_modulate = Color(0.5, 0.5, 0.5, 1.0)
|
||||
|
||||
Reference in New Issue
Block a user