To obtain the current User Preferences object:
gms-get-current-preference
(handle: integer) -> prefs: class gms-preferences
When you change the current User Preferences object, or register the user for a different User preference's object, the change does not take effect immediately: the previous preferences still exist in the menu instances, and the same User Preferences object is still associated with the G2 window.
To put changes to the current User Preferences object into effect:
gms-refresh-from-preferences
(handle: integer)
To put a different User Preferences object into effect:
gms-switch-preferences
(handle: integer, preferences: class gms-user-preferences)