This commit is contained in:
2024-09-07 15:01:45 -07:00
parent fbaf698852
commit b470a9d2fe
116 changed files with 15968 additions and 24 deletions

View File

@@ -0,0 +1,23 @@
using Godot;
using DialogueManagerRuntime;
using GameJamDungeon;
public partial class DialogueTest : Area3D
{
[Export]
public Resource DialogueResource;
[Export]
public string DialougeStart = "start";
public override void _Process(double delta)
{
if (Input.IsActionJustPressed(GameInputs.Attack))
OnTalk();
}
public void OnTalk()
{
DialogueManager.ShowDialogueBalloon(DialogueResource, DialougeStart);
}
}

View File

@@ -0,0 +1,28 @@
[gd_scene load_steps=5 format=3 uid="uid://xb02opiwelet"]
[ext_resource type="Script" path="res://src/dialog/DialogueTest.cs" id="1_6offx"]
[ext_resource type="Script" path="res://addons/dialogue_manager/dialogue_label.gd" id="1_v3yy4"]
[ext_resource type="Resource" uid="uid://bw086h2dmhraf" path="res://src/dialog/TestDialogue.dialogue" id="2_c26a0"]
[sub_resource type="BoxShape3D" id="BoxShape3D_dhaer"]
size = Vector3(2, 2, 2)
[node name="Panel" type="Area3D"]
script = ExtResource("1_6offx")
DialogueResource = ExtResource("2_c26a0")
[node name="DialogueTest" type="RichTextLabel" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
text = "Test"
scroll_active = false
scroll_following = true
script = ExtResource("1_v3yy4")
skip_pause_at_abbreviations = PackedStringArray("eg", "ex")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.254547, -0.166077, -1.29401)
shape = SubResource("BoxShape3D_dhaer")

View File

@@ -0,0 +1,3 @@
~ start
Hi...
=> END

View File

@@ -0,0 +1,15 @@
[remap]
importer="dialogue_manager_compiler_12"
type="Resource"
uid="uid://bw086h2dmhraf"
path="res://.godot/imported/TestDialogue.dialogue-ef49d7fb6d53dc49d01e69ca7037845f.tres"
[deps]
source_file="res://src/dialog/TestDialogue.dialogue"
dest_files=["res://.godot/imported/TestDialogue.dialogue-ef49d7fb6d53dc49d01e69ca7037845f.tres"]
[params]
defaults=true