Add Screen display mode with dedicated UI component

This commit is contained in:
2026-01-27 16:46:46 +01:00
parent 203b00578a
commit d1b7104676
37 changed files with 1306 additions and 254 deletions
@@ -10,6 +10,10 @@ namespace Unheimlich.Data.Dialogues
[Tooltip("Name of the speaker (common to all texts in this conversation)")]
public string SpeakerName;
[Header("Display Mode")]
[Tooltip("Choose how to display dialogue text: World (3D space) or Screen (Canvas UI)")]
public DialogueDisplayMode DisplayMode = DialogueDisplayMode.World;
[Header("Dialogue Flow")]
[Tooltip("Ordered list of dialogue nodes for this conversation")]
public List<DialogueNode> DialogueNodes = new List<DialogueNode>();
@@ -80,7 +80,7 @@ public class DialogueCreatorWindow : EditorWindow
public int TargetNodeIndex = 1;
}
[MenuItem("Tools/Dialogue/Dialogue Creator")]
[MenuItem("Unheimlich/Tools/Dialogue/Dialogue Creator")]
public static void ShowWindow()
{
var window = GetWindow<DialogueCreatorWindow>("Dialogue Creator");
@@ -0,0 +1,8 @@
namespace Unheimlich.Data.Dialogues
{
public enum DialogueDisplayMode
{
World,
Screen
}
}
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: b10588959f3745441b157488d7a8f6e9