mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-14 21:31:45 -05:00
Enable variable support
This commit is contained in:
@@ -293,6 +293,7 @@ bool MacroConditionVideo::CheckOCR()
|
||||
return match.hasMatch();
|
||||
}
|
||||
|
||||
SetVariableValue(text);
|
||||
return text == std::string(_ocrParamters.text);
|
||||
}
|
||||
|
||||
@@ -305,6 +306,10 @@ bool MacroConditionVideo::Compare()
|
||||
_areaParameters.area.height);
|
||||
}
|
||||
|
||||
if (_condition != VideoCondition::OCR) {
|
||||
SetVariableValue("");
|
||||
}
|
||||
|
||||
switch (_condition) {
|
||||
case VideoCondition::MATCH:
|
||||
return _screenshotData.image == _matchImage;
|
||||
|
||||
@@ -22,7 +22,7 @@ class PreviewDialog;
|
||||
|
||||
class MacroConditionVideo : public MacroCondition {
|
||||
public:
|
||||
MacroConditionVideo(Macro *m) : MacroCondition(m){};
|
||||
MacroConditionVideo(Macro *m) : MacroCondition(m, true){};
|
||||
bool CheckCondition();
|
||||
bool Save(obs_data_t *obj) const;
|
||||
bool Load(obs_data_t *obj);
|
||||
|
||||
Reference in New Issue
Block a user