TutorialButtonWrapper

class TutorialButton.TutorialButtonWrapper(object: Object)

Bases: Object

IsPressed() bool

Is pressed at the moment

Example:

value = instance.IsPressed()
SetPressedState() None

Press

Example:

instance.SetPressedState()
SetReleasedState() None

Release

Example:

instance.SetReleasedState()
AddPressedHandler(handler: Callable[[Object], CoroutineType]) None

Pressed

Parameters:

handler

Asynchronous handler function with signature:

  • sender (Object): the object that triggered the event

Example:

async def OnPressed(sender):
  pass
instance.AddPressedHandler(OnPressed)
AddReleasedHandler(handler: Callable[[Object], CoroutineType]) None

Released

Parameters:

handler

Asynchronous handler function with signature:

  • sender (Object): the object that triggered the event

Example:

async def OnReleased(sender):
  pass
instance.AddReleasedHandler(OnReleased)