From 34bb0b54222c1c0f3450c56e76f89f192d77374b Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Mon, 17 Jul 2023 22:20:39 +1000 Subject: Initial voice HUD indicator setup --- source/frontend/StarInterfaceLuaBindings.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/frontend/StarInterfaceLuaBindings.cpp') 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 cooldown, Maybe springState) { + mainInterface->queueMessage(message, cooldown, springState.value(0)); + }); + + return callbacks; } -- cgit v1.2.3