benilla-re systems structs docs

s_twoFiftyFive

global · ui

Address
0x7ffe58 · 4 bytes, up to 0x7ffe5b
Type
const float
Meaning
Holds 255.0, the alpha scale of Frame:SetAlpha
Confidence
verified, proof two
Finding
ui/visibility#alpha

Finding: Alpha in ui: visibility, alpha and scale

A frame's alpha is a byte at +0xc8, 255 at construction. Setting it stores the byte and, when it changed, refreshes each region and sets every child's alpha to the same byte, recursively: a parent's alpha replaces its children's, it does not multiply them. The Lua SetAlpha clamps its number to 0 to 1, NaN going to 1, multiplies by 255 and truncates.

The derivation is in the doc.