CSimpleMessageScrollFrame::GetCurrentScroll
function · ui · primitive
- Address
0x788ac0· 41 bytes, up to0x788ae8- Signature
int32_t __thiscall (CSimpleMessageScrollFrame *this)- Meaning
- Returns the write position less the scroll position plus the count, modulo the count, or 0 when empty
- Confidence
- verified, proof one
- Finding
- ui/messageframe#the-current-scroll
- Test
ui::smf_current_scroll_difftest
Finding: The current scroll in ui: MessageFrame and ScrollingMessageFrame
GetCurrentScroll() answers how many lines the frame is scrolled up from the newest:
(position − scroll + count) mod count, the write position +0x344, the scroll position +0x348
and the line count +0x33c as signed integers and the remainder of a signed division, so it takes
the dividend's sign. It answers 0 with no lines or with the write position −1. The method pushes the
result as a number.
The derivation is in the doc.
Callers 1
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.