Currently, on initialization, hud_reloadscheme is a forced to call by both the health and ammo huds. The main intention of these is so the customization from scripts/HudLayout.res gets applied, however these panels should really instead be using EditablePanel as the inherited panel class instead of just Panel as EditablePanel provides the utility to apply those res settings instead. There are visible issue that came around from this, mostly the MOTD panel resetting the data and making look like the MOTD didn't get applied when its really just resetted after it applied.
Currently, on initialization,
hud_reloadscheme
is a forced to call by both the health and ammo huds. The main intention of these is so the customization fromscripts/HudLayout.res
gets applied, however these panels should really instead be usingEditablePanel
as the inherited panel class instead of justPanel
asEditablePanel
provides the utility to apply those res settings instead. There are visible issue that came around from this, mostly the MOTD panel resetting the data and making look like the MOTD didn't get applied when its really just resetted after it applied.