Skip to content

Commit

Permalink
Merge pull request #19 from Maaack/fix-errors
Browse files Browse the repository at this point in the history
Fix errors and warnings
  • Loading branch information
Maaack authored Jan 4, 2024
2 parents bb734de + 571ee93 commit 3df1554
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion App/Scenes/Menus/OptionsMenu/Video/VideoOptionsMenu.gd
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ func _update_resolution_options_enabled(window : Window):
resolution_options.tooltip_text = "Select a screen size"

func _update_ui(window : Window):
var current_resolution : Vector2i = window.size
fullscreen_button.button_pressed = AppSettings.is_fullscreen(window)
_preselect_resolution(window)
_update_resolution_options_enabled(window)
Expand Down
3 changes: 3 additions & 0 deletions App/Scripts/SceneLoader.gd
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ func _check_loading_screen() -> bool:
return false
return true

func reload_current_scene() -> void:
get_tree().reload_current_scene()

func load_scene(scene_path : String, in_background : bool = false) -> void:
if scene_path == null or scene_path.is_empty():
push_error("no path given to load")
Expand Down
2 changes: 1 addition & 1 deletion Extras/Scenes/GameScene/GameUI.gd
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func _get_inputs_as_string():
all_inputs += " + " + action_name
return all_inputs

func _process(delta):
func _process(_delta):
if Input.is_anything_pressed():
$Label.text = _get_inputs_as_string()
else:
Expand Down
2 changes: 1 addition & 1 deletion Extras/Scenes/Opening/Opening.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ extends Control

func next():
var status = SceneLoader.get_status()
if SceneLoader.get_status() == ResourceLoader.THREAD_LOAD_LOADED:
if status == ResourceLoader.THREAD_LOAD_LOADED:
var packed_scene = SceneLoader.get_resource()
get_tree().change_scene_to_packed(packed_scene)
else:
Expand Down

0 comments on commit 3df1554

Please sign in to comment.