Add macro action "random" (#353)

This should be expanded upon by adding the ability to add weights to each macro.
This commit is contained in:
WarmUpTill
2021-11-20 03:52:12 -08:00
committed by GitHub
parent cce6e240c2
commit a1cae263c1
7 changed files with 355 additions and 2 deletions

View File

@@ -86,6 +86,9 @@ void AdvSceneSwitcher::on_macroRemove_clicked()
int idx = ui->macros->currentRow();
QString::fromStdString(switcher->macros[idx]->Name());
switcher->macros.erase(switcher->macros.begin() + idx);
for (auto &m : switcher->macros) {
m->ResolveMacroRef();
}
}
delete item;