afxSpellButton

Engine/source/afx/ui/afxSpellButton.h

More...

Private Types

enum
_Anonymous_ {  NUM_COOLDOWN_FRAMES = 36
}

Protected Functions

renderButton(GFXTexHandle & texture, Point2I & offset, const RectI & updateRect)

Public Functions

char *
formatDesc(char * buffer, int len)

Called after any property of the object is changed in the world editor.

bool

Called when this object is added to the scene.

Called when the mProfile or mToolTipProfile is deleted.

onRender(Point2I offset, const RectI & updateRect)

Called when this control is to render itself.

Called when this object is asked to sleep.

bool

Called when this object is asked to wake up returns true if it's actually awake at the end.

setBitmap(const char * name, bool placholder)
setPage(U8 page)

Public Static Functions

Detailed Description

Private Types

@35

Enumerator

NUM_COOLDOWN_FRAMES = 36
typedef GuiButtonCtrl Parent 

Protected Static Attributes

StringTableEntry sSpellCooldownBitmaps 
StringTableEntry sUnknownSpellBitmap 

Protected Attributes

Point2I book_slot 
GFXTexHandle cooldown_txrs [NUM_COOLDOWN_FRAMES]
StringTableEntry mBitmapName 
GFXTexHandle mTextureDepressed 
GFXTexHandle mTextureHilight 
GFXTexHandle mTextureInactive 
GFXTexHandle mTextureNormal 
afxSpellBook * spellbook 

Protected Functions

renderButton(GFXTexHandle & texture, Point2I & offset, const RectI & updateRect)

update_bitmap()

Public Functions

afxSpellButton()

~afxSpellButton()

DECLARE_CATEGORY("AFX" )

DECLARE_CONOBJECT(afxSpellButton )

formatDesc(char * buffer, int len)

getSpellDataBlock()

getSpellRPGDataBlock()

inspectPostApply()

Reimplemented from: SimObject

onAdd()

Reimplemented from: GuiControl

onDeleteNotify(SimObject * object)

Reimplemented from: GuiControl

onMouseEnter(const GuiEvent & event)

Reimplemented from: GuiControl

onMouseLeave(const GuiEvent & event)

Reimplemented from: GuiControl

onRender(Point2I offset, const RectI & updateRect)

Reimplemented from: GuiControl

onSleep()

Reimplemented from: GuiControl

onWake()

Reimplemented from: GuiControl

setBitmap(const char * name, bool placholder)

setPage(U8 page)

setSpellBook(afxSpellBook * , U8 page)

Public Static Functions

initPersistFields()