MessagePanelButton

One button spec for MessagePanel: a label plus the same onActivate callback shape BGE.UI.Button itself uses (function(button as BGE.UI.Button) as void). Give it an actionId to report the click to the panel's listener instead.

Properties

  • label (string)
  • onActivate (function | dynamic)
  • actionId (string)

Constructor

new MessagePanelButton( label: string, onActivate?: function | dynamic, actionId?: string, ): MessagePanelButton

Parameters

  • label (string)
  • onActivate (function | dynamic, optional, default: "invalid")
  • actionId (string, optional, default: "\"\"")