![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
A button on an action bar. Sub classes can be used for switching wepaons, consuming items, or just as a standard ActionButton. More...
Public Member Functions | |
virtual void | Disable () |
Call to disable intance. More... | |
virtual void | Enable () |
call to enable instance. More... | |
virtual void | Activate () |
Call to activate instance. More... | |
virtual void | Deactivate () |
Call to activate instance. More... | |
virtual void | OnPointerClick (PointerEventData eventData) |
virtual void | OnPointerDown (PointerEventData eventData) |
Protected Member Functions | |
virtual void | OnActivated () |
Raises the activated event. More... | |
virtual void | DoDestroy () |
Do the destroy actions (remove event listeners). More... | |
virtual void | Init () |
Init this instance. More... | |
virtual void | GetCharacter () |
Gets a character ref or defers to loader event. More... | |
virtual void | GetItemManager () |
Get item manager reference and register listerns. More... | |
virtual void | UpdateItemCount () |
virtual void | HandleItemChanged (object sender, ItemEventArgs e) |
virtual void | HandleCharacterLoaded (object sender, CharacterEventArgs e) |
Handles the character being loaded. More... | |
virtual void | DoPointerClick () |
Does the pointer click. Override to implement. More... | |
Protected Attributes | |
GameObject | disabledContent |
Content to show when this object is disabled. More... | |
GameObject | enabledContent |
Content to show when this object is enabled. More... | |
GameObject | activeContent |
Content to show when this object is active. More... | |
Text | itemCountText |
text for item count if this button is connected to an item. More... | |
Character | character |
Character reference, looked up using CharacterLoader (falling back to Find) if null. More... | |
PlatformerProGameManager | characterLoader |
The character loader. More... | |
bool | allowDeactivate |
int | actionButton |
bool | displayOnly |
bool | canClickWhenPaused |
ItemManager | itemManager |
Cached item manager reference More... | |
string | itemId |
Cached item ID More... | |
bool | isActive |
Track if we are active or not. More... | |
Properties | |
virtual Character | Character [get] |
Gets the character reference. More... | |
Events | |
System.EventHandler< System.EventArgs > | Activated |
Occurs when button pressed/clicked and state is ready for activation. More... | |
A button on an action bar. Sub classes can be used for switching wepaons, consuming items, or just as a standard ActionButton.
|
virtual |
Call to activate instance.
|
virtual |
Call to activate instance.
|
virtual |
Call to disable intance.
|
protectedvirtual |
Do the destroy actions (remove event listeners).
Reimplemented in PlatformerPro.UIActionBarButton_EquipItem, and PlatformerPro.UIActionBarButton_Activation.
|
protectedvirtual |
Does the pointer click. Override to implement.
Reimplemented in PlatformerPro.UIActionBarButton_EquipItem, PlatformerPro.UIActionBarButton_ConsumeItem, PlatformerPro.UIActionBarButton_Attack, and PlatformerPro.UIActionBarButton_Activation.
|
virtual |
call to enable instance.
|
protectedvirtual |
Gets a character ref or defers to loader event.
Reimplemented in PlatformerPro.UIActionBarButton_Attack, and PlatformerPro.UIActionBarButton_Activation.
|
protectedvirtual |
Get item manager reference and register listerns.
Reimplemented in PlatformerPro.UIActionBarButton_EquipItem.
|
protectedvirtual |
Handles the character being loaded.
sender | Sender. |
e | E. |
Reimplemented in PlatformerPro.UIActionBarButton_Attack, and PlatformerPro.UIActionBarButton_Activation.
|
protectedvirtual |
|
protectedvirtual |
Init this instance.
Reimplemented in PlatformerPro.UIActionBarButton_EquipItem, and PlatformerPro.UIActionBarButton_ConsumeItem.
|
protectedvirtual |
Raises the activated event.
|
virtual |
|
virtual |
|
protectedvirtual |
Reimplemented in PlatformerPro.UIActionBarButton_EquipItem.
|
protected |
|
protected |
Content to show when this object is active.
|
protected |
|
protected |
|
protected |
Character reference, looked up using CharacterLoader (falling back to Find) if null.
|
protected |
The character loader.
|
protected |
Content to show when this object is disabled.
|
protected |
|
protected |
Content to show when this object is enabled.
|
protected |
Track if we are active or not.
|
protected |
text for item count if this button is connected to an item.
|
protected |
Cached item ID
|
protected |
Cached item manager reference
|
get |
Gets the character reference.
The character.
System.EventHandler<System.EventArgs> PlatformerPro.UIActionBarButton.Activated |
Occurs when button pressed/clicked and state is ready for activation.