Enum based dialogue field solution for showing different portaits?
Posted: Tue Sep 27, 2022 3:22 pm
I wanted to explore making a solution for showing portraits that didn't involve prepending dialogue text with [pic={#}]. My preferred solution would be something along the lines of creating a dialogue entry field with a type that matches a PortraitEmotion enum (e.g. {Happy, Neutral, Sad}), and just setting it in the DialogueEntry editor.
Also, this pseudocode represents the logic I want my subtitle panels to follow:
What would be the best way to determine the speakerHasPortraitImage bool, and what would be the best way to handle panel activation based off it?
Also, this pseudocode represents the logic I want my subtitle panels to follow:
Code: Select all
speakerHasPortraitImage ? usePortraitSubtitleUI() : usePlainSubtitleUI();