2022-09-08 11:22 PM
I'm looking for some way to use the C++ API (like opening a dialog or creating a wall element) on a timer basis.
Something along the lines of when the addon is loaded register a callback (lambda/function pointer) that runs some functionality every minute.
Otherwise I'm thinking of spawning a thread in RegisterInterface that wakes up every minute and does what i want. But I don't think the C++ API likes being used from a separate thread...
Solved! Go to Solution.
2022-09-12 12:50 AM
I stumbled across the GS::MessageLoopExectuor class, looks like it can be useful to run heavy tasks without freezing up the UI. It also has some "Wait" methods that looks like something i can use.
2022-09-12 12:50 AM
I stumbled across the GS::MessageLoopExectuor class, looks like it can be useful to run heavy tasks without freezing up the UI. It also has some "Wait" methods that looks like something i can use.