callback function when world settings change

Posted by Fiendish on Mon 27 May 2019 09:15 PM — 4 posts, 15,667 views.

USA Global Moderator #0
Sometimes plugins try to replicate world attributes, such as the main output font or the chosen color for ANSI Black or the output text offset, but there's no notification when those values change.
Australia Forum Administrator #1
What it be acceptable for you to just check all settings every 5 seconds or so and see if any change? It could be a simple loop that compares the "now" table to the "before" table.
Australia Forum Administrator #2
Do you mean a *user* (GUI) change, or any change, eg. by a script?
USA Global Moderator #3
That's a good question. I hadn't considered changes by script, but I think probably both.