diff --git a/gui/screens/licenses/licenses.gd b/gui/screens/licenses/licenses.gd index acc7ee58..b95f6e91 100644 --- a/gui/screens/licenses/licenses.gd +++ b/gui/screens/licenses/licenses.gd @@ -19,7 +19,7 @@ func _godot_licenses() -> String: for component in copyright_info: var component_name: String = component["name"] var parts: Array = component["parts"] - for part in parts: + for part: Dictionary in parts: var _files: Array = part["files"] var copyright: Array = part["copyright"] var license: String = part["license"] @@ -33,7 +33,7 @@ func _godot_licenses() -> String: result += "\n\n# Licenses" var licenses := Engine.get_license_info() - for license_name in licenses: + for license_name: String in licenses: var text: String = licenses[license_name] result += "\n\n## " + license_name + "\n\n" + text.strip_edges() diff --git a/gui/screens/main_menu/main_menu.gd b/gui/screens/main_menu/main_menu.gd index 7bd0cc84..c1c140a6 100644 --- a/gui/screens/main_menu/main_menu.gd +++ b/gui/screens/main_menu/main_menu.gd @@ -48,7 +48,8 @@ func _set_currently_toggled(index: ToggleState) -> void: self._buttons_by_state[index].button_pressed = true self._currently_toggled = index - var node: Control = self._scenes_by_state[index].instantiate() + var scene: PackedScene = self._scenes_by_state[index] + var node: Control = scene.instantiate() self.content_container.add_child(node) self._current_view = node diff --git a/project.godot b/project.godot index 7cfb0043..0969fa94 100644 --- a/project.godot +++ b/project.godot @@ -24,6 +24,17 @@ config/icon="res://gui/images/icon.svg" UserPreferences="*res://user/user_preferences.gd" MathUtils="*res://utils/math_utils.gd" +[debug] + +gdscript/warnings/property_used_as_function=2 +gdscript/warnings/constant_used_as_function=2 +gdscript/warnings/function_used_as_property=2 +gdscript/warnings/untyped_declaration=1 +gdscript/warnings/unsafe_property_access=1 +gdscript/warnings/unsafe_method_access=1 +gdscript/warnings/unsafe_cast=1 +gdscript/warnings/unsafe_call_argument=1 + [display] window/size/viewport_width=3840