Mini demo with all features
This commit is contained in:
@@ -16,6 +16,17 @@ namespace Unheimlich.Data.Dialogues
|
||||
[Tooltip("Default scale multiplier for spawned choices (1.0 = normal size)")]
|
||||
public float DefaultScaleMultiplier = 1.0f;
|
||||
|
||||
[Tooltip("Minimum scale variation multiplier (e.g., 0.5 = 50% of base scale)")]
|
||||
[Range(0.1f, 2f)]
|
||||
public float MinScaleVariation = 0.5f;
|
||||
|
||||
[Tooltip("Maximum scale variation multiplier (e.g., 1.5 = 150% of base scale)")]
|
||||
[Range(0.1f, 2f)]
|
||||
public float MaxScaleVariation = 1.5f;
|
||||
|
||||
[Tooltip("Enable random scale variation for each word")]
|
||||
public bool EnableScaleVariation = false;
|
||||
|
||||
[Header("Spawn Settings")]
|
||||
[Tooltip("Radius around anchor where choices spawn")]
|
||||
public float SpawnRadius = 2f;
|
||||
|
||||
@@ -9,6 +9,9 @@ namespace Unheimlich.Data.Dialogues
|
||||
[Header("Choice Content")]
|
||||
[Tooltip("Localized text displayed on the choice button")]
|
||||
public OctoLocalizedTextData ChoiceText;
|
||||
|
||||
[HideInInspector]
|
||||
public string ChoiceTextOverride;
|
||||
|
||||
[Header("Flow")]
|
||||
[Tooltip("Direct reference to the next DialogueNode")]
|
||||
@@ -20,6 +23,9 @@ namespace Unheimlich.Data.Dialogues
|
||||
|
||||
public string GetLocalizedChoiceText()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(ChoiceTextOverride))
|
||||
return ChoiceTextOverride;
|
||||
|
||||
if (ChoiceText != null)
|
||||
return OctoLocalization.GetLocalizedText(ChoiceText);
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using OctoCore.Localization;
|
||||
using Unheimlich.Data.DetectiveBoard;
|
||||
|
||||
namespace Unheimlich.Data.Dialogues
|
||||
{
|
||||
@@ -19,6 +20,10 @@ namespace Unheimlich.Data.Dialogues
|
||||
[Tooltip("For end nodes (no choices), delay in seconds before automatic close. 0 = requires player interaction to close")]
|
||||
public float AutoCloseDelay = 3f;
|
||||
|
||||
[Header("Detective Board Integration")]
|
||||
[Tooltip("Clue to unlock when this node is reached. Useful for end nodes to unlock evidence after a conversation")]
|
||||
public ClueData ClueToUnlock;
|
||||
|
||||
public string GetLocalizedDialogueText()
|
||||
{
|
||||
if (DialogueText != null)
|
||||
|
||||
Reference in New Issue
Block a user