TextBlockSetShadow
function · unassigned · orchestration
- Address
0x44d3b0· 73 bytes, up to0x44d3f8- Signature
void __fastcall (void *block, const float *offset, uint32_t color)- Meaning
- Sets a text block's shadow colour and its offset divided by the screen scales; error 0x57 for no block
- Confidence
- verified, proof one
- Finding
- ui/fontstring#shadow-default-and-units
Finding: Shadow default and units in ui: FontString and Font
A <Shadow> element, in a FontString or a Font, presets the colour 0xff000000, opaque black, and the
offset (0.001, −0.001) before it reads its children; a FontString then sets its shadow bit whatever the
offset, zero included. <Color> replaces the colour. <Offset> replaces the offset through 0x6f1eb0, which divides x and y by
1024·A and multiplies by K1. The default skips that conversion: it is 0.001 layout units, 0.768·√(a²+1)
FrameXML units at aspect a, 1.28 at 4:3. The draw multiplies the stored offset by the string's scale +0x7c,
rounds each part to a float, and divides x by K1 and y by K2. GetShadowOffset answers float(1024·A·v) / K1 for each part: ±1.2800000417232507 for the default at 4:3, ±1.566511890386744 at 16:9.
The derivation is in the doc.
Callers 3
- CSimpleFontString::UpdateFrameAlpha ui
- CSimpleFontString::ApplyShadow ui
- CSimpleFontString::RebuildString ui
Callees 3
- UnscaleScreenXY screencoord
- GxuStringSetShadow unassigned
- SErrSetLastError storm
Calls and jumps by a bare address, from tables/calls.tsv.