style: apply gdformat formatting across the entire project
Auto-format all GDScript files using gdformat from gdtoolkit. This is a baseline formatting pass to ensure consistent style: - Normalizes indentation and spacing - Wraps long lines to 100 characters - Removes trailing whitespace - Standardizes blank lines between functions 68 files reformatted, 8 files left unchanged (3rd-party addon files with parse errors excluded).
This commit is contained in:
+9
-8
@@ -1,6 +1,5 @@
|
||||
extends Control
|
||||
|
||||
|
||||
var player: Node
|
||||
var visible_mode: int = 1
|
||||
|
||||
@@ -11,7 +10,7 @@ func _init() -> void:
|
||||
|
||||
func _process(p_delta) -> void:
|
||||
$Label.text = "FPS: %d\n" % Engine.get_frames_per_second()
|
||||
if(visible_mode == 1):
|
||||
if visible_mode == 1:
|
||||
$Label.text += "Move Speed: %.1f\n" % player.MOVE_SPEED if player else ""
|
||||
$Label.text += "Position: %.1v\n" % player.global_position if player else ""
|
||||
$Label.text += """
|
||||
@@ -37,12 +36,12 @@ func _unhandled_key_input(p_event: InputEvent) -> void:
|
||||
KEY_F8:
|
||||
get_tree().quit()
|
||||
KEY_F9:
|
||||
visible_mode = (visible_mode + 1 ) % 3
|
||||
visible_mode = (visible_mode + 1) % 3
|
||||
$Label/Panel.visible = (visible_mode == 1)
|
||||
visible = visible_mode > 0
|
||||
KEY_F10:
|
||||
var vp = get_viewport()
|
||||
vp.debug_draw = (vp.debug_draw + 1 ) % 6
|
||||
vp.debug_draw = (vp.debug_draw + 1) % 6
|
||||
get_viewport().set_input_as_handled()
|
||||
KEY_F11:
|
||||
toggle_fullscreen()
|
||||
@@ -53,11 +52,13 @@ func _unhandled_key_input(p_event: InputEvent) -> void:
|
||||
else:
|
||||
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
|
||||
get_viewport().set_input_as_handled()
|
||||
|
||||
|
||||
|
||||
|
||||
func toggle_fullscreen() -> void:
|
||||
if DisplayServer.window_get_mode() == DisplayServer.WINDOW_MODE_EXCLUSIVE_FULLSCREEN or \
|
||||
DisplayServer.window_get_mode() == DisplayServer.WINDOW_MODE_FULLSCREEN:
|
||||
if (
|
||||
DisplayServer.window_get_mode() == DisplayServer.WINDOW_MODE_EXCLUSIVE_FULLSCREEN
|
||||
or DisplayServer.window_get_mode() == DisplayServer.WINDOW_MODE_FULLSCREEN
|
||||
):
|
||||
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED)
|
||||
DisplayServer.window_set_size(Vector2(1280, 720))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user