Extensive work on the sideview and initial work on player profiles, inventory display, and renaming adventurerdata vs adventurer to adventurer vs adventurersprite

This commit is contained in:
2025-08-27 08:02:11 -04:00
parent 38845e26fa
commit 2a236ea041
55 changed files with 1975 additions and 417 deletions

View File

@@ -0,0 +1,21 @@
[gd_scene load_steps=5 format=3 uid="uid://c31w28fcqw4ra"]
[ext_resource type="Script" uid="uid://fxixa11vqdrn" path="res://scripts/enemy.gd" id="1_82j8k"]
[ext_resource type="Texture2D" uid="uid://1mkagt2y0jah" path="res://graphics/questview/goo.png" id="2_87tms"]
[ext_resource type="Script" uid="uid://727tgvtmq4nb" path="res://data/statblock.gd" id="2_fehp8"]
[sub_resource type="Resource" id="Resource_bfuvr"]
script = ExtResource("2_fehp8")
metadata/_custom_type_script = "uid://727tgvtmq4nb"
[node name="Goo" type="Control"]
layout_mode = 3
anchors_preset = 0
script = ExtResource("1_82j8k")
stats = SubResource("Resource_bfuvr")
[node name="Sprite2D" type="Sprite2D" parent="."]
position = Vector2(5, -47)
texture = ExtResource("2_87tms")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]

View File

@@ -63,14 +63,12 @@ offset = Vector2(0, -80)
polygon = PackedVector2Array(-86, -160, -152, -160, -152, -107, -148, -75, -128, -35, -57, 0, 56, 0, 127, -34, 148, -75, 152, -107, 152, -160, 86, -160, 86, -115, 75, -93, 52, -81, -51, -81, -75, -92, -86, -114)
[node name="Receptionist" parent="Sprites" instance=ExtResource("5_l3mu1")]
visible = false
position = Vector2(457, 32)
[node name="Queue" parent="Sprites/Receptionist" index="3"]
position = Vector2(0, 97)
[node name="Player" type="CharacterBody2D" parent="Sprites"]
visible = false
position = Vector2(451, 430)
script = ExtResource("2_5n4iw")

View File

