GetRangedIconPath
function · ui · primitive
- Address
0x4e6990· 184 bytes, up to0x4e6a47- Signature
const char * __cdecl ()- Meaning
- Returns the icon of the equipped ranged weapon, or null
- Confidence
- verified, proof one
- Finding
- ui/actionbar#attack-and-ranged-icons
Finding: Attack and ranged icons in ui: action bars
A spell whose first effect is 78 shows 0x4e6870 instead of its own icon, on the action bar
(0x4e6ab2), in the spellbook (0x4b3f8a) and on the cursor (0x494d56). The helper returns
nil without a player. A nonzero form byte ([unit+0x110]+0x212) with a SpellShapeshiftForm record
whose icon field (+0x34) names a SpellIcon gives that icon. Otherwise a disarmed player
(UNIT_FIELD_FLAGS & 0x200000) whose main hand holds a weapon gives Interface\Buttons\Spell-Reset.
Otherwise the main-hand item (equipment slot 15) gives its inventory icon, or Spell-Reset with no
item. A ranged-repeat spell shows 0x4e6990: the ranged item (slot 17) icon, or nil when there is none
or its subclass is 16, sending the caller to the spell's own icon.
The derivation is in the doc.
Callers 3
Callees 6
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- ClientDBStringLookup unassigned
- CGItem_C::GetInventoryIcon objectlayer
- GetItemSubClass objectlayer
- SStrPrintf storm
Calls and jumps by a bare address, from tables/calls.tsv.