ext.buttonhelper

Helper button functions.

eventButton(x, y, w, h, name)Create a button that just queues an event.
eventButton(x, y, w, h, name)Source

Create a button that just queues an event.

Parameters

  1. x number X coordinate of the button.
  2. y number Y coordinate of the button.
  3. w number Width of the button.
  4. h number Heigth of the button.
  5. name string | nil Name of the event queued, defaults to "button_click".

Returns

  1. string ID of the button, use it in gui.ext.button functions