Format example

This commit is contained in:
WarmUpTill 2022-08-17 20:14:01 +02:00
parent 85e715dc75
commit bcdcaed136

View File

@ -70,14 +70,14 @@ The key functions to add conditions or are the Register() functions.
```
MacroActionFactory::Register(
MacroActionExample::id, // Unique string identifying this action type
{
MacroActionExample::id, // Unique string identifying this action type
{
MacroActionExample::Create, // Function called to create the object performing the action
MacroActionExampleEdit::Create, // Function called to create the widget configure the action
"AdvSceneSwitcher.action.example" // User facing name of the action type
"AdvSceneSwitcher.action.example" // User facing name of the action type
}
);
);
```
If your intention is to add macro functionality which depends on external libraries, which is likely not to exist on all user setups, try to follow the examples under `src\macro-external`.
These are basically plugins themselves that get attempted to be loaded on startup of the advanced scene switcher.
These are basically plugins themselves that get attempted to be loaded on startup of the advanced scene switcher.