From d589f1d35aad70367b43ff6f17395ac292008a33 Mon Sep 17 00:00:00 2001 From: Spartan322 Date: Wed, 31 Dec 2025 07:45:09 -0500 Subject: [PATCH] Update to Godot 4.6 RC 2 Release Replace deque_ordered_map StringName keys with godot HashMap StringName keys --- .github/workflows/builds.yml | 6 +- README.md | 4 +- docs/contribution-quickstart-guide.md | 2 +- extension/doc_tools/make_rst.py | 145 +++++++++--------- extension/doc_tools/patches/make_rst.patch | 44 +++--- .../singletons/AssetManager.cpp | 34 ++-- .../singletons/AssetManager.hpp | 5 +- .../singletons/CursorSingleton.cpp | 32 ++-- .../singletons/CursorSingleton.hpp | 2 +- .../singletons/GameSingleton.cpp | 6 +- .../singletons/GameSingleton.hpp | 2 +- .../singletons/SoundSingleton.cpp | 22 +-- .../singletons/SoundSingleton.hpp | 6 +- game/assets/graphics/theme/default_theme.tres | 2 +- .../graphics/theme/game_session_menu.tres | 2 +- game/assets/graphics/theme/main_menu.tres | 2 +- .../theme/main_menu_button_normal.tres | 2 +- game/assets/graphics/theme/options_menu.tres | 2 +- game/project.godot | 8 +- .../Autoload/MusicManager/MusicManager.tscn | 6 +- game/src/Model/flag_mat.tres | 2 +- game/src/Model/scrolling_mat.tres | 2 +- game/src/Model/unit_colours_mat.tres | 2 +- game/src/Systems/Session/GameSession.tscn | 50 +++--- game/src/Systems/Session/Map/MapView.tscn | 20 +-- game/src/Systems/Startup/GameStart.tscn | 16 +- game/src/Systems/Startup/LoadingScreen.tscn | 24 ++- .../UI/GameMenu/CreditsMenu/CreditsMenu.tscn | 16 +- .../CreditsMenu/GodotEngineButton.tscn | 4 +- game/src/UI/GameMenu/GameMenu/GameMenu.tscn | 16 +- .../UI/GameMenu/GameMenu/LocaleButton.tscn | 4 +- game/src/UI/GameMenu/LobbyMenu/LobbyMenu.tscn | 50 +++--- .../GameMenu/LobbyMenu/LobbyPanelButton.tscn | 12 +- game/src/UI/GameMenu/MainMenu/MainMenu.tscn | 34 ++-- .../DirectConnectionEntry.tscn | 18 +-- .../MultiplayerMenu/DirectConnectionTab.tscn | 42 ++--- .../UI/GameMenu/MultiplayerMenu/HostTab.tscn | 26 ++-- .../MultiplayerMenu/MultiplayerMenu.tscn | 20 +-- .../GameMenu/MultiplayerMenu/SecretEdit.tscn | 8 +- .../UI/GameMenu/OptionMenu/ControlsTab.tscn | 6 +- .../UI/GameMenu/OptionMenu/GeneralTab.tscn | 22 +-- .../OptionMenu/KeychainShortcutEdit.tscn | 4 +- .../UI/GameMenu/OptionMenu/OptionsMenu.tscn | 18 +-- game/src/UI/GameMenu/OptionMenu/OtherTab.tscn | 8 +- game/src/UI/GameMenu/OptionMenu/SoundTab.tscn | 16 +- game/src/UI/GameMenu/OptionMenu/VideoTab.tscn | 38 ++--- .../UI/GameMenu/OptionMenu/VolumeGrid.tscn | 4 +- .../ReleaseInfoBox/ReleaseInfoBox.tscn | 18 +-- .../GameMenu/SaveLoadMenu/SaveLoadMenu.tscn | 33 ++-- .../SaveLoadMenu/SavePanelButton.tscn | 18 +-- game/src/UI/Session/PauseMenu/PauseMenu.tscn | 26 ++-- game/src/UI/Shared/MusicMenu/MusicMenu.tscn | 18 +-- godot-cpp | 2 +- 53 files changed, 469 insertions(+), 462 deletions(-) diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index a45979e0..32aeeefd 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -24,9 +24,9 @@ on: - 'README.md' env: - GODOT_BASE_DOWNLOAD_URL: https://github.com/godotengine/godot - GODOT_VERSION: 4.5 - GODOT_VERSION_TYPE: stable + GODOT_BASE_DOWNLOAD_URL: https://github.com/godotengine/godot-builds + GODOT_VERSION: 4.6 + GODOT_VERSION_TYPE: rc2 OPENVIC_BASE_BRANCH: master concurrency: diff --git a/README.md b/README.md index a97e9fd5..8cc66a85 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Main Repo for the OpenVic Project For detailed instructions, view the Contributor Quickstart Guide [here](docs/contribution-quickstart-guide.md) ## System Requirements -* [Godot 4.5](https://github.com/godotengine/godot/releases/tag/4.5-stable) +* [Godot 4.6](https://github.com/godotengine/godot/releases/tag/4.5-stable) * [scons](https://scons.org/) > [!WARNING] @@ -31,7 +31,7 @@ See [Cloning](docs/contribution/cloning.md). ## [Godot Documentation](https://docs.godotengine.org/en/latest/) ## Build/Run Instructions -1. Install [Godot 4.5](https://github.com/godotengine/godot/releases/tag/4.5-stable) and [scons](https://scons.org/) for your system. +1. Install [Godot 4.6](https://github.com/godotengine/godot/releases/tag/4.5-stable) and [scons](https://scons.org/) for your system. 2. Run the command `git submodule update --init --recursive` to retrieve all related submodules. 3. Run `scons` in the project root, you should see a libopenvic file in `game/bin/openvic`. 4. Open with Godot 4, click import and navigate to the `game` directory. diff --git a/docs/contribution-quickstart-guide.md b/docs/contribution-quickstart-guide.md index 62119718..27004639 100644 --- a/docs/contribution-quickstart-guide.md +++ b/docs/contribution-quickstart-guide.md @@ -34,7 +34,7 @@ ![](images/installation/scons-install.png) ## 4. [Godot](https://github.com/godotengine/godot/releases/latest) -- Download Godot 4.5 The current version for the project will be on the [main README](../README.md) page. +- Download Godot 4.6 The current version for the project will be on the [main README](../README.md) page. ![](images/installation/godot-dl-page.png) diff --git a/extension/doc_tools/make_rst.py b/extension/doc_tools/make_rst.py index e8cd6e81..d8bc2680 100644 --- a/extension/doc_tools/make_rst.py +++ b/extension/doc_tools/make_rst.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 # This script makes RST files from the XML class reference for use with the online docs. +from __future__ import annotations import argparse import os @@ -8,7 +9,7 @@ import sys import xml.etree.ElementTree as ET from collections import OrderedDict -from typing import Any, Dict, List, Optional, TextIO, Tuple, Union +from typing import Any, TextIO sys.path.insert(0, root_directory := os.path.join(os.path.dirname(os.path.abspath(__file__)), "../../")) @@ -86,11 +87,13 @@ "This method may be changed or removed in future versions.", "This operator may be changed or removed in future versions.", "This theme property may be changed or removed in future versions.", + # See also `make_rst_class()` and `editor/doc/editor_help.cpp`. "[b]Note:[/b] The returned array is [i]copied[/i] and any changes to it will not update the original property value. See [%s] for more details.", ] -strings_l10n: Dict[str, str] = {} +strings_l10n: dict[str, str] = {} +writing_translation = False -CLASS_GROUPS: Dict[str, str] = { +CLASS_GROUPS: dict[str, str] = { "global": "Globals", "node": "Nodes", "resource": "Resources", @@ -98,21 +101,21 @@ "editor": "Editor-only", "variant": "Variant types", } -CLASS_GROUPS_BASE: Dict[str, str] = { +CLASS_GROUPS_BASE: dict[str, str] = { "node": "Node", "resource": "Resource", "object": "Object", "variant": "Variant", } # Sync with editor\register_editor_types.cpp -EDITOR_CLASSES: List[str] = [ +EDITOR_CLASSES: list[str] = [ "FileSystemDock", "ScriptCreateDialog", "ScriptEditor", "ScriptEditorBase", ] # Sync with the types mentioned in https://docs.godotengine.org/en/stable/tutorials/scripting/c_sharp/c_sharp_differences.html -CLASSES_WITH_CSHARP_DIFFERENCES: List[str] = [ +CLASSES_WITH_CSHARP_DIFFERENCES: list[str] = [ "@GlobalScope", "String", "StringName", @@ -144,7 +147,7 @@ "Variant", ] -PACKED_ARRAY_TYPES: List[str] = [ +PACKED_ARRAY_TYPES: list[str] = [ "PackedByteArray", "PackedColorArray", "PackedFloat32Array", @@ -422,7 +425,7 @@ def parse_class(self, class_root: ET.Element, filepath: str) -> None: self.current_class = "" - def parse_params(self, root: ET.Element, context: str) -> List["ParameterDef"]: + def parse_params(self, root: ET.Element, context: str) -> list[ParameterDef]: param_elements = root.findall("param") params: Any = [None] * len(param_elements) @@ -440,7 +443,7 @@ def parse_params(self, root: ET.Element, context: str) -> List["ParameterDef"]: params[index] = ParameterDef(param_name, type_name, default) - cast: List[ParameterDef] = params + cast: list[ParameterDef] = params return cast @@ -458,7 +461,7 @@ def __init__(self, raw: str, name: str, arguments: str, closing: bool) -> None: class TypeName: - def __init__(self, type_name: str, enum: Optional[str] = None, is_bitfield: bool = False) -> None: + def __init__(self, type_name: str, enum: str | None = None, is_bitfield: bool = False) -> None: self.type_name = type_name self.enum = enum self.is_bitfield = is_bitfield @@ -472,7 +475,7 @@ def to_rst(self, state: State) -> str: return make_type(self.type_name, state) @classmethod - def from_element(cls, element: ET.Element) -> "TypeName": + def from_element(cls, element: ET.Element) -> TypeName: return cls(element.attrib["type"], element.get("enum"), element.get("is_bitfield") == "true") @@ -484,8 +487,8 @@ def __init__( ) -> None: self.definition_name = definition_name self.name = name - self.deprecated: Optional[str] = None - self.experimental: Optional[str] = None + self.deprecated: str | None = None + self.experimental: str | None = None class PropertyDef(DefinitionBase): @@ -493,11 +496,11 @@ def __init__( self, name: str, type_name: TypeName, - setter: Optional[str], - getter: Optional[str], - text: Optional[str], - default_value: Optional[str], - overrides: Optional[str], + setter: str | None, + getter: str | None, + text: str | None, + default_value: str | None, + overrides: str | None, ) -> None: super().__init__("property", name) @@ -510,7 +513,7 @@ def __init__( class ParameterDef(DefinitionBase): - def __init__(self, name: str, type_name: TypeName, default_value: Optional[str]) -> None: + def __init__(self, name: str, type_name: TypeName, default_value: str | None) -> None: super().__init__("parameter", name) self.type_name = type_name @@ -518,7 +521,7 @@ def __init__(self, name: str, type_name: TypeName, default_value: Optional[str]) class SignalDef(DefinitionBase): - def __init__(self, name: str, parameters: List[ParameterDef], description: Optional[str]) -> None: + def __init__(self, name: str, parameters: list[ParameterDef], description: str | None) -> None: super().__init__("signal", name) self.parameters = parameters @@ -529,9 +532,9 @@ class AnnotationDef(DefinitionBase): def __init__( self, name: str, - parameters: List[ParameterDef], - description: Optional[str], - qualifiers: Optional[str], + parameters: list[ParameterDef], + description: str | None, + qualifiers: str | None, ) -> None: super().__init__("annotation", name) @@ -545,9 +548,9 @@ def __init__( self, name: str, return_type: TypeName, - parameters: List[ParameterDef], - description: Optional[str], - qualifiers: Optional[str], + parameters: list[ParameterDef], + description: str | None, + qualifiers: str | None, ) -> None: super().__init__("method", name) @@ -558,7 +561,7 @@ def __init__( class ConstantDef(DefinitionBase): - def __init__(self, name: str, value: str, text: Optional[str], bitfield: bool) -> None: + def __init__(self, name: str, value: str, text: str | None, bitfield: bool) -> None: super().__init__("constant", name) self.value = value @@ -577,7 +580,7 @@ def __init__(self, name: str, type_name: TypeName, bitfield: bool) -> None: class ThemeItemDef(DefinitionBase): def __init__( - self, name: str, type_name: TypeName, data_name: str, text: Optional[str], default_value: Optional[str] + self, name: str, type_name: TypeName, data_name: str, text: str | None, default_value: str | None ) -> None: super().__init__("theme property", name) @@ -597,17 +600,17 @@ def __init__(self, name: str) -> None: self.constants: OrderedDict[str, ConstantDef] = OrderedDict() self.enums: OrderedDict[str, EnumDef] = OrderedDict() self.properties: OrderedDict[str, PropertyDef] = OrderedDict() - self.constructors: OrderedDict[str, List[MethodDef]] = OrderedDict() - self.methods: OrderedDict[str, List[MethodDef]] = OrderedDict() - self.operators: OrderedDict[str, List[MethodDef]] = OrderedDict() + self.constructors: OrderedDict[str, list[MethodDef]] = OrderedDict() + self.methods: OrderedDict[str, list[MethodDef]] = OrderedDict() + self.operators: OrderedDict[str, list[MethodDef]] = OrderedDict() self.signals: OrderedDict[str, SignalDef] = OrderedDict() - self.annotations: OrderedDict[str, List[AnnotationDef]] = OrderedDict() + self.annotations: OrderedDict[str, list[AnnotationDef]] = OrderedDict() self.theme_items: OrderedDict[str, ThemeItemDef] = OrderedDict() - self.inherits: Optional[str] = None - self.brief_description: Optional[str] = None - self.description: Optional[str] = None - self.tutorials: List[Tuple[str, str]] = [] - self.keywords: Optional[str] = None + self.inherits: str | None = None + self.brief_description: str | None = None + self.description: str | None = None + self.tutorials: list[tuple[str, str]] = [] + self.keywords: str | None = None # Used to match the class with XML source for output filtering purposes. self.filepath: str = "" @@ -653,7 +656,7 @@ def update_class_group(self, state: State) -> None: # which don't necessarily need C# examples. class ScriptLanguageParityCheck: def __init__(self) -> None: - self.hit_map: OrderedDict[str, List[Tuple[DefinitionBase, str]]] = OrderedDict() + self.hit_map: OrderedDict[str, list[tuple[DefinitionBase, str]]] = OrderedDict() self.hit_count = 0 def add_hit(self, class_name: str, context: DefinitionBase, error: str, state: State) -> None: @@ -710,6 +713,8 @@ def main() -> None: # Retrieve heading translations for the given language. if not args.dry_run and args.lang != "en": + global writing_translation + writing_translation = True lang_file = os.path.join( os.path.dirname(os.path.realpath(__file__)), "..", "translations", "{}.po".format(args.lang) ) @@ -754,8 +759,8 @@ def main() -> None: print("Checking for errors in the XML class reference...") - file_list: List[str] = [] - game_class_list: List[str] = [] + file_list: list[str] = [] + game_class_list: list[str] = [] for path in (args.path + engine_doc_paths): # Cut off trailing slashes so os.path.basename doesn't choke. @@ -782,7 +787,7 @@ def main() -> None: file_list.append(path) - classes: Dict[str, Tuple[ET.Element, str]] = {} + classes: dict[str, tuple[ET.Element, str]] = {} state = State() for cur_file in file_list: @@ -815,7 +820,7 @@ def main() -> None: print("Generating the RST class reference...") - grouped_classes: Dict[str, List[str]] = {} + grouped_classes: dict[str, list[str]] = {} for class_name, class_def in state.classes.items(): if class_name not in game_class_list: @@ -932,18 +937,18 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir: if class_def.keywords is not None and class_def.keywords != "": f.write(f".. meta::\n\t:keywords: {class_def.keywords}\n\n") - # Warn contributors not to edit this file directly. - # Also provide links to the source files for reference. + if not writing_translation: # Skip for translations to reduce diff. + # Warn contributors not to edit this file directly. + # Also provide links to the source files for reference. + git_branch = get_git_branch() + source_xml_path = os.path.relpath(class_def.filepath, root_directory).replace("\\", "/") + source_github_url = f"https://github.com/OpenVicProject/OpenVic/tree/{git_branch}/{source_xml_path}" + generator_github_url = f"https://github.com/OpenVicProject/OpenVic/tree/{git_branch}/extension/doc_tools/make_rst.py" - git_branch = get_git_branch() - source_xml_path = os.path.relpath(class_def.filepath, root_directory).replace("\\", "/") - source_github_url = f"https://github.com/OpenVicProject/OpenVic/tree/{git_branch}/{source_xml_path}" - generator_github_url = f"https://github.com/OpenVicProject/OpenVic/tree/{git_branch}/extension/doc_tools/make_rst.py" - - f.write(".. DO NOT EDIT THIS FILE!!!\n") - f.write(".. Generated automatically from OpenVic game sources.\n") - f.write(f".. Generator: {generator_github_url}.\n") - f.write(f".. XML source: {source_github_url}.\n\n") + f.write(".. DO NOT EDIT THIS FILE!!!\n") + f.write(".. Generated automatically from Godot engine sources.\n") + f.write(f".. Generator: {generator_github_url}.\n") + f.write(f".. XML source: {source_github_url}.\n\n") # Document reference id and header. f.write(f".. _class_{sanitize_class_name(class_name)}:\n\n") @@ -977,7 +982,7 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir: f.write("\n\n") # Descendants - inherited: List[str] = [] + inherited: list[str] = [] for c in state.classes.values(): if c.inherits and c.inherits.strip() == class_name: inherited.append(c.name) @@ -1038,7 +1043,7 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir: ### REFERENCE TABLES ### # Reused container for reference tables. - ml: List[Tuple[Optional[str], ...]] = [] + ml: list[tuple[str | None, ...]] = [] # Properties reference table if len(class_def.properties) > 0: @@ -1233,6 +1238,7 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir: # Annotation descriptions if len(class_def.annotations) > 0: f.write(make_separator(True)) + f.write(".. rst-class:: classref-descriptions-group\n\n") f.write(make_heading("Annotations", "-")) index = 0 @@ -1333,6 +1339,7 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir: # Add copy note to built-in properties returning `Packed*Array`. if property_def.type_name.type_name in PACKED_ARRAY_TYPES: + # See also `BASE_STRINGS` and `editor/doc/editor_help.cpp`. copy_note = f"[b]Note:[/b] The returned array is [i]copied[/i] and any changes to it will not update the original property value. See [{property_def.type_name.type_name}] for more details." f.write(f"{format_text_block(copy_note, property_def, state)}\n\n") @@ -1572,8 +1579,8 @@ def make_enum(t: str, is_bitfield: bool, state: State) -> str: def make_method_signature( - class_def: ClassDef, definition: Union[AnnotationDef, MethodDef, SignalDef], ref_type: str, state: State -) -> Tuple[str, str]: + class_def: ClassDef, definition: AnnotationDef | MethodDef | SignalDef, ref_type: str, state: State +) -> tuple[str, str]: ret_type = "" if isinstance(definition, MethodDef): @@ -1639,7 +1646,7 @@ def make_setter_signature(class_def: ClassDef, property_def: PropertyDef, state: setter = class_def.methods[property_def.setter][0] # Otherwise we fake it with the information we have available. else: - setter_params: List[ParameterDef] = [] + setter_params: list[ParameterDef] = [] setter_params.append(ParameterDef("value", property_def.type_name, None)) setter = MethodDef(property_def.setter, TypeName("void"), setter_params, None, None) @@ -1656,7 +1663,7 @@ def make_getter_signature(class_def: ClassDef, property_def: PropertyDef, state: getter = class_def.methods[property_def.getter][0] # Otherwise we fake it with the information we have available. else: - getter_params: List[ParameterDef] = [] + getter_params: list[ParameterDef] = [] getter = MethodDef(property_def.getter, property_def.type_name, getter_params, None, None) ret_type, signature = make_method_signature(class_def, getter, "", state) @@ -1755,7 +1762,7 @@ def make_link(url: str, title: str) -> str: return f"`{url} <{url}>`__" -def make_rst_index(grouped_classes: Dict[str, List[str]], dry_run: bool, output_dir: str) -> None: +def make_rst_index(grouped_classes: dict[str, list[str]], dry_run: bool, output_dir: str) -> None: with open( os.devnull if dry_run else os.path.join(output_dir, "index.rst"), "w", encoding="utf-8", newline="\n" ) as f: @@ -1820,7 +1827,7 @@ def make_rst_index(grouped_classes: Dict[str, List[str]], dry_run: bool, output_ ] -def is_in_tagset(tag_text: str, tagset: List[str]) -> bool: +def is_in_tagset(tag_text: str, tagset: list[str]) -> bool: for tag in tagset: # Complete match. if tag_text == tag: @@ -1862,7 +1869,7 @@ def get_tag_and_args(tag_text: str) -> TagState: return TagState(tag_text, tag_name, arguments, closing) -def parse_link_target(link_target: str, state: State, context_name: str) -> List[str]: +def parse_link_target(link_target: str, state: State, context_name: str) -> list[str]: if link_target.find(".") != -1: return link_target.split(".") else: @@ -2110,7 +2117,7 @@ def format_text_block( valid_param_context = isinstance(context, (MethodDef, SignalDef, AnnotationDef)) if valid_param_context: - context_params: List[ParameterDef] = context.parameters # type: ignore + context_params: list[ParameterDef] = context.parameters # type: ignore for param_def in context_params: if param_def.name == inside_code_text: print_warning( @@ -2270,7 +2277,7 @@ def format_text_block( state, ) else: - context_params: List[ParameterDef] = context.parameters # type: ignore + context_params: list[ParameterDef] = context.parameters # type: ignore found = False for param_def in context_params: if param_def.name == link_target: @@ -2435,7 +2442,7 @@ def format_text_block( return text -def preformat_text_block(text: str, state: State) -> Optional[str]: +def preformat_text_block(text: str, state: State) -> str | None: result = "" codeblock_tag = "" indent_level = 0 @@ -2485,7 +2492,7 @@ def preformat_text_block(text: str, state: State) -> Optional[str]: return result -def format_context_name(context: Union[DefinitionBase, None]) -> str: +def format_context_name(context: DefinitionBase | None) -> str: context_name: str = "unknown context" if context is not None: context_name = f'{context.definition_name} "{context.name}" description' @@ -2527,7 +2534,7 @@ def escape_rst(text: str, until_pos: int = -1) -> str: return text -def format_table(f: TextIO, data: List[Tuple[Optional[str], ...]], remove_empty_columns: bool = False) -> None: +def format_table(f: TextIO, data: list[tuple[str | None, ...]], remove_empty_columns: bool = False) -> None: if len(data) == 0: return @@ -2572,7 +2579,7 @@ def format_table(f: TextIO, data: List[Tuple[Optional[str], ...]], remove_empty_ f.write("\n") -def sanitize_class_name(dirty_name: str, is_file_name=False) -> str: +def sanitize_class_name(dirty_name: str, is_file_name: bool = False) -> str: if is_file_name: return dirty_name.lower().replace('"', "").replace("/", "--") else: @@ -2638,4 +2645,4 @@ def sanitize_operator_name(dirty_name: str, state: State) -> str: if __name__ == "__main__": - main() \ No newline at end of file + main() diff --git a/extension/doc_tools/patches/make_rst.patch b/extension/doc_tools/patches/make_rst.patch index ff495bd5..2288cf25 100644 --- a/extension/doc_tools/patches/make_rst.patch +++ b/extension/doc_tools/patches/make_rst.patch @@ -1,8 +1,8 @@ diff --git a/extension/doc_tools/make_rst.py b/extension/doc_tools/make_rst.py -index f98d7b3..e8cd6e8 100644 +index 3f704bd..d8bc268 100644 --- a/extension/doc_tools/make_rst.py +++ b/extension/doc_tools/make_rst.py -@@ -12,7 +12,6 @@ from typing import Any, Dict, List, Optional, TextIO, Tuple, Union +@@ -13,7 +13,6 @@ from typing import Any, TextIO sys.path.insert(0, root_directory := os.path.join(os.path.dirname(os.path.abspath(__file__)), "../../")) @@ -10,7 +10,7 @@ index f98d7b3..e8cd6e8 100644 from misc.utility.color import Ansi, force_stderr_color, force_stdout_color # $DOCS_URL/path/to/page.html(#fragment-tag) -@@ -673,6 +672,13 @@ class ScriptLanguageParityCheck: +@@ -676,6 +675,13 @@ class ScriptLanguageParityCheck: self.hit_map[class_name].append((context, error)) @@ -24,7 +24,7 @@ index f98d7b3..e8cd6e8 100644 # Entry point for the RST generator. def main() -> None: parser = argparse.ArgumentParser() -@@ -721,21 +727,50 @@ def main() -> None: +@@ -726,21 +732,50 @@ def main() -> None: else: print(f'No PO file at "{lang_file}" for language "{args.lang}".') @@ -55,8 +55,8 @@ index f98d7b3..e8cd6e8 100644 + print("Checking for errors in the XML class reference...") - file_list: List[str] = [] -+ game_class_list: List[str] = [] + file_list: list[str] = [] ++ game_class_list: list[str] = [] - for path in args.path: + for path in (args.path + engine_doc_paths): @@ -77,8 +77,8 @@ index f98d7b3..e8cd6e8 100644 elif os.path.isdir(path): file_list += (os.path.join(path, f) for f in os.listdir(path) if f.endswith(".xml")) -@@ -783,6 +818,8 @@ def main() -> None: - grouped_classes: Dict[str, List[str]] = {} +@@ -788,6 +823,8 @@ def main() -> None: + grouped_classes: dict[str, list[str]] = {} for class_name, class_def in state.classes.items(): + if class_name not in game_class_list: @@ -86,7 +86,7 @@ index f98d7b3..e8cd6e8 100644 if args.filter and not pattern.search(class_def.filepath): continue state.current_class = class_name -@@ -874,9 +911,6 @@ def translate(string: str) -> str: +@@ -879,9 +916,6 @@ def translate(string: str) -> str: def get_git_branch() -> str: @@ -96,22 +96,18 @@ index f98d7b3..e8cd6e8 100644 return "master" -@@ -903,11 +937,11 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir: +@@ -908,8 +942,8 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir: + # Also provide links to the source files for reference. + git_branch = get_git_branch() + source_xml_path = os.path.relpath(class_def.filepath, root_directory).replace("\\", "/") +- source_github_url = f"https://github.com/godotengine/godot/tree/{git_branch}/{source_xml_path}" +- generator_github_url = f"https://github.com/godotengine/godot/tree/{git_branch}/doc/tools/make_rst.py" ++ source_github_url = f"https://github.com/OpenVicProject/OpenVic/tree/{git_branch}/{source_xml_path}" ++ generator_github_url = f"https://github.com/OpenVicProject/OpenVic/tree/{git_branch}/extension/doc_tools/make_rst.py" - git_branch = get_git_branch() - source_xml_path = os.path.relpath(class_def.filepath, root_directory).replace("\\", "/") -- source_github_url = f"https://github.com/godotengine/godot/tree/{git_branch}/{source_xml_path}" -- generator_github_url = f"https://github.com/godotengine/godot/tree/{git_branch}/doc/tools/make_rst.py" -+ source_github_url = f"https://github.com/OpenVicProject/OpenVic/tree/{git_branch}/{source_xml_path}" -+ generator_github_url = f"https://github.com/OpenVicProject/OpenVic/tree/{git_branch}/extension/doc_tools/make_rst.py" - - f.write(".. DO NOT EDIT THIS FILE!!!\n") -- f.write(".. Generated automatically from Godot engine sources.\n") -+ f.write(".. Generated automatically from OpenVic game sources.\n") - f.write(f".. Generator: {generator_github_url}.\n") - f.write(f".. XML source: {source_github_url}.\n\n") - -@@ -1733,7 +1767,7 @@ def make_rst_index(grouped_classes: Dict[str, List[str]], dry_run: bool, output_ + f.write(".. DO NOT EDIT THIS FILE!!!\n") + f.write(".. Generated automatically from Godot engine sources.\n") +@@ -1740,7 +1774,7 @@ def make_rst_index(grouped_classes: dict[str, list[str]], dry_run: bool, output_ # Also provide links to the source files for reference. git_branch = get_git_branch() diff --git a/extension/src/openvic-extension/singletons/AssetManager.cpp b/extension/src/openvic-extension/singletons/AssetManager.cpp index 46d9c21f..92f43505 100644 --- a/extension/src/openvic-extension/singletons/AssetManager.cpp +++ b/extension/src/openvic-extension/singletons/AssetManager.cpp @@ -65,9 +65,9 @@ Ref AssetManager::_load_image(StringName const& path, bool flip_y) { Ref AssetManager::get_image(StringName const& path, BitField load_flags) { /* Check for an existing image entry indicating a previous load attempt, whether successful or not. */ - const image_asset_map_t::const_iterator it = image_assets.find(path); - if (it != image_assets.end() && it.value().image.is_valid()) { - return it.value().image; + const image_asset_map_t::Iterator it = image_assets.find(path); + if (it != image_assets.end() && it->value.image.is_valid()) { + return it->value.image; } /* No load attempt has been made yet, so we try now. */ @@ -89,9 +89,9 @@ Ref AssetManager::get_image(StringName const& path, BitField l Ref AssetManager::get_texture(StringName const& path, BitField load_flags) { /* Check for an existing texture entry indicating a previous creation attempt, whether successful or not. */ - const image_asset_map_t::const_iterator it = image_assets.find(path); - if (it != image_assets.end() && it.value().texture.is_valid()) { - return it.value().texture; + const image_asset_map_t::Iterator it = image_assets.find(path); + if (it != image_assets.end() && it->value.texture.is_valid()) { + return it->value.texture; } /* No creation attempt has yet been made, so we try now starting by finding the corresponding image. */ @@ -138,11 +138,11 @@ Ref AssetManager::make_stylebox_texture(Ref const& t } Ref AssetManager::get_font(StringName const& name) { - const font_map_t::const_iterator it = fonts.find(name); + const font_map_t::Iterator it = fonts.find(name); if (it != fonts.end()) { - ERR_FAIL_NULL_V_MSG(it->second, nullptr, Utilities::format("Failed to load font previously: %s", name)); + ERR_FAIL_NULL_V_MSG(it->value, nullptr, Utilities::format("Failed to load font previously: %s", name)); - return it->second; + return it->value; } static const String font_dir = "gfx/fonts/"; @@ -152,35 +152,35 @@ Ref AssetManager::get_font(StringName const& name) { const StringName image_path = font_dir + name + image_ext; const Ref image = get_image(image_path, LOAD_FLAG_NONE); if (image.is_null()) { - fonts.emplace(name, nullptr); + fonts.insert(name, Ref()); - ERR_FAIL_V_MSG(nullptr, Utilities::format("Failed to load font image %s for the font named %s", image_path, name)); + ERR_FAIL_V_MSG(Ref(), Utilities::format("Failed to load font image %s for the font named %s", image_path, name)); } GameSingleton* game_singleton = GameSingleton::get_singleton(); - ERR_FAIL_NULL_V(game_singleton, nullptr); + ERR_FAIL_NULL_V(game_singleton, Ref()); const String font_path = font_dir + name + font_ext; const String lookedup_font_path = convert_to( game_singleton->get_dataloader().lookup_file(convert_to(font_path)).string() ); if (lookedup_font_path.is_empty()) { - fonts.emplace(name, nullptr); + fonts.insert(name, Ref()); - ERR_FAIL_V_MSG(nullptr, Utilities::format("Failed to look up font: %s", font_path)); + ERR_FAIL_V_MSG(Ref(), Utilities::format("Failed to look up font: %s", font_path)); } const Ref font = Utilities::load_godot_font(lookedup_font_path, image); if (font.is_null()) { - fonts.emplace(name, nullptr); + fonts.insert(name, Ref()); ERR_FAIL_V_MSG( - nullptr, + Ref(), Utilities::format("Failed to load font file %s (looked up: %s) for the font named %s", font_path, lookedup_font_path, name) ); } - fonts.emplace(name, font); + fonts.insert(name, font); return font; } diff --git a/extension/src/openvic-extension/singletons/AssetManager.hpp b/extension/src/openvic-extension/singletons/AssetManager.hpp index 3728bb11..3eb50f5a 100644 --- a/extension/src/openvic-extension/singletons/AssetManager.hpp +++ b/extension/src/openvic-extension/singletons/AssetManager.hpp @@ -5,6 +5,7 @@ #include #include #include +#include #include #include @@ -31,8 +32,8 @@ namespace OpenVic { godot::Ref texture; }; /* deque_ordered_map to avoid the need to reallocate. */ - using image_asset_map_t = deque_ordered_map; - using font_map_t = deque_ordered_map>; + using image_asset_map_t = godot::HashMap; + using font_map_t = godot::HashMap>; image_asset_map_t image_assets; font_map_t fonts; diff --git a/extension/src/openvic-extension/singletons/CursorSingleton.cpp b/extension/src/openvic-extension/singletons/CursorSingleton.cpp index edc112bb..0e661fa9 100644 --- a/extension/src/openvic-extension/singletons/CursorSingleton.cpp +++ b/extension/src/openvic-extension/singletons/CursorSingleton.cpp @@ -61,57 +61,57 @@ TypedArray CursorSingleton::get_cursor_names() const { } TypedArray CursorSingleton::get_frames(StringName const& name, int32_t res_index) const { - const cursor_map_t::const_iterator it = cursors.find(name); + const cursor_map_t::ConstIterator it = cursors.find(name); ERR_FAIL_COND_V_MSG(it == cursors.end(), {}, Utilities::format("Cursor \"%s\" not found", name)); - std::vector> const& images = it->second.images; + std::vector> const& images = it->value.images; ERR_FAIL_INDEX_V_MSG(res_index, images.size(), {}, Utilities::format("Invalid image index for cursor \"%s\": %d", name, res_index)); return images[res_index]; } PackedVector2Array CursorSingleton::get_hotspots(StringName const& name, int32_t res_index) const { - const cursor_map_t::const_iterator it = cursors.find(name); + const cursor_map_t::ConstIterator it = cursors.find(name); ERR_FAIL_COND_V_MSG(it == cursors.end(), {}, Utilities::format("Cursor \"%s\" not found", name)); - std::vector const& hotspots = it->second.hotspots; + std::vector const& hotspots = it->value.hotspots; ERR_FAIL_INDEX_V_MSG(res_index, hotspots.size(), {}, Utilities::format("Invalid hotspot index for cursor \"%s\": %d", name, res_index)); return hotspots[res_index]; } int32_t CursorSingleton::get_animation_length(StringName const& name) const { - const cursor_map_t::const_iterator it = cursors.find(name); + const cursor_map_t::ConstIterator it = cursors.find(name); ERR_FAIL_COND_V_MSG(it == cursors.end(), {}, Utilities::format("Cursor \"%s\" not found", name)); - return it->second.animation_length; + return it->value.animation_length; } PackedVector2Array CursorSingleton::get_resolutions(StringName const& name) const { - const cursor_map_t::const_iterator it = cursors.find(name); + const cursor_map_t::ConstIterator it = cursors.find(name); ERR_FAIL_COND_V_MSG(it == cursors.end(), {}, Utilities::format("Cursor \"%s\" not found", name)); - return it->second.resolutions; + return it->value.resolutions; } PackedFloat32Array CursorSingleton::get_display_rates(StringName const& name) const { - const cursor_map_t::const_iterator it = cursors.find(name); + const cursor_map_t::ConstIterator it = cursors.find(name); ERR_FAIL_COND_V_MSG(it == cursors.end(), {}, Utilities::format("Cursor \"%s\" not found", name)); - return it->second.display_rates; + return it->value.display_rates; } PackedInt32Array CursorSingleton::get_sequence(StringName const& name) const { - const cursor_map_t::const_iterator it = cursors.find(name); + const cursor_map_t::ConstIterator it = cursors.find(name); ERR_FAIL_COND_V_MSG(it == cursors.end(), {}, Utilities::format("Cursor \"%s\" not found", name)); - return it->second.sequence; + return it->value.sequence; } void CursorSingleton::generate_resolution(StringName const& name, int32_t base_res_index, Vector2 target_res) { - cursor_map_t::iterator it = cursors.find(name); + cursor_map_t::Iterator it = cursors.find(name); ERR_FAIL_COND_MSG(it == cursors.end(), Utilities::format("Cursor \"%s\" not found", name)); - cursor_asset_t& cursor = it.value(); + cursor_asset_t& cursor = it->value; ERR_FAIL_INDEX_MSG( base_res_index, cursor.images.size(), Utilities::format("Invalid image index for cursor \"%s\": %d", name, base_res_index) @@ -556,7 +556,7 @@ bool CursorSingleton::_load_cursor_ani(StringName const& name, String const& pat } } - cursors.emplace( + cursors.insert( name, cursor_asset_t { std::move(hotspots_by_resolution), @@ -598,7 +598,7 @@ bool CursorSingleton::_load_cursor_cur(StringName const& name, String const& pat hotspots_by_resolution.push_back(hotspots); } - cursors.emplace( + cursors.insert( name, cursor_asset_t { std::move(hotspots_by_resolution), diff --git a/extension/src/openvic-extension/singletons/CursorSingleton.hpp b/extension/src/openvic-extension/singletons/CursorSingleton.hpp index 13c7b2ab..87fad7fc 100644 --- a/extension/src/openvic-extension/singletons/CursorSingleton.hpp +++ b/extension/src/openvic-extension/singletons/CursorSingleton.hpp @@ -43,7 +43,7 @@ namespace OpenVic { }; //map of "subfolder/fileName.cur/.ani" -> cursor_asset. Subfolder comes after gfx/cursor - using cursor_map_t = deque_ordered_map; + using cursor_map_t = godot::HashMap; cursor_map_t cursors; godot::TypedArray cursor_names; diff --git a/extension/src/openvic-extension/singletons/GameSingleton.cpp b/extension/src/openvic-extension/singletons/GameSingleton.cpp index 46164251..b1b76e9a 100644 --- a/extension/src/openvic-extension/singletons/GameSingleton.cpp +++ b/extension/src/openvic-extension/singletons/GameSingleton.cpp @@ -329,10 +329,10 @@ int32_t GameSingleton::get_flag_sheet_index(const country_index_t country_index, -1, Utilities::format("Invalid country index: %d", index) ); - const typename decltype(flag_type_index_map)::const_iterator it = flag_type_index_map.find(flag_type); + const typename decltype(flag_type_index_map)::ConstIterator it = flag_type_index_map.find(flag_type); ERR_FAIL_COND_V_MSG(it == flag_type_index_map.end(), -1, Utilities::format("Invalid flag type %s", flag_type)); - return flag_type_index_map.size() * index + it->second; + return flag_type_index_map.size() * index + it->value; } Rect2i GameSingleton::get_flag_sheet_rect(int32_t flag_index) const { @@ -625,7 +625,7 @@ Error GameSingleton::_load_flag_sheet() { /* Generate flag type - index lookup map */ flag_type_index_map.clear(); for (std::string_view const& type : government_type_manager.get_flag_types()) { - flag_type_index_map.emplace(convert_to(type), static_cast(flag_type_index_map.size())); + flag_type_index_map.insert(convert_to(type), static_cast(flag_type_index_map.size())); } flag_sheet_count = country_definition_manager.get_country_definition_count() * flag_type_index_map.size(); diff --git a/extension/src/openvic-extension/singletons/GameSingleton.hpp b/extension/src/openvic-extension/singletons/GameSingleton.hpp index 95ba173e..c652ade0 100644 --- a/extension/src/openvic-extension/singletons/GameSingleton.hpp +++ b/extension/src/openvic-extension/singletons/GameSingleton.hpp @@ -29,7 +29,7 @@ namespace OpenVic { godot::Vector2i flag_sheet_dims; /* The size of the flag sheet in flags, rather than pixels. */ godot::Ref flag_sheet_image; godot::Ref flag_sheet_texture; - ordered_map flag_type_index_map; + godot::HashMap flag_type_index_map; static godot::StringName const& _signal_gamestate_updated(); static godot::StringName const& _signal_mapmode_changed(); diff --git a/extension/src/openvic-extension/singletons/SoundSingleton.cpp b/extension/src/openvic-extension/singletons/SoundSingleton.cpp index 8080bc04..a9a11428 100644 --- a/extension/src/openvic-extension/singletons/SoundSingleton.cpp +++ b/extension/src/openvic-extension/singletons/SoundSingleton.cpp @@ -72,15 +72,15 @@ String SoundSingleton::to_define_file_name(String const& path, std::string_view Ref SoundSingleton::get_song(String const& path) { String name = to_define_file_name(path, music_folder); - const song_asset_map_t::const_iterator it = tracks.find(name); + const song_asset_map_t::Iterator it = tracks.find(name); if (it != tracks.end()) { // it->first = key, it->second = value - return it->second; + return it->value; } const Ref song = AudioStreamMP3::load_from_file(path); - ERR_FAIL_NULL_V_MSG(song, nullptr, Utilities::format("Failed to load music file: %s", path)); - tracks.emplace(std::move(name), song); + ERR_FAIL_NULL_V_MSG(song, Ref(), Utilities::format("Failed to load music file: %s", path)); + tracks.insert(std::move(name), song); return song; } @@ -161,29 +161,29 @@ bool SoundSingleton::load_music() { Ref SoundSingleton::get_sound(String const& path) { String name = to_define_file_name(path, sound_folder); - const sfx_asset_map_t::const_iterator it = sfx.find(name); + const sfx_asset_map_t::Iterator it = sfx.find(name); if (it != sfx.end()) { // it->first = key, it->second = value - return it->second; + return it->value; } const Ref sound = AudioStreamWAV::load_from_file(path); ERR_FAIL_NULL_V_MSG( - sound, nullptr, Utilities::format("Failed to load sound file %s", path) // named %s, path + sound, Ref(), Utilities::format("Failed to load sound file %s", path) // named %s, path ); - sfx.emplace(std::move(name), sound); + sfx.insert(std::move(name), sound); return sound; } // Get a sound by its define name Ref SoundSingleton::get_sound_stream(String const& path) { - sfx_define_map_t::iterator it = sfx_define.find(path); + sfx_define_map_t::Iterator it = sfx_define.find(path); ERR_FAIL_COND_V_MSG( - it == sfx_define.end(), nullptr, Utilities::format("Attempted to retrieve sound stream at invalid index %s.", path) + it == sfx_define.end(), Ref(), Utilities::format("Attempted to retrieve sound stream at invalid index %s.", path) ); - return it.value().audio_stream; + return it->value.audio_stream; } // get the base volume of a sound from its define name diff --git a/extension/src/openvic-extension/singletons/SoundSingleton.hpp b/extension/src/openvic-extension/singletons/SoundSingleton.hpp index 47a880f1..c340255b 100644 --- a/extension/src/openvic-extension/singletons/SoundSingleton.hpp +++ b/extension/src/openvic-extension/singletons/SoundSingleton.hpp @@ -23,11 +23,11 @@ namespace OpenVic { // cache of songs // names will be like "subfolder/songname", with "music/" base folder and the extension (.mp3) being excluded - using song_asset_map_t = deque_ordered_map>; + using song_asset_map_t = godot::HashMap>; song_asset_map_t tracks; // cache of sfx (map file name to an audio stream), only used temporarily until the sfx_define_map is built - using sfx_asset_map_t = deque_ordered_map>; + using sfx_asset_map_t = godot::HashMap>; sfx_asset_map_t sfx; // define name, stream ref, volume for sound effects so we can get these properties with a simple call in godot @@ -35,7 +35,7 @@ namespace OpenVic { godot::Ref audio_stream; std::optional volume; }; - using sfx_define_map_t = deque_ordered_map; + using sfx_define_map_t = godot::HashMap; sfx_define_map_t sfx_define; static constexpr std::string_view title_theme_name = "thecoronation_titletheme.mp3"; diff --git a/game/assets/graphics/theme/default_theme.tres b/game/assets/graphics/theme/default_theme.tres index dd8d3103..166b7d79 100644 --- a/game/assets/graphics/theme/default_theme.tres +++ b/game/assets/graphics/theme/default_theme.tres @@ -1,4 +1,4 @@ -[gd_resource type="Theme" load_steps=6 format=3 uid="uid://b48ymrsp1q8sf"] +[gd_resource type="Theme" format=3 uid="uid://b48ymrsp1q8sf"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_oe2hl"] content_margin_left = 4.0 diff --git a/game/assets/graphics/theme/game_session_menu.tres b/game/assets/graphics/theme/game_session_menu.tres index 90e800d4..67b5eb76 100644 --- a/game/assets/graphics/theme/game_session_menu.tres +++ b/game/assets/graphics/theme/game_session_menu.tres @@ -1,4 +1,4 @@ -[gd_resource type="Theme" load_steps=10 format=3 uid="uid://cqrfmjt5yeti7"] +[gd_resource type="Theme" format=3 uid="uid://cqrfmjt5yeti7"] [ext_resource type="StyleBox" uid="uid://blwilunhmyvpq" path="res://assets/graphics/theme/main_menu_button_normal.tres" id="1_7med2"] [ext_resource type="AudioStream" uid="uid://bsldcs3l8s7ug" path="res://addons/kenney_ui_audio/click3.wav" id="3_j823n"] diff --git a/game/assets/graphics/theme/main_menu.tres b/game/assets/graphics/theme/main_menu.tres index b3686fef..37c39736 100644 --- a/game/assets/graphics/theme/main_menu.tres +++ b/game/assets/graphics/theme/main_menu.tres @@ -1,4 +1,4 @@ -[gd_resource type="Theme" load_steps=36 format=3 uid="uid://qoi3oec48jp0"] +[gd_resource type="Theme" format=3 uid="uid://qoi3oec48jp0"] [ext_resource type="Script" uid="uid://d2etcw6vfl0k3" path="res://src/UI/Shared/Theme/StyleBoxCombinedTexture.gd" id="1_axke7"] [ext_resource type="Script" uid="uid://bho74dnf1rq0x" path="res://src/UI/Shared/Theme/TextureSetting.gd" id="2_7bwl2"] diff --git a/game/assets/graphics/theme/main_menu_button_normal.tres b/game/assets/graphics/theme/main_menu_button_normal.tres index fe54f1d6..8435bfe9 100644 --- a/game/assets/graphics/theme/main_menu_button_normal.tres +++ b/game/assets/graphics/theme/main_menu_button_normal.tres @@ -1,4 +1,4 @@ -[gd_resource type="StyleBoxTexture" load_steps=2 format=3 uid="uid://blwilunhmyvpq"] +[gd_resource type="StyleBoxTexture" format=3 uid="uid://blwilunhmyvpq"] [ext_resource type="Texture2D" uid="uid://c0p34i3d3b0pw" path="res://assets/graphics/main_menu_button.png" id="1_o43lq"] diff --git a/game/assets/graphics/theme/options_menu.tres b/game/assets/graphics/theme/options_menu.tres index 3f0ae1b8..dc4ea267 100644 --- a/game/assets/graphics/theme/options_menu.tres +++ b/game/assets/graphics/theme/options_menu.tres @@ -1,4 +1,4 @@ -[gd_resource type="Theme" load_steps=8 format=3 uid="uid://fbxssqcg1s0m"] +[gd_resource type="Theme" format=3 uid="uid://fbxssqcg1s0m"] [ext_resource type="Script" uid="uid://d2etcw6vfl0k3" path="res://src/UI/Shared/Theme/StyleBoxCombinedTexture.gd" id="1_6eqg5"] [ext_resource type="Script" uid="uid://bho74dnf1rq0x" path="res://src/UI/Shared/Theme/TextureSetting.gd" id="2_d0e1t"] diff --git a/game/project.godot b/game/project.godot index 3c505886..7346aee7 100644 --- a/game/project.godot +++ b/game/project.godot @@ -8,13 +8,17 @@ config_version=5 +[animation] + +compatibility/default_parent_skeleton_in_mesh_instance_3d=true + [application] config/name="OpenVic" config/description="A faithful recreation of Victoria 2: Heart of Darkness with a focus on enhancing performance, multiplayer stability, and modability for modern machines." run/main_scene="res://src/Systems/Startup/GameStart.tscn" config/use_custom_user_dir=true -config/features=PackedStringArray("4.5", "Forward Plus") +config/features=PackedStringArray("4.6", "Forward Plus") boot_splash/bg_color=Color(0, 0, 0, 0) boot_splash/show_image=false boot_splash/image="res://assets/graphics/splash_image.png" @@ -38,7 +42,7 @@ SoundManager="*res://src/Autoload/SoundManager.gd" MusicManager="*res://src/Autoload/MusicManager/MusicManager.tscn" SaveManager="*res://src/Autoload/SaveManager.gd" CursorManager="*res://src/Autoload/CursorManager.gd" -Keychain="*res://addons/keychain/Keychain.gd" +Keychain="*uid://ba4bw6vqtoail" [display] diff --git a/game/src/Autoload/MusicManager/MusicManager.tscn b/game/src/Autoload/MusicManager/MusicManager.tscn index db411b33..f2ab1f95 100644 --- a/game/src/Autoload/MusicManager/MusicManager.tscn +++ b/game/src/Autoload/MusicManager/MusicManager.tscn @@ -1,14 +1,14 @@ -[gd_scene load_steps=2 format=3 uid="uid://b1h31mnn8n2nu"] +[gd_scene format=3 uid="uid://b1h31mnn8n2nu"] [ext_resource type="Script" uid="uid://l8djqhtmig5e" path="res://src/Autoload/MusicManager/MusicManager.gd" id="1_56t1b"] -[node name="MusicManager" type="Node" node_paths=PackedStringArray("_audio_stream_player")] +[node name="MusicManager" type="Node" unique_id=1194687083 node_paths=PackedStringArray("_audio_stream_player")] script = ExtResource("1_56t1b") music_directory = "res://assets/audio/music" first_song_name = "The_Crown" _audio_stream_player = NodePath("AudioStreamPlayer") -[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] +[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="." unique_id=1602795467] bus = &"MUSIC_BUS" [connection signal="finished" from="AudioStreamPlayer" to="." method="_on_audio_stream_player_finished"] diff --git a/game/src/Model/flag_mat.tres b/game/src/Model/flag_mat.tres index 6c9b22d7..a594d150 100644 --- a/game/src/Model/flag_mat.tres +++ b/game/src/Model/flag_mat.tres @@ -1,4 +1,4 @@ -[gd_resource type="ShaderMaterial" load_steps=2 format=3 uid="uid://ctt5ypg5b4k1j"] +[gd_resource type="ShaderMaterial" format=3 uid="uid://ctt5ypg5b4k1j"] [ext_resource type="Shader" uid="uid://dtttygamglw4k" path="res://src/Model/flag.gdshader" id="1_oqkkj"] diff --git a/game/src/Model/scrolling_mat.tres b/game/src/Model/scrolling_mat.tres index 82dc09d6..fe7225a4 100644 --- a/game/src/Model/scrolling_mat.tres +++ b/game/src/Model/scrolling_mat.tres @@ -1,4 +1,4 @@ -[gd_resource type="ShaderMaterial" load_steps=2 format=3 uid="uid://5utra6tpdqag"] +[gd_resource type="ShaderMaterial" format=3 uid="uid://5utra6tpdqag"] [ext_resource type="Shader" uid="uid://17t03jge6626" path="res://src/Model/scrolling.gdshader" id="1_oqkkj"] diff --git a/game/src/Model/unit_colours_mat.tres b/game/src/Model/unit_colours_mat.tres index 1588819b..8d9e40f2 100644 --- a/game/src/Model/unit_colours_mat.tres +++ b/game/src/Model/unit_colours_mat.tres @@ -1,4 +1,4 @@ -[gd_resource type="ShaderMaterial" load_steps=2 format=3 uid="uid://bkham060cwpr3"] +[gd_resource type="ShaderMaterial" format=3 uid="uid://bkham060cwpr3"] [ext_resource type="Shader" uid="uid://c6mfw20fvcavm" path="res://src/Model/unit_colours.gdshader" id="1_axmiw"] diff --git a/game/src/Systems/Session/GameSession.tscn b/game/src/Systems/Session/GameSession.tscn index 9f2e9bd2..c6af5a5c 100644 --- a/game/src/Systems/Session/GameSession.tscn +++ b/game/src/Systems/Session/GameSession.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=27 format=3 uid="uid://bgnupcshe1m7r"] +[gd_scene format=3 uid="uid://bgnupcshe1m7r"] [ext_resource type="Script" uid="uid://bytu6rnfilo8w" path="res://src/Systems/Session/GameSession.gd" id="1_eklvp"] [ext_resource type="PackedScene" uid="uid://cvl76duuym1wq" path="res://src/UI/Shared/MusicMenu/MusicMenu.tscn" id="2_kt6aa"] @@ -39,29 +39,29 @@ transform_format = 1 use_custom_data = true mesh = SubResource("QuadMesh_fm6ks") -[node name="GameSession" type="Node" node_paths=PackedStringArray("_map_view", "_model_manager", "_game_session_menu")] +[node name="GameSession" type="Node" unique_id=1706690762 node_paths=PackedStringArray("_map_view", "_model_manager", "_game_session_menu")] editor_description = "SS-102, UI-546" script = ExtResource("1_eklvp") _map_view = NodePath("MapView") _model_manager = NodePath("ModelManager") _game_session_menu = NodePath("UICanvasLayer/UI/GameSessionMenu") -[node name="MapView" parent="." instance=ExtResource("4_xkg5j")] +[node name="MapView" parent="." unique_id=2143169101 instance=ExtResource("4_xkg5j")] -[node name="ModelManager" type="Node3D" parent="." node_paths=PackedStringArray("_map_view")] +[node name="ModelManager" type="Node3D" parent="." unique_id=509113156 node_paths=PackedStringArray("_map_view")] script = ExtResource("3_qwk4j") _map_view = NodePath("../MapView") -[node name="BillboardManager" type="MultiMeshInstance3D" parent="." node_paths=PackedStringArray("_map_view")] +[node name="BillboardManager" type="MultiMeshInstance3D" parent="." unique_id=205045606 node_paths=PackedStringArray("_map_view")] sorting_offset = 10.0 cast_shadow = 0 multimesh = SubResource("MultiMesh_c56es") script = ExtResource("4_b3l7b") _map_view = NodePath("../MapView") -[node name="UICanvasLayer" type="CanvasLayer" parent="."] +[node name="UICanvasLayer" type="CanvasLayer" parent="." unique_id=1627745696] -[node name="UI" type="Control" parent="UICanvasLayer"] +[node name="UI" type="Control" parent="UICanvasLayer" unique_id=546393905] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 @@ -70,75 +70,75 @@ grow_horizontal = 2 grow_vertical = 2 mouse_filter = 2 -[node name="ProvinceOverviewPanel" type="GUINode" parent="UICanvasLayer/UI"] +[node name="ProvinceOverviewPanel" type="GUINode" parent="UICanvasLayer/UI" unique_id=331151053] layout_mode = 1 anchors_preset = 15 mouse_force_pass_scroll_events = false script = ExtResource("5_lfv8l") -[node name="Topbar" type="GUINode" parent="UICanvasLayer/UI"] +[node name="Topbar" type="GUINode" parent="UICanvasLayer/UI" unique_id=1400335152] layout_mode = 1 anchors_preset = 15 mouse_force_pass_scroll_events = false script = ExtResource("4_2kbih") -[node name="ProductionMenu" type="GUINode" parent="UICanvasLayer/UI/Topbar"] +[node name="ProductionMenu" type="GUINode" parent="UICanvasLayer/UI/Topbar" unique_id=528273663] layout_mode = 1 anchors_preset = 15 script = ExtResource("5_16755") -[node name="BudgetMenu" type="GUINode" parent="UICanvasLayer/UI/Topbar"] +[node name="BudgetMenu" type="GUINode" parent="UICanvasLayer/UI/Topbar" unique_id=1271879861] layout_mode = 1 anchors_preset = 15 script = ExtResource("6_vninv") -[node name="TechnologyMenu" type="GUINode" parent="UICanvasLayer/UI/Topbar"] +[node name="TechnologyMenu" type="GUINode" parent="UICanvasLayer/UI/Topbar" unique_id=301734656] layout_mode = 1 anchors_preset = 15 script = ExtResource("7_r712c") -[node name="PoliticsMenu" type="GUINode" parent="UICanvasLayer/UI/Topbar"] +[node name="PoliticsMenu" type="GUINode" parent="UICanvasLayer/UI/Topbar" unique_id=1491940984] layout_mode = 1 anchors_preset = 15 script = ExtResource("8_ppdek") -[node name="PopulationMenu" type="GUINode" parent="UICanvasLayer/UI/Topbar"] +[node name="PopulationMenu" type="GUINode" parent="UICanvasLayer/UI/Topbar" unique_id=758778303] layout_mode = 1 anchors_preset = 15 script = ExtResource("10_laee7") -[node name="TradeMenu" type="GUINode" parent="UICanvasLayer/UI/Topbar"] +[node name="TradeMenu" type="GUINode" parent="UICanvasLayer/UI/Topbar" unique_id=807572661] layout_mode = 1 anchors_preset = 15 script = ExtResource("10_mv1r6") -[node name="DiplomacyMenu" type="GUINode" parent="UICanvasLayer/UI/Topbar"] +[node name="DiplomacyMenu" type="GUINode" parent="UICanvasLayer/UI/Topbar" unique_id=1096126155] layout_mode = 1 anchors_preset = 15 script = ExtResource("11_fu7ys") -[node name="MilitaryMenu" type="GUINode" parent="UICanvasLayer/UI/Topbar"] +[node name="MilitaryMenu" type="GUINode" parent="UICanvasLayer/UI/Topbar" unique_id=1907348756] layout_mode = 1 anchors_preset = 15 script = ExtResource("12_6h6nc") -[node name="Menubar" type="GUINode" parent="UICanvasLayer/UI"] +[node name="Menubar" type="GUINode" parent="UICanvasLayer/UI" unique_id=1389271557] layout_mode = 1 anchors_preset = 15 script = ExtResource("20_s1i71") -[node name="Ledger" type="GUINode" parent="UICanvasLayer/UI"] +[node name="Ledger" type="GUINode" parent="UICanvasLayer/UI" unique_id=1588049139] layout_mode = 1 anchors_preset = 15 script = ExtResource("15_vhb1p") -[node name="SearchPanel" type="GUINode" parent="UICanvasLayer/UI" node_paths=PackedStringArray("_map_view")] +[node name="SearchPanel" type="GUINode" parent="UICanvasLayer/UI" unique_id=1827863206 node_paths=PackedStringArray("_map_view")] layout_mode = 1 anchors_preset = 15 script = ExtResource("5_t260f") _map_view = NodePath("../../../MapView") -[node name="GameSessionMenu" parent="UICanvasLayer/UI" instance=ExtResource("3_bvmqh")] +[node name="GameSessionMenu" parent="UICanvasLayer/UI" unique_id=56265418 instance=ExtResource("3_bvmqh")] visible = false layout_mode = 1 anchors_preset = 8 @@ -153,12 +153,12 @@ offset_bottom = 165.0 grow_horizontal = 2 grow_vertical = 2 -[node name="OptionsMenu" parent="UICanvasLayer/UI" instance=ExtResource("6_p5mnx")] +[node name="OptionsMenu" parent="UICanvasLayer/UI" unique_id=305849207 instance=ExtResource("6_p5mnx")] visible = false layout_mode = 1 mouse_force_pass_scroll_events = false -[node name="SaveLoadMenu" parent="UICanvasLayer/UI" instance=ExtResource("8_4g7ko")] +[node name="SaveLoadMenu" parent="UICanvasLayer/UI" unique_id=860657652 instance=ExtResource("8_4g7ko")] visible = false layout_mode = 1 anchors_preset = -1 @@ -167,7 +167,7 @@ anchor_right = 0.5 offset_left = -640.0 offset_right = 640.0 -[node name="MusicPlayer" parent="UICanvasLayer/UI" instance=ExtResource("2_kt6aa")] +[node name="MusicPlayer" parent="UICanvasLayer/UI" unique_id=1239613684 instance=ExtResource("2_kt6aa")] layout_mode = 1 anchors_preset = 1 anchor_left = 1.0 @@ -176,7 +176,7 @@ offset_left = -150.0 offset_right = 0.0 grow_horizontal = 0 -[node name="Tooltip" type="GUINode" parent="UICanvasLayer/UI"] +[node name="Tooltip" type="GUINode" parent="UICanvasLayer/UI" unique_id=1682006677] layout_mode = 1 anchors_preset = 15 script = ExtResource("20_3306e") diff --git a/game/src/Systems/Session/Map/MapView.tscn b/game/src/Systems/Session/Map/MapView.tscn index 9a763110..8137ca40 100644 --- a/game/src/Systems/Session/Map/MapView.tscn +++ b/game/src/Systems/Session/Map/MapView.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=16 format=3 uid="uid://dkehmdnuxih2r"] +[gd_scene format=3 uid="uid://dkehmdnuxih2r"] [ext_resource type="Script" uid="uid://bk5kuepyebwq5" path="res://src/Systems/Session/Map/MapView.gd" id="1_exccw"] [ext_resource type="Shader" uid="uid://cgm5ffev0il7n" path="res://src/Systems/Session/Map/TerrainMap.gdshader" id="1_upocn"] @@ -53,7 +53,7 @@ albedo_color = Color(0, 0, 0, 1) material = SubResource("StandardMaterial3D_irk50") size = Vector2(6, 2) -[node name="MapView" type="Node3D" node_paths=PackedStringArray("_camera", "_map_mesh_instance", "_map_background_instance", "_map_text", "validMoveMarkers", "selectionMarkers")] +[node name="MapView" type="Node3D" unique_id=661427404 node_paths=PackedStringArray("_camera", "_map_mesh_instance", "_map_background_instance", "_map_text", "validMoveMarkers", "selectionMarkers")] editor_description = "SS-73" script = ExtResource("1_exccw") _camera = NodePath("MapCamera") @@ -63,44 +63,44 @@ _map_text = NodePath("MapText") validMoveMarkers = NodePath("ProjectionManager/ValidMoveMarkers") selectionMarkers = NodePath("ProjectionManager/SelectionMarkers") -[node name="MapCamera" type="Camera3D" parent="."] +[node name="MapCamera" type="Camera3D" parent="." unique_id=2016531432] transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0.25, 1.5, -2.75) near = 0.01 -[node name="ProjectionManager" type="Node3D" parent="." node_paths=PackedStringArray("selectionMarkers", "moveMarkers")] +[node name="ProjectionManager" type="Node3D" parent="." unique_id=150732854 node_paths=PackedStringArray("selectionMarkers", "moveMarkers")] script = ExtResource("2_xnmdg") selectionMarkers = NodePath("SelectionMarkers") moveMarkers = NodePath("ValidMoveMarkers") -[node name="SelectionMarkers" type="MultiMeshInstance3D" parent="ProjectionManager" node_paths=PackedStringArray("manager")] +[node name="SelectionMarkers" type="MultiMeshInstance3D" parent="ProjectionManager" unique_id=524297599 node_paths=PackedStringArray("manager")] cast_shadow = 0 gi_mode = 0 multimesh = SubResource("MultiMesh_rytvv") script = ExtResource("3_fi78k") manager = NodePath("..") -[node name="ValidMoveMarkers" type="MultiMeshInstance3D" parent="ProjectionManager" node_paths=PackedStringArray("manager")] +[node name="ValidMoveMarkers" type="MultiMeshInstance3D" parent="ProjectionManager" unique_id=205387674 node_paths=PackedStringArray("manager")] cast_shadow = 0 gi_mode = 0 multimesh = SubResource("MultiMesh_cq0pk") script = ExtResource("5_h3t3v") manager = NodePath("..") -[node name="MapText" type="Node3D" parent="." node_paths=PackedStringArray("_map_view")] +[node name="MapText" type="Node3D" parent="." unique_id=2042147220 node_paths=PackedStringArray("_map_view")] script = ExtResource("2_13bgq") _map_view = NodePath("..") -[node name="MapMeshInstance" type="MeshInstance3D" parent="."] +[node name="MapMeshInstance" type="MeshInstance3D" parent="." unique_id=530948748] editor_description = "FS-343" transform = Transform3D(10, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0) material_override = SubResource("ShaderMaterial_tayeg") mesh = SubResource("MapMesh_3gtsd") -[node name="MapBackgroundInstance" type="MeshInstance3D" parent="."] +[node name="MapBackgroundInstance" type="MeshInstance3D" parent="." unique_id=932258182] transform = Transform3D(10, 0, 0, 0, 10, 0, 0, 0, 10, 0, -1, 0) mesh = SubResource("PlaneMesh_fnhgl") -[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] +[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=630205757] transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 10, 10) light_energy = 1.5 light_bake_mode = 0 diff --git a/game/src/Systems/Startup/GameStart.tscn b/game/src/Systems/Startup/GameStart.tscn index e81a05b3..77cb5852 100644 --- a/game/src/Systems/Startup/GameStart.tscn +++ b/game/src/Systems/Startup/GameStart.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=7 format=3 uid="uid://1udsn4mggep2"] +[gd_scene format=3 uid="uid://1udsn4mggep2"] [ext_resource type="Script" uid="uid://cu1lrjpc5wbvc" path="res://src/Systems/Startup/GameStart.gd" id="1_e0cos"] [ext_resource type="PackedScene" uid="uid://3kktdpfnc0sn" path="res://src/Systems/Startup/LoadingScreen.tscn" id="2_h0oiw"] @@ -7,7 +7,7 @@ [ext_resource type="Texture2D" uid="uid://cgdnixsyh7bja" path="res://assets/graphics/splash_image.png" id="4_5b6yq"] [ext_resource type="VideoStream" uid="uid://bj077egtjnlfr" path="res://assets/graphics/splash_startup.ogv" id="5_8euyy"] -[node name="GameStartup" type="Control" node_paths=PackedStringArray("loading_screen", "vic2_dir_dialog")] +[node name="GameStartup" type="Control" unique_id=561399280 node_paths=PackedStringArray("loading_screen", "vic2_dir_dialog")] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 @@ -18,11 +18,11 @@ script = ExtResource("1_e0cos") loading_screen = NodePath("LoadingScreen") vic2_dir_dialog = NodePath("Vic2DirDialog") -[node name="LoadingScreen" parent="." instance=ExtResource("2_h0oiw")] +[node name="LoadingScreen" parent="." unique_id=337902464 instance=ExtResource("2_h0oiw")] visible = false layout_mode = 1 -[node name="SplashContainer" type="AspectRatioContainer" parent="." node_paths=PackedStringArray("_splash_finish", "_splash_image", "_splash_video")] +[node name="SplashContainer" type="AspectRatioContainer" parent="." unique_id=1402149308 node_paths=PackedStringArray("_splash_finish", "_splash_image", "_splash_video")] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 @@ -36,23 +36,23 @@ _splash_finish = NodePath("SplashFinish") _splash_image = NodePath("SplashImage") _splash_video = NodePath("SplashVideo") -[node name="SplashFinish" type="TextureRect" parent="SplashContainer"] +[node name="SplashFinish" type="TextureRect" parent="SplashContainer" unique_id=227562310] layout_mode = 2 texture = ExtResource("3_qfv12") expand_mode = 1 -[node name="SplashImage" type="TextureRect" parent="SplashContainer"] +[node name="SplashImage" type="TextureRect" parent="SplashContainer" unique_id=2059224353] layout_mode = 2 texture = ExtResource("4_5b6yq") expand_mode = 1 -[node name="SplashVideo" type="VideoStreamPlayer" parent="SplashContainer"] +[node name="SplashVideo" type="VideoStreamPlayer" parent="SplashContainer" unique_id=1592615470] layout_mode = 2 stream = ExtResource("5_8euyy") autoplay = true expand = true -[node name="Vic2DirDialog" type="FileDialog" parent="."] +[node name="Vic2DirDialog" type="FileDialog" parent="." unique_id=1644780236] process_mode = 2 disable_3d = true title = "VIC2_DIR_DIALOG_TITLE" diff --git a/game/src/Systems/Startup/LoadingScreen.tscn b/game/src/Systems/Startup/LoadingScreen.tscn index 40aeef94..535403b8 100644 --- a/game/src/Systems/Startup/LoadingScreen.tscn +++ b/game/src/Systems/Startup/LoadingScreen.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=11 format=3 uid="uid://3kktdpfnc0sn"] +[gd_scene format=3 uid="uid://3kktdpfnc0sn"] [ext_resource type="Script" uid="uid://b4kd4qvtrpdkb" path="res://src/Systems/Startup/LoadingScreen.gd" id="1_b0p3w"] [ext_resource type="Texture2D" uid="uid://doji17mxxmikl" path="res://assets/graphics/loading_screen.png" id="2_ny153"] @@ -58,7 +58,7 @@ _data = { &"loadingscreen_gear": SubResource("Animation_3ktkq") } -[node name="LoadingScreen" type="Control" node_paths=PackedStringArray("progress_bar", "quote_label", "animation_player")] +[node name="LoadingScreen" type="Control" unique_id=2058468856 node_paths=PackedStringArray("progress_bar", "quote_label", "animation_player")] editor_description = "UI-24" layout_mode = 3 anchors_preset = 15 @@ -72,7 +72,7 @@ progress_bar = NodePath("PanelContainer/MarginContainer/ProgressBar") quote_label = NodePath("PanelContainer/MarginContainer/PanelContainer/QuoteLabel") animation_player = NodePath("AnimationPlayer") -[node name="PanelContainer" type="PanelContainer" parent="."] +[node name="PanelContainer" type="PanelContainer" parent="." unique_id=627078987] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 @@ -82,7 +82,7 @@ grow_vertical = 2 mouse_default_cursor_shape = 5 theme = SubResource("Theme_f5c3e") -[node name="MarginContainer" type="MarginContainer" parent="PanelContainer"] +[node name="MarginContainer" type="MarginContainer" parent="PanelContainer" unique_id=210854241] layout_mode = 2 mouse_default_cursor_shape = 5 theme_override_constants/margin_left = 16 @@ -90,21 +90,21 @@ theme_override_constants/margin_top = 16 theme_override_constants/margin_right = 16 theme_override_constants/margin_bottom = 16 -[node name="ProgressBar" type="ProgressBar" parent="PanelContainer/MarginContainer"] +[node name="ProgressBar" type="ProgressBar" parent="PanelContainer/MarginContainer" unique_id=1605980489] layout_mode = 2 size_flags_vertical = 8 mouse_default_cursor_shape = 5 step = 1.0 rounded = true -[node name="PanelContainer" type="PanelContainer" parent="PanelContainer/MarginContainer"] +[node name="PanelContainer" type="PanelContainer" parent="PanelContainer/MarginContainer" unique_id=847836773] layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 0 mouse_default_cursor_shape = 5 theme_override_styles/panel = SubResource("StyleBoxFlat_yaf7e") -[node name="QuoteLabel" type="Label" parent="PanelContainer/MarginContainer/PanelContainer"] +[node name="QuoteLabel" type="Label" parent="PanelContainer/MarginContainer/PanelContainer" unique_id=1914789861] custom_minimum_size = Vector2(700, 80) layout_mode = 2 size_flags_horizontal = 4 @@ -115,7 +115,7 @@ vertical_alignment = 1 autowrap_mode = 3 text_overrun_behavior = 3 -[node name="Gear" type="TextureRect" parent="."] +[node name="Gear" type="TextureRect" parent="." unique_id=55712395] layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 @@ -135,7 +135,7 @@ mouse_default_cursor_shape = 5 texture = ExtResource("3_avohi") expand_mode = 1 -[node name="Globe" type="TextureRect" parent="."] +[node name="Globe" type="TextureRect" parent="." unique_id=180542606] layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 @@ -152,7 +152,5 @@ mouse_default_cursor_shape = 5 texture = ExtResource("4_eyeeb") expand_mode = 1 -[node name="AnimationPlayer" type="AnimationPlayer" parent="."] -libraries = { -"": SubResource("AnimationLibrary_wo8l0") -} +[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1679481215] +libraries/ = SubResource("AnimationLibrary_wo8l0") diff --git a/game/src/UI/GameMenu/CreditsMenu/CreditsMenu.tscn b/game/src/UI/GameMenu/CreditsMenu/CreditsMenu.tscn index 46764fef..f84aa85c 100644 --- a/game/src/UI/GameMenu/CreditsMenu/CreditsMenu.tscn +++ b/game/src/UI/GameMenu/CreditsMenu/CreditsMenu.tscn @@ -1,10 +1,10 @@ -[gd_scene load_steps=4 format=3 uid="uid://c8knthxkwj1uj"] +[gd_scene format=3 uid="uid://c8knthxkwj1uj"] [ext_resource type="Theme" uid="uid://stfxt4hpsify" path="res://assets/graphics/theme/credits_menu.tres" id="1_7pmpu"] [ext_resource type="Script" uid="uid://bc10eyal27ggd" path="res://src/UI/GameMenu/CreditsMenu/CreditsMenu.gd" id="1_csd7i"] [ext_resource type="PackedScene" uid="uid://ddjbee5gj6bkv" path="res://src/UI/GameMenu/CreditsMenu/GodotEngineButton.tscn" id="3_fl02a"] -[node name="CreditsMenu" type="Control" node_paths=PackedStringArray("credits_list")] +[node name="CreditsMenu" type="Control" unique_id=1098901427 node_paths=PackedStringArray("credits_list")] editor_description = "UI-34" layout_mode = 3 anchors_preset = 15 @@ -21,28 +21,28 @@ label_variants_role = &"RoleLabel" label_variants_person = &"PersonLabel" credits_list = NodePath("Scroll/CreditsList") -[node name="ControlMargin" type="MarginContainer" parent="."] -layout_mode = 2 +[node name="ControlMargin" type="MarginContainer" parent="." unique_id=1833829312] +layout_mode = 0 anchor_right = 1.0 anchor_bottom = 0.071 offset_bottom = -0.120003 theme_type_variation = &"BackButtonsMargin" -[node name="BackButton" type="Button" parent="ControlMargin"] +[node name="BackButton" type="Button" parent="ControlMargin" unique_id=272453068] editor_description = "UI-38" layout_mode = 2 text = "CREDITS_BACK" -[node name="Scroll" type="ScrollContainer" parent="."] +[node name="Scroll" type="ScrollContainer" parent="." unique_id=1112527479] editor_description = "UI-35" -layout_mode = 2 +layout_mode = 0 anchor_top = 0.071 anchor_right = 1.0 anchor_bottom = 1.0 offset_top = -0.120003 offset_bottom = -6.0 -[node name="CreditsList" type="VBoxContainer" parent="Scroll"] +[node name="CreditsList" type="VBoxContainer" parent="Scroll" unique_id=1778338109] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 3 diff --git a/game/src/UI/GameMenu/CreditsMenu/GodotEngineButton.tscn b/game/src/UI/GameMenu/CreditsMenu/GodotEngineButton.tscn index dc8d5c4b..85911c91 100644 --- a/game/src/UI/GameMenu/CreditsMenu/GodotEngineButton.tscn +++ b/game/src/UI/GameMenu/CreditsMenu/GodotEngineButton.tscn @@ -1,9 +1,9 @@ -[gd_scene load_steps=3 format=3 uid="uid://ddjbee5gj6bkv"] +[gd_scene format=3 uid="uid://ddjbee5gj6bkv"] [ext_resource type="Texture2D" uid="uid://rh7l4xuh4ali" path="res://src/UI/GameMenu/CreditsMenu/logo_vertical_color_dark.svg" id="1_b0brk"] [ext_resource type="Script" uid="uid://b264i8xjmdl6w" path="res://src/UI/GameMenu/CreditsMenu/GodotEngineButton.gd" id="3_gi8fv"] -[node name="GodotEngineButton" type="Button"] +[node name="GodotEngineButton" type="Button" unique_id=2007739562] custom_minimum_size = Vector2(0, 200) anchors_preset = 15 anchor_right = 1.0 diff --git a/game/src/UI/GameMenu/GameMenu/GameMenu.tscn b/game/src/UI/GameMenu/GameMenu/GameMenu.tscn index c9403720..b3ac9224 100644 --- a/game/src/UI/GameMenu/GameMenu/GameMenu.tscn +++ b/game/src/UI/GameMenu/GameMenu/GameMenu.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=8 format=3 uid="uid://o4u142w4qkln"] +[gd_scene format=3 uid="uid://o4u142w4qkln"] [ext_resource type="Script" uid="uid://bf36b41ip0jyu" path="res://src/UI/GameMenu/GameMenu/GameMenu.gd" id="1_cafwe"] [ext_resource type="PackedScene" uid="uid://bp5n3mlu45ygw" path="res://src/UI/GameMenu/MainMenu/MainMenu.tscn" id="2_2jbkh"] @@ -8,7 +8,7 @@ [ext_resource type="PackedScene" uid="uid://btri1i0hkhdsh" path="res://src/UI/GameMenu/MultiplayerMenu/MultiplayerMenu.tscn" id="4_s7nkl"] [ext_resource type="PackedScene" uid="uid://cvl76duuym1wq" path="res://src/UI/Shared/MusicMenu/MusicMenu.tscn" id="6_lts1m"] -[node name="GameMenu" type="Control" node_paths=PackedStringArray("_main_menu", "_options_menu", "_multiplayer_menu", "_lobby_menu", "_credits_menu")] +[node name="GameMenu" type="Control" unique_id=1509164618 node_paths=PackedStringArray("_main_menu", "_options_menu", "_multiplayer_menu", "_lobby_menu", "_credits_menu")] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 @@ -23,27 +23,27 @@ _multiplayer_menu = NodePath("MultiplayerMenu") _lobby_menu = NodePath("LobbyMenu") _credits_menu = NodePath("CreditsMenu") -[node name="MainMenu" parent="." instance=ExtResource("2_2jbkh")] +[node name="MainMenu" parent="." unique_id=1990679934 instance=ExtResource("2_2jbkh")] layout_mode = 1 metadata/_edit_vertical_guides_ = [251.0, 269.0, 504.0, 523.0, 15.0, 759.0, 777.0] -[node name="OptionsMenu" parent="." instance=ExtResource("3_111lv")] +[node name="OptionsMenu" parent="." unique_id=845734036 instance=ExtResource("3_111lv")] visible = false layout_mode = 1 -[node name="MultiplayerMenu" parent="." instance=ExtResource("4_s7nkl")] +[node name="MultiplayerMenu" parent="." unique_id=480471960 instance=ExtResource("4_s7nkl")] visible = false layout_mode = 1 -[node name="LobbyMenu" parent="." instance=ExtResource("4_nofk1")] +[node name="LobbyMenu" parent="." unique_id=1042620858 instance=ExtResource("4_nofk1")] visible = false layout_mode = 1 -[node name="CreditsMenu" parent="." instance=ExtResource("4_n0hoo")] +[node name="CreditsMenu" parent="." unique_id=1817082213 instance=ExtResource("4_n0hoo")] visible = false layout_mode = 1 -[node name="MusicPlayer" parent="." instance=ExtResource("6_lts1m")] +[node name="MusicPlayer" parent="." unique_id=2082714743 instance=ExtResource("6_lts1m")] layout_mode = 1 anchors_preset = 1 anchor_left = 1.0 diff --git a/game/src/UI/GameMenu/GameMenu/LocaleButton.tscn b/game/src/UI/GameMenu/GameMenu/LocaleButton.tscn index 00fca7d1..98bdfe0b 100644 --- a/game/src/UI/GameMenu/GameMenu/LocaleButton.tscn +++ b/game/src/UI/GameMenu/GameMenu/LocaleButton.tscn @@ -1,8 +1,8 @@ -[gd_scene load_steps=2 format=3 uid="uid://b7oncobnacxmt"] +[gd_scene format=3 uid="uid://b7oncobnacxmt"] [ext_resource type="Script" uid="uid://dtmc4h78k8685" path="res://src/UI/GameMenu/GameMenu/LocaleButton.gd" id="1_ganev"] -[node name="LocaleButton" type="OptionButton"] +[node name="LocaleButton" type="OptionButton" unique_id=1593449628] editor_description = "UI-600, UI-895, UI-896, UI-898, UI-899, UIFUN-322" custom_minimum_size = Vector2(150, 0) alignment = 2 diff --git a/game/src/UI/GameMenu/LobbyMenu/LobbyMenu.tscn b/game/src/UI/GameMenu/LobbyMenu/LobbyMenu.tscn index c95860ce..5434de2e 100644 --- a/game/src/UI/GameMenu/LobbyMenu/LobbyMenu.tscn +++ b/game/src/UI/GameMenu/LobbyMenu/LobbyMenu.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=7 format=3 uid="uid://do60kx0d3nrh4"] +[gd_scene format=3 uid="uid://do60kx0d3nrh4"] [ext_resource type="Script" uid="uid://cammednedjaup" path="res://src/UI/GameMenu/LobbyMenu/LobbyMenu.gd" id="1_cvwum"] [ext_resource type="PackedScene" uid="uid://k71f5gibwmtc" path="res://src/UI/GameMenu/LobbyMenu/LobbyPanelButton.tscn" id="2_exh17"] @@ -12,7 +12,7 @@ pressed = true [sub_resource type="Shortcut" id="Shortcut_is4jx"] events = [SubResource("InputEventAction_mgy3w")] -[node name="LobbyMenu" type="HBoxContainer" node_paths=PackedStringArray("game_select_start_date", "game_select_save_tab", "game_select_save_list", "start_button", "session_tag_line_edit", "session_tag_dialog", "delete_dialog", "map_view")] +[node name="LobbyMenu" type="HBoxContainer" unique_id=1953886684 node_paths=PackedStringArray("game_select_start_date", "game_select_save_tab", "game_select_save_list", "start_button", "session_tag_line_edit", "session_tag_dialog", "delete_dialog", "map_view")] editor_description = "UI-36" anchors_preset = 15 anchor_right = 1.0 @@ -32,38 +32,38 @@ session_tag_dialog = NodePath("SessionTagDialog") delete_dialog = NodePath("DeleteDialog") map_view = NodePath("MapView") -[node name="GameSelectPanel" type="PanelContainer" parent="."] +[node name="GameSelectPanel" type="PanelContainer" parent="." unique_id=472454380] layout_mode = 2 size_flags_horizontal = 3 -[node name="VBoxContainer" type="VBoxContainer" parent="GameSelectPanel"] +[node name="VBoxContainer" type="VBoxContainer" parent="GameSelectPanel" unique_id=987078331] layout_mode = 2 -[node name="GameSelectScroll" type="ScrollContainer" parent="GameSelectPanel/VBoxContainer"] +[node name="GameSelectScroll" type="ScrollContainer" parent="GameSelectPanel/VBoxContainer" unique_id=1081923092] editor_description = "UI-39" layout_mode = 2 size_flags_vertical = 3 horizontal_scroll_mode = 0 -[node name="GameSelectList" type="VBoxContainer" parent="GameSelectPanel/VBoxContainer/GameSelectScroll"] +[node name="GameSelectList" type="VBoxContainer" parent="GameSelectPanel/VBoxContainer/GameSelectScroll" unique_id=1785381299] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 3 -[node name="GameSelectStartDate" type="VBoxContainer" parent="GameSelectPanel/VBoxContainer/GameSelectScroll/GameSelectList"] +[node name="GameSelectStartDate" type="VBoxContainer" parent="GameSelectPanel/VBoxContainer/GameSelectScroll/GameSelectList" unique_id=950602698] layout_mode = 2 -[node name="GameSelectSaveTab" type="TabBar" parent="GameSelectPanel/VBoxContainer/GameSelectScroll/GameSelectList"] +[node name="GameSelectSaveTab" type="TabBar" parent="GameSelectPanel/VBoxContainer/GameSelectScroll/GameSelectList" unique_id=1783696357] layout_mode = 2 current_tab = 0 tab_count = 1 tab_0/title = "GAMELOBBY_SELECT_ALL" -[node name="GameSelectSaveList" type="VBoxContainer" parent="GameSelectPanel/VBoxContainer/GameSelectScroll/GameSelectList"] +[node name="GameSelectSaveList" type="VBoxContainer" parent="GameSelectPanel/VBoxContainer/GameSelectScroll/GameSelectList" unique_id=1241879143] layout_mode = 2 size_flags_vertical = 3 -[node name="GameSelectList" type="ItemList" parent="GameSelectPanel/VBoxContainer"] +[node name="GameSelectList" type="ItemList" parent="GameSelectPanel/VBoxContainer" unique_id=1354354243] visible = false layout_mode = 2 size_flags_vertical = 3 @@ -71,83 +71,83 @@ item_count = 2 item_0/text = "1836" item_1/text = "1863" -[node name="Spacer" type="Control" parent="GameSelectPanel/VBoxContainer"] +[node name="Spacer" type="Control" parent="GameSelectPanel/VBoxContainer" unique_id=1625932854] custom_minimum_size = Vector2(0, 150) layout_mode = 2 size_flags_vertical = 3 mouse_filter = 2 -[node name="BackButton" type="Button" parent="GameSelectPanel/VBoxContainer"] +[node name="BackButton" type="Button" parent="GameSelectPanel/VBoxContainer" unique_id=662716406] editor_description = "UI-37" layout_mode = 2 shortcut = SubResource("Shortcut_is4jx") shortcut_feedback = false text = "GAMELOBBY_BACK" -[node name="Spacer2" type="Control" parent="GameSelectPanel/VBoxContainer"] +[node name="Spacer2" type="Control" parent="GameSelectPanel/VBoxContainer" unique_id=1175264078] custom_minimum_size = Vector2(0, 33) layout_mode = 2 mouse_filter = 2 -[node name="Spacer" type="Control" parent="."] +[node name="Spacer" type="Control" parent="." unique_id=1296568899] layout_mode = 2 size_flags_horizontal = 3 size_flags_stretch_ratio = 2.75 mouse_filter = 2 -[node name="GameStartPanel" type="PanelContainer" parent="."] +[node name="GameStartPanel" type="PanelContainer" parent="." unique_id=1189664134] layout_mode = 2 size_flags_horizontal = 3 -[node name="VBoxContainer" type="VBoxContainer" parent="GameStartPanel"] +[node name="VBoxContainer" type="VBoxContainer" parent="GameStartPanel" unique_id=692875979] layout_mode = 2 -[node name="Spacer" type="Control" parent="GameStartPanel/VBoxContainer"] +[node name="Spacer" type="Control" parent="GameStartPanel/VBoxContainer" unique_id=1686944496] custom_minimum_size = Vector2(0, 50) layout_mode = 2 mouse_filter = 2 -[node name="SelectedCountryNameLabel" type="Label" parent="GameStartPanel/VBoxContainer"] +[node name="SelectedCountryNameLabel" type="Label" parent="GameStartPanel/VBoxContainer" unique_id=757439158] layout_mode = 2 text = "France" horizontal_alignment = 1 -[node name="Spacer2" type="Control" parent="GameStartPanel/VBoxContainer"] +[node name="Spacer2" type="Control" parent="GameStartPanel/VBoxContainer" unique_id=1584711331] custom_minimum_size = Vector2(0, 150) layout_mode = 2 size_flags_vertical = 3 mouse_filter = 2 -[node name="SessionTagEdit" type="LineEdit" parent="GameStartPanel/VBoxContainer"] +[node name="SessionTagEdit" type="LineEdit" parent="GameStartPanel/VBoxContainer" unique_id=1347795370] layout_mode = 2 placeholder_text = "GAMELOBBY_SESSION_TAG" -[node name="StartButton" type="Button" parent="GameStartPanel/VBoxContainer"] +[node name="StartButton" type="Button" parent="GameStartPanel/VBoxContainer" unique_id=1211575243] editor_description = "UI-43" layout_mode = 2 disabled = true text = "GAMELOBBY_START" -[node name="Spacer3" type="Control" parent="GameStartPanel/VBoxContainer"] +[node name="Spacer3" type="Control" parent="GameStartPanel/VBoxContainer" unique_id=1983118213] custom_minimum_size = Vector2(0, 33) layout_mode = 2 mouse_filter = 2 -[node name="SessionTagDialog" type="ConfirmationDialog" parent="."] +[node name="SessionTagDialog" type="ConfirmationDialog" parent="." unique_id=18612915] disable_3d = true title = "GAMELOBBY_SESSIONTAG_DIALOG_TITLE" ok_button_text = "DIALOG_OK" dialog_text = "GAMELOBBY_SESSIONTAG_DIALOG_TEXT" cancel_button_text = "DIALOG_CANCEL" -[node name="DeleteDialog" type="ConfirmationDialog" parent="."] +[node name="DeleteDialog" type="ConfirmationDialog" parent="." unique_id=1444958079] disable_3d = true title = "GAMELOBBY_DELETE_DIALOG_TITLE" ok_button_text = "DIALOG_OK" dialog_text = "GAMELOBBY_DELETE_DIALOG_TEXT" cancel_button_text = "DIALOG_CANCEL" -[node name="MapView" parent="." instance=ExtResource("4_y8n6u")] +[node name="MapView" parent="." unique_id=1287637233 instance=ExtResource("4_y8n6u")] [connection signal="visibility_changed" from="." to="." method="_on_visibility_changed"] [connection signal="tab_changed" from="GameSelectPanel/VBoxContainer/GameSelectScroll/GameSelectList/GameSelectSaveTab" to="." method="_on_game_select_save_tab_tab_changed"] diff --git a/game/src/UI/GameMenu/LobbyMenu/LobbyPanelButton.tscn b/game/src/UI/GameMenu/LobbyMenu/LobbyPanelButton.tscn index 6561f462..ee4cbece 100644 --- a/game/src/UI/GameMenu/LobbyMenu/LobbyPanelButton.tscn +++ b/game/src/UI/GameMenu/LobbyMenu/LobbyPanelButton.tscn @@ -1,11 +1,11 @@ -[gd_scene load_steps=3 format=3 uid="uid://k71f5gibwmtc"] +[gd_scene format=3 uid="uid://k71f5gibwmtc"] [ext_resource type="Script" uid="uid://c0vxramabbnv6" path="res://src/UI/GameMenu/LobbyMenu/LobbyPanelButton.gd" id="1_327u2"] [sub_resource type="FontVariation" id="FontVariation_xwn8e"] variation_embolden = 1.0 -[node name="LobbyPanelButton" type="Container" node_paths=PackedStringArray("background_button", "name_label", "date_label")] +[node name="LobbyPanelButton" type="Container" unique_id=1702414962 node_paths=PackedStringArray("background_button", "name_label", "date_label")] editor_description = "UI-41" offset_right = 113.0 offset_bottom = 48.0 @@ -14,16 +14,16 @@ background_button = NodePath("BackgroundButton") name_label = NodePath("SaveList/NameLabel") date_label = NodePath("SaveList/DateLabel") -[node name="BackgroundButton" type="Button" parent="."] +[node name="BackgroundButton" type="Button" parent="." unique_id=159228912] layout_mode = 2 theme_type_variation = &"ButtonContainer" -[node name="SaveList" type="VBoxContainer" parent="."] +[node name="SaveList" type="VBoxContainer" parent="." unique_id=1600299973] layout_mode = 2 size_flags_horizontal = 0 mouse_filter = 2 -[node name="NameLabel" type="Label" parent="SaveList"] +[node name="NameLabel" type="Label" parent="SaveList" unique_id=1708130441] layout_mode = 2 size_flags_vertical = 1 theme_override_fonts/font = SubResource("FontVariation_xwn8e") @@ -31,7 +31,7 @@ theme_override_font_sizes/font_size = 18 text = "PLACEHOLDER" vertical_alignment = 1 -[node name="DateLabel" type="Label" parent="SaveList"] +[node name="DateLabel" type="Label" parent="SaveList" unique_id=537725019] layout_mode = 2 size_flags_vertical = 1 text = "PLACEHOLDER" diff --git a/game/src/UI/GameMenu/MainMenu/MainMenu.tscn b/game/src/UI/GameMenu/MainMenu/MainMenu.tscn index 2168e273..0373bd18 100644 --- a/game/src/UI/GameMenu/MainMenu/MainMenu.tscn +++ b/game/src/UI/GameMenu/MainMenu/MainMenu.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=6 format=3 uid="uid://bp5n3mlu45ygw"] +[gd_scene format=3 uid="uid://bp5n3mlu45ygw"] [ext_resource type="Theme" uid="uid://qoi3oec48jp0" path="res://assets/graphics/theme/main_menu.tres" id="1_1yri4"] [ext_resource type="Script" uid="uid://d0t3iw73mpivr" path="res://src/UI/GameMenu/MainMenu/MainMenu.gd" id="2_nm1fq"] @@ -6,7 +6,7 @@ [ext_resource type="PackedScene" uid="uid://b7oncobnacxmt" path="res://src/UI/GameMenu/GameMenu/LocaleButton.tscn" id="3_amonp"] [ext_resource type="PackedScene" uid="uid://cen7wkmn6og66" path="res://src/UI/GameMenu/ReleaseInfoBox/ReleaseInfoBox.tscn" id="3_km0er"] -[node name="MainMenu" type="Control" node_paths=PackedStringArray("_new_game_button")] +[node name="MainMenu" type="Control" unique_id=318440097 node_paths=PackedStringArray("_new_game_button")] editor_description = "UI-13" layout_mode = 3 anchors_preset = 15 @@ -18,7 +18,7 @@ theme = ExtResource("1_1yri4") script = ExtResource("2_nm1fq") _new_game_button = NodePath("MenuPanel/MenuList/ButtonListMargin/ButtonList/NewGameButton") -[node name="MenuPanel" type="PanelContainer" parent="."] +[node name="MenuPanel" type="PanelContainer" parent="." unique_id=1123691100] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 @@ -27,10 +27,10 @@ grow_horizontal = 2 grow_vertical = 2 theme_type_variation = &"BackgroundPanel" -[node name="MenuList" type="VBoxContainer" parent="MenuPanel"] +[node name="MenuList" type="VBoxContainer" parent="MenuPanel" unique_id=435700558] layout_mode = 2 -[node name="TitleIcon" type="TextureRect" parent="MenuPanel/MenuList"] +[node name="TitleIcon" type="TextureRect" parent="MenuPanel/MenuList" unique_id=1635616367] layout_mode = 2 size_flags_vertical = 3 size_flags_stretch_ratio = 1.75 @@ -38,19 +38,19 @@ texture = ExtResource("3_58ess") expand_mode = 1 stretch_mode = 5 -[node name="ButtonListMargin" type="MarginContainer" parent="MenuPanel/MenuList"] +[node name="ButtonListMargin" type="MarginContainer" parent="MenuPanel/MenuList" unique_id=489174160] layout_mode = 2 theme_override_constants/margin_left = 15 theme_override_constants/margin_right = 12 -[node name="ButtonList" type="HBoxContainer" parent="MenuPanel/MenuList/ButtonListMargin"] +[node name="ButtonList" type="HBoxContainer" parent="MenuPanel/MenuList/ButtonListMargin" unique_id=1052392643] custom_minimum_size = Vector2(500, 0) layout_mode = 2 theme_type_variation = &"HBox_MainMenu_ButtonList" theme_override_constants/separation = 18 alignment = 1 -[node name="NewGameButton" type="Button" parent="MenuPanel/MenuList/ButtonListMargin/ButtonList"] +[node name="NewGameButton" type="Button" parent="MenuPanel/MenuList/ButtonListMargin/ButtonList" unique_id=1643935785] editor_description = "UI-26" layout_mode = 2 size_flags_horizontal = 3 @@ -63,7 +63,7 @@ theme_type_variation = &"TitleButton" text = "MAINMENU_NEW_GAME" clip_text = true -[node name="ContinueButton" type="Button" parent="MenuPanel/MenuList/ButtonListMargin/ButtonList"] +[node name="ContinueButton" type="Button" parent="MenuPanel/MenuList/ButtonListMargin/ButtonList" unique_id=555029268] layout_mode = 2 size_flags_horizontal = 3 focus_neighbor_left = NodePath("../NewGameButton") @@ -75,7 +75,7 @@ disabled = true text = "MAINMENU_CONTINUE" clip_text = true -[node name="MultiplayerButton" type="Button" parent="MenuPanel/MenuList/ButtonListMargin/ButtonList"] +[node name="MultiplayerButton" type="Button" parent="MenuPanel/MenuList/ButtonListMargin/ButtonList" unique_id=1085497212] editor_description = "UI-27" layout_mode = 2 size_flags_horizontal = 3 @@ -87,7 +87,7 @@ theme_type_variation = &"TitleButton" text = "MAINMENU_MULTIPLAYER" clip_text = true -[node name="OptionsButton" type="Button" parent="MenuPanel/MenuList/ButtonListMargin/ButtonList"] +[node name="OptionsButton" type="Button" parent="MenuPanel/MenuList/ButtonListMargin/ButtonList" unique_id=1917354155] editor_description = "UI-5" layout_mode = 2 size_flags_horizontal = 3 @@ -99,7 +99,7 @@ theme_type_variation = &"TitleButton" text = "MAINMENU_OPTIONS" clip_text = true -[node name="CreditsButton" type="Button" parent="MenuPanel/MenuList/ButtonListMargin/ButtonList"] +[node name="CreditsButton" type="Button" parent="MenuPanel/MenuList/ButtonListMargin/ButtonList" unique_id=1623923207] editor_description = "UI-32" layout_mode = 2 size_flags_horizontal = 3 @@ -111,7 +111,7 @@ theme_type_variation = &"TitleButton" text = "MAINMENU_CREDITS" clip_text = true -[node name="ExitButton" type="Button" parent="MenuPanel/MenuList/ButtonListMargin/ButtonList"] +[node name="ExitButton" type="Button" parent="MenuPanel/MenuList/ButtonListMargin/ButtonList" unique_id=488636852] editor_description = "UI-3" layout_mode = 2 size_flags_horizontal = 3 @@ -123,19 +123,19 @@ theme_type_variation = &"TitleButton" text = "MAINMENU_EXIT" clip_text = true -[node name="BottomSpace" type="Control" parent="MenuPanel/MenuList"] +[node name="BottomSpace" type="Control" parent="MenuPanel/MenuList" unique_id=2012956161] layout_mode = 2 size_flags_vertical = 3 size_flags_stretch_ratio = 0.35 -[node name="BottomMargin" type="MarginContainer" parent="MenuPanel/MenuList"] +[node name="BottomMargin" type="MarginContainer" parent="MenuPanel/MenuList" unique_id=393652640] layout_mode = 2 theme_type_variation = &"BottomMargin" -[node name="ReleaseInfoBox" parent="MenuPanel/MenuList/BottomMargin" instance=ExtResource("3_km0er")] +[node name="ReleaseInfoBox" parent="MenuPanel/MenuList/BottomMargin" unique_id=1710064563 instance=ExtResource("3_km0er")] layout_mode = 2 -[node name="LocaleButton" parent="MenuPanel/MenuList/BottomMargin" instance=ExtResource("3_amonp")] +[node name="LocaleButton" parent="MenuPanel/MenuList/BottomMargin" unique_id=1657101050 instance=ExtResource("3_amonp")] editor_description = "SS-87" layout_mode = 2 size_flags_horizontal = 8 diff --git a/game/src/UI/GameMenu/MultiplayerMenu/DirectConnectionEntry.tscn b/game/src/UI/GameMenu/MultiplayerMenu/DirectConnectionEntry.tscn index 815e4576..fcb91d96 100644 --- a/game/src/UI/GameMenu/MultiplayerMenu/DirectConnectionEntry.tscn +++ b/game/src/UI/GameMenu/MultiplayerMenu/DirectConnectionEntry.tscn @@ -1,9 +1,9 @@ -[gd_scene load_steps=3 format=3 uid="uid://br26w6mwqilyr"] +[gd_scene format=3 uid="uid://br26w6mwqilyr"] [ext_resource type="Script" uid="uid://dvmrp0ohbbg5l" path="res://src/UI/GameMenu/MultiplayerMenu/DirectConnectionEntry.gd" id="1_8v0qa"] [ext_resource type="PackedScene" uid="uid://dcsy6w6ow2xxg" path="res://src/UI/GameMenu/MultiplayerMenu/SecretEdit.tscn" id="2_3yivm"] -[node name="DirectConnectionEntry" type="HBoxContainer" node_paths=PackedStringArray("ip_edit", "name_edit", "connect_button", "delete_button")] +[node name="DirectConnectionEntry" type="HBoxContainer" unique_id=802263483 node_paths=PackedStringArray("ip_edit", "name_edit", "connect_button", "delete_button")] anchors_preset = 10 anchor_right = 1.0 offset_bottom = 31.0 @@ -14,33 +14,33 @@ name_edit = NodePath("EditName") connect_button = NodePath("Connect") delete_button = NodePath("Delete") -[node name="EditName" type="LineEdit" parent="."] +[node name="EditName" type="LineEdit" parent="." unique_id=239235701] layout_mode = 2 size_flags_horizontal = 3 placeholder_text = "Game1" max_length = 32 editable = false -[node name="VSeparator" type="VSeparator" parent="."] +[node name="VSeparator" type="VSeparator" parent="." unique_id=1090574429] layout_mode = 2 -[node name="SecretEdit" parent="." instance=ExtResource("2_3yivm")] +[node name="SecretEdit" parent="." unique_id=760750879 instance=ExtResource("2_3yivm")] layout_mode = 2 size_flags_horizontal = 3 editable = false -[node name="VSeparator2" type="VSeparator" parent="."] +[node name="VSeparator2" type="VSeparator" parent="." unique_id=109705719] layout_mode = 2 -[node name="Connect" type="Button" parent="."] +[node name="Connect" type="Button" parent="." unique_id=892920296] layout_mode = 2 text = "MP_DIRECT_CONNECT" -[node name="Edit" type="CheckButton" parent="."] +[node name="Edit" type="CheckButton" parent="." unique_id=1540247119] layout_mode = 2 text = "MP_DIRECT_EDIT" -[node name="Delete" type="Button" parent="."] +[node name="Delete" type="Button" parent="." unique_id=355171276] layout_mode = 2 text = "MP_DIRECT_DELETE" diff --git a/game/src/UI/GameMenu/MultiplayerMenu/DirectConnectionTab.tscn b/game/src/UI/GameMenu/MultiplayerMenu/DirectConnectionTab.tscn index 2e0a591e..a660203d 100644 --- a/game/src/UI/GameMenu/MultiplayerMenu/DirectConnectionTab.tscn +++ b/game/src/UI/GameMenu/MultiplayerMenu/DirectConnectionTab.tscn @@ -1,9 +1,9 @@ -[gd_scene load_steps=3 format=3 uid="uid://28ummh3fgokc"] +[gd_scene format=3 uid="uid://28ummh3fgokc"] [ext_resource type="Script" uid="uid://cgoyv71lmwhuw" path="res://src/UI/GameMenu/MultiplayerMenu/DirectConnectionTab.gd" id="1_154ba"] [ext_resource type="PackedScene" uid="uid://dcsy6w6ow2xxg" path="res://src/UI/GameMenu/MultiplayerMenu/SecretEdit.tscn" id="2_xhui1"] -[node name="DirectConnectionTab" type="HBoxContainer" node_paths=PackedStringArray("initial_focus", "ip_edit", "player_name_edit", "game_name_edit", "IP_grid")] +[node name="DirectConnectionTab" type="HBoxContainer" unique_id=696732711 node_paths=PackedStringArray("initial_focus", "ip_edit", "player_name_edit", "game_name_edit", "IP_grid")] anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 @@ -18,87 +18,87 @@ player_name_edit = NodePath("VBoxContainer/UsernameEntryGrid/PlayerNameEntry") game_name_edit = NodePath("VBoxContainer/NewIPEntryGrid/GameNameEdit") IP_grid = NodePath("VBoxContainer/ScrollContainer/SavedIPGrid") -[node name="VBoxContainer" type="VBoxContainer" parent="."] +[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=1940921215] layout_mode = 2 size_flags_horizontal = 3 -[node name="UsernameEntryGrid" type="GridContainer" parent="VBoxContainer"] +[node name="UsernameEntryGrid" type="GridContainer" parent="VBoxContainer" unique_id=1966394858] layout_mode = 2 columns = 2 -[node name="UserName" type="Label" parent="VBoxContainer/UsernameEntryGrid"] +[node name="UserName" type="Label" parent="VBoxContainer/UsernameEntryGrid" unique_id=680446602] layout_mode = 2 size_flags_horizontal = 3 text = "MP_USERNAME_ENTRY" -[node name="PlayerNameEntry" type="LineEdit" parent="VBoxContainer/UsernameEntryGrid"] +[node name="PlayerNameEntry" type="LineEdit" parent="VBoxContainer/UsernameEntryGrid" unique_id=1229593490] layout_mode = 2 size_flags_horizontal = 3 placeholder_text = "Player1" max_length = 32 -[node name="HSeparator" type="HSeparator" parent="VBoxContainer"] +[node name="HSeparator" type="HSeparator" parent="VBoxContainer" unique_id=801390674] layout_mode = 2 -[node name="NewIPEntryGrid" type="GridContainer" parent="VBoxContainer"] +[node name="NewIPEntryGrid" type="GridContainer" parent="VBoxContainer" unique_id=889262011] layout_mode = 2 columns = 2 -[node name="UserName" type="Label" parent="VBoxContainer/NewIPEntryGrid"] +[node name="UserName" type="Label" parent="VBoxContainer/NewIPEntryGrid" unique_id=1292031344] layout_mode = 2 size_flags_horizontal = 3 text = "MP_DIRECT_NAME_ENTRY" -[node name="GameNameEdit" type="LineEdit" parent="VBoxContainer/NewIPEntryGrid"] +[node name="GameNameEdit" type="LineEdit" parent="VBoxContainer/NewIPEntryGrid" unique_id=622124334] layout_mode = 2 size_flags_horizontal = 3 placeholder_text = "Game1" max_length = 32 -[node name="IP" type="Label" parent="VBoxContainer/NewIPEntryGrid"] +[node name="IP" type="Label" parent="VBoxContainer/NewIPEntryGrid" unique_id=401626560] layout_mode = 2 size_flags_horizontal = 3 text = "MP_DIRECT_IP_ENTRY" -[node name="IPEdit" parent="VBoxContainer/NewIPEntryGrid" instance=ExtResource("2_xhui1")] +[node name="IPEdit" parent="VBoxContainer/NewIPEntryGrid" unique_id=360758151 instance=ExtResource("2_xhui1")] layout_mode = 2 -[node name="Add_ip" type="Button" parent="VBoxContainer/NewIPEntryGrid"] +[node name="Add_ip" type="Button" parent="VBoxContainer/NewIPEntryGrid" unique_id=2112400512] layout_mode = 2 text = "MP_DIRECT_ADD_IP" -[node name="Connect" type="Button" parent="VBoxContainer/NewIPEntryGrid"] +[node name="Connect" type="Button" parent="VBoxContainer/NewIPEntryGrid" unique_id=970918691] layout_mode = 2 text = "MP_DIRECT_CONNECT" -[node name="HSeparator2" type="HSeparator" parent="VBoxContainer"] +[node name="HSeparator2" type="HSeparator" parent="VBoxContainer" unique_id=1764050253] custom_minimum_size = Vector2(0, 10) layout_mode = 2 -[node name="Label" type="Label" parent="VBoxContainer"] +[node name="Label" type="Label" parent="VBoxContainer" unique_id=1756016786] layout_mode = 2 text = "MP_DIRECT_SAVED_IPS" -[node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer"] +[node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer" unique_id=1712862346] layout_mode = 2 size_flags_vertical = 3 horizontal_scroll_mode = 0 -[node name="SavedIPGrid" type="VBoxContainer" parent="VBoxContainer/ScrollContainer"] +[node name="SavedIPGrid" type="VBoxContainer" parent="VBoxContainer/ScrollContainer" unique_id=2061118889] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 3 -[node name="bottomGrid" type="GridContainer" parent="VBoxContainer"] +[node name="bottomGrid" type="GridContainer" parent="VBoxContainer" unique_id=1291526243] layout_mode = 2 columns = 2 -[node name="revert_ips" type="Button" parent="VBoxContainer/bottomGrid"] +[node name="revert_ips" type="Button" parent="VBoxContainer/bottomGrid" unique_id=693592158] layout_mode = 2 size_flags_horizontal = 3 text = "MP_DIRECT_REVERT_IPS" -[node name="save_ips" type="Button" parent="VBoxContainer/bottomGrid"] +[node name="save_ips" type="Button" parent="VBoxContainer/bottomGrid" unique_id=1552593181] layout_mode = 2 size_flags_horizontal = 3 text = "MP_DIRECT_SAVE_IPS" diff --git a/game/src/UI/GameMenu/MultiplayerMenu/HostTab.tscn b/game/src/UI/GameMenu/MultiplayerMenu/HostTab.tscn index f497feb8..e32b728f 100644 --- a/game/src/UI/GameMenu/MultiplayerMenu/HostTab.tscn +++ b/game/src/UI/GameMenu/MultiplayerMenu/HostTab.tscn @@ -1,9 +1,9 @@ -[gd_scene load_steps=3 format=3 uid="uid://b4cu0p1wlux3s"] +[gd_scene format=3 uid="uid://b4cu0p1wlux3s"] [ext_resource type="Script" uid="uid://gashq75jn3c6" path="res://src/UI/GameMenu/MultiplayerMenu/HostTab.gd" id="1_23sa3"] [ext_resource type="PackedScene" uid="uid://dcsy6w6ow2xxg" path="res://src/UI/GameMenu/MultiplayerMenu/SecretEdit.tscn" id="2_j4o6c"] -[node name="HostTab" type="HBoxContainer" node_paths=PackedStringArray("initial_focus", "player_name_entry", "game_name_entry", "password_entry", "is_lan")] +[node name="HostTab" type="HBoxContainer" unique_id=1197599658 node_paths=PackedStringArray("initial_focus", "player_name_entry", "game_name_entry", "password_entry", "is_lan")] anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 @@ -18,54 +18,54 @@ game_name_entry = NodePath("VBoxContainer/GridContainer/GameNameEntry") password_entry = NodePath("VBoxContainer/GridContainer/SecretEdit") is_lan = NodePath("VBoxContainer/GridContainer/IsLanOnlyCheck") -[node name="VBoxContainer" type="VBoxContainer" parent="."] +[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=1009923247] layout_mode = 2 size_flags_horizontal = 3 -[node name="GridContainer" type="GridContainer" parent="VBoxContainer"] +[node name="GridContainer" type="GridContainer" parent="VBoxContainer" unique_id=1299556911] layout_mode = 2 size_flags_vertical = 3 columns = 2 -[node name="UsernameLabel" type="Label" parent="VBoxContainer/GridContainer"] +[node name="UsernameLabel" type="Label" parent="VBoxContainer/GridContainer" unique_id=1958435417] layout_mode = 2 size_flags_horizontal = 3 text = "MP_USERNAME_ENTRY" -[node name="PlayerNameEntry" type="LineEdit" parent="VBoxContainer/GridContainer"] +[node name="PlayerNameEntry" type="LineEdit" parent="VBoxContainer/GridContainer" unique_id=777964047] layout_mode = 2 size_flags_horizontal = 3 placeholder_text = "Player1" -[node name="GameNameLabel" type="Label" parent="VBoxContainer/GridContainer"] +[node name="GameNameLabel" type="Label" parent="VBoxContainer/GridContainer" unique_id=1550308244] layout_mode = 2 size_flags_horizontal = 3 text = "MP_HOST_GAME_NAME_ENTRY" -[node name="GameNameEntry" type="LineEdit" parent="VBoxContainer/GridContainer"] +[node name="GameNameEntry" type="LineEdit" parent="VBoxContainer/GridContainer" unique_id=1036927171] layout_mode = 2 size_flags_horizontal = 3 placeholder_text = "My Game" -[node name="GamePasswordLabel" type="Label" parent="VBoxContainer/GridContainer"] +[node name="GamePasswordLabel" type="Label" parent="VBoxContainer/GridContainer" unique_id=444077201] layout_mode = 2 size_flags_horizontal = 3 text = "MP_CONNECT_PASSWORD_ENTRY" -[node name="SecretEdit" parent="VBoxContainer/GridContainer" instance=ExtResource("2_j4o6c")] +[node name="SecretEdit" parent="VBoxContainer/GridContainer" unique_id=350331314 instance=ExtResource("2_j4o6c")] layout_mode = 2 size_flags_horizontal = 3 -[node name="IsLanOnly" type="Label" parent="VBoxContainer/GridContainer"] +[node name="IsLanOnly" type="Label" parent="VBoxContainer/GridContainer" unique_id=1884674181] layout_mode = 2 size_flags_horizontal = 3 text = "MP_HOST_IS_LAN_ONLY" -[node name="IsLanOnlyCheck" type="CheckButton" parent="VBoxContainer/GridContainer"] +[node name="IsLanOnlyCheck" type="CheckButton" parent="VBoxContainer/GridContainer" unique_id=1290460336] layout_mode = 2 size_flags_horizontal = 3 -[node name="Host" type="Button" parent="VBoxContainer/GridContainer"] +[node name="Host" type="Button" parent="VBoxContainer/GridContainer" unique_id=665586699] layout_mode = 2 size_flags_horizontal = 3 text = "MP_HOST_HOST" diff --git a/game/src/UI/GameMenu/MultiplayerMenu/MultiplayerMenu.tscn b/game/src/UI/GameMenu/MultiplayerMenu/MultiplayerMenu.tscn index 50567f60..13c9b569 100644 --- a/game/src/UI/GameMenu/MultiplayerMenu/MultiplayerMenu.tscn +++ b/game/src/UI/GameMenu/MultiplayerMenu/MultiplayerMenu.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=8 format=3 uid="uid://btri1i0hkhdsh"] +[gd_scene format=3 uid="uid://btri1i0hkhdsh"] [ext_resource type="Theme" uid="uid://fbxssqcg1s0m" path="res://assets/graphics/theme/options_menu.tres" id="1_5k2lj"] [ext_resource type="Script" uid="uid://d2fflsmlplgvo" path="res://src/UI/GameMenu/MultiplayerMenu/MultiplayerMenu.gd" id="2_2x2qh"] @@ -8,7 +8,7 @@ [ext_resource type="PackedScene" uid="uid://dcsy6w6ow2xxg" path="res://src/UI/GameMenu/MultiplayerMenu/SecretEdit.tscn" id="6_34d2n"] [ext_resource type="Script" uid="uid://cgd6n1okjdink" path="res://src/UI/GameMenu/MultiplayerMenu/ConnectionFailDialog.gd" id="7_cd4lp"] -[node name="MultiplayerMenu" type="PanelContainer" node_paths=PackedStringArray("_tab_container", "_password_dialog", "_connection_fail_dialog", "_host_tab", "_direct_connection_tab")] +[node name="MultiplayerMenu" type="PanelContainer" unique_id=440828986 node_paths=PackedStringArray("_tab_container", "_password_dialog", "_connection_fail_dialog", "_host_tab", "_direct_connection_tab")] editor_description = "UI-25" anchors_preset = 15 anchor_right = 1.0 @@ -24,27 +24,27 @@ _connection_fail_dialog = NodePath("ConnectionFailDialog") _host_tab = NodePath("Margin/Tab/HostTab") _direct_connection_tab = NodePath("Margin/Tab/DirectConnectionTab") -[node name="Margin" type="MarginContainer" parent="."] +[node name="Margin" type="MarginContainer" parent="." unique_id=558450896] layout_mode = 2 theme_type_variation = &"TabMargin" -[node name="Tab" type="TabContainer" parent="Margin"] +[node name="Tab" type="TabContainer" parent="Margin" unique_id=1358940161] editor_description = "UI-45" layout_mode = 2 tab_alignment = 1 current_tab = 0 use_hidden_tabs_for_min_size = true -[node name="DirectConnectionTab" parent="Margin/Tab" instance=ExtResource("3_4iwik")] +[node name="DirectConnectionTab" parent="Margin/Tab" unique_id=655289043 instance=ExtResource("3_4iwik")] layout_mode = 2 metadata/_tab_index = 0 -[node name="HostTab" parent="Margin/Tab" instance=ExtResource("3_ha6kl")] +[node name="HostTab" parent="Margin/Tab" unique_id=1216206230 instance=ExtResource("3_ha6kl")] visible = false layout_mode = 2 metadata/_tab_index = 1 -[node name="PasswordDialog" type="ConfirmationDialog" parent="." node_paths=PackedStringArray("secret")] +[node name="PasswordDialog" type="ConfirmationDialog" parent="." unique_id=62485662 node_paths=PackedStringArray("secret")] auto_translate_mode = 1 title = "MP_CONNECT_PASSWORD_ENTRY" position = Vector2i(0, 36) @@ -53,13 +53,13 @@ cancel_button_text = "MP_CONNECT_PASSWORD_CANCEL" script = ExtResource("5_t64eu") secret = NodePath("SecretEdit") -[node name="SecretEdit" parent="PasswordDialog" instance=ExtResource("6_34d2n")] +[node name="SecretEdit" parent="PasswordDialog" unique_id=883824596 instance=ExtResource("6_34d2n")] offset_left = 8.0 offset_top = 8.0 offset_right = 192.0 offset_bottom = 51.0 -[node name="ConnectionFailDialog" type="AcceptDialog" parent="." node_paths=PackedStringArray("label")] +[node name="ConnectionFailDialog" type="AcceptDialog" parent="." unique_id=477220894 node_paths=PackedStringArray("label")] auto_translate_mode = 1 title = "MP_CONNECT_FAIL" position = Vector2i(0, 36) @@ -72,7 +72,7 @@ bad_password_fail_text = "MP_CONNECT_FAIL_PASSWORD" bad_ip_text = "MP_CONNECT_FAIL_BAD_IP" label = NodePath("Label") -[node name="Label" type="Label" parent="ConnectionFailDialog"] +[node name="Label" type="Label" parent="ConnectionFailDialog" unique_id=1869734574] offset_left = 8.0 offset_top = 8.0 offset_right = 344.0 diff --git a/game/src/UI/GameMenu/MultiplayerMenu/SecretEdit.tscn b/game/src/UI/GameMenu/MultiplayerMenu/SecretEdit.tscn index 505b3ea7..64ebb836 100644 --- a/game/src/UI/GameMenu/MultiplayerMenu/SecretEdit.tscn +++ b/game/src/UI/GameMenu/MultiplayerMenu/SecretEdit.tscn @@ -1,13 +1,13 @@ -[gd_scene load_steps=2 format=3 uid="uid://dcsy6w6ow2xxg"] +[gd_scene format=3 uid="uid://dcsy6w6ow2xxg"] [ext_resource type="Script" uid="uid://cmi7ra6mjlshc" path="res://src/UI/GameMenu/MultiplayerMenu/SecretEdit.gd" id="1_yuqj6"] -[node name="SecretEdit" type="HBoxContainer" node_paths=PackedStringArray("line", "check")] +[node name="SecretEdit" type="HBoxContainer" unique_id=222244714 node_paths=PackedStringArray("line", "check")] script = ExtResource("1_yuqj6") line = NodePath("LineEdit") check = NodePath("CheckButton") -[node name="LineEdit" type="LineEdit" parent="."] +[node name="LineEdit" type="LineEdit" parent="." unique_id=849776970] layout_mode = 2 size_flags_horizontal = 3 placeholder_text = "..." @@ -16,7 +16,7 @@ max_length = 32 editable = false secret = true -[node name="CheckButton" type="CheckButton" parent="."] +[node name="CheckButton" type="CheckButton" parent="." unique_id=1628525365] layout_mode = 2 button_pressed = true diff --git a/game/src/UI/GameMenu/OptionMenu/ControlsTab.tscn b/game/src/UI/GameMenu/OptionMenu/ControlsTab.tscn index b1f43319..4d0c336d 100644 --- a/game/src/UI/GameMenu/OptionMenu/ControlsTab.tscn +++ b/game/src/UI/GameMenu/OptionMenu/ControlsTab.tscn @@ -1,8 +1,8 @@ -[gd_scene load_steps=2 format=3 uid="uid://cdwymd51i4b2f"] +[gd_scene format=3 uid="uid://cdwymd51i4b2f"] [ext_resource type="PackedScene" uid="uid://bq7ibhm0txl5p" path="res://addons/keychain/ShortcutEdit.tscn" id="1_fv8sh"] -[node name="Controls" type="Control"] +[node name="Controls" type="Control" unique_id=1618691119] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 @@ -10,5 +10,5 @@ anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 -[node name="ShortcutEdit" parent="." instance=ExtResource("1_fv8sh")] +[node name="ShortcutEdit" parent="." unique_id=270667577 instance=ExtResource("1_fv8sh")] layout_mode = 1 diff --git a/game/src/UI/GameMenu/OptionMenu/GeneralTab.tscn b/game/src/UI/GameMenu/OptionMenu/GeneralTab.tscn index 71b50667..8e6b4c3b 100644 --- a/game/src/UI/GameMenu/OptionMenu/GeneralTab.tscn +++ b/game/src/UI/GameMenu/OptionMenu/GeneralTab.tscn @@ -1,34 +1,34 @@ -[gd_scene load_steps=5 format=3 uid="uid://duwjal7sd7p6w"] +[gd_scene format=3 uid="uid://duwjal7sd7p6w"] [ext_resource type="Script" uid="uid://dg8y1dvid41mm" path="res://src/UI/GameMenu/OptionMenu/GeneralTab.gd" id="1_gbutn"] [ext_resource type="PackedScene" uid="uid://b7oncobnacxmt" path="res://src/UI/GameMenu/GameMenu/LocaleButton.tscn" id="2_5cfd7"] [ext_resource type="Script" uid="uid://b06h8rw7shprx" path="res://src/UI/GameMenu/OptionMenu/SettingNodes/SettingOptionButton.gd" id="2_msx2u"] [ext_resource type="Script" uid="uid://si04yyqrxja4" path="res://src/UI/GameMenu/OptionMenu/AutosaveIntervalSelector.gd" id="2_t06tb"] -[node name="GeneralTab" type="HBoxContainer" node_paths=PackedStringArray("initial_focus")] +[node name="GeneralTab" type="HBoxContainer" unique_id=1892269527 node_paths=PackedStringArray("initial_focus")] editor_description = "UI-48, UIFUN-45" alignment = 1 script = ExtResource("1_gbutn") initial_focus = NodePath("VBoxContainer/GridContainer/SavegameFormatSelector") -[node name="VBoxContainer" type="VBoxContainer" parent="."] +[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=1333184019] layout_mode = 2 -[node name="Control" type="Control" parent="VBoxContainer"] +[node name="Control" type="Control" parent="VBoxContainer" unique_id=1211064786] layout_mode = 2 size_flags_vertical = 3 size_flags_stretch_ratio = 0.1 -[node name="GridContainer" type="GridContainer" parent="VBoxContainer"] +[node name="GridContainer" type="GridContainer" parent="VBoxContainer" unique_id=930258876] layout_mode = 2 size_flags_vertical = 3 columns = 2 -[node name="SavegameFormatLabel" type="Label" parent="VBoxContainer/GridContainer"] +[node name="SavegameFormatLabel" type="Label" parent="VBoxContainer/GridContainer" unique_id=886608465] layout_mode = 2 text = "OPTIONS_GENERAL_SAVEFORMAT" -[node name="SavegameFormatSelector" type="OptionButton" parent="VBoxContainer/GridContainer"] +[node name="SavegameFormatSelector" type="OptionButton" parent="VBoxContainer/GridContainer" unique_id=807681088] editor_description = "UI-50" layout_mode = 2 focus_neighbor_bottom = NodePath("../AutosaveIntervalSelector") @@ -43,11 +43,11 @@ section_name = "general" setting_name = "savegame_format" default_selected = 0 -[node name="AutosaveIntervalLabel" type="Label" parent="VBoxContainer/GridContainer"] +[node name="AutosaveIntervalLabel" type="Label" parent="VBoxContainer/GridContainer" unique_id=407389934] layout_mode = 2 text = "OPTIONS_GENERAL_AUTOSAVE" -[node name="AutosaveIntervalSelector" type="OptionButton" parent="VBoxContainer/GridContainer"] +[node name="AutosaveIntervalSelector" type="OptionButton" parent="VBoxContainer/GridContainer" unique_id=1634806442] editor_description = "UI-15, UIFUN-19" layout_mode = 2 focus_neighbor_top = NodePath("../SavegameFormatSelector") @@ -69,11 +69,11 @@ section_name = "general" setting_name = "autosave_interval" default_selected = 0 -[node name="LocaleLabel" type="Label" parent="VBoxContainer/GridContainer"] +[node name="LocaleLabel" type="Label" parent="VBoxContainer/GridContainer" unique_id=218400055] layout_mode = 2 text = "OPTIONS_GENERAL_LANGUAGE" -[node name="LocaleButton" parent="VBoxContainer/GridContainer" instance=ExtResource("2_5cfd7")] +[node name="LocaleButton" parent="VBoxContainer/GridContainer" unique_id=36180585 instance=ExtResource("2_5cfd7")] editor_description = "UI-79" layout_mode = 2 focus_neighbor_top = NodePath("../AutosaveIntervalSelector") diff --git a/game/src/UI/GameMenu/OptionMenu/KeychainShortcutEdit.tscn b/game/src/UI/GameMenu/OptionMenu/KeychainShortcutEdit.tscn index 25fb97ec..6027640c 100644 --- a/game/src/UI/GameMenu/OptionMenu/KeychainShortcutEdit.tscn +++ b/game/src/UI/GameMenu/OptionMenu/KeychainShortcutEdit.tscn @@ -1,7 +1,7 @@ -[gd_scene load_steps=3 format=3 uid="uid://cka0tjqrek13"] +[gd_scene format=3 uid="uid://cka0tjqrek13"] [ext_resource type="PackedScene" uid="uid://bq7ibhm0txl5p" path="res://addons/keychain/ShortcutEdit.tscn" id="1_47eix"] [ext_resource type="Script" uid="uid://dcwdajx34p4sp" path="res://src/UI/GameMenu/OptionMenu/KeychainShortcutEdit.gd" id="2_gr2m0"] -[node name="ShortcutEdit" instance=ExtResource("1_47eix")] +[node name="ShortcutEdit" unique_id=1297136943 instance=ExtResource("1_47eix")] script = ExtResource("2_gr2m0") diff --git a/game/src/UI/GameMenu/OptionMenu/OptionsMenu.tscn b/game/src/UI/GameMenu/OptionMenu/OptionsMenu.tscn index c6e25ec4..2b3599d3 100644 --- a/game/src/UI/GameMenu/OptionMenu/OptionsMenu.tscn +++ b/game/src/UI/GameMenu/OptionMenu/OptionsMenu.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=8 format=3 uid="uid://cnbfxjy1m6wja"] +[gd_scene format=3 uid="uid://cnbfxjy1m6wja"] [ext_resource type="Theme" uid="uid://fbxssqcg1s0m" path="res://assets/graphics/theme/options_menu.tres" id="1_0up1d"] [ext_resource type="Script" uid="uid://i4sj0j5sss2a" path="res://src/UI/GameMenu/OptionMenu/OptionsMenu.gd" id="1_tlein"] @@ -8,7 +8,7 @@ [ext_resource type="PackedScene" uid="uid://dp2grvybtecqu" path="res://src/UI/GameMenu/OptionMenu/OtherTab.tscn" id="5_ahefp"] [ext_resource type="PackedScene" uid="uid://cka0tjqrek13" path="res://src/UI/GameMenu/OptionMenu/KeychainShortcutEdit.tscn" id="6_f7qfn"] -[node name="OptionsMenu" type="PanelContainer" node_paths=PackedStringArray("_tab_container")] +[node name="OptionsMenu" type="PanelContainer" unique_id=2001550106 node_paths=PackedStringArray("_tab_container")] editor_description = "UI-25" anchors_preset = 15 anchor_right = 1.0 @@ -20,39 +20,39 @@ theme_type_variation = &"BackgroundPanel" script = ExtResource("1_tlein") _tab_container = NodePath("Margin/Tab") -[node name="Margin" type="MarginContainer" parent="."] +[node name="Margin" type="MarginContainer" parent="." unique_id=1213664740] layout_mode = 2 theme_type_variation = &"TabMargin" -[node name="Tab" type="TabContainer" parent="Margin"] +[node name="Tab" type="TabContainer" parent="Margin" unique_id=1265448633] editor_description = "UI-45" layout_mode = 2 tab_alignment = 1 current_tab = 0 use_hidden_tabs_for_min_size = true -[node name="General" parent="Margin/Tab" instance=ExtResource("3_6gvf6")] +[node name="General" parent="Margin/Tab" unique_id=498602338 instance=ExtResource("3_6gvf6")] layout_mode = 2 metadata/_tab_index = 0 -[node name="Video" parent="Margin/Tab" instance=ExtResource("2_ji8xr")] +[node name="Video" parent="Margin/Tab" unique_id=683372802 instance=ExtResource("2_ji8xr")] editor_description = "UI-46, UIFUN-43" visible = false layout_mode = 2 metadata/_tab_index = 1 -[node name="Sound" parent="Margin/Tab" instance=ExtResource("3_4w35t")] +[node name="Sound" parent="Margin/Tab" unique_id=588606448 instance=ExtResource("3_4w35t")] editor_description = "UI-47, UIFUN-44" visible = false layout_mode = 2 metadata/_tab_index = 2 -[node name="Controls" parent="Margin/Tab" instance=ExtResource("6_f7qfn")] +[node name="Controls" parent="Margin/Tab" unique_id=1771990114 instance=ExtResource("6_f7qfn")] editor_description = "SS-27, UI-49, UIFUN-46" visible = false layout_mode = 2 metadata/_tab_index = 3 -[node name="Other" parent="Margin/Tab" instance=ExtResource("5_ahefp")] +[node name="Other" parent="Margin/Tab" unique_id=1256534261 instance=ExtResource("5_ahefp")] layout_mode = 2 metadata/_tab_index = 4 diff --git a/game/src/UI/GameMenu/OptionMenu/OtherTab.tscn b/game/src/UI/GameMenu/OptionMenu/OtherTab.tscn index 0ffc92d3..1c16f5ab 100644 --- a/game/src/UI/GameMenu/OptionMenu/OtherTab.tscn +++ b/game/src/UI/GameMenu/OptionMenu/OtherTab.tscn @@ -1,18 +1,18 @@ [gd_scene format=3 uid="uid://dp2grvybtecqu"] -[node name="Other" type="Control"] +[node name="Other" type="Control" unique_id=901785660] visible = false layout_mode = 3 anchors_preset = 0 -[node name="HBoxContainer" type="HBoxContainer" parent="."] +[node name="HBoxContainer" type="HBoxContainer" parent="." unique_id=2103943180] layout_mode = 0 offset_right = 40.0 offset_bottom = 40.0 -[node name="Label" type="Label" parent="HBoxContainer"] +[node name="Label" type="Label" parent="HBoxContainer" unique_id=1044986875] layout_mode = 2 text = "Spinbox Example :)" -[node name="SpinBox" type="SpinBox" parent="HBoxContainer"] +[node name="SpinBox" type="SpinBox" parent="HBoxContainer" unique_id=278098148] layout_mode = 2 diff --git a/game/src/UI/GameMenu/OptionMenu/SoundTab.tscn b/game/src/UI/GameMenu/OptionMenu/SoundTab.tscn index bc0534fb..4acc28e4 100644 --- a/game/src/UI/GameMenu/OptionMenu/SoundTab.tscn +++ b/game/src/UI/GameMenu/OptionMenu/SoundTab.tscn @@ -1,32 +1,32 @@ -[gd_scene load_steps=3 format=3 uid="uid://cbtgwpx2wxi33"] +[gd_scene format=3 uid="uid://cbtgwpx2wxi33"] [ext_resource type="PackedScene" uid="uid://dy4si8comamnv" path="res://src/UI/GameMenu/OptionMenu/VolumeGrid.tscn" id="1_okpft"] [ext_resource type="Script" uid="uid://cuk60t6htfhxu" path="res://src/UI/GameMenu/OptionMenu/SettingNodes/SettingCheckBox.gd" id="2_f3aj4"] -[node name="Sound" type="HBoxContainer"] +[node name="Sound" type="HBoxContainer" unique_id=848250411] alignment = 1 -[node name="VBoxContainer" type="VBoxContainer" parent="."] +[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=1260106103] layout_mode = 2 -[node name="Control" type="Control" parent="VBoxContainer"] +[node name="Control" type="Control" parent="VBoxContainer" unique_id=58781728] layout_mode = 2 size_flags_vertical = 3 size_flags_stretch_ratio = 0.1 -[node name="VolumeGrid" parent="VBoxContainer" instance=ExtResource("1_okpft")] +[node name="VolumeGrid" parent="VBoxContainer" unique_id=1166324459 instance=ExtResource("1_okpft")] layout_mode = 2 -[node name="ButtonGrid" type="GridContainer" parent="VBoxContainer"] +[node name="ButtonGrid" type="GridContainer" parent="VBoxContainer" unique_id=591022586] layout_mode = 2 size_flags_vertical = 2 columns = 2 -[node name="Spacer" type="Control" parent="VBoxContainer/ButtonGrid"] +[node name="Spacer" type="Control" parent="VBoxContainer/ButtonGrid" unique_id=742251692] layout_mode = 2 size_flags_horizontal = 3 -[node name="EarExploder" type="CheckBox" parent="VBoxContainer/ButtonGrid"] +[node name="EarExploder" type="CheckBox" parent="VBoxContainer/ButtonGrid" unique_id=372950547] layout_mode = 2 text = "OPTIONS_SOUND_EXPLODE_EARS" script = ExtResource("2_f3aj4") diff --git a/game/src/UI/GameMenu/OptionMenu/VideoTab.tscn b/game/src/UI/GameMenu/OptionMenu/VideoTab.tscn index 3f3582fb..4ae752fc 100644 --- a/game/src/UI/GameMenu/OptionMenu/VideoTab.tscn +++ b/game/src/UI/GameMenu/OptionMenu/VideoTab.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=9 format=3 uid="uid://bq3awxxjn1tuw"] +[gd_scene format=3 uid="uid://bq3awxxjn1tuw"] [ext_resource type="Script" uid="uid://baata5fx7gs5h" path="res://src/UI/GameMenu/OptionMenu/ResolutionSelector.gd" id="1_i8nro"] [ext_resource type="Script" uid="uid://d2baocaag5ifg" path="res://src/UI/GameMenu/OptionMenu/VideoTab.gd" id="1_jvv62"] @@ -9,30 +9,30 @@ [ext_resource type="Script" uid="uid://fggqr3vjg8rd" path="res://src/UI/GameMenu/OptionMenu/QualityPresetSelector.gd" id="5_srg4v"] [ext_resource type="Script" uid="uid://cmym81ujx2s8a" path="res://src/UI/GameMenu/OptionMenu/SettingRevertDialog.gd" id="8_ug5mo"] -[node name="Video" type="HBoxContainer" node_paths=PackedStringArray("initial_focus")] +[node name="Video" type="HBoxContainer" unique_id=1406273878 node_paths=PackedStringArray("initial_focus")] editor_description = "UI-46" alignment = 1 script = ExtResource("1_jvv62") initial_focus = NodePath("VideoSettingList/VideoSettingGrid/ResolutionSelector") -[node name="VideoSettingList" type="VBoxContainer" parent="."] +[node name="VideoSettingList" type="VBoxContainer" parent="." unique_id=358688510] layout_mode = 2 -[node name="Control" type="Control" parent="VideoSettingList"] +[node name="Control" type="Control" parent="VideoSettingList" unique_id=277801617] layout_mode = 2 size_flags_vertical = 3 size_flags_stretch_ratio = 0.1 -[node name="VideoSettingGrid" type="GridContainer" parent="VideoSettingList"] +[node name="VideoSettingGrid" type="GridContainer" parent="VideoSettingList" unique_id=1448783179] layout_mode = 2 size_flags_vertical = 3 columns = 2 -[node name="ResolutionLabel" type="Label" parent="VideoSettingList/VideoSettingGrid"] +[node name="ResolutionLabel" type="Label" parent="VideoSettingList/VideoSettingGrid" unique_id=902590164] layout_mode = 2 text = "OPTIONS_VIDEO_RESOLUTION" -[node name="ResolutionSelector" type="OptionButton" parent="VideoSettingList/VideoSettingGrid" node_paths=PackedStringArray("revert_dialog")] +[node name="ResolutionSelector" type="OptionButton" parent="VideoSettingList/VideoSettingGrid" unique_id=1406125022 node_paths=PackedStringArray("revert_dialog")] editor_description = "UI-19" layout_mode = 2 focus_neighbor_bottom = NodePath("../ScreenModeSelector") @@ -45,11 +45,11 @@ revert_dialog = NodePath("../../../VideoRevertDialog") section_name = "video" setting_name = "resolution" -[node name="GuiScaleLabel" type="Label" parent="VideoSettingList/VideoSettingGrid"] +[node name="GuiScaleLabel" type="Label" parent="VideoSettingList/VideoSettingGrid" unique_id=1004691853] layout_mode = 2 text = "OPTIONS_VIDEO_GUI_SCALE" -[node name="GuiScaleSelector" type="OptionButton" parent="VideoSettingList/VideoSettingGrid"] +[node name="GuiScaleSelector" type="OptionButton" parent="VideoSettingList/VideoSettingGrid" unique_id=1231600790] editor_description = "UI-23" layout_mode = 2 focus_neighbor_bottom = NodePath("../ScreenModeSelector") @@ -61,12 +61,12 @@ script = ExtResource("3_pgc5d") section_name = "video" setting_name = "gui_scale" -[node name="ScreenModeLabel" type="Label" parent="VideoSettingList/VideoSettingGrid"] +[node name="ScreenModeLabel" type="Label" parent="VideoSettingList/VideoSettingGrid" unique_id=1576159469] editor_description = "UI-44" layout_mode = 2 text = "OPTIONS_VIDEO_SCREEN_MODE" -[node name="ScreenModeSelector" type="OptionButton" parent="VideoSettingList/VideoSettingGrid" node_paths=PackedStringArray("revert_dialog")] +[node name="ScreenModeSelector" type="OptionButton" parent="VideoSettingList/VideoSettingGrid" unique_id=1604517552 node_paths=PackedStringArray("revert_dialog")] layout_mode = 2 focus_neighbor_top = NodePath("../ResolutionSelector") focus_neighbor_bottom = NodePath("../MonitorDisplaySelector") @@ -83,11 +83,11 @@ revert_dialog = NodePath("../../../VideoRevertDialog") section_name = "video" setting_name = "mode_selected" -[node name="MonitorSelectionLabel" type="Label" parent="VideoSettingList/VideoSettingGrid"] +[node name="MonitorSelectionLabel" type="Label" parent="VideoSettingList/VideoSettingGrid" unique_id=1936849369] layout_mode = 2 text = "OPTIONS_VIDEO_MONITOR_SELECTION" -[node name="MonitorDisplaySelector" type="OptionButton" parent="VideoSettingList/VideoSettingGrid" node_paths=PackedStringArray("revert_dialog")] +[node name="MonitorDisplaySelector" type="OptionButton" parent="VideoSettingList/VideoSettingGrid" unique_id=535768394 node_paths=PackedStringArray("revert_dialog")] layout_mode = 2 focus_neighbor_top = NodePath("../ScreenModeSelector") focus_neighbor_bottom = NodePath("../RefreshRateSelector") @@ -100,11 +100,11 @@ revert_dialog = NodePath("../../../VideoRevertDialog") section_name = "video" setting_name = "current_screen" -[node name="RefreshRateLabel" type="Label" parent="VideoSettingList/VideoSettingGrid"] +[node name="RefreshRateLabel" type="Label" parent="VideoSettingList/VideoSettingGrid" unique_id=1383296993] layout_mode = 2 text = "OPTIONS_VIDEO_REFRESH_RATE" -[node name="RefreshRateSelector" type="OptionButton" parent="VideoSettingList/VideoSettingGrid"] +[node name="RefreshRateSelector" type="OptionButton" parent="VideoSettingList/VideoSettingGrid" unique_id=1722236592] editor_description = "UI-18, UIFUN-20" layout_mode = 2 tooltip_text = "OPTIONS_VIDEO_REFRESH_RATE_TOOLTIP" @@ -133,11 +133,11 @@ section_name = "video" setting_name = "refresh_rate" default_selected = 0 -[node name="QualityPresetLabel" type="Label" parent="VideoSettingList/VideoSettingGrid"] +[node name="QualityPresetLabel" type="Label" parent="VideoSettingList/VideoSettingGrid" unique_id=2146844500] layout_mode = 2 text = "OPTIONS_VIDEO_QUALITY" -[node name="QualityPresetSelector" type="OptionButton" parent="VideoSettingList/VideoSettingGrid"] +[node name="QualityPresetSelector" type="OptionButton" parent="VideoSettingList/VideoSettingGrid" unique_id=251436011] editor_description = "UI-21, UIFUN-22" layout_mode = 2 focus_neighbor_top = NodePath("../RefreshRateSelector") @@ -158,7 +158,7 @@ section_name = "video" setting_name = "quality_preset" default_selected = 1 -[node name="VideoRevertDialog" type="ConfirmationDialog" parent="." node_paths=PackedStringArray("timer")] +[node name="VideoRevertDialog" type="ConfirmationDialog" parent="." unique_id=1494559472 node_paths=PackedStringArray("timer")] editor_description = "UI-873" disable_3d = true title = "OPTIONS_VIDEO_REVERT_DIALOG_TITLE" @@ -169,7 +169,7 @@ script = ExtResource("8_ug5mo") dialog_text_key = "OPTIONS_VIDEO_REVERT_DIALOG_TEXT" timer = NodePath("VideoRevertTimer") -[node name="VideoRevertTimer" type="Timer" parent="VideoRevertDialog"] +[node name="VideoRevertTimer" type="Timer" parent="VideoRevertDialog" unique_id=555804643] wait_time = 5.0 one_shot = true diff --git a/game/src/UI/GameMenu/OptionMenu/VolumeGrid.tscn b/game/src/UI/GameMenu/OptionMenu/VolumeGrid.tscn index 6a5e6e65..9bf070c9 100644 --- a/game/src/UI/GameMenu/OptionMenu/VolumeGrid.tscn +++ b/game/src/UI/GameMenu/OptionMenu/VolumeGrid.tscn @@ -1,8 +1,8 @@ -[gd_scene load_steps=2 format=3 uid="uid://dy4si8comamnv"] +[gd_scene format=3 uid="uid://dy4si8comamnv"] [ext_resource type="Script" uid="uid://dopkfnjx2idjr" path="res://src/UI/GameMenu/OptionMenu/VolumeGrid.gd" id="1_wb64h"] -[node name="VolumeGrid" type="GridContainer"] +[node name="VolumeGrid" type="GridContainer" unique_id=1663583968] size_flags_vertical = 0 columns = 2 script = ExtResource("1_wb64h") diff --git a/game/src/UI/GameMenu/ReleaseInfoBox/ReleaseInfoBox.tscn b/game/src/UI/GameMenu/ReleaseInfoBox/ReleaseInfoBox.tscn index 61484f40..001472ab 100644 --- a/game/src/UI/GameMenu/ReleaseInfoBox/ReleaseInfoBox.tscn +++ b/game/src/UI/GameMenu/ReleaseInfoBox/ReleaseInfoBox.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=4 format=3 uid="uid://cen7wkmn6og66"] +[gd_scene format=3 uid="uid://cen7wkmn6og66"] [ext_resource type="Script" uid="uid://b0dpf7vhtv85w" path="res://src/UI/GameMenu/ReleaseInfoBox/ReleaseInfoBox.gd" id="1_y2djw"] @@ -11,7 +11,7 @@ vertical = true [sub_resource type="Theme" id="Theme_une4m"] VSeparator/styles/separator = SubResource("StyleBoxLine_07plf") -[node name="ReleaseInfoBox" type="HBoxContainer" node_paths=PackedStringArray("_version_label", "_commit_label", "_checksum_label")] +[node name="ReleaseInfoBox" type="HBoxContainer" unique_id=772445697 node_paths=PackedStringArray("_version_label", "_commit_label", "_checksum_label")] editor_description = "UI-31" theme = SubResource("Theme_une4m") script = ExtResource("1_y2djw") @@ -19,16 +19,16 @@ _version_label = NodePath("VersionButton") _commit_label = NodePath("CommitButton") _checksum_label = NodePath("ChecksumButton") -[node name="GameInfoButton" type="Button" parent="."] +[node name="GameInfoButton" type="Button" parent="." unique_id=180827051] layout_mode = 2 theme_type_variation = &"GameInfoButton" text = "MAINMENU_GAME_INFO" flat = true -[node name="VSeparator" type="VSeparator" parent="."] +[node name="VSeparator" type="VSeparator" parent="." unique_id=570681538] layout_mode = 2 -[node name="VersionButton" type="Button" parent="."] +[node name="VersionButton" type="Button" parent="." unique_id=133473529] editor_description = "UI-869, UI-870" layout_mode = 2 tooltip_text = "VERSION_MISSING" @@ -38,10 +38,10 @@ text = "VERSION_MISSING" flat = true alignment = 0 -[node name="VSeparator2" type="VSeparator" parent="."] +[node name="VSeparator2" type="VSeparator" parent="." unique_id=1503995737] layout_mode = 2 -[node name="CommitButton" type="Button" parent="."] +[node name="CommitButton" type="Button" parent="." unique_id=1491923438] editor_description = "UI-871, UI-872" layout_mode = 2 focus_mode = 0 @@ -50,10 +50,10 @@ text = "????????" flat = true alignment = 0 -[node name="VSeparator3" type="VSeparator" parent="."] +[node name="VSeparator3" type="VSeparator" parent="." unique_id=600957476] layout_mode = 2 -[node name="ChecksumButton" type="Button" parent="."] +[node name="ChecksumButton" type="Button" parent="." unique_id=89477046] editor_description = "UI-111" layout_mode = 2 tooltip_text = "CHECKSUM_MISSING" diff --git a/game/src/UI/GameMenu/SaveLoadMenu/SaveLoadMenu.tscn b/game/src/UI/GameMenu/SaveLoadMenu/SaveLoadMenu.tscn index d675ea5b..b2728642 100644 --- a/game/src/UI/GameMenu/SaveLoadMenu/SaveLoadMenu.tscn +++ b/game/src/UI/GameMenu/SaveLoadMenu/SaveLoadMenu.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=5 format=3 uid="uid://d3g6wbvwflmyk"] +[gd_scene format=3 uid="uid://d3g6wbvwflmyk"] [ext_resource type="Script" uid="uid://f4w5734blvbb" path="res://src/UI/GameMenu/SaveLoadMenu/SaveLoadMenu.gd" id="1_3jkds"] [ext_resource type="PackedScene" uid="uid://d2s7roinx2or7" path="res://src/UI/GameMenu/SaveLoadMenu/SavePanelButton.tscn" id="2_fc6r3"] @@ -10,7 +10,7 @@ pressed = true [sub_resource type="Shortcut" id="Shortcut_o1f2l"] events = [SubResource("InputEventAction_8vo2t")] -[node name="SaveLoadMenu" type="MarginContainer" node_paths=PackedStringArray("_label", "_scroll_list", "_save_line_edit", "_save_load_button", "_tag_selection_tab", "_delete_dialog", "_overwrite_dialog")] +[node name="SaveLoadMenu" type="MarginContainer" unique_id=1434975039 node_paths=PackedStringArray("_label", "_scroll_list", "_save_line_edit", "_save_load_button", "_tag_selection_tab", "_delete_dialog", "_overwrite_dialog")] editor_description = "UI-82, UI-89" anchors_preset = 15 anchor_right = 1.0 @@ -31,55 +31,56 @@ _tag_selection_tab = NodePath("SaveLoadPanel/SaveLoadList/TagSelectionList/TagSe _delete_dialog = NodePath("DeleteDialog") _overwrite_dialog = NodePath("OverwriteDialog") -[node name="SaveLoadPanel" type="PanelContainer" parent="."] +[node name="SaveLoadPanel" type="PanelContainer" parent="." unique_id=493467719] layout_mode = 2 mouse_force_pass_scroll_events = false -[node name="SaveLoadList" type="VBoxContainer" parent="SaveLoadPanel"] +[node name="SaveLoadList" type="VBoxContainer" parent="SaveLoadPanel" unique_id=601752729] layout_mode = 2 -[node name="TitleBarList" type="HBoxContainer" parent="SaveLoadPanel/SaveLoadList"] +[node name="TitleBarList" type="HBoxContainer" parent="SaveLoadPanel/SaveLoadList" unique_id=463458981] layout_mode = 2 alignment = 2 -[node name="SaveLoadLabel" type="Label" parent="SaveLoadPanel/SaveLoadList/TitleBarList"] +[node name="SaveLoadLabel" type="Label" parent="SaveLoadPanel/SaveLoadList/TitleBarList" unique_id=664891856] layout_mode = 2 size_flags_horizontal = 6 text = "SAVELOADMENU_SAVE_TITLE" -[node name="CloseButton" type="Button" parent="SaveLoadPanel/SaveLoadList/TitleBarList"] +[node name="CloseButton" type="Button" parent="SaveLoadPanel/SaveLoadList/TitleBarList" unique_id=1849136111] editor_description = "UI-87, UI-94" layout_mode = 2 text = "X" -[node name="TagSelectionList" type="HBoxContainer" parent="SaveLoadPanel/SaveLoadList"] +[node name="TagSelectionList" type="HBoxContainer" parent="SaveLoadPanel/SaveLoadList" unique_id=2033832089] layout_mode = 2 -[node name="TagSelectionLabel" type="Label" parent="SaveLoadPanel/SaveLoadList/TagSelectionList"] +[node name="TagSelectionLabel" type="Label" parent="SaveLoadPanel/SaveLoadList/TagSelectionList" unique_id=1194915598] layout_mode = 2 text = "SAVELOADMENU_SESSION" -[node name="TagSelectionTabBar" type="TabBar" parent="SaveLoadPanel/SaveLoadList/TagSelectionList"] +[node name="TagSelectionTabBar" type="TabBar" parent="SaveLoadPanel/SaveLoadList/TagSelectionList" unique_id=114034506] layout_mode = 2 size_flags_horizontal = 3 +current_tab = 0 tab_count = 1 tab_0/title = "SAVELOADMENU_TABSELECTIONTABBAR_ALL" -[node name="SaveLoadScroll" type="ScrollContainer" parent="SaveLoadPanel/SaveLoadList"] +[node name="SaveLoadScroll" type="ScrollContainer" parent="SaveLoadPanel/SaveLoadList" unique_id=999219138] editor_description = "UI-83, UI-90" layout_mode = 2 size_flags_vertical = 3 -[node name="SaveLoadScrollList" type="VBoxContainer" parent="SaveLoadPanel/SaveLoadList/SaveLoadScroll"] +[node name="SaveLoadScrollList" type="VBoxContainer" parent="SaveLoadPanel/SaveLoadList/SaveLoadScroll" unique_id=1674752311] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 3 -[node name="SaveLineEdit" type="LineEdit" parent="SaveLoadPanel/SaveLoadList"] +[node name="SaveLineEdit" type="LineEdit" parent="SaveLoadPanel/SaveLoadList" unique_id=871670149] editor_description = "UI-85, UI-92" layout_mode = 2 -[node name="SaveLoadButton" type="Button" parent="SaveLoadPanel/SaveLoadList"] +[node name="SaveLoadButton" type="Button" parent="SaveLoadPanel/SaveLoadList" unique_id=1760518330] editor_description = "UIFUN-82, UIFUN-87" layout_mode = 2 size_flags_horizontal = 4 @@ -87,14 +88,14 @@ shortcut = SubResource("Shortcut_o1f2l") shortcut_feedback = false text = "SAVELOADMENU_SAVE_BUTTON" -[node name="DeleteDialog" type="ConfirmationDialog" parent="."] +[node name="DeleteDialog" type="ConfirmationDialog" parent="." unique_id=214640647] disable_3d = true title = "SAVELOADMENU_DELETE_DIALOG_TITLE" ok_button_text = "DIALOG_OK" dialog_text = "SAVELOADMENU_DELETE_DIALOG_TEXT" cancel_button_text = "DIALOG_CANCEL" -[node name="OverwriteDialog" type="ConfirmationDialog" parent="."] +[node name="OverwriteDialog" type="ConfirmationDialog" parent="." unique_id=180565257] disable_3d = true title = "SAVELOADMENU_OVERWRITE_DIALOG_TITLE" ok_button_text = "DIALOG_OK" diff --git a/game/src/UI/GameMenu/SaveLoadMenu/SavePanelButton.tscn b/game/src/UI/GameMenu/SaveLoadMenu/SavePanelButton.tscn index 851dac87..1a72146c 100644 --- a/game/src/UI/GameMenu/SaveLoadMenu/SavePanelButton.tscn +++ b/game/src/UI/GameMenu/SaveLoadMenu/SavePanelButton.tscn @@ -1,8 +1,8 @@ -[gd_scene load_steps=2 format=3 uid="uid://d2s7roinx2or7"] +[gd_scene format=3 uid="uid://d2s7roinx2or7"] [ext_resource type="Script" uid="uid://y0spc6xdwnsv" path="res://src/UI/GameMenu/SaveLoadMenu/SavePanelButton.gd" id="1_rtuo6"] -[node name="SavePanelButton" type="Container" node_paths=PackedStringArray("country_flag", "delete_button", "background_button", "name_label", "date_label")] +[node name="SavePanelButton" type="Container" unique_id=1430736640 node_paths=PackedStringArray("country_flag", "delete_button", "background_button", "name_label", "date_label")] editor_description = "SS-18, UI-40, UI-84, UI-86, UI-91, UI-93" offset_right = 276.0 offset_bottom = 48.0 @@ -13,40 +13,40 @@ background_button = NodePath("BackgroundButton") name_label = NodePath("SaveList/NameLabel") date_label = NodePath("SaveList/DateLabel") -[node name="BackgroundButton" type="Button" parent="."] +[node name="BackgroundButton" type="Button" parent="." unique_id=1525503079] layout_mode = 2 theme_type_variation = &"ButtonContainer" -[node name="SaveList" type="HBoxContainer" parent="."] +[node name="SaveList" type="HBoxContainer" parent="." unique_id=1889547982] layout_mode = 2 mouse_filter = 2 -[node name="CountryFlag" type="TextureRect" parent="SaveList"] +[node name="CountryFlag" type="TextureRect" parent="SaveList" unique_id=418746646] layout_mode = 2 size_flags_horizontal = 0 size_flags_vertical = 4 mouse_filter = 2 -[node name="NameLabel" type="Label" parent="SaveList"] +[node name="NameLabel" type="Label" parent="SaveList" unique_id=1255761504] layout_mode = 2 size_flags_horizontal = 0 size_flags_vertical = 1 text = "PLACEHOLDER" vertical_alignment = 1 -[node name="DateLabel" type="Label" parent="SaveList"] +[node name="DateLabel" type="Label" parent="SaveList" unique_id=1451025777] layout_mode = 2 size_flags_horizontal = 0 size_flags_vertical = 1 text = "00.00.0000" vertical_alignment = 1 -[node name="Separator" type="Control" parent="SaveList"] +[node name="Separator" type="Control" parent="SaveList" unique_id=1376457524] layout_mode = 2 size_flags_horizontal = 3 mouse_filter = 2 -[node name="DeleteButton" type="Button" parent="SaveList"] +[node name="DeleteButton" type="Button" parent="SaveList" unique_id=332973034] layout_mode = 2 size_flags_horizontal = 8 text = "x" diff --git a/game/src/UI/Session/PauseMenu/PauseMenu.tscn b/game/src/UI/Session/PauseMenu/PauseMenu.tscn index 4c7d3bfd..b0f5327c 100644 --- a/game/src/UI/Session/PauseMenu/PauseMenu.tscn +++ b/game/src/UI/Session/PauseMenu/PauseMenu.tscn @@ -1,10 +1,10 @@ -[gd_scene load_steps=4 format=3 uid="uid://dvdynl6eir40o"] +[gd_scene format=3 uid="uid://dvdynl6eir40o"] [ext_resource type="Theme" uid="uid://cqrfmjt5yeti7" path="res://assets/graphics/theme/game_session_menu.tres" id="1_2onog"] [ext_resource type="Script" uid="uid://c4b4lyevxpefr" path="res://src/UI/Session/PauseMenu/PauseMenu.gd" id="1_usq6o"] [ext_resource type="PackedScene" uid="uid://o4u142w4qkln" path="res://src/UI/GameMenu/GameMenu/GameMenu.tscn" id="2_xi6a4"] -[node name="GameSessionMenu" type="PanelContainer" node_paths=PackedStringArray("_main_menu_dialog", "_quit_dialog")] +[node name="GameSessionMenu" type="PanelContainer" unique_id=725807089 node_paths=PackedStringArray("_main_menu_dialog", "_quit_dialog")] process_mode = 3 editor_description = "UI-68" mouse_force_pass_scroll_events = false @@ -15,57 +15,57 @@ _main_menu_scene = ExtResource("2_xi6a4") _main_menu_dialog = NodePath("MainMenuDialog") _quit_dialog = NodePath("QuitDialog") -[node name="ButtonListMargin" type="MarginContainer" parent="."] +[node name="ButtonListMargin" type="MarginContainer" parent="." unique_id=321886105] layout_mode = 2 theme_override_constants/margin_left = 10 theme_override_constants/margin_top = 10 theme_override_constants/margin_right = 10 theme_override_constants/margin_bottom = 10 -[node name="ButtonList" type="VBoxContainer" parent="ButtonListMargin"] +[node name="ButtonList" type="VBoxContainer" parent="ButtonListMargin" unique_id=492886671] layout_mode = 2 -[node name="SaveButton" type="Button" parent="ButtonListMargin/ButtonList"] +[node name="SaveButton" type="Button" parent="ButtonListMargin/ButtonList" unique_id=1037346645] editor_description = "UI-69" layout_mode = 2 theme_type_variation = &"SessionButton" text = "GAMESESSIONMENU_SAVE" -[node name="LoadButton" type="Button" parent="ButtonListMargin/ButtonList"] +[node name="LoadButton" type="Button" parent="ButtonListMargin/ButtonList" unique_id=805586651] editor_description = "UI-70" layout_mode = 2 theme_type_variation = &"SessionButton" text = "GAMESESSIONMENU_LOAD" -[node name="OptionsButton" type="Button" parent="ButtonListMargin/ButtonList"] +[node name="OptionsButton" type="Button" parent="ButtonListMargin/ButtonList" unique_id=342275540] editor_description = "UI-10" layout_mode = 2 theme_type_variation = &"SessionButton" text = "GAMESESSIONMENU_OPTIONS" -[node name="MainMenuButton" type="Button" parent="ButtonListMargin/ButtonList"] +[node name="MainMenuButton" type="Button" parent="ButtonListMargin/ButtonList" unique_id=619425452] editor_description = "UI-71" layout_mode = 2 theme_type_variation = &"SessionButton" text = "GAMESESSIONMENU_MAINMENU" -[node name="QuitButton" type="Button" parent="ButtonListMargin/ButtonList"] +[node name="QuitButton" type="Button" parent="ButtonListMargin/ButtonList" unique_id=1503267683] editor_description = "UI-72" layout_mode = 2 theme_type_variation = &"SessionButton" text = "GAMESESSIONMENU_QUIT" -[node name="CloseSeparator" type="HSeparator" parent="ButtonListMargin/ButtonList"] +[node name="CloseSeparator" type="HSeparator" parent="ButtonListMargin/ButtonList" unique_id=1227771272] layout_mode = 2 theme_type_variation = &"SessionSeparator" -[node name="CloseButton" type="Button" parent="ButtonListMargin/ButtonList"] +[node name="CloseButton" type="Button" parent="ButtonListMargin/ButtonList" unique_id=2004614969] editor_description = "SS-64, UI-80, UIFUN-79" layout_mode = 2 theme_type_variation = &"SessionButton" text = "GAMESESSIONMENU_CLOSE" -[node name="MainMenuDialog" type="ConfirmationDialog" parent="."] +[node name="MainMenuDialog" type="ConfirmationDialog" parent="." unique_id=739307228] disable_3d = true title = "GAMESESSIONMENU_MAINMENU_DIALOG_TITLE" size = Vector2i(384, 100) @@ -73,7 +73,7 @@ ok_button_text = "DIALOG_OK" dialog_text = "GAMESESSIONMENU_MAINMENU_DIALOG_TEXT" cancel_button_text = "DIALOG_CANCEL" -[node name="QuitDialog" type="ConfirmationDialog" parent="."] +[node name="QuitDialog" type="ConfirmationDialog" parent="." unique_id=2097588504] disable_3d = true title = "GAMESESSIONMENU_QUIT_DIALOG_TITLE" ok_button_text = "DIALOG_OK" diff --git a/game/src/UI/Shared/MusicMenu/MusicMenu.tscn b/game/src/UI/Shared/MusicMenu/MusicMenu.tscn index 16844aa3..1f9bba54 100644 --- a/game/src/UI/Shared/MusicMenu/MusicMenu.tscn +++ b/game/src/UI/Shared/MusicMenu/MusicMenu.tscn @@ -1,8 +1,8 @@ -[gd_scene load_steps=2 format=3 uid="uid://cvl76duuym1wq"] +[gd_scene format=3 uid="uid://cvl76duuym1wq"] [ext_resource type="Script" uid="uid://8jeht8ufkjqk" path="res://src/UI/Shared/MusicMenu/MusicMenu.gd" id="1_gcm4m"] -[node name="MusicPlayer" type="BoxContainer" node_paths=PackedStringArray("_song_selector_button", "_progress_slider", "_previous_song_button", "_play_pause_button", "_next_song_button", "_visibility_button")] +[node name="MusicPlayer" type="BoxContainer" unique_id=2083940038 node_paths=PackedStringArray("_song_selector_button", "_progress_slider", "_previous_song_button", "_play_pause_button", "_next_song_button", "_visibility_button")] editor_description = "UI-104" offset_right = 150.0 offset_bottom = 110.0 @@ -16,7 +16,7 @@ _play_pause_button = NodePath("ButtonList/PlayPauseButton") _next_song_button = NodePath("ButtonList/NextSongButton") _visibility_button = NodePath("MusicUIVisibilityButton") -[node name="SongSelectorButton" type="OptionButton" parent="."] +[node name="SongSelectorButton" type="OptionButton" parent="." unique_id=1733339237] editor_description = "UI-105, UI-107, UI-110, UIFUN-92" custom_minimum_size = Vector2(150, 0) layout_mode = 2 @@ -26,36 +26,36 @@ alignment = 1 text_overrun_behavior = 3 fit_to_longest_item = false -[node name="ProgressSlider" type="HSlider" parent="."] +[node name="ProgressSlider" type="HSlider" parent="." unique_id=1704310301] custom_minimum_size = Vector2(150, 0) layout_mode = 2 size_flags_vertical = 1 focus_mode = 0 -[node name="ButtonList" type="HBoxContainer" parent="."] +[node name="ButtonList" type="HBoxContainer" parent="." unique_id=1985269196] layout_mode = 2 size_flags_horizontal = 4 mouse_filter = 2 -[node name="PreviousSongButton" type="Button" parent="ButtonList"] +[node name="PreviousSongButton" type="Button" parent="ButtonList" unique_id=1310203700] editor_description = "UI-109" layout_mode = 2 focus_mode = 0 text = "<" -[node name="PlayPauseButton" type="Button" parent="ButtonList"] +[node name="PlayPauseButton" type="Button" parent="ButtonList" unique_id=562542639] custom_minimum_size = Vector2(30, 0) layout_mode = 2 focus_mode = 0 text = "▶" -[node name="NextSongButton" type="Button" parent="ButtonList"] +[node name="NextSongButton" type="Button" parent="ButtonList" unique_id=1557725520] editor_description = "UI-108" layout_mode = 2 focus_mode = 0 text = ">" -[node name="MusicUIVisibilityButton" type="Button" parent="."] +[node name="MusicUIVisibilityButton" type="Button" parent="." unique_id=679146514] editor_description = "UI-106" layout_mode = 2 size_flags_horizontal = 4 diff --git a/godot-cpp b/godot-cpp index e83fd090..890c10d5 160000 --- a/godot-cpp +++ b/godot-cpp @@ -1 +1 @@ -Subproject commit e83fd0904c13356ed1d4c3d09f8bb9132bdc6b77 +Subproject commit 890c10d57981d6b52d5bb050f69ee7a631b9fcd2