Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend/StarInterfaceLuaBindings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/frontend/StarInterfaceLuaBindings.cpp')
-rw-r--r--source/frontend/StarInterfaceLuaBindings.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/frontend/StarInterfaceLuaBindings.cpp b/source/frontend/StarInterfaceLuaBindings.cpp
index 14b2e7c..d5e0960 100644
--- a/source/frontend/StarInterfaceLuaBindings.cpp
+++ b/source/frontend/StarInterfaceLuaBindings.cpp
@@ -27,6 +27,11 @@ LuaCallbacks LuaBindings::makeInterfaceCallbacks(MainInterface* mainInterface) {
return GuiContext::singleton().interfaceScale();
});
+ callbacks.registerCallback("queueMessage", [mainInterface](String const& message, Maybe<float> cooldown, Maybe<float> springState) {
+ mainInterface->queueMessage(message, cooldown, springState.value(0));
+ });
+
+
return callbacks;
}