HomeWildfire Games

Pass the GUI page pointer CGUI* to the IGUIObject and derived classes upon…

Description

Pass the GUI page pointer CGUI* to the IGUIObject and derived classes upon construction, instead of on stray cases.

Call JS_AddExtraGCRootsTracer and JS_RemoveExtraGCRootsTracer depending on JS::Heap use instead of on CGUI page link setup.
GUIObjects should be able to access the GUI page independent of the scripting (for example to obtain PredefinedColors, refs D2108).

Refs: D2108, rP16214
Comments By: wraitii