diff --git a/src/controllers/hotkeys/ActionNames.hpp b/src/controllers/hotkeys/ActionNames.hpp index aa335a16c..538fc42e1 100644 --- a/src/controllers/hotkeys/ActionNames.hpp +++ b/src/controllers/hotkeys/ActionNames.hpp @@ -158,6 +158,7 @@ inline const std::map actionNames{ {"addMiscMessage", ActionDefinition{"Debug: Add misc test message"}}, {"addRewardMessage", ActionDefinition{"Debug: Add reward test message"}}, + {"addSubMessage", ActionDefinition{"Debug: Add sub test message"}}, #endif {"moveTab", ActionDefinition{ diff --git a/src/widgets/Window.cpp b/src/widgets/Window.cpp index 74f024993..f976b0c53 100644 --- a/src/widgets/Window.cpp +++ b/src/widgets/Window.cpp @@ -249,6 +249,14 @@ void Window::addDebugStuff(HotkeyController::HotkeyMap &actions) getApp()->twitch->addFakeMessage(msg); return ""; }); + + actions.emplace("addSubMessage", [=](std::vector) -> QString { + const auto &messages = getSampleSubMessages(); + static int index = 0; + const auto &msg = messages[index++ % messages.size()]; + getApp()->twitch->addFakeMessage(msg); + return ""; + }); #endif }