mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-09 18:16:15 -05:00
Add macro action to stop other macros
This commit is contained in:
@@ -9,6 +9,7 @@ enum class PerformMacroAction {
|
||||
UNPAUSE,
|
||||
RESET_COUNTER,
|
||||
RUN,
|
||||
STOP,
|
||||
};
|
||||
|
||||
class MacroActionMacro : public MacroRefAction {
|
||||
|
||||
@@ -88,6 +88,7 @@ public:
|
||||
bool MatchOnChange() { return _matchOnChange; }
|
||||
int GetCount() { return _count; };
|
||||
void ResetCount() { _count = 0; };
|
||||
void Stop() { _stop = true; }
|
||||
std::deque<std::shared_ptr<MacroCondition>> &Conditions()
|
||||
{
|
||||
return _conditions;
|
||||
@@ -126,6 +127,7 @@ private:
|
||||
obs_hotkey_id _unpauseHotkey = OBS_INVALID_HOTKEY_ID;
|
||||
obs_hotkey_id _togglePauseHotkey = OBS_INVALID_HOTKEY_ID;
|
||||
|
||||
bool _die = false;
|
||||
bool _stop = false;
|
||||
bool _done = true;
|
||||
std::thread _thread;
|
||||
|
||||
Reference in New Issue
Block a user