GetScriptFlagArg
function · ui · primitive
- Address
0x6f1c10· 213 bytes, up to0x6f1ce4- Signature
int32_t __fastcall (lua_State *L, int index, int32_t defaultValue)- Meaning
- Reads a script argument as a flag: nil 0, boolean itself, number truncated whole, string by first letter or keyword
- Confidence
- verified, proof one
- Finding
- ui/actionuse#reading-a-script-flag
Finding: Reading a script flag in ui: placing, picking up and using actions
0x6f1c10(L, index, default) reads a Lua argument as a flag. A missing argument, a light userdata
and a table, function, userdata or thread give the default. Nil gives 0. A boolean gives itself. A
number gives the low 32 bits of its 64-bit truncation (0 for NaN, ±inf or ≥2^63), so 0.6 gives 0. A string gives 0 when its first
character is 0, F, f, N or n, and 1 when it is 1 to 9, T, t, Y or y. Any other
string is compared without case with off and disabled, giving 0, with on and enabled, giving 1,
and otherwise gives the default. The string "0" is therefore false although every Lua 5.0 string is
true.
The derivation is in the doc.
Callers 65
- Script::SetAddonVersionCheck glue
- Script::SetMovieSubtitles glue
- Script::SurveyNotificationDone glue
- Script::RequestRealmList glue
- Script::SetPreferredInfo glue
- Script::TargetNearestEnemy ui
- Script::TargetNearestFriend ui
- Script::TargetNearestPartyMember ui
- Script::TargetNearestRaidMember ui
- Script::TargetByName ui
- Script::FollowByName ui
- Script::ShowHelm ui
- Script::ShowCloak ui
- Script::SetEuropeanNumbers ui
- SetLoggingFlag ui
- Script::SetChatWindowLocked ui
- Script::SetChatWindowShown ui
- Script::ShowWorldMapArrowFrame ui
- Script::ShowMiniWorldMapArrowFrame ui
- Script::JoinBattlefield ui
- Script::AcceptBattlefieldPort ui
- Script::CastSpell ui
- Script::CastSpellByName ui
- Script::ConfirmReadyCheck ui
- Script::CloseLoot ui
- Script::UseInventoryItem ui
- Script::GetNumGuildMembers ui
- Script::SetGuildRosterShowOffline ui
- Script::GuildControlSetRankFlag ui
- Script::UseAction ui
- Script::SetActionBarToggles ui
- Script::CreateMacro ui
- Script::EditMacro ui
- Script::UseContainerItem ui
- Script::CameraOrSelectOrMoveStop input
- Script::UnitBuff ui
- Script::UnitDebuff ui
- GameTooltip::AddLine ui
- GameTooltip::AddDoubleLine ui
- GameTooltip::SetText ui
- GameTooltip::SetUnitBuff ui
- GameTooltip::SetUnitDebuff ui
- Script::SetWhoToUI net
- Frame::SetToplevel ui
- Frame::SetMovable ui
- Frame::SetResizable ui
- Frame::SetUserPlaced ui
- Frame::SetClampedToScreen ui
- Frame::EnableKeyboard ui
- Frame::EnableMouse ui
- Frame::EnableMouseWheel ui
- Frame::SetBackdrop ui
- Button::SetButtonState ui
- MovieFrame::EnableSubtitles ui
- ScrollingMessageFrame::SetFading ui
- MessageFrame::SetFading ui
- EditBox::SetAutoFocus ui
- EditBox::SetMultiLine ui
- EditBox::SetNumeric ui
- EditBox::SetPassword ui
- EditBox::SetAltArrowKeyMode ui
- CheckButton::SetChecked ui
- Texture::SetTexCoordModifiesRect ui
- Texture::SetDesaturated ui
- FontString::SetNonSpaceWrap ui
Callees 6
- __ftol crt
- SStrCmpI storm
- lua_type lua
- lua_tonumber lua
- lua_toboolean lua
- lua_tostring lua
Calls and jumps by a bare address, from tables/calls.tsv.