From ec511705ce96d80d4e2a36054769c211448e8ec8 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 11 Feb 2021 20:47:46 -0500 Subject: Added choice prompts "A presses" are also no longer special values in the lines list, but are rather a field on the MessageLine object. --- src/script_system.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/script_system.cpp') diff --git a/src/script_system.cpp b/src/script_system.cpp index 0fa0c1b..21d4090 100644 --- a/src/script_system.cpp +++ b/src/script_system.cpp @@ -21,8 +21,10 @@ ScriptSystem::ScriptSystem(Game& game) : game_(game) { engine_.new_usertype( "message", "displayMessage", &MessageSystem::displayMessage, + "showChoice", &MessageSystem::showChoice, "hideCutsceneBars", &MessageSystem::hideCutsceneBars, - "isMessageActive", sol::property(&MessageSystem::isMessageActive)); + "isMessageActive", sol::property(&MessageSystem::isMessageActive), + "getChoiceSelection", &MessageSystem::getChoiceSelection); engine_.new_usertype( "animation", -- cgit 1.4.1