Dgs-dxbutton: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 10: Line 10:
===image===
===image===
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",{})</syntaxhighlight>
<syntaxhighlight lang="lua">dgsDxGUISetProperty(button,"image",{defimg,hovimg,cliimg})</syntaxhighlight>
*color
*'''defimg:''' A texture/shader element of the background of the button ( no mouse enter and no mouse click ).
*text
*'''selimg:''' A texture/shader element of the background of the button which is selected.
*textcolor
*'''cliimg:''' A texture/shader element of the background of the button which is clicked.
*textsize
===color===
*shadow
===text===
*font
===textcolor===
*clickoffset
===textsize===
*clip
===shadow===
*clickType
===shadow===
*wordbreak
===font===
*colorcoded
===clickoffset===
*rightbottom
===clickType===
===wordbreak===
===colorcoded===
===rightbottom===

Revision as of 12:56, 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 ).
  • selimg: A texture/shader element of the background of the button which is selected.
  • cliimg: A texture/shader element of the background of the button which is clicked.

color

text

textcolor

textsize

shadow

shadow

font

clickoffset

clickType

wordbreak

colorcoded

rightbottom