Dialog fixing
This commit is contained in:
1 parent
8c200974c2
commit
84c8a7a27a
13 files changed
+169
-43
No files matched your search
@@ -146,6 +146,25 @@ namespace ZL
|
||||
scriptEngine.callCutsceneCompleteCallback(cutsceneId);
|
||||
});
|
||||
|
||||
dialogueSystem.setOnDialogueLineStarted([this](const std::string& fn) {
|
||||
try { scriptEngine.callActivateFunction(fn); }
|
||||
catch (const std::exception& e) {
|
||||
std::cerr << "[dialogue] line callback error: " << e.what() << "\n";
|
||||
}
|
||||
});
|
||||
dialogueSystem.setOnCutsceneLineStarted([this](const std::string& fn) {
|
||||
try { scriptEngine.callActivateFunction(fn); }
|
||||
catch (const std::exception& e) {
|
||||
std::cerr << "[cutscene] line callback error: " << e.what() << "\n";
|
||||
}
|
||||
});
|
||||
dialogueSystem.setOnCutsceneFadeInComplete([this](const std::string& fn) {
|
||||
try { scriptEngine.callActivateFunction(fn); }
|
||||
catch (const std::exception& e) {
|
||||
std::cerr << "[cutscene] fade-in callback error: " << e.what() << "\n";
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
void Location::loadTeleportZones(const std::string& jsonPath, const char* zipFile)
|
||||
|
||||
Reference in new issue
Block a user