Thread: Option Callbacks
-
August 14th, 2020, 05:08 #1
- Join Date
- Mar 2020
- Location
- Sydney, Australia
- Posts
- 247
Option Callbacks
Greetings All,
are callbacks for Settings Options restricted to a parameterless function or can parameters be passed along as well?
If we cannot pass parameters, is there a way to have a generic callback function that knows who called it and thus operate accordingly?Thanks In Advance,
D
-
August 14th, 2020, 06:38 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,559
The OptionsManager script is part of the CoreRPG ruleset. During the change event, that global script only passes the name of the key that changed.
Anything else you want to store for usage when the event is triggered should be saved off in onInit script events and/or other script functions you want to track.
Regards,
JPG
-
August 14th, 2020, 07:25 #3
- Join Date
- Mar 2020
- Location
- Sydney, Australia
- Posts
- 247
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks