Module object.button

Properties of the button object most of these properties are optional !

a button a simple object that triggers a function uppon being clicked while being simple it also has high graphic capabilities

Tables

creation_properties button OBJECT CREATION PROPERTIES


Tables

creation_properties
button OBJECT CREATION PROPERTIES

Fields:

  • x [number] the x position of the button
  • y [number] the y position of the button
  • width [number] the width of the button
  • height [number] the height of the button
  • text [guih.main_ui.text] the text to put on the button
  • background_color [number] the color of the buttons background
  • text_color [number] the color of the symbols on the button (not the actual "text")
  • symbol [string] the symbol to fill the background of the button with
  • tex [GuiH.texture] the texture to draw on the button
  • on_click [function] the function that gets ran when the button gets pressed (gets passed the object and the event as an argument)
generated by LDoc 1.4.6 Last updated 2022-06-23 16:51:50