@@ -1,8 +1,9 @@
[gd_scene load_steps=9 format=3 uid="uid://c8ofw6na082gv"]
[gd_scene load_steps=10 format=3 uid="uid://c8ofw6na082gv"]
[ext_resource type="Script" uid="uid://dhw85vqlvw33s" path="res://scripts/main_panel.gd" id="1_pdekv"]
[ext_resource type="Script" uid="uid://4jrp67ckp7vt" path="res://scripts/timer_label.gd" id="2_5rs2c"]
[ext_resource type="StyleBox" uid="uid://by1jk8r2avjp4" path="res://styles/open_shift_panel.tres" id="2_b7y1i"]
[ext_resource type="Texture2D" uid="uid://bwaiuy7yf7tu3" path="res://graphics/ui/time-frame.png" id="3_7oi8q"]
[ext_resource type="StyleBox" uid="uid://b7vjpwageyi6m" path="res://styles/working_shift_panel.tres" id="4_b7y1i"]
[ext_resource type="Texture2D" uid="uid://cs7bvpn6jgofn" path="res://graphics/ui/options.png" id="5_6vw8v"]
[ext_resource type="PackedScene" uid="uid://du4hyv7egc7ny" path="res://templates/quest_view_window.tscn" id="6_er2tk"]
@@ -43,6 +44,19 @@ custom_minimum_size = Vector2(401, 216)
layout_mode = 2
theme_override_styles/panel = ExtResource("2_b7y1i")
[node name="NinePatchRect" type="NinePatchRect" parent="VBoxContainer/OpenShift"]
layout_mode = 0
offset_left = 9.0
offset_top = 54.0
offset_right = 200.0
offset_bottom = 76.5
scale = Vector2(2, 2)
texture = ExtResource("3_7oi8q")
patch_margin_left = 7
patch_margin_top = 7
patch_margin_right = 7
patch_margin_bottom = 7
[node name="Margin" type="MarginContainer" parent="VBoxContainer/OpenShift"]
layout_mode = 0
offset_left = 74.0
@@ -106,6 +120,20 @@ offset_right = 391.0
offset_bottom = 44.0
texture_normal = ExtResource("5_6vw8v")
[node name="NinePatchRect" type="NinePatchRect" parent="VBoxContainer/WorkingShift"]
layout_mode = 1
anchors_preset = -1
offset_left = 9.0
offset_top = 86.0
offset_right = 200.0
offset_bottom = 108.5
scale = Vector2(2, 2)
texture = ExtResource("3_7oi8q")
patch_margin_left = 7
patch_margin_top = 7
patch_margin_right = 7
patch_margin_bottom = 7
[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer/WorkingShift"]
layout_mode = 0
offset_left = 13.0
@@ -184,8 +212,6 @@ layout_mode = 2
stream = ExtResource("6_osxme")
volume_db = -10.31
[connection signal="time_changed" from="." to="VBoxContainer/OpenShift/Margin/OpenList/TimerLabel" method="_on_time_changed"]
[connection signal="time_changed" from="." to="VBoxContainer/WorkingShift/MarginContainer/WorkingList/TimerLabel" method="_on_time_changed"]
[connection signal="pressed" from="VBoxContainer/OpenShift/Margin/OpenList/Button" to="." method="_on_end_shift_pressed"]
[connection signal="gui_input" from="VBoxContainer/WorkingShift/DragRegion" to="." method="_on_drag_region_gui_input"]
[connection signal="pressed" from="VBoxContainer/WorkingShift/MarginContainer/WorkingList/HBoxContainer/QuestViewerButton" to="." method="_on_quest_viewer_button_pressed"]

View File

@@ -0,0 +1,839 @@
[gd_scene load_steps=16 format=3 uid="uid://bg23lrwwpi3xi"]
[ext_resource type="Script" uid="uid://ccsiubi5y75qg" path="res://scripts/npc_profile_window.gd" id="1_mjwm2"]
[ext_resource type="Texture2D" uid="uid://cbt6po52ad37x" path="res://external/profile-window.png" id="2_p33nb"]
[ext_resource type="Texture2D" uid="uid://bldpiytpdrge6" path="res://graphics/icon.svg" id="3_8aeex"]
[ext_resource type="FontFile" uid="uid://bfkgcmorncykx" path="res://fonts/Bagnard.tres" id="3_mjwm2"]
[ext_resource type="Texture2D" uid="uid://bblr27slj6ap0" path="res://graphics/portraits/farmer_f.png" id="4_cdnuw"]
[ext_resource type="Theme" uid="uid://dlobmn4esosk3" path="res://styles/stat_font.tres" id="5_kiyqa"]
[ext_resource type="FontFile" uid="uid://cju0vb3cw5qoj" path="res://fonts/Bagnard.otf" id="6_0icff"]
[ext_resource type="Texture2D" uid="uid://bnyl6eaynixm5" path="res://graphics/ui/gear-heading.png" id="7_la6dy"]
[ext_resource type="Texture2D" uid="uid://cjjtgrr56guj0" path="res://graphics/ui/item-slot.png" id="8_c770f"]
[ext_resource type="Texture2D" uid="uid://blt2b7f6iqb8j" path="res://graphics/questview/test-char.png" id="9_cq03q"]
[ext_resource type="Texture2D" uid="uid://d1btg2hfnjx6r" path="res://graphics/ui/inventory-heading.png" id="10_rldp4"]
[ext_resource type="Script" uid="uid://cw6yo5opbrpr8" path="res://scripts/item_slot.gd" id="11_b43fo"]
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_ktflt"]
blend_mode = 3
[sub_resource type="Gradient" id="Gradient_1nmd1"]
offsets = PackedFloat32Array(0.2754717, 0.36226416, 0.43773586)
colors = PackedColorArray(1, 1, 1, 1, 0.46274376, 0.4643005, 0.5605066, 1, 1, 1, 1, 1)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_bj16a"]
gradient = SubResource("Gradient_1nmd1")
width = 100
height = 49
fill_to = Vector2(0, 1)
[node name="Profile Window" type="Window"]
transparent_bg = true
oversampling_override = 1.0
initial_position = 1
size = Vector2i(707, 857)
wrap_controls = true
unresizable = true
borderless = true
always_on_top = true
transparent = true
popup_window = true
script = ExtResource("1_mjwm2")
[node name="CloseButton" type="Button" parent="."]
modulate = Color(1, 1, 1, 0)
anchors_preset = -1
offset_left = 586.0
offset_top = 15.0
offset_right = 625.0
offset_bottom = 54.0
[node name="DragRegion" type="Control" parent="."]
layout_mode = 3
offset_left = 2.0
offset_top = 11.0
offset_right = 584.0
offset_bottom = 56.0
[node name="TextureRect" type="TextureRect" parent="."]
anchors_preset = -1
offset_right = 635.0
offset_bottom = 843.0
texture = ExtResource("2_p33nb")
[node name="ColorRect" type="ColorRect" parent="."]
anchors_preset = -1
offset_left = 112.0
offset_top = 14.0
offset_right = 262.0
offset_bottom = 54.0
color = Color(0.4745098, 0.34509805, 0.23529412, 1)
[node name="Label5" type="Label" parent="."]
anchors_preset = -1
offset_left = 190.0
offset_top = 17.0
offset_right = 275.0
offset_bottom = 61.0
theme_override_colors/font_color = Color(0.88235295, 0.7764706, 0.5058824, 1)
theme_override_fonts/font = ExtResource("3_mjwm2")
theme_override_font_sizes/font_size = 24
text = "Player"
[node name="HSeparator" type="Control" parent="."]
custom_minimum_size = Vector2(0, 100)
layout_mode = 3
offset_left = 3.0
offset_top = 4.0
offset_right = 629.0
offset_bottom = 839.0
[node name="TextureRect2" type="TextureRect" parent="."]
anchors_preset = -1
offset_left = 3.0
offset_top = 4.0
offset_right = 629.0
offset_bottom = 839.0
[node name="PortraitFrame" type="TextureRect" parent="."]
self_modulate = Color(1, 1, 1, 0)
clip_contents = true
custom_minimum_size = Vector2(153, 153)
anchors_preset = -1
offset_left = 27.0
offset_top = 103.0
offset_right = 180.0
offset_bottom = 256.0
texture = ExtResource("3_8aeex")
expand_mode = 1
[node name="Portrait" type="TextureRect" parent="PortraitFrame"]
unique_name_in_owner = true
layout_mode = 0
offset_right = 76.5
offset_bottom = 76.5
scale = Vector2(2, 2)
texture = ExtResource("4_cdnuw")
expand_mode = 1
[node name="NameLabel" type="Label" parent="."]
unique_name_in_owner = true
anchors_preset = -1
offset_left = 74.0
offset_top = 54.0
offset_right = 178.0
offset_bottom = 104.0
theme_override_colors/font_color = Color(0.33, 0.17600001, 0, 1)
theme_override_constants/line_spacing = 0
theme_override_font_sizes/font_size = 36
text = "Name"
[node name="JobLabel" type="Label" parent="."]
unique_name_in_owner = true
anchors_preset = -1
offset_left = 188.0
offset_top = 100.0
offset_right = 272.0
offset_bottom = 134.0
theme_override_colors/font_color = Color(0.33, 0.17600001, 0, 1)
theme_override_constants/line_spacing = 0
theme_override_font_sizes/font_size = 24
text = "Class"
[node name="LevelLabel" type="Label" parent="."]
unique_name_in_owner = true
anchors_preset = -1
offset_left = 188.0
offset_top = 127.0
offset_right = 272.0
offset_bottom = 161.0
theme_override_colors/font_color = Color(0.33, 0.17600001, 0, 1)
theme_override_font_sizes/font_size = 24
text = "Lv ##"
[node name="ExpLabel" type="Label" parent="."]
unique_name_in_owner = true
anchors_preset = -1
offset_left = 188.0
offset_top = 156.0
offset_right = 314.0
offset_bottom = 190.0
theme_override_colors/font_color = Color(0.33, 0.17600001, 0, 1)
theme_override_constants/line_spacing = 0
theme_override_font_sizes/font_size = 24
text = "Exp: ##/##"
[node name="LifeLabel" type="Label" parent="."]
unique_name_in_owner = true
custom_minimum_size = Vector2(100, 0)
anchors_preset = -1
offset_left = 26.0
offset_top = 273.0
offset_right = 652.0
offset_bottom = 307.0
theme_override_font_sizes/font_size = 24
text = "Life: ####/####"
[node name="EnergyLabel" type="Label" parent="."]
unique_name_in_owner = true
anchors_preset = -1
offset_left = 234.0
offset_top = 273.0
offset_right = 860.0
offset_bottom = 307.0
theme_override_constants/line_spacing = 0
theme_override_font_sizes/font_size = 24
text = "Energy: ####/####"
[node name="STRLabel" type="Label" parent="."]
unique_name_in_owner = true
clip_children = 2
anchors_preset = -1
offset_left = 110.0
offset_top = 302.0
offset_right = 210.0
offset_bottom = 346.0
theme = ExtResource("5_kiyqa")
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
theme_override_constants/shadow_offset_x = 1
theme_override_constants/shadow_offset_y = 1
theme_override_constants/outline_size = 1
theme_override_fonts/font = ExtResource("6_0icff")
theme_override_font_sizes/font_size = 32
text = "457"
horizontal_alignment = 1
vertical_alignment = 2
[node name="TextureRect" type="TextureRect" parent="STRLabel"]
material = SubResource("CanvasItemMaterial_ktflt")
layout_mode = 1
anchors_preset = -1
offset_right = 100.0
offset_bottom = 64.0
texture = SubResource("GradientTexture2D_bj16a")
[node name="INTLabel" type="Label" parent="."]
unique_name_in_owner = true
clip_children = 2
anchors_preset = -1
offset_left = 110.0
offset_top = 364.0
offset_right = 210.0
offset_bottom = 408.0
theme = ExtResource("5_kiyqa")
text = "9999"
horizontal_alignment = 1
vertical_alignment = 2
[node name="TextureRect" type="TextureRect" parent="INTLabel"]
material = SubResource("CanvasItemMaterial_ktflt")
layout_mode = 1
anchors_preset = -1
offset_right = 100.0
offset_bottom = 64.0
texture = SubResource("GradientTexture2D_bj16a")
[node name="Label" type="Label" parent="."]
modulate = Color(0.4, 0.22666667, 0, 1)
anchors_preset = -1
offset_left = 65.0
offset_top = 405.0
offset_right = 139.0
offset_bottom = 450.0
theme_override_constants/outline_size = 2
theme_override_font_sizes/font_size = 32
text = "ATK"
[node name="Label2" type="Label" parent="."]
modulate = Color(0.4, 0.22666667, 0, 1)
anchors_preset = -1
offset_left = 201.0
offset_top = 405.0
offset_right = 275.0
offset_bottom = 450.0
theme_override_constants/outline_size = 2
theme_override_font_sizes/font_size = 32
text = "MAG"
[node name="Label3" type="Label" parent="."]
modulate = Color(0.4, 0.22666667, 0, 1)
anchors_preset = -1
offset_left = 330.0
offset_top = 405.0
offset_right = 408.0
offset_bottom = 450.0
theme_override_constants/outline_size = 2
theme_override_font_sizes/font_size = 32
text = "PDEF"
[node name="Label4" type="Label" parent="."]
modulate = Color(0.4, 0.22666667, 0, 1)
anchors_preset = -1
offset_left = 481.0
offset_top = 405.0
offset_right = 569.0
offset_bottom = 450.0
theme_override_constants/outline_size = 2
theme_override_font_sizes/font_size = 32
text = "MDEF"
[node name="ATKLabel" type="Label" parent="."]
unique_name_in_owner = true
clip_children = 2
anchors_preset = -1
offset_left = 43.0
offset_top = 436.0
offset_right = 143.0
offset_bottom = 480.0
theme = ExtResource("5_kiyqa")
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
theme_override_constants/shadow_offset_x = 1
theme_override_constants/shadow_offset_y = 1
theme_override_constants/outline_size = 1
theme_override_fonts/font = ExtResource("6_0icff")
theme_override_font_sizes/font_size = 32
text = "457"
horizontal_alignment = 1
vertical_alignment = 2
[node name="TextureRect" type="TextureRect" parent="ATKLabel"]
material = SubResource("CanvasItemMaterial_ktflt")
layout_mode = 1
anchors_preset = -1
offset_right = 100.0
offset_bottom = 64.0
texture = SubResource("GradientTexture2D_bj16a")
[node name="MAGLabel" type="Label" parent="."]
unique_name_in_owner = true
clip_children = 2
anchors_preset = -1
offset_left = 188.0
offset_top = 435.0
offset_right = 288.0
offset_bottom = 479.0
theme = ExtResource("5_kiyqa")
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
theme_override_constants/shadow_offset_x = 1
theme_override_constants/shadow_offset_y = 1
theme_override_constants/outline_size = 1
theme_override_fonts/font = ExtResource("6_0icff")
theme_override_font_sizes/font_size = 32
text = "457"
horizontal_alignment = 1
vertical_alignment = 2
[node name="TextureRect" type="TextureRect" parent="MAGLabel"]
material = SubResource("CanvasItemMaterial_ktflt")
layout_mode = 1
anchors_preset = -1
offset_right = 100.0
offset_bottom = 64.0
texture = SubResource("GradientTexture2D_bj16a")
[node name="PDEFLabel" type="Label" parent="."]
unique_name_in_owner = true
clip_children = 2
anchors_preset = -1
offset_left = 316.0
offset_top = 435.0
offset_right = 416.0
offset_bottom = 479.0
theme = ExtResource("5_kiyqa")
text = "9999"
horizontal_alignment = 1
vertical_alignment = 2
[node name="TextureRect" type="TextureRect" parent="PDEFLabel"]
material = SubResource("CanvasItemMaterial_ktflt")
layout_mode = 1
anchors_preset = -1
offset_right = 100.0
offset_bottom = 64.0
texture = SubResource("GradientTexture2D_bj16a")
[node name="MDEFLabel" type="Label" parent="."]
unique_name_in_owner = true
clip_children = 2
anchors_preset = -1
offset_left = 471.0
offset_top = 435.0
offset_right = 571.0
offset_bottom = 479.0
theme = ExtResource("5_kiyqa")
text = "9999"
horizontal_alignment = 1
vertical_alignment = 2
[node name="TextureRect" type="TextureRect" parent="MDEFLabel"]
material = SubResource("CanvasItemMaterial_ktflt")
layout_mode = 1
anchors_preset = -1
offset_right = 100.0
offset_bottom = 64.0
texture = SubResource("GradientTexture2D_bj16a")
[node name="DEXLabel" type="Label" parent="."]
unique_name_in_owner = true
clip_children = 2
anchors_preset = -1
offset_left = 111.0
offset_top = 333.0
offset_right = 211.0
offset_bottom = 377.0
theme = ExtResource("5_kiyqa")
text = "9999"
horizontal_alignment = 1
vertical_alignment = 2
[node name="TextureRect" type="TextureRect" parent="DEXLabel"]
material = SubResource("CanvasItemMaterial_ktflt")
layout_mode = 1
anchors_preset = -1
offset_right = 100.0
offset_bottom = 64.0
texture = SubResource("GradientTexture2D_bj16a")
[node name="CHALabel" type="Label" parent="."]
unique_name_in_owner = true
clip_children = 2
anchors_preset = -1
offset_left = 254.0
offset_top = 302.0
offset_right = 354.0
offset_bottom = 346.0
theme = ExtResource("5_kiyqa")
text = "9999"
horizontal_alignment = 1
vertical_alignment = 2
[node name="TextureRect" type="TextureRect" parent="CHALabel"]
material = SubResource("CanvasItemMaterial_ktflt")
layout_mode = 1
anchors_preset = -1
offset_right = 100.0
offset_bottom = 64.0
texture = SubResource("GradientTexture2D_bj16a")
[node name="FAILabel" type="Label" parent="."]
unique_name_in_owner = true
clip_children = 2
anchors_preset = -1
offset_left = 254.0
offset_top = 333.0
offset_right = 354.0
offset_bottom = 377.0
theme = ExtResource("5_kiyqa")
text = "9999"
horizontal_alignment = 1
vertical_alignment = 2
[node name="TextureRect" type="TextureRect" parent="FAILabel"]
material = SubResource("CanvasItemMaterial_ktflt")
layout_mode = 1
anchors_preset = -1
offset_right = 100.0
offset_bottom = 64.0
texture = SubResource("GradientTexture2D_bj16a")
[node name="LUKLabel" type="Label" parent="."]
unique_name_in_owner = true
clip_children = 2
anchors_preset = -1
offset_left = 254.0
offset_top = 364.0
offset_right = 354.0
offset_bottom = 408.0
theme = ExtResource("5_kiyqa")
text = "9999"
horizontal_alignment = 1
vertical_alignment = 2
[node name="TextureRect" type="TextureRect" parent="LUKLabel"]
material = SubResource("CanvasItemMaterial_ktflt")
layout_mode = 1
anchors_preset = -1
offset_right = 100.0
offset_bottom = 64.0
texture = SubResource("GradientTexture2D_bj16a")
[node name="GearBanner" type="TextureRect" parent="."]
anchors_preset = -1
offset_left = -89.0
offset_top = 485.0
offset_right = 382.0
offset_bottom = 509.0
texture = ExtResource("7_la6dy")
[node name="Sideview" type="NinePatchRect" parent="."]
anchors_preset = -1
offset_left = 13.0
offset_top = 543.0
offset_right = 238.0
offset_bottom = 768.0
texture = ExtResource("8_c770f")
patch_margin_left = 6
patch_margin_top = 6
patch_margin_right = 6
patch_margin_bottom = 6
[node name="TempChar" type="TextureRect" parent="Sideview"]
layout_mode = 0
offset_left = 47.0
offset_top = 55.0
offset_right = 175.0
offset_bottom = 183.0
texture = ExtResource("9_cq03q")
[node name="GearGrid" type="GridContainer" parent="."]
anchors_preset = -1
offset_left = 241.0
offset_top = 545.0
offset_right = 462.0
offset_bottom = 766.0
[node name="TextureRect" type="TextureRect" parent="GearGrid"]
layout_mode = 2
texture = ExtResource("8_c770f")
[node name="TextureRect2" type="TextureRect" parent="GearGrid"]
layout_mode = 2
texture = ExtResource("8_c770f")
[node name="TextureRect3" type="TextureRect" parent="GearGrid"]
layout_mode = 2
texture = ExtResource("8_c770f")
[node name="VSeparator" type="VSeparator" parent="."]
modulate = Color(1.2044971, 0.7664488, 0.43147072, 1)
custom_minimum_size = Vector2(0, 275)
anchors_preset = -1
offset_left = 314.0
offset_top = 512.0
offset_right = 318.0
offset_bottom = 812.0
scale = Vector2(2, 1)
[node name="InventoryBanner" type="TextureRect" parent="."]
anchors_preset = -1
offset_left = 236.0
offset_top = 485.0
offset_right = 707.0
offset_bottom = 509.0
texture = ExtResource("10_rldp4")
[node name="InventoryGrid" type="GridContainer" parent="."]
anchors_preset = -1
offset_left = 325.0
offset_top = 513.0
offset_right = 621.0
offset_bottom = 809.0
columns = 4
[node name="ItemSlot" type="Control" parent="InventoryGrid"]
custom_minimum_size = Vector2(71, 71)
layout_mode = 2
script = ExtResource("11_b43fo")
[node name="Square" type="TextureRect" parent="InventoryGrid/ItemSlot"]
layout_mode = 0
offset_right = 71.0
offset_bottom = 71.0
texture = ExtResource("8_c770f")
[node name="Item" type="TextureRect" parent="InventoryGrid/ItemSlot"]
layout_mode = 0
offset_left = 3.0
offset_top = 3.0
offset_right = 67.0
offset_bottom = 67.0
[node name="ItemSlot2" type="Control" parent="InventoryGrid"]
custom_minimum_size = Vector2(71, 71)
layout_mode = 2
script = ExtResource("11_b43fo")
[node name="Square" type="TextureRect" parent="InventoryGrid/ItemSlot2"]
layout_mode = 0
offset_right = 71.0
offset_bottom = 71.0
texture = ExtResource("8_c770f")
[node name="Item" type="TextureRect" parent="InventoryGrid/ItemSlot2"]
layout_mode = 0
offset_left = 3.0
offset_top = 3.0
offset_right = 67.0
offset_bottom = 67.0
[node name="ItemSlot3" type="Control" parent="InventoryGrid"]
custom_minimum_size = Vector2(71, 71)
layout_mode = 2
script = ExtResource("11_b43fo")
[node name="Square" type="TextureRect" parent="InventoryGrid/ItemSlot3"]
layout_mode = 0
offset_right = 71.0
offset_bottom = 71.0
texture = ExtResource("8_c770f")
[node name="Item" type="TextureRect" parent="InventoryGrid/ItemSlot3"]
layout_mode = 0
offset_left = 3.0
offset_top = 3.0
offset_right = 67.0
offset_bottom = 67.0
[node name="ItemSlot4" type="Control" parent="InventoryGrid"]
custom_minimum_size = Vector2(71, 71)
layout_mode = 2
script = ExtResource("11_b43fo")
[node name="Square" type="TextureRect" parent="InventoryGrid/ItemSlot4"]
layout_mode = 0
offset_right = 71.0
offset_bottom = 71.0
texture = ExtResource("8_c770f")
[node name="Item" type="TextureRect" parent="InventoryGrid/ItemSlot4"]
layout_mode = 0
offset_left = 3.0
offset_top = 3.0
offset_right = 67.0
offset_bottom = 67.0
[node name="ItemSlot5" type="Control" parent="InventoryGrid"]
custom_minimum_size = Vector2(71, 71)
layout_mode = 2
script = ExtResource("11_b43fo")
[node name="Square" type="TextureRect" parent="InventoryGrid/ItemSlot5"]
layout_mode = 0
offset_right = 71.0
offset_bottom = 71.0
texture = ExtResource("8_c770f")
[node name="Item" type="TextureRect" parent="InventoryGrid/ItemSlot5"]
layout_mode = 0
offset_left = 3.0
offset_top = 3.0
offset_right = 67.0
offset_bottom = 67.0
[node name="ItemSlot6" type="Control" parent="InventoryGrid"]
custom_minimum_size = Vector2(71, 71)
layout_mode = 2
script = ExtResource("11_b43fo")
[node name="Square" type="TextureRect" parent="InventoryGrid/ItemSlot6"]
layout_mode = 0
offset_right = 71.0
offset_bottom = 71.0
texture = ExtResource("8_c770f")
[node name="Item" type="TextureRect" parent="InventoryGrid/ItemSlot6"]
layout_mode = 0
offset_left = 3.0
offset_top = 3.0
offset_right = 67.0
offset_bottom = 67.0
[node name="ItemSlot7" type="Control" parent="InventoryGrid"]
custom_minimum_size = Vector2(71, 71)
layout_mode = 2
script = ExtResource("11_b43fo")
[node name="Square" type="TextureRect" parent="InventoryGrid/ItemSlot7"]
layout_mode = 0
offset_right = 71.0
offset_bottom = 71.0
texture = ExtResource("8_c770f")
[node name="Item" type="TextureRect" parent="InventoryGrid/ItemSlot7"]
layout_mode = 0
offset_left = 3.0
offset_top = 3.0
offset_right = 67.0
offset_bottom = 67.0
[node name="ItemSlot8" type="Control" parent="InventoryGrid"]
custom_minimum_size = Vector2(71, 71)
layout_mode = 2
script = ExtResource("11_b43fo")
[node name="Square" type="TextureRect" parent="InventoryGrid/ItemSlot8"]
layout_mode = 0
offset_right = 71.0
offset_bottom = 71.0
texture = ExtResource("8_c770f")
[node name="Item" type="TextureRect" parent="InventoryGrid/ItemSlot8"]
layout_mode = 0
offset_left = 3.0
offset_top = 3.0
offset_right = 67.0
offset_bottom = 67.0
[node name="ItemSlot9" type="Control" parent="InventoryGrid"]
custom_minimum_size = Vector2(71, 71)
layout_mode = 2
script = ExtResource("11_b43fo")
[node name="Square" type="TextureRect" parent="InventoryGrid/ItemSlot9"]
layout_mode = 0
offset_right = 71.0
offset_bottom = 71.0
texture = ExtResource("8_c770f")
[node name="Item" type="TextureRect" parent="InventoryGrid/ItemSlot9"]
layout_mode = 0
offset_left = 3.0
offset_top = 3.0
offset_right = 67.0
offset_bottom = 67.0
[node name="ItemSlot10" type="Control" parent="InventoryGrid"]
custom_minimum_size = Vector2(71, 71)
layout_mode = 2
script = ExtResource("11_b43fo")
[node name="Square" type="TextureRect" parent="InventoryGrid/ItemSlot10"]
layout_mode = 0
offset_right = 71.0
offset_bottom = 71.0
texture = ExtResource("8_c770f")
[node name="Item" type="TextureRect" parent="InventoryGrid/ItemSlot10"]
layout_mode = 0
offset_left = 3.0
offset_top = 3.0
offset_right = 67.0
offset_bottom = 67.0
[node name="ItemSlot11" type="Control" parent="InventoryGrid"]
custom_minimum_size = Vector2(71, 71)
layout_mode = 2
script = ExtResource("11_b43fo")
[node name="Square" type="TextureRect" parent="InventoryGrid/ItemSlot11"]
layout_mode = 0
offset_right = 71.0
offset_bottom = 71.0
texture = ExtResource("8_c770f")
[node name="Item" type="TextureRect" parent="InventoryGrid/ItemSlot11"]
layout_mode = 0
offset_left = 3.0
offset_top = 3.0
offset_right = 67.0
offset_bottom = 67.0
[node name="ItemSlot12" type="Control" parent="InventoryGrid"]
custom_minimum_size = Vector2(71, 71)
layout_mode = 2
script = ExtResource("11_b43fo")
[node name="Square" type="TextureRect" parent="InventoryGrid/ItemSlot12"]
layout_mode = 0
offset_right = 71.0
offset_bottom = 71.0
texture = ExtResource("8_c770f")
[node name="Item" type="TextureRect" parent="InventoryGrid/ItemSlot12"]
layout_mode = 0
offset_left = 3.0
offset_top = 3.0
offset_right = 67.0
offset_bottom = 67.0
[node name="ItemSlot13" type="Control" parent="InventoryGrid"]
custom_minimum_size = Vector2(71, 71)
layout_mode = 2
script = ExtResource("11_b43fo")
[node name="Square" type="TextureRect" parent="InventoryGrid/ItemSlot13"]
layout_mode = 0
offset_right = 71.0
offset_bottom = 71.0
texture = ExtResource("8_c770f")
[node name="Item" type="TextureRect" parent="InventoryGrid/ItemSlot13"]
layout_mode = 0
offset_left = 3.0
offset_top = 3.0
offset_right = 67.0
offset_bottom = 67.0
[node name="ItemSlot14" type="Control" parent="InventoryGrid"]
custom_minimum_size = Vector2(71, 71)
layout_mode = 2
script = ExtResource("11_b43fo")
[node name="Square" type="TextureRect" parent="InventoryGrid/ItemSlot14"]
layout_mode = 0
offset_right = 71.0
offset_bottom = 71.0
texture = ExtResource("8_c770f")
[node name="Item" type="TextureRect" parent="InventoryGrid/ItemSlot14"]
layout_mode = 0
offset_left = 3.0
offset_top = 3.0
offset_right = 67.0
offset_bottom = 67.0
[node name="ItemSlot15" type="Control" parent="InventoryGrid"]
custom_minimum_size = Vector2(71, 71)
layout_mode = 2
script = ExtResource("11_b43fo")
[node name="Square" type="TextureRect" parent="InventoryGrid/ItemSlot15"]
layout_mode = 0
offset_right = 71.0
offset_bottom = 71.0
texture = ExtResource("8_c770f")
[node name="Item" type="TextureRect" parent="InventoryGrid/ItemSlot15"]
layout_mode = 0
offset_left = 3.0
offset_top = 3.0
offset_right = 67.0
offset_bottom = 67.0
[node name="ItemSlot16" type="Control" parent="InventoryGrid"]
custom_minimum_size = Vector2(71, 71)
layout_mode = 2
script = ExtResource("11_b43fo")
[node name="Square" type="TextureRect" parent="InventoryGrid/ItemSlot16"]
layout_mode = 0
offset_right = 71.0
offset_bottom = 71.0
texture = ExtResource("8_c770f")
[node name="Item" type="TextureRect" parent="InventoryGrid/ItemSlot16"]
layout_mode = 0
offset_left = 3.0
offset_top = 3.0
offset_right = 67.0
offset_bottom = 67.0
[connection signal="close_requested" from="." to="." method="_on_close_requested"]
[connection signal="focus_exited" from="." to="." method="_on_close_requested"]
[connection signal="pressed" from="CloseButton" to="." method="_on_close_requested"]
[connection signal="gui_input" from="DragRegion" to="." method="_on_drag_region_gui_input"]
[connection signal="gui_input" from="InventoryGrid/ItemSlot" to="InventoryGrid/ItemSlot" method="_on_gui_input"]
[connection signal="gui_input" from="InventoryGrid/ItemSlot2" to="InventoryGrid/ItemSlot2" method="_on_gui_input"]
[connection signal="gui_input" from="InventoryGrid/ItemSlot3" to="InventoryGrid/ItemSlot3" method="_on_gui_input"]
[connection signal="gui_input" from="InventoryGrid/ItemSlot4" to="InventoryGrid/ItemSlot4" method="_on_gui_input"]
[connection signal="gui_input" from="InventoryGrid/ItemSlot5" to="InventoryGrid/ItemSlot5" method="_on_gui_input"]
[connection signal="gui_input" from="InventoryGrid/ItemSlot6" to="InventoryGrid/ItemSlot6" method="_on_gui_input"]
[connection signal="gui_input" from="InventoryGrid/ItemSlot7" to="InventoryGrid/ItemSlot7" method="_on_gui_input"]
[connection signal="gui_input" from="InventoryGrid/ItemSlot8" to="InventoryGrid/ItemSlot8" method="_on_gui_input"]
[connection signal="gui_input" from="InventoryGrid/ItemSlot9" to="InventoryGrid/ItemSlot9" method="_on_gui_input"]
[connection signal="gui_input" from="InventoryGrid/ItemSlot10" to="InventoryGrid/ItemSlot10" method="_on_gui_input"]
[connection signal="gui_input" from="InventoryGrid/ItemSlot11" to="InventoryGrid/ItemSlot11" method="_on_gui_input"]
[connection signal="gui_input" from="InventoryGrid/ItemSlot12" to="InventoryGrid/ItemSlot12" method="_on_gui_input"]
[connection signal="gui_input" from="InventoryGrid/ItemSlot13" to="InventoryGrid/ItemSlot13" method="_on_gui_input"]
[connection signal="gui_input" from="InventoryGrid/ItemSlot14" to="InventoryGrid/ItemSlot14" method="_on_gui_input"]
[connection signal="gui_input" from="InventoryGrid/ItemSlot15" to="InventoryGrid/ItemSlot15" method="_on_gui_input"]
[connection signal="gui_input" from="InventoryGrid/ItemSlot16" to="InventoryGrid/ItemSlot16" method="_on_gui_input"]

89
templates/quest_view.tscn Normal file
View File

@@ -0,0 +1,89 @@
[gd_scene load_steps=6 format=3 uid="uid://ytfwb1vyrmsx"]
[ext_resource type="Script" uid="uid://bm4826vxrmuqh" path="res://scripts/quest_view.gd" id="1_gmxj1"]
[ext_resource type="Texture2D" uid="uid://b7jry0kqho7y7" path="res://graphics/questview/forest-back.png" id="2_0cnce"]
[ext_resource type="Texture2D" uid="uid://bu18dxqnd3hf6" path="res://graphics/questview/forest-back2.png" id="3_dvgqk"]
[ext_resource type="Texture2D" uid="uid://ci7ngqo1sh7ao" path="res://graphics/questview/ground.png" id="4_0yhlr"]
[ext_resource type="Texture2D" uid="uid://cr0sb3p1r7bdq" path="res://graphics/questview/forest-mid.png" id="5_h4ad0"]
[node name="QuestView" type="Panel"]
custom_minimum_size = Vector2(375, 325)
anchors_preset = -1
offset_left = 12.0
offset_right = 387.0
offset_bottom = 325.0
script = ExtResource("1_gmxj1")
[node name="Setting" type="Control" parent="."]
clip_contents = true
layout_mode = 1
offset_right = 375.0
offset_bottom = 325.0
[node name="Control" type="Control" parent="Setting"]
anchors_preset = 0
offset_right = 40.0
offset_bottom = 40.0
[node name="StageParallax" type="Parallax2D" parent="Setting/Control"]
repeat_size = Vector2(750, 0)
autoscroll = Vector2(-30, 0)
ignore_camera_scroll = true
[node name="Background" type="TextureRect" parent="Setting/Control/StageParallax"]
anchors_preset = -1
offset_top = -50.0
offset_right = 750.0
offset_bottom = 375.0
texture = ExtResource("2_0cnce")
[node name="StageParallax3" type="Parallax2D" parent="Setting/Control"]
scale = Vector2(0.8, 0.8)
repeat_size = Vector2(750, 0)
autoscroll = Vector2(-35, 0)
ignore_camera_scroll = true
[node name="Background" type="TextureRect" parent="Setting/Control/StageParallax3"]
modulate = Color(1.179842, 1.179842, 1.179842, 1)
anchors_preset = -1
offset_right = 750.0
offset_bottom = 425.0
texture = ExtResource("3_dvgqk")
[node name="BackgroundParallax" type="Parallax2D" parent="Setting/Control"]
repeat_size = Vector2(475, 0)
autoscroll = Vector2(-45, 0)
ignore_camera_scroll = true
[node name="TextureRect" type="TextureRect" parent="Setting/Control/BackgroundParallax"]
anchors_preset = -1
offset_top = -50.0
offset_right = 475.0
offset_bottom = 375.0
texture = ExtResource("4_0yhlr")
[node name="StageParallax2" type="Parallax2D" parent="Setting/Control"]
repeat_size = Vector2(750, 0)
autoscroll = Vector2(-45, 0)
ignore_camera_scroll = true
[node name="Foreground" type="TextureRect" parent="Setting/Control/StageParallax2"]
anchors_preset = -1
offset_top = -50.0
offset_right = 750.0
offset_bottom = 375.0
texture = ExtResource("5_h4ad0")
[node name="EnemyPosition" type="Control" parent="."]
anchors_preset = 0
offset_left = 292.0
offset_top = 276.0
offset_right = 292.0
offset_bottom = 276.0
[node name="QuestorPosition" type="Control" parent="."]
layout_mode = 1
offset_left = 89.0
offset_top = 272.0
offset_right = 89.0
offset_bottom = 272.0

View File

@@ -1,154 +1,7 @@
[gd_scene load_steps=10 format=3 uid="uid://du4hyv7egc7ny"]
[ext_resource type="Texture2D" uid="uid://b7jry0kqho7y7" path="res://graphics/questview/forest-back.png" id="1_pphhk"]
[ext_resource type="Texture2D" uid="uid://bu18dxqnd3hf6" path="res://graphics/questview/forest-back2.png" id="2_4qpsm"]
[ext_resource type="Texture2D" uid="uid://cr0sb3p1r7bdq" path="res://graphics/questview/forest-mid.png" id="2_mburs"]
[ext_resource type="Texture2D" uid="uid://ci7ngqo1sh7ao" path="res://graphics/questview/ground.png" id="2_rcl5q"]
[ext_resource type="Texture2D" uid="uid://c5d0u7ir1y0t2" path="res://graphics/testchar.png" id="5_4qpsm"]
[sub_resource type="Animation" id="Animation_gy3gd"]
resource_name = "idle"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0]
}
[sub_resource type="Animation" id="Animation_7jhts"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0]
}
[sub_resource type="Animation" id="Animation_5om5g"]
resource_name = "running"
length = 0.66667
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.06666667, 0.13333334, 0.2, 0.26666668, 0.33333334, 0.4, 0.46666667, 0.53333336, 0.6, 0.6666667),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
"update": 1,
"values": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_pylgq"]
_data = {
&"RESET": SubResource("Animation_7jhts"),
&"idle": SubResource("Animation_gy3gd"),
&"running": SubResource("Animation_5om5g")
}
[gd_scene format=3 uid="uid://du4hyv7egc7ny"]
[node name="QuestViewWindow" type="Panel"]
anchors_preset = -1
offset_left = 1.0
offset_right = 401.0
offset_bottom = 325.0
[node name="Panel" type="Panel" parent="."]
custom_minimum_size = Vector2(375, 325)
layout_mode = 1
anchors_preset = -1
offset_left = 12.0
offset_right = 387.0
offset_bottom = 325.0
[node name="Setting" type="Control" parent="Panel"]
clip_contents = true
layout_mode = 1
offset_right = 375.0
offset_bottom = 325.0
[node name="Control" type="Control" parent="Panel/Setting"]
anchors_preset = 0
offset_right = 40.0
offset_bottom = 40.0
[node name="StageParallax" type="Parallax2D" parent="Panel/Setting/Control"]
repeat_size = Vector2(750, 0)
autoscroll = Vector2(-30, 0)
ignore_camera_scroll = true
[node name="Background" type="TextureRect" parent="Panel/Setting/Control/StageParallax"]
anchors_preset = -1
offset_top = -50.0
offset_right = 750.0
offset_bottom = 375.0
texture = ExtResource("1_pphhk")
[node name="StageParallax3" type="Parallax2D" parent="Panel/Setting/Control"]
scale = Vector2(0.8, 0.8)
repeat_size = Vector2(750, 0)
autoscroll = Vector2(-35, 0)
ignore_camera_scroll = true
[node name="Background" type="TextureRect" parent="Panel/Setting/Control/StageParallax3"]
modulate = Color(1.179842, 1.179842, 1.179842, 1)
anchors_preset = -1
offset_right = 750.0
offset_bottom = 425.0
texture = ExtResource("2_4qpsm")
[node name="BackgroundParallax" type="Parallax2D" parent="Panel/Setting/Control"]
repeat_size = Vector2(475, 0)
autoscroll = Vector2(-45, 0)
ignore_camera_scroll = true
[node name="TextureRect" type="TextureRect" parent="Panel/Setting/Control/BackgroundParallax"]
anchors_preset = -1
offset_top = -50.0
offset_right = 475.0
offset_bottom = 375.0
texture = ExtResource("2_rcl5q")
[node name="StageParallax2" type="Parallax2D" parent="Panel/Setting/Control"]
repeat_size = Vector2(750, 0)
autoscroll = Vector2(-45, 0)
ignore_camera_scroll = true
[node name="Foreground" type="TextureRect" parent="Panel/Setting/Control/StageParallax2"]
anchors_preset = -1
offset_top = -50.0
offset_right = 750.0
offset_bottom = 375.0
texture = ExtResource("2_mburs")
[node name="SideviewSprite" type="Control" parent="Panel"]
anchors_preset = 0
offset_left = 89.0
offset_top = 274.0
offset_right = 89.0
offset_bottom = 274.0
[node name="Sprite" type="Sprite2D" parent="Panel/SideviewSprite"]
position = Vector2(0, -53)
texture = ExtResource("5_4qpsm")
hframes = 4
vframes = 3
[node name="AnimationPlayer" type="AnimationPlayer" parent="Panel/SideviewSprite"]
libraries = {
&"": SubResource("AnimationLibrary_pylgq")
}
autoplay = "running"

