mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-15 23:50:38 +00:00
StatusBar gains SetReverseFill / GetReverseFill, SetRotatesTexture / GetRotatesTexture, SetFillStyle / GetFillStyle (with Enum.StatusBarFillStyle), SetColorFill, and SetStatusBarDesaturated / IsStatusBarDesaturated / SetStatusBarDesaturation / GetStatusBarDesaturation. 1.12 draws the fill by cropping the bar texture from its bottom-left corner. A bar with a mode on takes 4.3.4's layout instead: its OnFrameUpdate co-hook sets the coordinates and moves the texture's four points, with the crop flag off. A bar with every mode off runs 1.12's own update. SetColorFill creates a bar texture the way SetStatusBarTexture does when the bar has none, then fills it through the engine's Texture:SetTexture handler. The desaturation methods use the bar texture's Texture::Desaturation state, now exposed in texture/Desaturation.h.