Add support to resolve variables on action queue add

This commit is contained in:
WarmUpTill
2024-03-01 23:42:12 +01:00
committed by WarmUpTill
parent f8dadd38b4
commit 03e71e9183
82 changed files with 835 additions and 248 deletions

View File

@@ -198,6 +198,22 @@ std::string MacroActionSwitchScene::GetShortDesc() const
return _scene.ToString();
}
std::shared_ptr<MacroAction> MacroActionSwitchScene::Create(Macro *m)
{
return std::make_shared<MacroActionSwitchScene>(m);
}
std::shared_ptr<MacroAction> MacroActionSwitchScene::Copy() const
{
return std::make_shared<MacroActionSwitchScene>(*this);
}
void MacroActionSwitchScene::ResolveVariablesToFixedValues()
{
_scene.ResolveVariables();
_duration.ResolveVariables();
}
static inline void populateTypeSelection(QComboBox *list)
{
for (const auto &[_, name] : sceneTypes) {