View File

@@ -0,0 +1,78 @@
[gd_scene load_steps=7 format=3 uid="uid://cdtpyg5ohniax"]
[ext_resource type="Script" uid="uid://ce0vugvrwvppb" path="res://scripts/questor_sprite.gd" id="1_0ev5i"]
[ext_resource type="Texture2D" uid="uid://c5d0u7ir1y0t2" path="res://graphics/testchar.png" id="2_w1b7t"]
[sub_resource type="Animation" id="Animation_7jhts"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0]
}
[sub_resource type="Animation" id="Animation_gy3gd"]
resource_name = "idle"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0]
}
[sub_resource type="Animation" id="Animation_5om5g"]
resource_name = "running"
length = 0.66667
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.06666667, 0.13333334, 0.2, 0.26666668, 0.33333334, 0.4, 0.46666667, 0.53333336, 0.6, 0.6666667),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
"update": 1,
"values": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_pylgq"]
_data = {
&"RESET": SubResource("Animation_7jhts"),
&"idle": SubResource("Animation_gy3gd"),
&"running": SubResource("Animation_5om5g")
}
[node name="QuestorSprite" type="Control"]
layout_mode = 3
offset_left = 89.0
offset_top = 274.0
offset_right = 89.0
offset_bottom = 274.0
script = ExtResource("1_0ev5i")
[node name="Sprite" type="Sprite2D" parent="."]
position = Vector2(0, -53)
texture = ExtResource("2_w1b7t")
hframes = 4
vframes = 3
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_pylgq")
}
autoplay = "running"

