GameTooltip::SetOwner
function · ui · primitive
- Address
0x5310d0· 781 bytes, up to0x5313dc- Signature
int __fastcall (lua_State *L)- Meaning
- Implements the GameTooltip method SetOwner, its pair in the table 0x854198
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/tooltip#setowner-and-the-anchor-modes
- Test
ui::luabind_530_setters
Finding: SetOwner and the anchor modes in ui: GameTooltip, the widget
SetOwner(owner, anchor, x, y) clears the tooltip, restores full alpha and stores the owner, the
mode and the offsets, which it converts from script units. The anchor names give the modes and the
point of the tooltip set to a point of the owner, offset by x and y:
| name | mode | tooltip point | owner point |
|---|---|---|---|
ANCHOR_LEFT, and an absent or unknown name | 0 | BOTTOMRIGHT | TOPLEFT |
ANCHOR_RIGHT | 1 | BOTTOMLEFT | TOPRIGHT |
ANCHOR_BOTTOMLEFT | 2 | TOPRIGHT | BOTTOMLEFT |
ANCHOR_BOTTOMRIGHT | 3 | TOPLEFT | BOTTOMRIGHT |
ANCHOR_TOPLEFT | 4 | BOTTOMLEFT | TOPLEFT |
ANCHOR_TOPRIGHT | 5 | BOTTOMRIGHT | TOPRIGHT |
ANCHOR_CURSOR | 6 | (next entry) | |
ANCHOR_NONE | 7 | all points cleared | |
ANCHOR_PRESERVE | 8 | points kept |
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 15
- GetScaledScreenAspect screencoord
- MultiplyByScreenScaleX screencoord
- GameTooltipSetOwner ui
- SStrCmpI storm
- lua_settop lua
- lua_type lua
- lua_isnumber lua
- lua_isstring lua
- lua_tonumber lua
- lua_tostring lua
- lua_touserdata lua
- lua_pushnumber lua
- lua_gettable lua
- lua_rawgeti lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.