Dgs-dxbutton: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 11: Line 11:
Require [texture/shader] that can be used as the background of button.
Require [texture/shader] that can be used as the background of button.
<syntaxhighlight lang="lua">dgsDxGUISetProperty(button,"image",{defimg,hovimg,cliimg})</syntaxhighlight>
<syntaxhighlight lang="lua">dgsDxGUISetProperty(button,"image",{defimg,hovimg,cliimg})</syntaxhighlight>
*'''defimg:''' A texture/shader element of the background of the button ( no mouse enter and no mouse click ). ( You can use nil value to disable this image option )
*'''defimg:''' A texture/shader element of the background of the button ( no mouse enter and no mouse click ). ( You can pass a nil value to disable this image option )
*'''selimg:''' A texture/shader element of the background of the button which is selected. ( You can use nil value to disable this image option )
*'''selimg:''' A texture/shader element of the background of the button which is selected. ( You can pass a nil value to disable this image option )
*'''cliimg:''' A texture/shader element of the background of the button which is clicked. ( You can use nil value to disable this image option )
*'''cliimg:''' A texture/shader element of the background of the button which is clicked. ( You can pass a nil value to disable this image option )


===color===
===color===

Revision as of 12:59, 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",{defimg,hovimg,cliimg})
  • defimg: A texture/shader element of the background of the button ( no mouse enter and no mouse click ). ( You can pass a nil value to disable this image option )
  • selimg: A texture/shader element of the background of the button which is selected. ( You can pass a nil value to disable this image option )
  • cliimg: A texture/shader element of the background of the button which is clicked. ( You can pass a nil value to disable this image option )

color

text

textcolor

textsize

shadow

shadow

font

clickoffset

clickType

wordbreak

colorcoded

rightbottom