View File

@@ -1,6 +1,6 @@
[gd_scene load_steps=2 format=3 uid="uid://djirqtsrttqwe"]
[ext_resource type="Script" uid="uid://0jl2qbvtmsik" path="res://scripts/adventurer_data.gd" id="1_jdutx"]
[ext_resource type="Script" uid="uid://0jl2qbvtmsik" path="res://scripts/adventurer.gd" id="1_jdutx"]
[node name="Test Guildmember" type="Node"]
script = ExtResource("1_jdutx")

View File

@@ -1,6 +1,6 @@
[gd_scene load_steps=8 format=3 uid="uid://dew8gxu55ex6q"]
[ext_resource type="Script" uid="uid://cjqumk0kw2vte" path="res://scripts/adventurer.gd" id="1_kt0f0"]
[ext_resource type="Script" uid="uid://cjqumk0kw2vte" path="res://scripts/adventurer_sprite.gd" id="1_kt0f0"]
[ext_resource type="Texture2D" uid="uid://cg6ptmynq0aq0" path="res://graphics/basic-sprite.png" id="2_i6rus"]
[ext_resource type="PackedScene" uid="uid://jbqw0n6dlj08" path="res://templates/speech_bubble.tscn" id="3_lqojj"]
[ext_resource type="BehaviorTree" uid="uid://dght2flegv70i" path="res://ai/trees/adventurer.tres" id="4_86mwh"]