Rat dialogue

This commit is contained in:
2024-09-09 14:56:22 -07:00
parent 3e0846223e
commit 6e97058905
64 changed files with 136 additions and 1887 deletions

View File

@@ -64,8 +64,10 @@ namespace DialogueManagerRuntime
}
}
if (!isWaitingForInput) return;
if (dialogueLine.Responses.Count > 0) return;
if (!isWaitingForInput)
return;
if (dialogueLine.Responses.Count > 0)
return;
GetViewport().SetInputAsHandled();
@@ -104,22 +106,6 @@ namespace DialogueManagerRuntime
GetViewport().SetInputAsHandled();
}
public override async void _Notification(int what)
{
// Detect a change of locale and update the current dialogue line to show the new language
if (what == NotificationTranslationChanged)
{
float visibleRatio = dialogueLabel.VisibleRatio;
DialogueLine = await DialogueManager.GetNextDialogueLine(resource, DialogueLine.Id, temporaryGameStates);
if (visibleRatio < 1.0f)
{
dialogueLabel.Call("skip_typing");
}
}
}
public async void Start(Resource dialogueResource, string title, Array<Variant> extraGameStates = null)
{
temporaryGameStates = extraGameStates ?? new Array<Variant>();