Add option to highlight recently executed macros on the Macro tab

This commit is contained in:
WarmUpTill
2022-01-30 22:17:41 +01:00
committed by WarmUpTill
parent dc698e426d
commit 1e7726bcfc
8 changed files with 135 additions and 60 deletions

View File

@@ -117,7 +117,6 @@ public slots:
void on_runMacroInParallel_stateChanged(int value);
void on_runMacroOnChange_stateChanged(int value);
void on_macros_currentRowChanged(int idx);
void on_macros_itemChanged(QListWidgetItem *);
void on_conditionAdd_clicked();
void on_conditionRemove_clicked();
void on_actionAdd_clicked();
@@ -140,6 +139,7 @@ public slots:
void RemoveMacroCondition(int idx);
void MoveMacroConditionUp(int idx);
void MoveMacroConditionDown(int idx);
void HighlightMatchedMacros();
void on_screenRegionSwitches_currentRowChanged(int idx);
void on_showFrame_clicked();
@@ -171,6 +171,7 @@ public slots:
void on_showTrayNotifications_stateChanged(int state);
void on_uiHintsDisable_stateChanged(int state);
void on_useVerticalMacroControls_stateChanged(int state);
void on_highlightExecutedMacros_stateChanged(int state);
void on_hideLegacyTabs_stateChanged(int state);
void on_exportSettings_clicked();

View File

@@ -106,6 +106,9 @@ public:
// Helper function for plugin state condition regarding scene change
bool SwitchesScene();
// UI helpers for the macro tab
bool WasExecutedRecently();
private:
void SetupHotkeys();
void ClearHotkeys();
@@ -127,6 +130,8 @@ private:
obs_hotkey_id _unpauseHotkey = OBS_INVALID_HOTKEY_ID;
obs_hotkey_id _togglePauseHotkey = OBS_INVALID_HOTKEY_ID;
bool _wasExecutedRecently = false;
bool _die = false;
bool _stop = false;
bool _done = true;

View File

@@ -88,6 +88,7 @@ struct SwitcherData {
bool disableHints = false;
bool useVerticalMacroControls = false;
bool hideLegacyTabs = false;
bool highlightExecutedMacros = false;
bool showSystemTrayNotifications = false;
bool showFrame = false;
bool transitionOverrideOverride = false;