calling the main Plugin class from a utility class - Printable Version +- Hot Door CORE Forum (http://hotdoorcore.com/forum) +-- Forum: All forums (http://hotdoorcore.com/forum/forumdisplay.php?fid=1) +--- Forum: General discussion (http://hotdoorcore.com/forum/forumdisplay.php?fid=3) +--- Thread: calling the main Plugin class from a utility class (/showthread.php?tid=340) |
calling the main Plugin class from a utility class - Rick Johnson - 03-18-2023 I have a class owned by my main Plugin class that may change some plugin parameters at unpredictable times. My plugin should react when those changes take place, but how can I do that? HDI_CORE_PLUGIN doesn't seem to offer a path back to myPlugin:lugin class to to run an update method. Is there a simple way to send a notifier from the utility class to the main Plugin class? Those parameters are checked periodically, but users will expect changes "on demand" and I don't want to waste clock cycles with a timer that continually checks settings that rarely change. |