afxSpellButton
A GUI button with some special features that are useful for casting AFX spells.
Public Functions
int
Get the free targeting style used by the spell.
int
Get the spell's datablock.
string
Get the text description of a spell.
int
Get the spell's RPG datablock.
void
onSpellbookChange(afxSpellBook spellbook, uint page)
Notify an afxSpellButton when its associated spellbook has changed.
void
onTurnPage(uint page)
Notify an afxSpellButton when the spellbook turns to a new page.
bool
Test if spell uses free targeting.
Detailed Description
A GUI button with some special features that are useful for casting AFX spells.
Public Attributes
filename bitmap
...
Point2I book_slot
...
Public Functions
getFreeTargetStyle()
Get the free targeting style used by the spell.
getSpellDataBlock()
Get the spell's datablock.
getSpellDescription()
Get the text description of a spell.
getSpellRPGDataBlock()
Get the spell's RPG datablock.
onSpellbookChange(afxSpellBook spellbook, uint page)
Notify an afxSpellButton when its associated spellbook has changed.
onTurnPage(uint page)
Notify an afxSpellButton when the spellbook turns to a new page.
useFreeTargeting()
Test if spell uses free targeting.