FormatDurationFloat
function · ui · primitive
- Address
0x52fbd0· 350 bytes, up to0x52fd2d- Signature
void __fastcall (void *arg1, const char *prefix, float ms, const char *extra, uint32_t arg5)- Meaning
- Formats a duration with the unit and the unrounded count through the global string of the prefix
- Confidence
- verified, proof one
- Finding
- ui/spelltokens#tokens-that-compute-a-value
- Test
ui::time_band_select
Finding: Tokens that compute a value in ui: Spell description tokens
$c is the spell's power cost and $p its cost per second. $d is the duration: none reads
SPELL_DURATION_UNTIL_CANCELLED; a whole number of its largest unit (to 0.01) prints INT_SPELL_DURATION
with the integer count, and any other SPELL_DURATION with a one-decimal count. $r is the range
record's maximum, modified, with one decimal. $t is the effect's period in seconds, 5 when the word at
+0x60 has bit 0, else the period at +0x178, modified (op 19). $z is the area name of the player's bind
point, or HOME_INN.
The derivation is in the doc.
Callers 1
Callees 2
- SStrPrintf storm
- FrameScript_GetText ui
Calls and jumps by a bare address, from tables/calls.tsv.