More work on implementing quests and tech trees

This commit is contained in:
2025-12-04 10:12:34 -05:00
parent 4ed4ab95f3
commit f5d479f7ff
16 changed files with 241 additions and 10 deletions

View File

@@ -0,0 +1,94 @@
[gd_scene load_steps=4 format=3 uid="uid://dv4pmw8f0qr3i"]
[sub_resource type="Environment" id="Environment_dkoub"]
ambient_light_source = 1
reflected_light_source = 1
glow_enabled = true
glow_intensity = 8.0
glow_strength = 2.0
glow_bloom = 1.0
[sub_resource type="Shader" id="Shader_dkoub"]
code = "// NOTE: Shader automatically converted from Godot Engine 4.5.1.stable.mono's CanvasItemMaterial.
shader_type canvas_item;
render_mode blend_mix;
uniform sampler2D main_texture;
void vertex() {
}
void fragment() {
vec4 col = texture(main_texture, UV);
COLOR = col;
}"
[sub_resource type="ShaderMaterial" id="ShaderMaterial_000fu"]
shader = SubResource("Shader_dkoub")
[node name="Control" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_dkoub")
[node name="PanelContainer" type="PanelContainer" parent="."]
layout_mode = 0
offset_right = 800.0
offset_bottom = 427.0
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"]
layout_mode = 2
[node name="PanelContainer" type="PanelContainer" parent="PanelContainer/VBoxContainer"]
layout_mode = 2
[node name="Label" type="Label" parent="PanelContainer/VBoxContainer/PanelContainer"]
layout_mode = 2
text = "Development Options"
[node name="MarginContainer" type="MarginContainer" parent="PanelContainer/VBoxContainer"]
custom_minimum_size = Vector2(800, 400)
layout_mode = 2
theme_override_constants/margin_left = 5
theme_override_constants/margin_right = 5
theme_override_constants/margin_bottom = 5
[node name="Container" type="Control" parent="PanelContainer/VBoxContainer/MarginContainer"]
layout_mode = 2
[node name="Button" type="Button" parent="PanelContainer/VBoxContainer/MarginContainer/Container"]
layout_mode = 0
offset_top = 152.0
offset_right = 97.0
offset_bottom = 183.0
text = "Sign-up List"
[node name="Button2" type="Button" parent="PanelContainer/VBoxContainer/MarginContainer/Container"]
layout_mode = 0
offset_left = 189.0
offset_top = 152.0
offset_right = 340.0
offset_bottom = 183.0
text = "Roster Sheet"
[node name="Button3" type="Button" parent="PanelContainer/VBoxContainer/MarginContainer/Container"]
layout_mode = 0
offset_left = 412.0
offset_top = 151.0
offset_right = 559.0
offset_bottom = 182.0
text = "Roster Book"
[node name="Line2D" type="Line2D" parent="PanelContainer/VBoxContainer/MarginContainer/Container"]
material = SubResource("ShaderMaterial_000fu")
position = Vector2(101, 168)
points = PackedVector2Array(0, 0, 84, 0)
width = 3.0
begin_cap_mode = 2
antialiased = true

View File

@@ -0,0 +1,34 @@
[gd_scene load_steps=2 format=3 uid="uid://ejiv2wdgeeva"]
[ext_resource type="Script" uid="uid://pwj0ai6mg7o2" path="res://scripts/employee_panel.gd" id="1_ls6g8"]
[node name="Employee Panel" type="PanelContainer"]
offset_right = 126.0
offset_bottom = 70.0
focus_mode = 1
script = ExtResource("1_ls6g8")
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 2
[node name="PanelContainer" type="PanelContainer" parent="VBoxContainer"]
layout_mode = 2
mouse_filter = 2
[node name="Label" type="Label" parent="VBoxContainer/PanelContainer"]
layout_mode = 2
text = "Employee Name"
[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer"]
layout_mode = 2
theme_override_constants/margin_left = 3
theme_override_constants/margin_top = 4
theme_override_constants/margin_right = 4
theme_override_constants/margin_bottom = 0
[node name="DevelopButton" type="Button" parent="VBoxContainer"]
layout_mode = 2
text = "Develop"
[connection signal="focus_exited" from="." to="." method="_on_focus_exited"]
[connection signal="pressed" from="VBoxContainer/DevelopButton" to="." method="_on_develop_button_pressed"]

View File

@@ -257,3 +257,9 @@ offset_bottom = 22.0
text = "Feral Pig"
horizontal_alignment = 1
metadata/_edit_lock_ = true
[node name="Button" type="Button" parent="."]
layout_mode = 0
offset_right = 8.0
offset_bottom = 8.0
toggle_mode = true

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=8 format=3 uid="uid://cf6nnjyp8kv78"]
[gd_scene load_steps=9 format=3 uid="uid://cf6nnjyp8kv78"]
[ext_resource type="Script" uid="uid://b2unuudq5qfl" path="res://scripts/guild_employee.gd" id="1_vwytd"]
[ext_resource type="Texture2D" uid="uid://nrhxsevqn82" path="res://graphics/receptionist.png" id="2_dlmqr"]
@@ -12,6 +12,10 @@ height = 54.0
[sub_resource type="BlackboardPlan" id="BlackboardPlan_xsrct"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_51mum"]
radius = 29.0
height = 108.0
[node name="Receptionist" type="CharacterBody2D"]
script = ExtResource("1_vwytd")
@@ -38,3 +42,12 @@ position = Vector2(44, -93)
[node name="BTPlayer" type="BTPlayer" parent="."]
behavior_tree = ExtResource("7_qmbsn")
blackboard_plan = SubResource("BlackboardPlan_xsrct")
[node name="MouseArea" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="MouseArea"]
position = Vector2(0, -50)
shape = SubResource("CapsuleShape2D_51mum")
debug_color = Color(0.19833331, 0.7, 0, 0.41960785)
[connection signal="input_event" from="MouseArea" to="." method="_on_mouse_area_input_event"]