mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-06 08:36:04 -05:00
Add temp variable support to window condition
This commit is contained in:
@@ -96,6 +96,7 @@ bool MacroConditionWindow::WindowRegexMatches(
|
||||
void MacroConditionWindow::SetVariableValueBasedOnMatch(
|
||||
const std::string &matchWindow)
|
||||
{
|
||||
SetTempVarValue("window", matchWindow);
|
||||
if (!IsReferencedInVars()) {
|
||||
return;
|
||||
}
|
||||
@@ -173,6 +174,15 @@ std::string MacroConditionWindow::GetShortDesc() const
|
||||
return _window;
|
||||
}
|
||||
|
||||
void MacroConditionWindow::SetupTempVars()
|
||||
{
|
||||
AddTempvar(
|
||||
"window",
|
||||
obs_module_text("AdvSceneSwitcher.tempVar.window.window"),
|
||||
obs_module_text(
|
||||
"AdvSceneSwitcher.tempVar.window.window.description"));
|
||||
}
|
||||
|
||||
MacroConditionWindowEdit::MacroConditionWindowEdit(
|
||||
QWidget *parent, std::shared_ptr<MacroConditionWindow> entryData)
|
||||
: QWidget(parent),
|
||||
|
||||
Reference in New Issue
Block a user