Improved UI textbox

This commit is contained in:
2026-06-12 11:56:30 -05:00
parent f6a0bb156e
commit 2f3a4eab66
39 changed files with 574 additions and 706 deletions
+1 -4
View File
@@ -1,10 +1,7 @@
extends Node3D
func _ready() -> void:
# Assign dialogue resources after the plugin has imported the .dialogue files.
# Once the DialogueManager plugin is enabled in the editor, you can assign
# dialogueResource directly in the Inspector instead.
var npc:Entity = $NotPlayer
if npc:
npc.dialogueResource = load("res://dialogue/npc/test.dialogue")
npc.dialogueBasePath = "res://dialogue/npc/test"
npc.dialogueTitle = "start"
+4 -2
View File
@@ -27,6 +27,8 @@ script = ExtResource("1_6ms5s")
[node name="NotPlayer" parent="." instance=ExtResource("2_jmygs")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00883961, 1.11219, 0.0142021)
entityId = "bcabec96-8d33-4c16-a997-3bb3b0562b33"
dialogueName = "stranger"
displayName = "Stranger"
interactType = 1
[node name="NotPlayer4" parent="." instance=ExtResource("2_jmygs")]
@@ -50,13 +52,11 @@ cutscene = SubResource("Resource_tr4a0")
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4, 1.11219, -3)
entityId = "c1a2b3c4-d5e6-7890-abcd-ef1234567891"
interactType = 5
chatboxMessage = "Hey! Press interact again to close this box."
[node name="ProximityNPC" parent="." instance=ExtResource("2_jmygs")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 1.11219, -4)
entityId = "c1a2b3c4-d5e6-7890-abcd-ef1234567892"
interactType = 6
chatboxMessage = "Hey, over here!"
[node name="EntityProximityArea" type="Area3D" parent="ProximityNPC" node_paths=PackedStringArray("entity")]
collision_layer = 0
@@ -72,6 +72,8 @@ shape = SubResource("SphereShape3D_prox")
[node name="Player" parent="." instance=ExtResource("2_jmygs")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.1915, 1.05, 0.125589)
entityId = "player"
dialogueName = "john"
displayName = "John"
movementType = 2
[node name="Camera3D" type="Camera3D" parent="." node_paths=PackedStringArray("targetNode")]