Region::SetWidth
function · ui · primitive
- Address
0x7a1f20· 264 bytes, up to0x7a2027- Signature
int __fastcall (lua_State *L)- Meaning
- Converts a script number to layout units and sets the width through layout slot 0x14
- Confidence
- verified, proof two
- Name from
- the community database (idb)
- Finding
- ui/methods#script-numbers-the-setters-store
- Test
ui::luabind_7a1_setters,ui::region_size_setters_whole
Finding: Script numbers the setters store in ui: the Frame and Region methods
SetWidth(v) passes S(v) = RN24(K1 · RN24(RN24(v) / (1024·A))) to the layout part's slot 0x14,
with no layout scale; the layout part multiplies by the layout scale only when it resolves. A
non-number raises Usage: %s:SetWidth(width).
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 9
- GetScaledScreenAspect screencoord
- MultiplyByScreenScaleX screencoord
- lua_settop lua
- lua_type lua
- lua_isnumber lua
- lua_tonumber lua
- lua_touserdata lua
- lua_rawgeti lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.