SpriteCounterAction (hwx.gui)

A type of SpriteAction to display numbers.

Inherits:

Properties

Public Methods

classmethod get (cls, name)
onCommand (self)
onToggle (self, on)

Property Details

Counter value to be displayed above the sprite action.

Method Details

classmethod get(cls, name)

Returns the named action from defined in active profile.

param name:Action name.
type name:str
onCommand(self)

Calls command callback method when an Action is clicked.

onToggle(self, on)

Acts when an Action is toggled.

  • If is coupled to dialog it will show or hide the dialog.
  • If is coupled to a context it will get in and out the context.
  • If is coupled to callback it will run the callback with state or not.
param on:Determines whether to toggle on or off.
type on:bool