Dgs-dxbutton: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 9: Line 9:
==Properties==
==Properties==
*'''image''' : Require [texture/shader] that can be used as the background of button.
*'''image''' : Require [texture/shader] that can be used as the background of button.
       
<syntaxhighlight lang="lua">dgsDxGUISetProperty(button,"image",{})</syntaxhighlight>
*color
*color
*text
*text

Revision as of 12:52, 9 September 2017

DGS Properties is always used to change the gui style and make it more fantastic.

This page shows the properties of dgs-dxbutton that you could use.

Main Functions

Properties

  • image : Require [texture/shader] that can be used as the background of button.
dgsDxGUISetProperty(button,"image",{})
  • color
  • text
  • textcolor
  • textsize
  • shadow
  • font
  • clickoffset
  • clip
  • clickType
  • wordbreak
  • colorcoded
  • rightbottom