From 2e66680d52627da755d379899813b6c5a1d6eef6 Mon Sep 17 00:00:00 2001 From: teatov Date: Sun, 13 Oct 2024 20:41:13 +1000 Subject: [PATCH] replace `'` with `"` --- scripts/anthill.gd | 4 ++-- scripts/globals/debug_manager.gd | 10 +++++----- scripts/interactable.gd | 2 +- scripts/ui/pause_menu.gd | 4 ++-- scripts/units/abstract/controlled_unit.gd | 2 +- scripts/units/ant_nitwit.gd | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/scripts/anthill.gd b/scripts/anthill.gd index 810e15f..0cace49 100644 --- a/scripts/anthill.gd +++ b/scripts/anthill.gd @@ -41,11 +41,11 @@ func deposit_honeydew(amount: int) -> int: func spawn_nitwit(ding: bool = true) -> void: - print('spawn!') + print("spawn!") var new_unit := _create_unit(_nitwit_scene, AntNitwit.get_cost(), ding) if new_unit == null: return - print('add!') + print("add!") StaticNodesManager.nitwits_holder.add_child(new_unit) diff --git a/scripts/globals/debug_manager.gd b/scripts/globals/debug_manager.gd index 2ae2f03..dfaf1bc 100644 --- a/scripts/globals/debug_manager.gd +++ b/scripts/globals/debug_manager.gd @@ -35,10 +35,10 @@ func _process(_delta: float) -> void: return _control.queue_redraw() - text('fps: ' + str(Performance.get_monitor(Performance.TIME_FPS))) - text('draw calls: ' + str(Performance.get_monitor(Performance.RENDER_TOTAL_DRAW_CALLS_IN_FRAME))) - text('camera anim step: ' + str(StaticNodesManager.main_camera.advance_anim_step)) - text('select anim step: ' + str(SelectionManager.advance_anim_step)) + text("fps: " + str(Performance.get_monitor(Performance.TIME_FPS))) + text("draw calls: " + str(Performance.get_monitor(Performance.RENDER_TOTAL_DRAW_CALLS_IN_FRAME))) + text("camera anim step: " + str(StaticNodesManager.main_camera.advance_anim_step)) + text("select anim step: " + str(SelectionManager.advance_anim_step)) func _input(event: InputEvent) -> void: @@ -85,7 +85,7 @@ func _unproject(pos: Vector3) -> Vector2: func _draw_text() -> void: - _label.text = '\n'.join(_text_to_draw) + _label.text = "\n".join(_text_to_draw) func _draw_vector(from: Vector3, to: Vector3, color: Color) -> void: diff --git a/scripts/interactable.gd b/scripts/interactable.gd index 42f4332..04d9a46 100644 --- a/scripts/interactable.gd +++ b/scripts/interactable.gd @@ -45,7 +45,7 @@ func _input(event: InputEvent) -> void: func _click() -> void: - print(self, ' clicked!') + print(self, " clicked!") func _on_mouse_entered() -> void: diff --git a/scripts/ui/pause_menu.gd b/scripts/ui/pause_menu.gd index 06da0ec..9056db6 100644 --- a/scripts/ui/pause_menu.gd +++ b/scripts/ui/pause_menu.gd @@ -28,10 +28,10 @@ func _close() -> void: func _on_cancel_button_pressed() -> void: - print('cancel') + print("cancel") _close() func _on_quit_button_pressed() -> void: - print('quit') + print("quit") get_tree().quit() diff --git a/scripts/units/abstract/controlled_unit.gd b/scripts/units/abstract/controlled_unit.gd index 56c5120..828744e 100644 --- a/scripts/units/abstract/controlled_unit.gd +++ b/scripts/units/abstract/controlled_unit.gd @@ -81,7 +81,7 @@ func navigate(to: Vector3, relocating: bool = false) -> void: func _interact(with: Interactable) -> void: - print(self, ' interacting with ', with) + print(self, " interacting with ", with) func _set_target_click(mouse_pos: Vector2) -> void: diff --git a/scripts/units/ant_nitwit.gd b/scripts/units/ant_nitwit.gd index 0c87327..b4aa7de 100644 --- a/scripts/units/ant_nitwit.gd +++ b/scripts/units/ant_nitwit.gd @@ -68,9 +68,9 @@ func _on_moving_started() -> void: func _on_gathering_navigate_to(pos: Vector3) -> void: - print('_on_gathering_navigate_to') + print("_on_gathering_navigate_to") if state != State.GATHERING: return - print('_on_gathering_navigate_to 2') + print("_on_gathering_navigate_to 2") navigate(pos)