
Prototype: GemRB.SetSpellIcon(WindowIndex, ControlIndex, SPLResRef[, Type, Tooltip, Function])

Description: Sets Spell icon image on a Button control. Type determines the icon type, if set to 1 it will use the Memorised Icon instead of the Spellbook Icon

Parameters:
WindowIndex, ControlIndex  - the control's reference
SPLResRef                  - the name of the spell (.spl resref)
Type                       - (0 or 1)
Tooltip                    - if 1 , set the tooltip "F<n> <spell_name>"
Function                   - number to be used in the tooltip above

Return value: N/A

See also: SetItemIcon


MD5: b7895d38a8e3f389bb1f702ce99bcf57
