diff --git a/.godot/editor/control.tscn-editstate-e66311c87c39ec8c25379305b5ae724b.cfg b/.godot/editor/control.tscn-editstate-e66311c87c39ec8c25379305b5ae724b.cfg index 1264427..7379286 100644 --- a/.godot/editor/control.tscn-editstate-e66311c87c39ec8c25379305b5ae724b.cfg +++ b/.godot/editor/control.tscn-editstate-e66311c87c39ec8c25379305b5ae724b.cfg @@ -172,4 +172,4 @@ Anim={ "zfar": 4000.01, "znear": 0.05 } -selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17140/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9462/@VSplitContainer@9281/@HSplitContainer@9283/@HSplitContainer@9285/@Control@9286/@SubViewportContainer@9287/@SubViewport@9288/Control/TabContainer/Inventario/HBoxContainer/PanelContainer/VBoxContainer/GadgetSelected")]) +selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17140/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9462/@VSplitContainer@9281/@HSplitContainer@9283/@HSplitContainer@9285/@Control@9286/@SubViewportContainer@9287/@SubViewport@9288/Control/TabContainer/Inventario/HBoxContainer/VBoxContainer/Weapon2/PanelContainer/MainWeapon")]) diff --git a/.godot/editor/control.tscn-folding-e66311c87c39ec8c25379305b5ae724b.cfg b/.godot/editor/control.tscn-folding-e66311c87c39ec8c25379305b5ae724b.cfg index 2fb5243..573e453 100644 --- a/.godot/editor/control.tscn-folding-e66311c87c39ec8c25379305b5ae724b.cfg +++ b/.godot/editor/control.tscn-folding-e66311c87c39ec8c25379305b5ae724b.cfg @@ -1,5 +1,5 @@ [folding] -node_unfolds=[NodePath("FileDialog"), PackedStringArray("filters"), NodePath("TabContainer"), PackedStringArray("Theme", "Theme Overrides"), NodePath("TabContainer/Curriculum"), PackedStringArray("Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Curriculum/VBoxContainer"), PackedStringArray("Layout", "Theme Overrides", "Layout/Container Sizing", "Theme Overrides/constants"), NodePath("TabContainer/Curriculum/VBoxContainer/HBoxContainer"), PackedStringArray("Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Curriculum/VBoxContainer/HBoxContainer/Nome"), PackedStringArray("Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Curriculum/VBoxContainer/HBoxContainer/Cognome"), PackedStringArray("Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Curriculum/VBoxContainer/VBoxContainer"), PackedStringArray("Layout", "Theme Overrides", "Layout/Container Sizing"), NodePath("TabContainer/Curriculum/VBoxContainer/VBoxContainer/HBoxContainer"), PackedStringArray("Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Curriculum/VBoxContainer/VBoxContainer/HBoxContainer/CenterContainer"), PackedStringArray("Layout", "Layout/Container Sizing"), NodePath("TabContainer/Curriculum/VBoxContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer"), PackedStringArray("Layout", "Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Curriculum/VBoxContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer/PanelContainer"), PackedStringArray("Theme Overrides/styles", "Theme Overrides", "Layout", "theme_override_styles/panel"), NodePath("TabContainer/Curriculum/VBoxContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer/PanelContainer/ImgPg"), PackedStringArray("Theme"), NodePath("TabContainer/Statistiche"), PackedStringArray("Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Statistiche/HBoxContainer"), PackedStringArray("Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer"), PackedStringArray("Theme Overrides", "theme_override_styles/panel", "Theme Overrides/styles"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer/VBoxContainer"), PackedStringArray("Layout", "Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer/VBoxContainer/Label"), PackedStringArray("Theme Overrides", "Theme Overrides/font_sizes"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/MarginContainer"), PackedStringArray("Theme Overrides", "Theme Overrides/styles", "theme_override_styles/panel", "Ordering"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/MarginContainer/VBoxContainer/Head"), PackedStringArray("Theme Overrides", "Theme", "Layout", "Layout/Container Sizing", "theme"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/Body"), PackedStringArray("Layout"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/VSeparator"), PackedStringArray("Theme Overrides", "Theme Overrides/styles", "theme_override_styles/separator", "Theme Overrides/constants"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/PanelContainer"), PackedStringArray("Theme Overrides", "Theme Overrides/styles", "theme_override_styles/panel"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/PanelContainer/VBoxContainer"), PackedStringArray("Theme Overrides", "Theme Overrides/constants", "Theme"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/PanelContainer/VBoxContainer/Label"), PackedStringArray("Theme Overrides", "Theme Overrides/colors"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/PanelContainer/VBoxContainer/Hp1"), PackedStringArray("Textures", "Layout"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer/VBoxContainer/HSeparator"), PackedStringArray("Theme Overrides", "Theme Overrides/styles", "theme_override_styles/separator", "Theme Overrides/constants"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer/VBoxContainer/GridContainer/Ca1"), PackedStringArray("Textures", "Layout", "Layout/Transform", "Layout/Container Sizing", "Theme", "theme"), NodePath("TabContainer/Statistiche/HBoxContainer/VBoxContainer"), PackedStringArray("Layout", "Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Statistiche/HBoxContainer/VBoxContainer/HBoxContainer/Label"), PackedStringArray("Layout"), NodePath("TabContainer/Statistiche/HBoxContainer/VBoxContainer/HBoxContainer/Trainig"), PackedStringArray("Layout"), NodePath("TabContainer/Statistiche/HBoxContainer/VBoxContainer/HBoxContainer2/Label"), PackedStringArray("Layout"), NodePath("TabContainer/Statistiche/HBoxContainer/VBoxContainer/HBoxContainer3/VBoxContainer/Label"), PackedStringArray("Theme Overrides", "Theme Overrides/font_sizes"), NodePath("TabContainer/Statistiche/HBoxContainer/VBoxContainer/HBoxContainer3/VBoxContainer/TiroBtn"), PackedStringArray("Layout", "Theme Overrides/font_sizes", "Theme Overrides"), NodePath("TabContainer/Statistiche/HBoxContainer/VBoxContainer/HBoxContainer3/VBoxContainer/FullCoverBtn"), PackedStringArray("Theme Overrides/font_sizes"), NodePath("TabContainer/Statistiche/HBoxContainer/VBoxContainer/HBoxContainer3/GridContainer"), PackedStringArray("Layout", "Theme Overrides/constants", "Layout/Container Sizing"), NodePath("TabContainer/Inventario"), PackedStringArray("Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Inventario/HBoxContainer/VBoxContainer/Weapon1/PanelContainer"), PackedStringArray("Theme Overrides", "Theme Overrides/styles", "theme_override_styles/panel"), NodePath("TabContainer/Inventario/HBoxContainer/VBoxContainer/Weapon1/PanelContainer/MainWeapon"), PackedStringArray("Layout", "Layout/Container Sizing", "Theme", "theme"), NodePath("TabContainer/Inventario/HBoxContainer/VBoxContainer/Weapon1/PanelContainer/MainWeapon/OpticSelector"), PackedStringArray("item_count_array"), NodePath("TabContainer/Inventario/HBoxContainer/VBoxContainer/Weapon1/VBoxContainer"), PackedStringArray("Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Inventario/HBoxContainer/VBoxContainer/Weapon1/VBoxContainer/Hand/Button"), PackedStringArray("Theme", "Layout"), NodePath("TabContainer/Inventario/HBoxContainer/VSeparator"), PackedStringArray("Theme Overrides", "Theme Overrides/constants", "Theme Overrides/styles"), NodePath("TabContainer/Inventario/HBoxContainer/PanelContainer"), PackedStringArray("Layout", "Theme Overrides", "Theme Overrides/styles", "theme_override_styles/panel"), NodePath("TabContainer/Inventario/HBoxContainer/PanelContainer/VBoxContainer"), PackedStringArray("Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Inventario/HBoxContainer/PanelContainer/VBoxContainer/PanelContainer"), PackedStringArray("Theme Overrides", "theme_override_styles/panel", "Layout/Container Sizing", "Theme Overrides/styles"), NodePath("TabContainer/Inventario/HBoxContainer/PanelContainer/VBoxContainer/PanelContainer/Gadget"), PackedStringArray("Theme", "Layout", "Layout/Container Sizing"), NodePath("TabContainer/Inventario/HBoxContainer/PanelContainer/VBoxContainer/GadgetSelected"), PackedStringArray("Layout"), NodePath("HBoxContainer/SaveBtn"), PackedStringArray("Layout", "Layout/Container Sizing"), NodePath("HBoxContainer/LoadBtn"), PackedStringArray("Layout", "Layout/Container Sizing")] +node_unfolds=[NodePath("FileDialog"), PackedStringArray("filters"), NodePath("TabContainer"), PackedStringArray("Theme", "Theme Overrides"), NodePath("TabContainer/Curriculum"), PackedStringArray("Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Curriculum/VBoxContainer"), PackedStringArray("Layout", "Theme Overrides", "Layout/Container Sizing", "Theme Overrides/constants"), NodePath("TabContainer/Curriculum/VBoxContainer/HBoxContainer"), PackedStringArray("Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Curriculum/VBoxContainer/HBoxContainer/Nome"), PackedStringArray("Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Curriculum/VBoxContainer/HBoxContainer/Cognome"), PackedStringArray("Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Curriculum/VBoxContainer/VBoxContainer"), PackedStringArray("Layout", "Theme Overrides", "Layout/Container Sizing"), NodePath("TabContainer/Curriculum/VBoxContainer/VBoxContainer/HBoxContainer"), PackedStringArray("Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Curriculum/VBoxContainer/VBoxContainer/HBoxContainer/CenterContainer"), PackedStringArray("Layout", "Layout/Container Sizing"), NodePath("TabContainer/Curriculum/VBoxContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer"), PackedStringArray("Layout", "Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Curriculum/VBoxContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer/PanelContainer"), PackedStringArray("Theme Overrides/styles", "Theme Overrides", "Layout", "theme_override_styles/panel"), NodePath("TabContainer/Curriculum/VBoxContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer/PanelContainer/ImgPg"), PackedStringArray("Theme"), NodePath("TabContainer/Statistiche"), PackedStringArray("Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Statistiche/HBoxContainer"), PackedStringArray("Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer"), PackedStringArray("Theme Overrides", "theme_override_styles/panel", "Theme Overrides/styles"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer/VBoxContainer"), PackedStringArray("Layout", "Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer/VBoxContainer/Label"), PackedStringArray("Theme Overrides", "Theme Overrides/font_sizes"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/MarginContainer"), PackedStringArray("Theme Overrides", "Theme Overrides/styles", "theme_override_styles/panel", "Ordering"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/MarginContainer/VBoxContainer/Head"), PackedStringArray("Theme Overrides", "Theme", "Layout", "Layout/Container Sizing", "theme"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/Body"), PackedStringArray("Layout"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/VSeparator"), PackedStringArray("Theme Overrides", "Theme Overrides/styles", "theme_override_styles/separator", "Theme Overrides/constants"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/PanelContainer"), PackedStringArray("Theme Overrides", "Theme Overrides/styles", "theme_override_styles/panel"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/PanelContainer/VBoxContainer"), PackedStringArray("Theme Overrides", "Theme Overrides/constants", "Theme"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/PanelContainer/VBoxContainer/Label"), PackedStringArray("Theme Overrides", "Theme Overrides/colors"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/PanelContainer/VBoxContainer/Hp1"), PackedStringArray("Textures", "Layout"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer/VBoxContainer/HSeparator"), PackedStringArray("Theme Overrides", "Theme Overrides/styles", "theme_override_styles/separator", "Theme Overrides/constants"), NodePath("TabContainer/Statistiche/HBoxContainer/MarginContainer/VBoxContainer/GridContainer/Ca1"), PackedStringArray("Textures", "Layout", "Layout/Transform", "Layout/Container Sizing", "Theme", "theme"), NodePath("TabContainer/Statistiche/HBoxContainer/VBoxContainer"), PackedStringArray("Layout", "Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Statistiche/HBoxContainer/VBoxContainer/HBoxContainer/Label"), PackedStringArray("Layout"), NodePath("TabContainer/Statistiche/HBoxContainer/VBoxContainer/HBoxContainer/Trainig"), PackedStringArray("Layout"), NodePath("TabContainer/Statistiche/HBoxContainer/VBoxContainer/HBoxContainer2/Label"), PackedStringArray("Layout"), NodePath("TabContainer/Statistiche/HBoxContainer/VBoxContainer/HBoxContainer3/VBoxContainer/Label"), PackedStringArray("Theme Overrides", "Theme Overrides/font_sizes"), NodePath("TabContainer/Statistiche/HBoxContainer/VBoxContainer/HBoxContainer3/VBoxContainer/TiroBtn"), PackedStringArray("Layout", "Theme Overrides/font_sizes", "Theme Overrides"), NodePath("TabContainer/Statistiche/HBoxContainer/VBoxContainer/HBoxContainer3/VBoxContainer/FullCoverBtn"), PackedStringArray("Theme Overrides/font_sizes"), NodePath("TabContainer/Statistiche/HBoxContainer/VBoxContainer/HBoxContainer3/GridContainer"), PackedStringArray("Layout", "Theme Overrides/constants", "Layout/Container Sizing"), NodePath("TabContainer/Inventario"), PackedStringArray("Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Inventario/HBoxContainer/VBoxContainer/Weapon1/PanelContainer"), PackedStringArray("Theme Overrides", "Theme Overrides/styles", "theme_override_styles/panel"), NodePath("TabContainer/Inventario/HBoxContainer/VBoxContainer/Weapon1/PanelContainer/MainWeapon"), PackedStringArray("Layout", "Layout/Container Sizing", "Theme", "theme"), NodePath("TabContainer/Inventario/HBoxContainer/VBoxContainer/Weapon1/PanelContainer/MainWeapon/OpticSelector"), PackedStringArray("item_count_array"), NodePath("TabContainer/Inventario/HBoxContainer/VBoxContainer/Weapon1/VBoxContainer"), PackedStringArray("Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Inventario/HBoxContainer/VBoxContainer/Weapon1/VBoxContainer/Hand/Button"), PackedStringArray("Theme", "Layout"), NodePath("TabContainer/Inventario/HBoxContainer/VBoxContainer/Weapon2/PanelContainer/MainWeapon"), PackedStringArray("texture"), NodePath("TabContainer/Inventario/HBoxContainer/VSeparator"), PackedStringArray("Theme Overrides", "Theme Overrides/constants", "Theme Overrides/styles"), NodePath("TabContainer/Inventario/HBoxContainer/PanelContainer"), PackedStringArray("Layout", "Theme Overrides", "Theme Overrides/styles", "theme_override_styles/panel"), NodePath("TabContainer/Inventario/HBoxContainer/PanelContainer/VBoxContainer"), PackedStringArray("Theme Overrides", "Theme Overrides/constants"), NodePath("TabContainer/Inventario/HBoxContainer/PanelContainer/VBoxContainer/PanelContainer"), PackedStringArray("Theme Overrides", "theme_override_styles/panel", "Layout/Container Sizing", "Theme Overrides/styles"), NodePath("TabContainer/Inventario/HBoxContainer/PanelContainer/VBoxContainer/PanelContainer/Gadget"), PackedStringArray("Theme", "Layout", "Layout/Container Sizing"), NodePath("TabContainer/Inventario/HBoxContainer/PanelContainer/VBoxContainer/GadgetSelected"), PackedStringArray("Layout"), NodePath("HBoxContainer/SaveBtn"), PackedStringArray("Layout", "Layout/Container Sizing"), NodePath("HBoxContainer/LoadBtn"), PackedStringArray("Layout", "Layout/Container Sizing")] resource_unfolds=["res://control.tscn::GDScript_yhbxl", PackedStringArray(), "res://control.tscn::GDScript_pagwq", PackedStringArray(), "res://control.tscn::GDScript_8grla", PackedStringArray(), "res://control.tscn::StyleBoxFlat_utmm4", PackedStringArray("Border Width", "Border"), "res://control.tscn::GDScript_fdhxj", PackedStringArray(), "res://control.tscn::StyleBoxFlat_p2gah", PackedStringArray("Content Margins", "Border", "Border Width", "Corner Radius"), "res://control.tscn::Theme_758m7", PackedStringArray(), "res://control.tscn::StyleBoxFlat_f6l3n", PackedStringArray("Shadow"), "res://control.tscn::StyleBoxLine_ofpk8", PackedStringArray(), "res://control.tscn::StyleBoxFlat_lxbbk", PackedStringArray("Corner Radius"), "res://control.tscn::StyleBoxLine_s3qfj", PackedStringArray(), "res://control.tscn::GDScript_x74n0", PackedStringArray(), "res://control.tscn::GDScript_8s8q3", PackedStringArray(), "res://control.tscn::GDScript_ubjjo", PackedStringArray(), "res://control.tscn::StyleBoxFlat_h4etf", PackedStringArray("Border", "Corner Radius"), "res://control.tscn::StyleBoxEmpty_gx74t", PackedStringArray(), "res://control.tscn::StyleBoxFlat_a8jsq", PackedStringArray(), "res://control.tscn::StyleBoxFlat_b22h7", PackedStringArray("Border", "Border Width"), "res://control.tscn::GDScript_g7rjf", PackedStringArray()] nodes_folded=[] diff --git a/.godot/editor/create_recent.Node b/.godot/editor/create_recent.Node index 6a86b6b..f83097e 100644 --- a/.godot/editor/create_recent.Node +++ b/.godot/editor/create_recent.Node @@ -1,3 +1,5 @@ +HTTPRequest +MarginContainer SpinBox Label GridContainer @@ -11,5 +13,3 @@ HSeparator ColorRect Button MenuButton -MenuBar -NinePatchRect diff --git a/.godot/editor/editor_layout.cfg b/.godot/editor/editor_layout.cfg index 109d9d1..2c4c5ee 100644 --- a/.godot/editor/editor_layout.cfg +++ b/.godot/editor/editor_layout.cfg @@ -19,7 +19,7 @@ dock_filesystem_split=0 dock_filesystem_display_mode=0 dock_filesystem_file_sort=0 dock_filesystem_file_list_display_mode=1 -dock_filesystem_selected_paths=PackedStringArray("res://README.md") +dock_filesystem_selected_paths=PackedStringArray("res://save/") dock_filesystem_uncollapsed_paths=PackedStringArray("Favorites", "res://", "res://save/", "res://gadgets/") dock_3="Scene,Import" dock_4="FileSystem" @@ -36,9 +36,9 @@ selected_main_editor_idx=2 [ScriptEditor] -open_scripts=["res://MainWeapon.gd", "res://save/personaggio.json", "res://README.md", "res://save_load.gd"] -selected_script="res://README.md" -open_help=["Button", "FileAccess", "Image", "JSON", "Node", "Object", "OptionButton", "Signal"] +open_scripts=["res://MainWeapon.gd", "res://README.md", "res://save_load.gd"] +selected_script="res://save_load.gd" +open_help=["ResourceLoader"] script_split_offset=70 list_split_offset=0 diff --git a/.godot/editor/filesystem_cache8 b/.godot/editor/filesystem_cache8 index ccc3af3..8d44770 100644 --- a/.godot/editor/filesystem_cache8 +++ b/.godot/editor/filesystem_cache8 @@ -1,11 +1,11 @@ fc8a56933c4b1c8d796fdb8f7a9f9475 -::res://::1713105889 -control.tscn::PackedScene::3967560098168932687::1713033366::0::1::::<><>::uid://b72vtrk6dlb2p::::res://icons/iconaPg.svg<>uid://dxavjiunljyv6::::res://temi/tema_bottoni.tres<>uid://wqtgjxfpupi3::::res://icons/armor.svg<>uid://dijl332ttrhwv::::res://icons/hp_base.svg<>uid://yy4yyd1ke26p::::res://icons/armor_selected.svg<>uid://do7wgix1nuvft::::res://icons/hp_hit.svg<>uid://c730rud8k6j2l::::res://weapons/weapon_ak.svg<>res://MainWeapon.gd<>uid://3q31v11i0kde::::res://gadgets/perk_di.svg -export_presets.cfg::TextFile::-1::1713033586::0::1::::<><>:: +::res://::1713381619 +control.tscn::PackedScene::3967560098168932687::1713381618::0::1::::<><>::uid://b72vtrk6dlb2p::::res://icons/iconaPg.svg<>res://save_load.gd<>uid://dxavjiunljyv6::::res://temi/tema_bottoni.tres<>uid://wqtgjxfpupi3::::res://icons/armor.svg<>uid://dijl332ttrhwv::::res://icons/hp_base.svg<>uid://yy4yyd1ke26p::::res://icons/armor_selected.svg<>uid://do7wgix1nuvft::::res://icons/hp_hit.svg<>uid://c730rud8k6j2l::::res://weapons/weapon_ak.svg<>res://MainWeapon.gd<>uid://3q31v11i0kde::::res://gadgets/perk_di.svg +export_presets.cfg::TextFile::-1::1713120247::0::1::::<><>:: icon.svg::CompressedTexture2D::8999567548390004678::1712083807::1712083813::1::::<><>:: MainWeapon.gd::GDScript::-1::1712751707::0::1::::<>TextureRect<>:: -personaggio.png::CompressedTexture2D::3132143129065055400::1712094052::1712094092::1::::<><>:: -README.md::TextFile::-1::1713033758::0::1::::<><>:: +README.md::TextFile::-1::1713120640::0::1::::<><>:: +save_load.gd::GDScript::-1::1713381618::0::1::::<>Control<>:: ::res://gadgets/::1713029441 perk_di.svg::CompressedTexture2D::2000065316717125274::1713029254::1713029441::1::::<><>:: perk_optic.svg::CompressedTexture2D::1308075419859058488::1713027024::1713029441::1::::<><>:: @@ -18,10 +18,11 @@ armor_selected.svg::CompressedTexture2D::1735882231643847385::1712168966::171216 hp_base.svg::CompressedTexture2D::7740071602372732149::1712235690::1712236650::1::::<><>:: hp_hit.svg::CompressedTexture2D::8209312895662767617::1712235722::1712236650::1::::<><>:: iconaPg.svg::CompressedTexture2D::4689511776159978257::1712088924::1712090174::1::::<><>:: -::res://save/::1712752161 -personaggio.png::CompressedTexture2D::2578078441298005491::1712752224::1712752161::1::::<><>:: -::res://temi/::1713022593 -tema_bottoni.tres::Theme::8774897035435919713::1713022593::0::1::::<><>:: +::res://save/::1713381639 +personaggio.json::JSON::-1::1713381639::0::1::::<><>:: +personaggio.png::CompressedTexture2D::3069646437652423147::1713381632::1713381640::1::::<><>:: +::res://temi/::1713375696 +tema_bottoni.tres::Theme::8774897035435919713::1713375696::0::1::::<><>:: ::res://weapons/::1712745831 weapon_ak.svg::CompressedTexture2D::7078236280847835197::1712745831::1712745831::1::::<><>:: weapon_ar.svg::CompressedTexture2D::7053769743073270852::1712745831::1712745831::1::::<><>:: diff --git a/.godot/editor/filesystem_update4 b/.godot/editor/filesystem_update4 index 0c46160..08bd9cd 100644 --- a/.godot/editor/filesystem_update4 +++ b/.godot/editor/filesystem_update4 @@ -1,5 +1,3 @@ res://control.tscn res://temi/tema_bottoni.tres res://save_load.gd -res://save/personaggio.json -res://README.md diff --git a/.godot/editor/project_metadata.cfg b/.godot/editor/project_metadata.cfg index 564d896..38090eb 100644 --- a/.godot/editor/project_metadata.cfg +++ b/.godot/editor/project_metadata.cfg @@ -57,7 +57,7 @@ last_selected_language="GDScript" [recent_files] -scripts=["res://README.md", "Signal", "res://control.tscn::GDScript_g7rjf", "OptionButton", "Object", "Node", "FileAccess", "res://save/personaggio.json", "res://save_load.gd", "JSON"] +scripts=["ResourceLoader", "res://control.tscn::GDScript_yhbxl", "res://control.tscn::GDScript_fdhxj", "res://control.tscn::GDScript_8grla", "Signal", "OptionButton", "Object", "Node", "JSON", "Image"] scenes=["res://control.tscn"] [color_picker] diff --git a/.godot/editor/script_editor_cache.cfg b/.godot/editor/script_editor_cache.cfg index e6b3c5f..a669ca9 100644 --- a/.godot/editor/script_editor_cache.cfg +++ b/.godot/editor/script_editor_cache.cfg @@ -17,11 +17,11 @@ state={ state={ "bookmarks": PackedInt32Array(), "breakpoints": PackedInt32Array(), -"column": 61, +"column": 29, "folded_lines": Array[int]([]), "h_scroll_position": 0, -"row": 144, -"scroll_position": 144.0, +"row": 119, +"scroll_position": 107.0, "selection": false, "syntax_highlighter": "GDScript" } diff --git a/.godot/exported/133200997/file_cache b/.godot/exported/133200997/file_cache index ea38ace..84c04c7 100644 --- a/.godot/exported/133200997/file_cache +++ b/.godot/exported/133200997/file_cache @@ -1,2 +1,2 @@ -res://control.tscn::c8bfbf2a66a23b3965c902ad9461f436::1713120168::res://.godot/exported/133200997/export-e66311c87c39ec8c25379305b5ae724b-control.scn -res://temi/tema_bottoni.tres::d11b61092f9b427c263d6c357231d76e::1713105961::res://.godot/exported/133200997/export-ee1a956fa5a7a6116498b9f095570d05-tema_bottoni.res +res://control.tscn::c8bfbf2a66a23b3965c902ad9461f436::1713381759::res://.godot/exported/133200997/export-e66311c87c39ec8c25379305b5ae724b-control.scn +res://temi/tema_bottoni.tres::d11b61092f9b427c263d6c357231d76e::1713375696::res://.godot/exported/133200997/export-ee1a956fa5a7a6116498b9f095570d05-tema_bottoni.res diff --git a/.godot/imported/personaggio.png-bdcaa2987413e478c0fe1a30ab850a3f.ctex b/.godot/imported/personaggio.png-bdcaa2987413e478c0fe1a30ab850a3f.ctex deleted file mode 100644 index fc26095..0000000 Binary files a/.godot/imported/personaggio.png-bdcaa2987413e478c0fe1a30ab850a3f.ctex and /dev/null differ diff --git a/.godot/uid_cache.bin b/.godot/uid_cache.bin index 491d72b..55c32da 100644 Binary files a/.godot/uid_cache.bin and b/.godot/uid_cache.bin differ diff --git a/personaggio.png b/personaggio.png deleted file mode 100644 index 655bc88..0000000 Binary files a/personaggio.png and /dev/null differ diff --git a/personaggio.png.import b/personaggio.png.import deleted file mode 100644 index 9e273d5..0000000 --- a/personaggio.png.import +++ /dev/null @@ -1,34 +0,0 @@ -[remap] - -importer="texture" -type="CompressedTexture2D" -uid="uid://bkvh67k53f3l1" -path="res://.godot/imported/personaggio.png-bdcaa2987413e478c0fe1a30ab850a3f.ctex" -metadata={ -"vram_texture": false -} - -[deps] - -source_file="res://personaggio.png" -dest_files=["res://.godot/imported/personaggio.png-bdcaa2987413e478c0fe1a30ab850a3f.ctex"] - -[params] - -compress/mode=0 -compress/high_quality=false -compress/lossy_quality=0.7 -compress/hdr_compression=1 -compress/normal_map=0 -compress/channel_pack=0 -mipmaps/generate=false -mipmaps/limit=-1 -roughness/mode=0 -roughness/src_normal="" -process/fix_alpha_border=true -process/premult_alpha=false -process/normal_map_invert_y=false -process/hdr_as_srgb=false -process/hdr_clamp_exposure=false -process/size_limit=0 -detect_3d/compress_to=1 diff --git a/save/personaggio.json b/save/personaggio.json deleted file mode 100644 index ade6c57..0000000 --- a/save/personaggio.json +++ /dev/null @@ -1 +0,0 @@ -{"alteration":"altera","atletica":1,"ca":[true,true,true,false,false],"cognome":"sssdddd","corpo":{"body":false,"head":true,"lArm":true,"lLeg":false,"rArm":false,"rLeg":false},"dollaro":5,"empatia":3,"gadget":3,"hp":[true,true,false,false],"immagine":"","nome":"dwad","numero":"jUOjhK","sapienza":2,"sensi":4,"storia":"cvevwvwervwervwvww","training":"addestra","weapon1":{"hand":[true,true,true,true,true],"long":[true,true,false,false,false],"medium":[true,true,true,false,false],"optic":2,"select":2,"short":[true,true,true,true,false]},"weapon2":{"hand":[true,true,false,false,false],"long":[true,true,true,true,true],"medium":[true,true,true,true,false],"optic":1,"select":4,"short":[true,true,true,false,false]}} diff --git a/save/personaggio.png b/save/personaggio.png deleted file mode 100644 index bc01810..0000000 Binary files a/save/personaggio.png and /dev/null differ diff --git a/save/personaggio.png.import b/save/personaggio.png.import deleted file mode 100644 index 475a8be..0000000 --- a/save/personaggio.png.import +++ /dev/null @@ -1,34 +0,0 @@ -[remap] - -importer="texture" -type="CompressedTexture2D" -uid="uid://bcy3ttai65idn" -path="res://.godot/imported/personaggio.png-88089a4f765371358b36c9fb2bffc074.ctex" -metadata={ -"vram_texture": false -} - -[deps] - -source_file="res://save/personaggio.png" -dest_files=["res://.godot/imported/personaggio.png-88089a4f765371358b36c9fb2bffc074.ctex"] - -[params] - -compress/mode=0 -compress/high_quality=false -compress/lossy_quality=0.7 -compress/hdr_compression=1 -compress/normal_map=0 -compress/channel_pack=0 -mipmaps/generate=false -mipmaps/limit=-1 -roughness/mode=0 -roughness/src_normal="" -process/fix_alpha_border=true -process/premult_alpha=false -process/normal_map_invert_y=false -process/hdr_as_srgb=false -process/hdr_clamp_exposure=false -process/size_limit=0 -detect_3d/compress_to=1 diff --git a/save_load.gd b/save_load.gd index 5a8b454..4b04365 100644 --- a/save_load.gd +++ b/save_load.gd @@ -1,7 +1,12 @@ extends Control +func _ready(): + var dir = DirAccess.open(OS.get_executable_path().get_base_dir()); + dir.make_dir_absolute("save"); func _on_save_btn_pressed(): + var dir = DirAccess.open(OS.get_executable_path().get_base_dir()); + dir.make_dir("/save"); var dati = { "numero" : %Codice.text, "nome" : %Nome.text, @@ -92,7 +97,7 @@ func _on_save_btn_pressed(): "gadget" : %GadgetSelected.selected }; var json_dati = JSON.stringify(dati); - var file_access = FileAccess.open("save/personaggio.json", FileAccess.WRITE); + var file_access = FileAccess.open(OS.get_executable_path().get_base_dir() + "/save/personaggio.json", FileAccess.WRITE); if not file_access: print("An error happened while saving data: ", FileAccess.get_open_error()); return @@ -102,7 +107,7 @@ func _on_save_btn_pressed(): func _on_load_btn_pressed(): var json = JSON.new(); - var file_access = FileAccess.open("save/personaggio.json", FileAccess.READ); + var file_access = FileAccess.open(OS.get_executable_path().get_base_dir() + "/save/personaggio.json", FileAccess.READ); var error = json.parse(file_access.get_line()); if error == OK: var dati = json.data; @@ -110,7 +115,8 @@ func _on_load_btn_pressed(): %Codice.text = dati.numero; %Nome.text = dati.nome; %Cognome.text = dati.cognome; - %ImgPg.texture = load("save/personaggio.png"); + %ImgPg.texture = ImageTexture.create_from_image(Image.load_from_file(OS.get_executable_path().get_base_dir() + "/save/personaggio.png")); + print(OS.get_executable_path().get_base_dir() + "/save/personaggio.png"); %Storia.text = dati.storia; %Head.button_pressed = dati.corpo.head;