CSimpleStatusBar::GetFill
function · ui · primitive
- Address
0x783380· 49 bytes, up to0x7833b0- Meaning
- Returns a status bar's fill, (value - minimum) / (maximum - minimum), or 0
- Confidence
- verified, proof one
- Finding
- ui/slider#a-status-bars-value
- Test
ui::glue_767_783380_guarded_fraction
Finding: A status bar's value in ui: Slider and StatusBar
SetMinMaxValues(a, b) stores the smaller of the two as the minimum and b as the maximum, so a
reversed pair gives an empty range at b, and runs OnValueChanged again for the current value.
SetValue clamps to the range, with no step; an unchanged value does nothing, any other is stored
and OnValueChanged runs with it. The fill is (value − minimum)/(maximum − minimum), or 0 for an
empty range.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.