Hook handlers of the theme library, registered as flThemeHooks. They load the default theme once the local player has been initialized and reload the active theme when the code is refreshed. They live in the hooks folder rather than next to the Theme library because a code refresh clears the hook cache and only the hooks folder is included again every time; the library itself is only included once.

Summary

Methods

Reloads the active theme when the code is refreshed.
Loads the default theme of the schema, or the 'factory' theme if there is none.

Methods

theme_hooks:OnReloaded()

client packages/active_ui/hooks/cl_theme_hooks.lua:15

Reloads the active theme when the code is refreshed.

theme_hooks:PlayerInitialized()

client packages/active_ui/hooks/cl_theme_hooks.lua:10

Loads the default theme of the schema, or the 'factory' theme if there is none.

Defined in