As this is code that runs in a control (windowlist), any extensions or layered rulesets that change the code will be layering on top of the original code. You can access the original code by using the
super variable - you may need to write some code to cycle through all the layers of
super variables until you find the highest level instance - in case there are multiple extensions overriding it.
Access a function the next level up by using super.<function name> - but check for "super" first - e.g. to check for a higher level onInit() function use something like:
if super and super.onInit then ...
Do a search for
super. in any layered ruleset to see some examples.
Some info on script block scope and the
super variable here:
https://fantasygroundsunity.atlassia...pt-Block-Scope