Display items in inventory

This commit is contained in:
2024-09-09 02:27:03 -07:00
parent 8ac19797f0
commit ad5213a940
11 changed files with 558 additions and 203 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>();