Some base for cutscene
This commit is contained in:
1 parent
3ba8a2f44b
commit
54cc118df7
11 files changed
+270
-444
No files matched your search
@@ -299,13 +299,13 @@ void DialogueRuntime::presentLine(const Node& node) {
|
||||
presentation.fullText = node.text;
|
||||
presentation.visibleText.clear();
|
||||
presentation.portraitPath = node.portrait;
|
||||
presentation.backgroundPath.clear();
|
||||
|
||||
presentation.choices.clear();
|
||||
presentation.selectedChoice = -1;
|
||||
presentation.revealCompleted = node.text.empty();
|
||||
presentation.showCutsceneSubtitle = false;
|
||||
presentation.cutsceneSkippable = false;
|
||||
presentation.cutsceneCamera = {};
|
||||
|
||||
presentation.cutsceneImages.clear();
|
||||
presentation.cutsceneGlobalFadeAlpha = 1.0f;
|
||||
presentation.cutsceneBlackAlpha = 0.0f;
|
||||
@@ -353,12 +353,12 @@ void DialogueRuntime::presentChoices(const Node& node) {
|
||||
presentation.fullText = node.text;
|
||||
presentation.visibleText = node.text;
|
||||
presentation.portraitPath = node.portrait;
|
||||
presentation.backgroundPath.clear();
|
||||
|
||||
presentation.selectedChoice = -1;
|
||||
presentation.revealCompleted = true;
|
||||
presentation.showCutsceneSubtitle = false;
|
||||
presentation.cutsceneSkippable = false;
|
||||
presentation.cutsceneCamera = {};
|
||||
|
||||
presentation.cutsceneImages.clear();
|
||||
presentation.cutsceneGlobalFadeAlpha = 1.0f;
|
||||
presentation.cutsceneBlackAlpha = 0.0f;
|
||||
|
||||
@@ -115,19 +115,15 @@ struct PresentationModel {
|
||||
std::string fullText;
|
||||
std::string visibleText;
|
||||
std::string portraitPath;
|
||||
std::string backgroundPath;
|
||||
std::vector<PresentedChoice> choices;
|
||||
int selectedChoice = -1;
|
||||
bool revealCompleted = true;
|
||||
bool showCutsceneSubtitle = false;
|
||||
bool cutsceneSkippable = false;
|
||||
|
||||
ZL::Cutscene::CutsceneCameraBlendState cutsceneCamera;
|
||||
std::vector<ZL::Cutscene::PresentedCutsceneImage> cutsceneImages;
|
||||
float cutsceneGlobalFadeAlpha = 1.0f;
|
||||
float cutsceneBlackAlpha = 0.0f;
|
||||
int backgroundWidth = 1280;
|
||||
int backgroundHeight = 720;
|
||||
};
|
||||
|
||||
} // namespace ZL::Dialogue
|
||||
Reference in new issue
Block a user