diff --git a/assets/sprites/ui/buttons/close-highlight.png b/assets/sprites/ui/buttons/close-highlight.png new file mode 100644 index 0000000..a462f28 Binary files /dev/null and b/assets/sprites/ui/buttons/close-highlight.png differ diff --git a/assets/sprites/ui/buttons/close-highlight.png.import b/assets/sprites/ui/buttons/close-highlight.png.import new file mode 100644 index 0000000..07af215 --- /dev/null +++ b/assets/sprites/ui/buttons/close-highlight.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bsn66gnb08x3u" +path="res://.godot/imported/close-highlight.png-d2d70664d421cc9f61c93ef9f90c069e.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/ui/buttons/close-highlight.png" +dest_files=["res://.godot/imported/close-highlight.png-d2d70664d421cc9f61c93ef9f90c069e.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/assets/sprites/ui/buttons/close.png b/assets/sprites/ui/buttons/close.png new file mode 100644 index 0000000..b28156d Binary files /dev/null and b/assets/sprites/ui/buttons/close.png differ diff --git a/assets/sprites/ui/buttons/close.png.import b/assets/sprites/ui/buttons/close.png.import new file mode 100644 index 0000000..f7e3bb9 --- /dev/null +++ b/assets/sprites/ui/buttons/close.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://d2n43pu0wvplp" +path="res://.godot/imported/close.png-d7ca0d1188fa83b8e622fa244178a0f6.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/ui/buttons/close.png" +dest_files=["res://.godot/imported/close.png-d7ca0d1188fa83b8e622fa244178a0f6.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/assets/sprites/ui/buttons/decor-highlight.png b/assets/sprites/ui/buttons/decor-highlight.png new file mode 100644 index 0000000..f9c545c Binary files /dev/null and b/assets/sprites/ui/buttons/decor-highlight.png differ diff --git a/assets/sprites/ui/buttons/decor-highlight.png.import b/assets/sprites/ui/buttons/decor-highlight.png.import new file mode 100644 index 0000000..722bf4d --- /dev/null +++ b/assets/sprites/ui/buttons/decor-highlight.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dygetjxbcktef" +path="res://.godot/imported/decor-highlight.png-9b5ad6a0540ee53d254b9a4a15150c52.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/ui/buttons/decor-highlight.png" +dest_files=["res://.godot/imported/decor-highlight.png-9b5ad6a0540ee53d254b9a4a15150c52.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/assets/sprites/ui/buttons/decor.png b/assets/sprites/ui/buttons/decor.png new file mode 100644 index 0000000..0a99284 Binary files /dev/null and b/assets/sprites/ui/buttons/decor.png differ diff --git a/assets/sprites/ui/buttons/decor.png.import b/assets/sprites/ui/buttons/decor.png.import new file mode 100644 index 0000000..2c2905b --- /dev/null +++ b/assets/sprites/ui/buttons/decor.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dlm0degcpvyoj" +path="res://.godot/imported/decor.png-de7850a4843df5838869c155e4907674.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/ui/buttons/decor.png" +dest_files=["res://.godot/imported/decor.png-de7850a4843df5838869c155e4907674.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/assets/sprites/ui/buttons/direction-highlight.png b/assets/sprites/ui/buttons/direction-highlight.png new file mode 100644 index 0000000..7c42f6e Binary files /dev/null and b/assets/sprites/ui/buttons/direction-highlight.png differ diff --git a/assets/sprites/ui/buttons/direction-highlight.png.import b/assets/sprites/ui/buttons/direction-highlight.png.import new file mode 100644 index 0000000..49c8e27 --- /dev/null +++ b/assets/sprites/ui/buttons/direction-highlight.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://btw3cpkp5bgi" +path="res://.godot/imported/direction-highlight.png-7d25bf093f6d01a02053d2a979b60e1a.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/ui/buttons/direction-highlight.png" +dest_files=["res://.godot/imported/direction-highlight.png-7d25bf093f6d01a02053d2a979b60e1a.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/assets/sprites/ui/buttons/direction.png b/assets/sprites/ui/buttons/direction.png new file mode 100644 index 0000000..8992561 Binary files /dev/null and b/assets/sprites/ui/buttons/direction.png differ diff --git a/assets/sprites/ui/buttons/direction.png.import b/assets/sprites/ui/buttons/direction.png.import new file mode 100644 index 0000000..582b710 --- /dev/null +++ b/assets/sprites/ui/buttons/direction.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dwm2bfuamf3bp" +path="res://.godot/imported/direction.png-7ec8f15c88bcc88a9f6ec11e5e752aa9.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/ui/buttons/direction.png" +dest_files=["res://.godot/imported/direction.png-7ec8f15c88bcc88a9f6ec11e5e752aa9.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/assets/sprites/ui/buttons/hat-highlight.png b/assets/sprites/ui/buttons/hat-highlight.png new file mode 100644 index 0000000..c137b9e Binary files /dev/null and b/assets/sprites/ui/buttons/hat-highlight.png differ diff --git a/assets/sprites/ui/buttons/hat-highlight.png.import b/assets/sprites/ui/buttons/hat-highlight.png.import new file mode 100644 index 0000000..8610642 --- /dev/null +++ b/assets/sprites/ui/buttons/hat-highlight.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b3wp7cawhj5eb" +path="res://.godot/imported/hat-highlight.png-65adb88f36a43086e02f9a1b64f2e661.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/ui/buttons/hat-highlight.png" +dest_files=["res://.godot/imported/hat-highlight.png-65adb88f36a43086e02f9a1b64f2e661.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/assets/sprites/ui/buttons/hat.png b/assets/sprites/ui/buttons/hat.png new file mode 100644 index 0000000..896341a Binary files /dev/null and b/assets/sprites/ui/buttons/hat.png differ diff --git a/assets/sprites/ui/buttons/hat.png.import b/assets/sprites/ui/buttons/hat.png.import new file mode 100644 index 0000000..1fb37bc --- /dev/null +++ b/assets/sprites/ui/buttons/hat.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cwkegj7oj8rok" +path="res://.godot/imported/hat.png-528b2fe285d169f682f5e9bbd49089b1.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/ui/buttons/hat.png" +dest_files=["res://.godot/imported/hat.png-528b2fe285d169f682f5e9bbd49089b1.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/assets/sprites/ui/buttons/shirt-highlight.png b/assets/sprites/ui/buttons/shirt-highlight.png new file mode 100644 index 0000000..567c9d8 Binary files /dev/null and b/assets/sprites/ui/buttons/shirt-highlight.png differ diff --git a/assets/sprites/ui/buttons/shirt-highlight.png.import b/assets/sprites/ui/buttons/shirt-highlight.png.import new file mode 100644 index 0000000..5ed76b3 --- /dev/null +++ b/assets/sprites/ui/buttons/shirt-highlight.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b6latlr2mhm37" +path="res://.godot/imported/shirt-highlight.png-4d733325207d4ec944e0fdc5d829e49d.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/ui/buttons/shirt-highlight.png" +dest_files=["res://.godot/imported/shirt-highlight.png-4d733325207d4ec944e0fdc5d829e49d.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/assets/sprites/ui/buttons/shirt.png b/assets/sprites/ui/buttons/shirt.png new file mode 100644 index 0000000..a95512d Binary files /dev/null and b/assets/sprites/ui/buttons/shirt.png differ diff --git a/assets/sprites/ui/buttons/shirt.png.import b/assets/sprites/ui/buttons/shirt.png.import new file mode 100644 index 0000000..ba186b7 --- /dev/null +++ b/assets/sprites/ui/buttons/shirt.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dr2d4jv6bxghn" +path="res://.godot/imported/shirt.png-33a1880ffc494f6f0e6b5f79f5b9b650.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/ui/buttons/shirt.png" +dest_files=["res://.godot/imported/shirt.png-33a1880ffc494f6f0e6b5f79f5b9b650.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/export_presets.cfg b/export_presets.cfg index 52af46e..253d46a 100644 --- a/export_presets.cfg +++ b/export_presets.cfg @@ -9,7 +9,7 @@ custom_features="" export_filter="all_resources" include_filter="" exclude_filter="" -export_path="../../Builds/La Torreta del Drac.exe" +export_path="../../Builds/SantJordiJam25/La Torreta del Drac.exe" patches=PackedStringArray() encryption_include_filters="" encryption_exclude_filters="" diff --git a/scenes/dragon_editor/dragon_editor.tscn b/scenes/dragon_editor/dragon_editor.tscn index 7d92a5a..a0937c9 100644 --- a/scenes/dragon_editor/dragon_editor.tscn +++ b/scenes/dragon_editor/dragon_editor.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=24 format=3 uid="uid://fut42ruut302"] +[gd_scene load_steps=28 format=3 uid="uid://fut42ruut302"] [ext_resource type="Script" uid="uid://bfuos2kgfgber" path="res://scenes/dragon_editor/dragon_editor.gd" id="1_8vkll"] [ext_resource type="SpriteFrames" uid="uid://ccxyplt2t7t6y" path="res://assets/animations/hats/barretina.tres" id="2_aystc"] @@ -9,43 +9,31 @@ [ext_resource type="SpriteFrames" uid="uid://c5rqqy7b5ihi5" path="res://assets/animations/decor/rosa.tres" id="6_c4sli"] [ext_resource type="Texture2D" uid="uid://dceoy4417v83e" path="res://assets/sprites/ui/DP_UI_CharCreation_BG.png" id="6_udwtk"] [ext_resource type="Script" uid="uid://dxl7onk7x6h8b" path="res://src/draggable.gd" id="7_1vw8k"] -[ext_resource type="Texture2D" uid="uid://bu5xa7tgfk3h3" path="res://assets/sprites/ui/DP_UI_Buttons01.png" id="7_qppok"] [ext_resource type="Texture2D" uid="uid://bgpbbkmwt8ysq" path="res://assets/sprites/ui/DP_UI_Button_Text.png" id="8_ofxsr"] +[ext_resource type="Texture2D" uid="uid://dr2d4jv6bxghn" path="res://assets/sprites/ui/buttons/shirt.png" id="12_hukd7"] [ext_resource type="Texture2D" uid="uid://bdrm1nxydvf5t" path="res://assets/sprites/ui/DP_UI_Label_Big.png" id="12_qppok"] +[ext_resource type="Texture2D" uid="uid://b6latlr2mhm37" path="res://assets/sprites/ui/buttons/shirt-highlight.png" id="13_6eo4l"] +[ext_resource type="Texture2D" uid="uid://cwkegj7oj8rok" path="res://assets/sprites/ui/buttons/hat.png" id="13_aystc"] +[ext_resource type="Texture2D" uid="uid://dlm0degcpvyoj" path="res://assets/sprites/ui/buttons/decor.png" id="13_mc14k"] [ext_resource type="FontFile" uid="uid://u1pey2ilx31c" path="res://assets/fonts/Montjuic.ttf" id="14_1vw8k"] [ext_resource type="SpriteFrames" uid="uid://duxxw4mfxql3c" path="res://assets/animations/dragons/verd.tres" id="14_aystc"] [ext_resource type="StyleBox" uid="uid://bhe580k04w6ve" path="res://assets/styles/style_box_empty.tres" id="14_bh8dj"] +[ext_resource type="Texture2D" uid="uid://dygetjxbcktef" path="res://assets/sprites/ui/buttons/decor-highlight.png" id="14_jtpn4"] [ext_resource type="FontFile" uid="uid://5nniov81t44i" path="res://assets/fonts/m3x6.ttf" id="14_rrp4v"] +[ext_resource type="Texture2D" uid="uid://b3wp7cawhj5eb" path="res://assets/sprites/ui/buttons/hat-highlight.png" id="14_x0448"] [ext_resource type="SpriteFrames" uid="uid://dsxhfu2ekw7j" path="res://assets/animations/shirts/traje.tres" id="15_x0448"] - -[sub_resource type="AtlasTexture" id="AtlasTexture_ofxsr"] -atlas = ExtResource("7_qppok") -region = Rect2(0, 40, 38, 40) - -[sub_resource type="AtlasTexture" id="AtlasTexture_bh8dj"] -atlas = ExtResource("7_qppok") -region = Rect2(0, 80, 38, 40) - -[sub_resource type="AtlasTexture" id="AtlasTexture_1vw8k"] -atlas = ExtResource("7_qppok") -region = Rect2(0, 0, 38, 40) - -[sub_resource type="AtlasTexture" id="AtlasTexture_rrp4v"] -atlas = ExtResource("7_qppok") -region = Rect2(0, 120, 38, 40) +[ext_resource type="Texture2D" uid="uid://dwm2bfuamf3bp" path="res://assets/sprites/ui/buttons/direction.png" id="18_xxrn0"] +[ext_resource type="Texture2D" uid="uid://btw3cpkp5bgi" path="res://assets/sprites/ui/buttons/direction-highlight.png" id="19_q2c4g"] +[ext_resource type="Texture2D" uid="uid://d2n43pu0wvplp" path="res://assets/sprites/ui/buttons/close.png" id="21_c4sli"] +[ext_resource type="Texture2D" uid="uid://bsn66gnb08x3u" path="res://assets/sprites/ui/buttons/close-highlight.png" id="22_xxrn0"] [sub_resource type="AtlasTexture" id="AtlasTexture_mc14k"] atlas = ExtResource("8_ofxsr") region = Rect2(0, 0, 62, 24) -[sub_resource type="AtlasTexture" id="AtlasTexture_kohpo"] -atlas = ExtResource("7_qppok") -region = Rect2(0, 160, 38, 40) - [node name="DragonEditor" type="Window"] transparent_bg = true title = "Dragon Editor" -position = Vector2i(0, 36) size = Vector2i(230, 332) unresizable = true borderless = true @@ -90,51 +78,61 @@ offset_right = 198.0 offset_bottom = 320.0 script = ExtResource("7_1vw8k") -[node name="change_hat" type="Button" parent="CanvasLayer"] -offset_left = 48.0 -offset_top = 38.0 -offset_right = 94.0 -offset_bottom = 86.0 -focus_mode = 0 -icon = SubResource("AtlasTexture_ofxsr") -flat = true +[node name="change_shirt" type="TextureButton" parent="CanvasLayer"] +offset_left = 88.0 +offset_top = 54.0 +offset_right = 128.0 +offset_bottom = 94.0 +texture_normal = ExtResource("12_hukd7") +texture_pressed = ExtResource("13_6eo4l") +texture_hover = ExtResource("13_6eo4l") +texture_disabled = ExtResource("12_hukd7") +texture_focused = ExtResource("12_hukd7") -[node name="change_shirt" type="Button" parent="CanvasLayer"] -offset_left = 84.0 -offset_top = 50.0 -offset_right = 130.0 -offset_bottom = 98.0 -focus_mode = 0 -icon = SubResource("AtlasTexture_bh8dj") -flat = true +[node name="change_hat" type="TextureButton" parent="CanvasLayer"] +offset_left = 52.0 +offset_top = 42.0 +offset_right = 92.0 +offset_bottom = 82.0 +texture_normal = ExtResource("13_aystc") +texture_pressed = ExtResource("14_x0448") +texture_hover = ExtResource("14_x0448") +texture_disabled = ExtResource("13_aystc") +texture_focused = ExtResource("13_aystc") -[node name="change_shoes" type="Button" parent="CanvasLayer"] -offset_left = 120.0 -offset_top = 38.0 -offset_right = 166.0 -offset_bottom = 86.0 -focus_mode = 0 -icon = SubResource("AtlasTexture_1vw8k") -flat = true +[node name="change_decor" type="TextureButton" parent="CanvasLayer"] +offset_left = 124.0 +offset_top = 42.0 +offset_right = 164.0 +offset_bottom = 82.0 +texture_normal = ExtResource("13_mc14k") +texture_pressed = ExtResource("14_jtpn4") +texture_hover = ExtResource("14_jtpn4") +texture_disabled = ExtResource("13_mc14k") +texture_focused = ExtResource("13_mc14k") -[node name="dragon_previous" type="Button" parent="CanvasLayer"] -offset_left = 76.0 -offset_top = 136.0 -offset_right = 122.0 -offset_bottom = 184.0 -scale = Vector2(-1, 1) -focus_mode = 0 -icon = SubResource("AtlasTexture_rrp4v") -flat = true +[node name="dragon_next" type="TextureButton" parent="CanvasLayer"] +offset_left = 138.0 +offset_top = 140.0 +offset_right = 178.0 +offset_bottom = 180.0 +texture_normal = ExtResource("18_xxrn0") +texture_pressed = ExtResource("19_q2c4g") +texture_hover = ExtResource("19_q2c4g") +texture_disabled = ExtResource("18_xxrn0") +texture_focused = ExtResource("18_xxrn0") -[node name="dragon_next" type="Button" parent="CanvasLayer"] -offset_left = 134.0 -offset_top = 136.0 -offset_right = 180.0 -offset_bottom = 184.0 -focus_mode = 0 -icon = SubResource("AtlasTexture_rrp4v") -flat = true +[node name="dragon_previous" type="TextureButton" parent="CanvasLayer"] +offset_left = 34.0 +offset_top = 140.0 +offset_right = 74.0 +offset_bottom = 180.0 +texture_normal = ExtResource("18_xxrn0") +texture_pressed = ExtResource("19_q2c4g") +texture_hover = ExtResource("19_q2c4g") +texture_disabled = ExtResource("18_xxrn0") +texture_focused = ExtResource("18_xxrn0") +flip_h = true [node name="create" type="Button" parent="CanvasLayer"] offset_left = 112.0 @@ -157,14 +155,16 @@ theme_override_font_sizes/font_size = 33 text = "crea" horizontal_alignment = 1 -[node name="close" type="Button" parent="CanvasLayer"] -offset_left = 178.0 -offset_top = 6.0 -offset_right = 224.0 -offset_bottom = 54.0 -focus_mode = 0 -icon = SubResource("AtlasTexture_kohpo") -flat = true +[node name="close" type="TextureButton" parent="CanvasLayer"] +offset_left = 182.0 +offset_top = 10.0 +offset_right = 222.0 +offset_bottom = 50.0 +texture_normal = ExtResource("21_c4sli") +texture_pressed = ExtResource("22_xxrn0") +texture_hover = ExtResource("22_xxrn0") +texture_disabled = ExtResource("21_c4sli") +texture_focused = ExtResource("21_c4sli") [node name="NameLabel" type="TextureRect" parent="CanvasLayer"] offset_left = 34.0 @@ -184,15 +184,15 @@ theme_override_font_sizes/font_size = 28 theme_override_styles/focus = ExtResource("14_bh8dj") placeholder_text = "NOM" alignment = 1 -max_length = 8 +max_length = 9 flat = true caret_blink = true [connection signal="close_requested" from="." to="." method="_on_close_requested"] -[connection signal="pressed" from="CanvasLayer/change_hat" to="." method="_on_change_hat_pressed"] [connection signal="pressed" from="CanvasLayer/change_shirt" to="." method="_on_change_shirt_pressed"] -[connection signal="pressed" from="CanvasLayer/change_shoes" to="." method="_on_change_shoes_pressed"] -[connection signal="pressed" from="CanvasLayer/dragon_previous" to="." method="_on_previous_color_pressed"] +[connection signal="pressed" from="CanvasLayer/change_hat" to="." method="_on_change_hat_pressed"] +[connection signal="pressed" from="CanvasLayer/change_decor" to="." method="_on_change_shoes_pressed"] [connection signal="pressed" from="CanvasLayer/dragon_next" to="." method="_on_next_color_pressed"] +[connection signal="pressed" from="CanvasLayer/dragon_previous" to="." method="_on_previous_color_pressed"] [connection signal="pressed" from="CanvasLayer/create" to="." method="_on_create_pressed"] [connection signal="pressed" from="CanvasLayer/close" to="." method="_on_close_pressed"] diff --git a/scenes/dragon_list/dragon_list.tscn b/scenes/dragon_list/dragon_list.tscn index e22ef0a..d47546b 100644 --- a/scenes/dragon_list/dragon_list.tscn +++ b/scenes/dragon_list/dragon_list.tscn @@ -1,21 +1,16 @@ -[gd_scene load_steps=11 format=3 uid="uid://tubxrqxjic6r"] +[gd_scene load_steps=12 format=3 uid="uid://tubxrqxjic6r"] [ext_resource type="Script" uid="uid://dm8d0ikf1n8qa" path="res://scenes/dragon_list/dragon_list_view.gd" id="1_q7g8i"] [ext_resource type="PackedScene" uid="uid://cq3orf2ktmel0" path="res://scenes/dragon_list/dragon/dragon.tscn" id="2_h4iwm"] [ext_resource type="Texture2D" uid="uid://cup2lrb8lou72" path="res://assets/sprites/ui/DP_UI_CharList_BG.png" id="4_f227k"] [ext_resource type="Texture2D" uid="uid://d27vpp71fe4de" path="res://assets/sprites/ui/DP_UI_CharList_Frame.png" id="6_74fyi"] +[ext_resource type="Texture2D" uid="uid://dwm2bfuamf3bp" path="res://assets/sprites/ui/buttons/direction.png" id="8_1n46k"] [ext_resource type="FontFile" uid="uid://u1pey2ilx31c" path="res://assets/fonts/Montjuic.ttf" id="8_74fyi"] [ext_resource type="Script" uid="uid://dxl7onk7x6h8b" path="res://src/draggable.gd" id="8_b7eir"] +[ext_resource type="Texture2D" uid="uid://d2n43pu0wvplp" path="res://assets/sprites/ui/buttons/close.png" id="9_1n46k"] [ext_resource type="Texture2D" uid="uid://bdrm1nxydvf5t" path="res://assets/sprites/ui/DP_UI_Label_Big.png" id="9_cv2ce"] -[ext_resource type="Texture2D" uid="uid://bu5xa7tgfk3h3" path="res://assets/sprites/ui/DP_UI_Buttons01.png" id="9_k4ppc"] - -[sub_resource type="AtlasTexture" id="AtlasTexture_1n46k"] -atlas = ExtResource("9_k4ppc") -region = Rect2(0, 120, 38, 40) - -[sub_resource type="AtlasTexture" id="AtlasTexture_u20w8"] -atlas = ExtResource("9_k4ppc") -region = Rect2(0, 160, 38, 40) +[ext_resource type="Texture2D" uid="uid://btw3cpkp5bgi" path="res://assets/sprites/ui/buttons/direction-highlight.png" id="9_u20w8"] +[ext_resource type="Texture2D" uid="uid://bsn66gnb08x3u" path="res://assets/sprites/ui/buttons/close-highlight.png" id="10_u20w8"] [node name="DragonList" type="Window" node_paths=PackedStringArray("dragon_list_pivot", "origin_name_label", "dragon_name_label")] transparent_bg = true @@ -111,35 +106,41 @@ render_target_update_mode = 4 [node name="Pivot" type="Node2D" parent="CanvasLayer/SubViewportContainer/SubViewport"] position = Vector2(143, 54) -[node name="dragon_previous" type="Button" parent="CanvasLayer"] -offset_left = 136.0 -offset_top = 136.0 -offset_right = 182.0 -offset_bottom = 184.0 -scale = Vector2(-1, 1) -focus_mode = 0 -icon = SubResource("AtlasTexture_1n46k") -flat = true +[node name="dragon_next" type="TextureButton" parent="CanvasLayer"] +offset_left = 198.0 +offset_top = 140.0 +offset_right = 238.0 +offset_bottom = 180.0 +texture_normal = ExtResource("8_1n46k") +texture_pressed = ExtResource("9_u20w8") +texture_hover = ExtResource("9_u20w8") +texture_disabled = ExtResource("8_1n46k") +texture_focused = ExtResource("8_1n46k") -[node name="dragon_next" type="Button" parent="CanvasLayer"] -offset_left = 194.0 -offset_top = 136.0 -offset_right = 240.0 -offset_bottom = 184.0 -focus_mode = 0 -icon = SubResource("AtlasTexture_1n46k") -flat = true +[node name="dragon_previous" type="TextureButton" parent="CanvasLayer"] +offset_left = 94.0 +offset_top = 140.0 +offset_right = 134.0 +offset_bottom = 180.0 +texture_normal = ExtResource("8_1n46k") +texture_pressed = ExtResource("9_u20w8") +texture_hover = ExtResource("9_u20w8") +texture_disabled = ExtResource("8_1n46k") +texture_focused = ExtResource("8_1n46k") +flip_h = true -[node name="close" type="Button" parent="CanvasLayer"] -offset_left = 292.0 -offset_top = 6.0 -offset_right = 338.0 -offset_bottom = 54.0 -focus_mode = 0 -icon = SubResource("AtlasTexture_u20w8") -flat = true +[node name="close" type="TextureButton" parent="CanvasLayer"] +offset_left = 296.0 +offset_top = 10.0 +offset_right = 336.0 +offset_bottom = 50.0 +texture_normal = ExtResource("9_1n46k") +texture_pressed = ExtResource("10_u20w8") +texture_hover = ExtResource("10_u20w8") +texture_disabled = ExtResource("9_1n46k") +texture_focused = ExtResource("9_1n46k") [connection signal="close_requested" from="." to="." method="_on_close_requested"] -[connection signal="pressed" from="CanvasLayer/dragon_previous" to="." method="_on_dragon_previous_pressed"] [connection signal="pressed" from="CanvasLayer/dragon_next" to="." method="_on_dragon_next_pressed"] +[connection signal="pressed" from="CanvasLayer/dragon_previous" to="." method="_on_dragon_previous_pressed"] [connection signal="pressed" from="CanvasLayer/close" to="." method="_on_close_pressed"] diff --git a/scenes/name_setter/name_setter.tscn b/scenes/name_setter/name_setter.tscn index fae1702..ffa6719 100644 --- a/scenes/name_setter/name_setter.tscn +++ b/scenes/name_setter/name_setter.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=8 format=3 uid="uid://cdlipr8l1k38a"] +[gd_scene load_steps=9 format=3 uid="uid://cdlipr8l1k38a"] [ext_resource type="Script" uid="uid://drulv5ptupx2w" path="res://scenes/name_setter/name_setter.gd" id="1_f3gk5"] [ext_resource type="Texture2D" uid="uid://d27vpp71fe4de" path="res://assets/sprites/ui/DP_UI_CharList_Frame.png" id="2_wkl5f"] @@ -6,6 +6,7 @@ [ext_resource type="FontFile" uid="uid://u1pey2ilx31c" path="res://assets/fonts/Montjuic.ttf" id="3_fjxtl"] [ext_resource type="Texture2D" uid="uid://bdrm1nxydvf5t" path="res://assets/sprites/ui/DP_UI_Label_Big.png" id="3_rlhj7"] [ext_resource type="StyleBox" uid="uid://bhe580k04w6ve" path="res://assets/styles/style_box_empty.tres" id="4_fjxtl"] +[ext_resource type="FontFile" uid="uid://5nniov81t44i" path="res://assets/fonts/m3x6.ttf" id="7_crfd2"] [sub_resource type="AtlasTexture" id="AtlasTexture_27shg"] atlas = ExtResource("3_1ipfa") @@ -83,4 +84,15 @@ focus_mode = 0 icon = SubResource("AtlasTexture_27shg") flat = true +[node name="Label" type="Label" parent="create"] +offset_left = 6.0 +offset_top = -2.0 +offset_right = 64.0 +offset_bottom = 26.0 +theme_override_colors/font_color = Color(0.537255, 0.603922, 0.615686, 1) +theme_override_fonts/font = ExtResource("7_crfd2") +theme_override_font_sizes/font_size = 33 +text = "crea" +horizontal_alignment = 1 + [connection signal="pressed" from="create" to="." method="_on_submit_pressed"]