<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Zhvachka</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Zhvachka"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Zhvachka"/>
	<updated>2026-05-13T09:32:13Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxmemo&amp;diff=82807</id>
		<title>Dgs-dxmemo</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxmemo&amp;diff=82807"/>
		<updated>2026-04-11T20:35:26Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxmemo that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===allowCopy===&lt;br /&gt;
This property determines whether the content of memo can be copy(ctrl+c)/cut(ctrl+x)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;allowCopy&amp;quot;,allowCopy)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''allowCopy:'''  A boolean value of the state of whether this memo allows users to copy something from it.&lt;br /&gt;
&lt;br /&gt;
===bgColor===&lt;br /&gt;
This property determines the background color of the memo.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;bgColor&amp;quot;,bgColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgColor:'''  An integer of the color that can be converted by [[tocolor]].&lt;br /&gt;
&lt;br /&gt;
===bgColorBlur===&lt;br /&gt;
This property determines the background color of the memo when it is blurred.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;bgColorBlur&amp;quot;,bgColorBlur)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgColorBlur:'''  An integer of the color that can be converted by [[tocolor]], leave to nil to use bgColor.&lt;br /&gt;
&lt;br /&gt;
===bgImage===&lt;br /&gt;
This property determines the background image of the memo.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;bgImage&amp;quot;,bgImage)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgImage:'''  A material element that serves as the background image of the memo (texture/shader/screen source/renderTarget).&lt;br /&gt;
&lt;br /&gt;
===bgImageBlur===&lt;br /&gt;
This property determines the background image of the memo when it is blurred.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;bgImageBlur&amp;quot;,bgImageBlur)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgImageBlur:'''  A material element that serves as the background image of the memo (texture/shader/screen source/renderTarget), leave to nil to use bgImage.&lt;br /&gt;
&lt;br /&gt;
===caretColor===&lt;br /&gt;
This property determines the color of the caret&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;caretColor&amp;quot;,caretColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''caretColor:'''  An integer of the color that can be converted by [[tocolor]].&lt;br /&gt;
&lt;br /&gt;
===caretHeight===&lt;br /&gt;
The height of the caret of the memo (multiple of the font height).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;caretHeight&amp;quot;,caretHeight)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''caretHeight:''' A float of the caret height.&lt;br /&gt;
&lt;br /&gt;
===caretOffset===&lt;br /&gt;
The offset of the caret of the memo.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;caretOffset&amp;quot;,offsetY)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetY:'''  A float of the 2D Y position offset of the caret of the memo.&lt;br /&gt;
&lt;br /&gt;
===caretPos===&lt;br /&gt;
The position in which the caret stays.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;caretPos&amp;quot;,{index,line})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''index:'''  An integer of the index of the text in current line of the memo.&lt;br /&gt;
*'''line:'''  An integer of the line of the memo.&lt;br /&gt;
&lt;br /&gt;
===caretStyle===&lt;br /&gt;
This is equivalent to [[dgsMemoSetCaretStyle]]/[[dgsMemoGetCaretStyle]].&lt;br /&gt;
&lt;br /&gt;
This property allows us to change the style of caret of the memo. ( 0 is &amp;quot;|&amp;quot;; 1 is &amp;quot;_&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
Example(0):&lt;br /&gt;
&lt;br /&gt;
This is Text|&lt;br /&gt;
&lt;br /&gt;
Example(1):&lt;br /&gt;
&lt;br /&gt;
This is Text_&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;caretStyle&amp;quot;,caretStyle)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''caretStyle:'''  An integer of the caret style of the memo.&lt;br /&gt;
&lt;br /&gt;
===caretThick===&lt;br /&gt;
This property allows us to change the thickness of caret of the memo.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;caretThick&amp;quot;,caretThick)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''caretThick:'''  An integer of the thickness of the caret of the memo.&lt;br /&gt;
&lt;br /&gt;
===colorCoded===&lt;br /&gt;
Whether the color code is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;colorCoded&amp;quot;,colorCoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorCoded:''' Set to true to enable embedded #FFFFFF color codes.&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font:'''  A [[Element/DX_font|dx font element]] of the text font of the memo.&lt;br /&gt;
&lt;br /&gt;
===padding===&lt;br /&gt;
This property determines the content padding from 4 sides of element (left/top/right/bottom)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;padding&amp;quot;, {horizontal, vertical})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''horizontal:'''  A float of the horizontal padding in pixels.&lt;br /&gt;
*'''vertical:'''  A float of the vertical padding in pixels.&lt;br /&gt;
&lt;br /&gt;
===placeHolder===&lt;br /&gt;
This is equivalent to [[dgsEditSetPlaceHolder]]//[[dgsEditGetPlaceHolder]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;placeHolder&amp;quot;,placeHolder)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''placeHolder''' : A string of the place holder text of dgs edit ( This text will show when there is no text in a blurred dgs edit ).&lt;br /&gt;
&lt;br /&gt;
===placeHolderColor===&lt;br /&gt;
This property determines the color of the place holder text. The color which can be translated by [[tocolor]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;placeHolderColor&amp;quot;,placeHolderColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''placeHolderColor''' : An integer of the color of the place holder text of the edit.&lt;br /&gt;
&lt;br /&gt;
===placeHolderColorcoded===&lt;br /&gt;
This property determines whether the place holder supports color code.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;placeHolderColorcoded&amp;quot;,placeHolderColorcoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''placeHolderColorcoded''' : A bool indicates whether the place holder supports color code.&lt;br /&gt;
&lt;br /&gt;
===placeHolderFont===&lt;br /&gt;
This property changes the font of place holder.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;placeHolderFont&amp;quot;,placeHolderFont)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''placeHolderFont''' : A string/dx-font element of the font of the place holder.&lt;br /&gt;
&lt;br /&gt;
===placeHolderIgnoreRenderTarget===&lt;br /&gt;
This property determines whether the place holder isn't restricted by render target.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;placeHolderIgnoreRenderTarget&amp;quot;,placeHolderIgnoreRenderTarget)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''placeHolderIgnoreRenderTarget''' : A bool indicates whether the place holder isn't restricted by render target.&lt;br /&gt;
&lt;br /&gt;
===placeHolderOffset===&lt;br /&gt;
This property allows place holder has offsets relative to its original position.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;placeHolderOffset&amp;quot;,{ xOffset, yOffset })&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''xOffset''' : An integer of 2D x offset.&lt;br /&gt;
*'''yOffset''' : An integer of 2D y offset.&lt;br /&gt;
&lt;br /&gt;
===placeHolderVisibleWhenFocus===&lt;br /&gt;
This property allows place holder to be visible even when edit is focused.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;placeHolderVisibleWhenFocus&amp;quot;,placeHolderVisibleWhenFocus)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''placeHolderVisibleWhenFocus''' : A bool indicates whether the place holder when the edit is focused.&lt;br /&gt;
&lt;br /&gt;
===readOnly===&lt;br /&gt;
This is equivalent to [[dgsMemoSetReadOnly]]/[[dgsMemoGetReadOnly]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;readOnly&amp;quot;,readOnly)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''readOnly:'''  A bool indicates whether the memo is only readable.&lt;br /&gt;
&lt;br /&gt;
===readOnlyCaretShow===&lt;br /&gt;
Whether the caret of memo will show/hide under read-only mode.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;readOnlyCaretShow&amp;quot;,readOnlyCaretShow)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''readOnlyCaretShow:'''  A bool indicates whether the caret is shown or hidden when the memo is read-only.&lt;br /&gt;
&lt;br /&gt;
===renderTarget===&lt;br /&gt;
This property stores a render target of the memo.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;renderTarget&amp;quot;,renderTarget)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''renderTarget:'''  A render target that is used to render the text.&lt;br /&gt;
&lt;br /&gt;
===scrollbars===&lt;br /&gt;
This property stores two scroll bars which can be got by [[dgsMemoGetScrollBar]] of the memo.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;scrollbars&amp;quot;,{Vertical,Horizontal})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''Vertical:'''  A vertical scroll bar of the memo.&lt;br /&gt;
*'''Horizontal:'''  A horizontal scroll bar of the memo.&lt;br /&gt;
&lt;br /&gt;
===scrollBarThick===&lt;br /&gt;
This property allows us to change the thickness of scroll bars of the memo.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;scrollBarThick&amp;quot;,scrollBarThick)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scrollBarThick:'''  An integer of the thickness of scroll bars of the memo.&lt;br /&gt;
&lt;br /&gt;
===scrollSize===&lt;br /&gt;
This property determines how many lines will get scrolled out of the rendering area once when you are scrolling your mouse wheel.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;scrollSize&amp;quot;,scrollSize)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scrollSize:'''  Lines to be scrolled.&lt;br /&gt;
&lt;br /&gt;
===selectColorBlur===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the rectangle of text selection of the memo when blurred.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;selectColorBlur&amp;quot;,selectColorBlur)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''selectColorBlur:'''  An integer of the color of the rectangle of text selection of the memo when blurred.&lt;br /&gt;
&lt;br /&gt;
===selectColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the rectangle of text selection of the memo.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;selectColor&amp;quot;,selectColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''selectColor:'''  An integer of the color of the rectangle of text selection of the memo.&lt;br /&gt;
&lt;br /&gt;
===selectFrom===&lt;br /&gt;
The position from which the text is selected.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;selectFrom&amp;quot;,{index,line})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''index:'''  An integer of the index of the text in the line where the text is selected from of the memo.&lt;br /&gt;
*'''line:'''  An integer of the line where the text is selected from of the memo.&lt;br /&gt;
&lt;br /&gt;
===shadow===&lt;br /&gt;
The shadow text of the memo.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;shadow&amp;quot;,{offsetX,offsetY,color,outline})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the shadow text of the memo.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the shadow text of the memo.&lt;br /&gt;
*'''color:''' An integer of the color of the shadow text of the memo.&lt;br /&gt;
*'''outline:''' An integer of the outline style of the shadow text.&lt;br /&gt;
&lt;br /&gt;
===showLine===&lt;br /&gt;
This property stores the value of how many lines does the text move to top.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;showLine&amp;quot;,line)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''line:'''  An integer indicates how many lines does the text move to top.&lt;br /&gt;
&lt;br /&gt;
===showPos===&lt;br /&gt;
This property stores the value of how many pixels of the text are moved to left.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;showPos&amp;quot;,posX)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''posX:'''  An integer indicates how many pixels of the text are moved to left.&lt;br /&gt;
&lt;br /&gt;
===text===&lt;br /&gt;
This is equivalent to [[dgsSetText]]/[[dgsGetText]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;text&amp;quot;,text)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''text:'''  A ''table'' of the text of the memo.( Because of multi lines, I use table instead of string )&lt;br /&gt;
&lt;br /&gt;
===textColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the text of the memo.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;textColor&amp;quot;,textColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor:'''  An integer of the color of the text of the memo.&lt;br /&gt;
&lt;br /&gt;
===textLength===&lt;br /&gt;
This is for scroll bar detection. You had better not touch it.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;textLength&amp;quot;,textlen)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textlen:'''  A table stores the length of text in every line.&lt;br /&gt;
&lt;br /&gt;
===textSize===&lt;br /&gt;
The scale of the text of the memo. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;textSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:'''  A float of the 2D X scale of the text of the memo.&lt;br /&gt;
*'''scaleY:'''  A float of the 2D Y scale of the text of the memo.&lt;br /&gt;
&lt;br /&gt;
===typingSound===&lt;br /&gt;
Typing sound, nil for disabled. This is equivalent to [[dgsMemoSetTypingSound]]/[[dgsMemoGetTypingSound]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;typingSound&amp;quot;,typingSound)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''typingSound:'''  A string of the path/url of typing sound.&lt;br /&gt;
&lt;br /&gt;
===typingSoundVolume===&lt;br /&gt;
Typing sound, nil for disabled. This is equivalent to [[dgsMemoSetTypingSoundVolume]]/[[dgsMemoGetTypingSoundVolume]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;typingSoundVolume&amp;quot;,typingSoundVolume)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''typingSoundVolume:'''  A float of the volume of the typing sound. Range is from 0.0 to 1.0. This can go above 1.0 for amplification.&lt;br /&gt;
&lt;br /&gt;
===wordWrap===&lt;br /&gt;
This property determines the word wrap state of dgs memo. This is equivalent to [[dgsMemoSetWordWrapState]]/[[dgsMemoGetWordWrapState]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;wordWrap&amp;quot;,wordWrap)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''wordWarp:'''  An integer or a bool of word wrap state, vaild state are as follows:&lt;br /&gt;
**'''false:''' Non-wordwrap&lt;br /&gt;
**'''1:''' Split via single character ( This will break a word into 2 parts )&lt;br /&gt;
**'''2:''' Split via word&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsCreateLine&amp;diff=74474</id>
		<title>DgsCreateLine</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsCreateLine&amp;diff=74474"/>
		<updated>2022-04-23T17:24:56Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function creates a DGS Line on the screen.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dgsCreateLine ( float x, float y, float w, float h, bool relative [, element parent = nil, float lineWidth = 1, int color = 0xFFFFFFFF ])&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
[[Image:DGS_Line.png|300px|thumb|right|]] &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''x:''' A float of the 2D x position of the line on a player's screen.  This is affected by the ''relative'' argument.&lt;br /&gt;
*'''y:''' A float of the 2D y position of the line on a player's screen. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''width:''' A float of the width of the line. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''height:''' A float of the height of the line. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''relative:''' This is whether sizes and positioning are relative.  If this is ''true'', then all ''x, y, width'' and ''height'' floats must be between 0 and 1, representing sizes relative to the parent.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''parent:''' This is the parent that the DGS Line is attached to.&lt;br /&gt;
*'''lineWidth:''' A float of the default width of DGS Line.&lt;br /&gt;
*'''color:''' An integer of the default color of DGS Line.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a DGS Line if it was successfully created, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs&lt;br /&gt;
&lt;br /&gt;
local line = DGS:dgsCreateLine(400,200,600,400)&lt;br /&gt;
local sinX = math.sin(0/500*4*math.pi)&lt;br /&gt;
DGS:dgsLineAddItem(line,0/500,sinX/2+0.5,0/500,sinX/2+0.5,2,tocolor(0,255,0,255),true)&lt;br /&gt;
for i=1,100 do&lt;br /&gt;
	local sinX = math.sin(i/100*4*math.pi)&lt;br /&gt;
	DGS:dgsLineAddItem(line,_,_,i/100,sinX/2+0.5,2,tocolor(i/100*255,255-i/100*255,0,255),true)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxlabel&amp;diff=74374</id>
		<title>Dgs-dxlabel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxlabel&amp;diff=74374"/>
		<updated>2022-03-31T10:50:40Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* colorcCoded */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxlabel that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===alignment===&lt;br /&gt;
Alignment of the text within the label.&lt;br /&gt;
&lt;br /&gt;
The functions as follows are based on this property.&lt;br /&gt;
&lt;br /&gt;
[[dgsLabelSetHorizontalAlign]]/[[dgsLabelGetHorizontalAlign]]&lt;br /&gt;
&lt;br /&gt;
[[dgsLabelSetVerticalAlign]]/[[dgsLabelGetVerticalAlign]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(label,&amp;quot;alignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX:''' Horizontal alignment of the text within the label. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY:''' Vertical alignment of the text within the label. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===clip===&lt;br /&gt;
Whether the clip property is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(label,&amp;quot;clip&amp;quot;,clip)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clip:''' If set to true, the parts of the text that don't fit within the bounding box will be cut off.&lt;br /&gt;
&lt;br /&gt;
===colorCoded===&lt;br /&gt;
Whether the color code is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(label,&amp;quot;colorCoded&amp;quot;,colorCoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorCoded:''' Set to true to enable embedded #FFFFFF color codes.&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(label,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font:''' A string or a [[Element/DX_font|dx font element]] of the text font of the label.&lt;br /&gt;
&lt;br /&gt;
===shadow===&lt;br /&gt;
The shadow text of the label.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(label,&amp;quot;shadow&amp;quot;,{offsetX,offsetY,color,outline})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the shadow text of the label.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the shadow text of the label.&lt;br /&gt;
*'''color:''' An integer of the color of the shadow text of the label.&lt;br /&gt;
*'''outline:''' A bool of the outline state of the shadow text.&lt;br /&gt;
&lt;br /&gt;
===subPixelPositioning===&lt;br /&gt;
This property determines whether the '''subPixelPositioning''' is enabled or not, by default, it is disable. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&lt;br /&gt;
'''subPixelPositioning''' Will make positioning and resizing animation looks better, but you should know, it may blur your static text with unrounded position and size, or alignment.&lt;br /&gt;
&lt;br /&gt;
If you are using dgs animation library, you'd better turn this on.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(label,&amp;quot;subPixelPositioning&amp;quot;,subPixelPositioning)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''subPixelPositioning:''' A bool indicates whether to enable subPixelPositioning or not.&lt;br /&gt;
&lt;br /&gt;
===text===&lt;br /&gt;
This is equivalent to [[dgsSetText]]/[[dgsGetText]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(label,&amp;quot;text&amp;quot;,text)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''text:''' A string of the text of the label.&lt;br /&gt;
&lt;br /&gt;
===textColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the text of the label.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(label,&amp;quot;textColor&amp;quot;,textColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor:''' An integer of the color of the text of the label.&lt;br /&gt;
&lt;br /&gt;
===textOffset===&lt;br /&gt;
The offset of the text on label.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(label,&amp;quot;textOffset&amp;quot;,{offsetX,offsetY,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX''' : A float of the 2D X offset relative to the position of the label, depends on '''relative'''.&lt;br /&gt;
*'''offsetY''' : A float of the 2D Y offset relative to the position of the label, depends on '''relative'''.&lt;br /&gt;
*'''relative''' : A bool of whether the offset is relative or absolute.&lt;br /&gt;
&lt;br /&gt;
===textSize===&lt;br /&gt;
The scale of the text of the label. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(label,&amp;quot;textSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the label.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the label.&lt;br /&gt;
&lt;br /&gt;
===wordBreak===&lt;br /&gt;
Whether the word-break is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(label,&amp;quot;wordBreak&amp;quot;,wordBreak)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''wordBreak:''' If set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DGS_General_Basic_Properties&amp;diff=74364</id>
		<title>DGS General Basic Properties</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DGS_General_Basic_Properties&amp;diff=74364"/>
		<updated>2022-03-27T15:42:47Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* hitoutofparent */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the general properties of all dgs elements that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===alpha===&lt;br /&gt;
Require a number ranges from 0 to 1. This is equivalent to [[dgsSetAlpha]]/[[dgsGetAlpha]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(dgsElement,&amp;quot;alpha&amp;quot;,alpha = 1)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alpha:''' The visibility/transparency of the DGS element. Ranges from 0 (fully transparent) to 1 (fully opaque). Default value is 0.80.&lt;br /&gt;
&lt;br /&gt;
===clickCoolDown===&lt;br /&gt;
This property is used to limit the click frequency to a specific dgs element&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(dgsElement,&amp;quot;clickCoolDown&amp;quot;,clickCoolDown = false)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clickCoolDown:''' A number indicates how long you want to limit the click (ms).&lt;br /&gt;
&lt;br /&gt;
===changeOrder===&lt;br /&gt;
Require a bool indicates whether the layer will be changed when being brought to front ( or clicked ).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(dgsElement,&amp;quot;changeOrder&amp;quot;,changeOrder = true)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''changeOrder:''' A bool indicates whether the layer will be changed when being brought to front ( or clicked ).&lt;br /&gt;
&lt;br /&gt;
===debugTrace===&lt;br /&gt;
This property stores the &amp;quot;debug tracing data&amp;quot; includes in which lua '''file''' and '''line''' the specific dgs element created (Only available using '''loadstring(exports.dgs:dgsImportFunction())()'''.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(dgsElement,&amp;quot;debugTrace&amp;quot;,debugTrace)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''debugTrace:''' A table stores creation data. Structure is as follows:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	file=filePath,&lt;br /&gt;
	line=lineNum,&lt;br /&gt;
	fncName=functionName,&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===enabled===&lt;br /&gt;
Requires a bool value. This is equivalent to [[dgsSetEnabled]]/[[dgsGetEnabled]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(dgsElement,&amp;quot;enabled&amp;quot;,alpha = true)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''enabled:''' The state.&lt;br /&gt;
&lt;br /&gt;
===functionRunBefore===&lt;br /&gt;
Requires a bool value. Set whether the function runs before rendering or after rendering (see property '''functions''').&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(dgsElement,&amp;quot;functionRunBefore&amp;quot;,functionRunBefore = true)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''functionRunBefore:''' Set to true, and the function will run before rendering. Set to false, and the function will run after rendering.&lt;br /&gt;
&lt;br /&gt;
===functions===&lt;br /&gt;
Requires a string at the 3rd argument. This property runs a function while rendering.&lt;br /&gt;
&lt;br /&gt;
'''Predefine Variable'''&lt;br /&gt;
*'''self:''' The DGS Element itself.&lt;br /&gt;
&lt;br /&gt;
See example in [[dgsSetProperty]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(dgsElement,&amp;quot;functions&amp;quot;,fncString,arg1,arg2,...)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''fncString:''' The string of function to be loaded.&lt;br /&gt;
*'''arg1:''' argument 1&lt;br /&gt;
*'''arg2:''' argument 2&lt;br /&gt;
*'''...:''' other arguments&lt;br /&gt;
&lt;br /&gt;
===childOutsideHit===&lt;br /&gt;
Requires a bool value. Set whether children elements are clickable when they are outside of their parent element.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(dgsElement,&amp;quot;childOutsideHit&amp;quot;,childOutsideHit = false)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''childOutsideHit:''' If set to true, the dgsElement's child elements are clickable even though they are not inside the bounding box of dgsElement.&lt;br /&gt;
&lt;br /&gt;
===ignoreParentTitle===&lt;br /&gt;
Requires a bool value. Set whether to ignore the title of dgs-dxwindow.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(dgsElement,&amp;quot;ignoreParentTitle&amp;quot;,ignoreParentTitle = false)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ignoreParentTitle:''' Set to true to ignore the title of dgs-dxwindow if its parent is a dgs-dxwindow . Set to false to disable it, which means the y position of dgsElement in dgs-dxwindow will start to be calculated under the title.&lt;br /&gt;
&lt;br /&gt;
===outline===&lt;br /&gt;
The border line of the bounding box of dgs element.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(dgsElement,&amp;quot;outline&amp;quot;,{side,width,color,left,right,top,bottom})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''side''' : A string indicates which side the outline will attach to. The available values are as follows:&lt;br /&gt;
**'''in'''&lt;br /&gt;
**'''center'''&lt;br /&gt;
**'''out'''&lt;br /&gt;
*'''width''': The width of the outline.&lt;br /&gt;
*'''color''': The color of the outline, which can be transformed by [[tocolor]].&lt;br /&gt;
*'''left''': Set '''true''' to show outline in the left, and '''false''' to hide it. (Default is '''true''' if not set)&lt;br /&gt;
*'''right''': Set '''true''' to show the outline in the right, and '''false''' to hide it. (Default is '''true''' if not set)&lt;br /&gt;
*'''top''': Set '''true''' to show the outline at the top, and '''false''' to hide it. (Default is '''true''' if not set)&lt;br /&gt;
*'''bottom''': Set '''true''' to show the outline at the bottom, and '''false''' to hide it. (Default is '''true''' if not set)&lt;br /&gt;
&lt;br /&gt;
===renderEventCall===&lt;br /&gt;
Requires a bool value. Set whether [[onDgsElementRender]] is triggered when rendering. (Don't always enable this, or it will cause severely performance decrease)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(dgsElement,&amp;quot;renderEventCall&amp;quot;,renderEventCall = false)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''renderEventCall:''' Set to true to enable, and false to disable.&lt;br /&gt;
&lt;br /&gt;
===PixelInt===&lt;br /&gt;
Requires a bool value. Set whether the position/size of a dgs element is converted to integer while rendering, which deals with '''blur''' problem.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(dgsElement,&amp;quot;PixelInt&amp;quot;,PixelInt = true)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''PixelInt:''' Set to true to enable, and false to disable.&lt;br /&gt;
&lt;br /&gt;
===postGUI===&lt;br /&gt;
Requires a bool value. Set whether the dgs element is post gui when render settings &amp;quot;postGUI&amp;quot; is ''nil''(automatic).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(dgsElement,&amp;quot;postGUI&amp;quot;,postGUI)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''postGUI:''' Set to true to enable post gui, or it wil under gui.&lt;br /&gt;
&lt;br /&gt;
===visible===&lt;br /&gt;
This property change the visibility of a dgs element. This is equivalent to [[dgsSetVisible]]/[[dgsGetVisible]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(dgsElement,&amp;quot;visible&amp;quot;,visible)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''visible:''' A bool indicates whether the dgs element is visible or not.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxswitchbutton&amp;diff=74315</id>
		<title>Dgs-dxswitchbutton</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxswitchbutton&amp;diff=74315"/>
		<updated>2022-03-17T10:43:02Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* wordbreak */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxswitchbutton that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===clickType===&lt;br /&gt;
This property determines which button on mouse can change the state of switch button.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;clickType&amp;quot;,clickType)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clickType:''' An integer, available values are as follows:&lt;br /&gt;
**'''1:''' Left Mouse Button&lt;br /&gt;
**'''2:''' Wheel&lt;br /&gt;
**'''3:''' Right Mouse Button&lt;br /&gt;
&lt;br /&gt;
===clip===&lt;br /&gt;
Whether the clip property is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;clip&amp;quot;,clip)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clip:''' If set to true, the parts of the text that don't fit within the bounding box will be cut off.&lt;br /&gt;
&lt;br /&gt;
===cursorMoveSpeed===&lt;br /&gt;
This property determines the cursor moving speed when switch button changes state.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;cursorMoveSpeed&amp;quot;,cursorMoveSpeed)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''cursorMoveSpeed:''' A float of the cursor moving speed when switch button changes state.&lt;br /&gt;
&lt;br /&gt;
===cursorWidth===&lt;br /&gt;
This property determines the cursor width of switch button.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;cursorWidth&amp;quot;,cursorWidth)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''cursorWidth:''' A float of the cursor width of switch button.&lt;br /&gt;
&lt;br /&gt;
===cursorLength===&lt;br /&gt;
This property determines the cursor length of switch button.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;cursorLength&amp;quot;,cursorLength)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''cursorLength:''' A float of the cursor length of switch button.&lt;br /&gt;
&lt;br /&gt;
===colorcoded===&lt;br /&gt;
Whether the color code is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;colorcoded&amp;quot;,colorcoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorcoded:''' Set to true to enable embedded #FFFFFF color codes.&lt;br /&gt;
&lt;br /&gt;
===colorOn===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the background color when the switch button turns on.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;colorOn&amp;quot;,{normalColor,hoverColor,clickColor})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''normalColor:''' A integer of background color of turned on switch button.&lt;br /&gt;
*'''hoverColor:''' A integer of background color of turned on switch button when the mouse is hovering on it.&lt;br /&gt;
*'''clickColor:''' A integer of background color of turned on switch button when the mouse is clicked on it.&lt;br /&gt;
&lt;br /&gt;
===colorOff===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the background color when the switch button turns off.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;colorOff&amp;quot;,{normalColor,hoverColor,clickColor})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''normalColor:''' A integer of background color of turned off switch button.&lt;br /&gt;
*'''hoverColor:''' A integer of background color of turned off switch button when the mouse is hovering on it.&lt;br /&gt;
*'''clickColor:''' A integer of background color of turned off switch button when the mouse is clicked on it.&lt;br /&gt;
&lt;br /&gt;
===cursorColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the cursor color.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;cursorColor&amp;quot;,{normalColor,hoverColor,clickColor})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''normalColor:''' A integer of cursor color of the switch button.&lt;br /&gt;
*'''hoverColor:''' A integer of cursor color of the switch button when the mouse is hovering on it.&lt;br /&gt;
*'''clickColor:''' A integer of cursor color of the switch button when the mouse is clicked on it.&lt;br /&gt;
&lt;br /&gt;
===cursorImage===&lt;br /&gt;
The cursor image of switch button.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;cursorImage&amp;quot;,{normalColor,hoverColor,clickColor})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''normalImage:''' An material of cursor image of the switch button.&lt;br /&gt;
*'''hoverImage:''' An material of cursor image of the switch button when the mouse is hovering on it.&lt;br /&gt;
*'''clickImage:''' An material of cursor image of the switch button when the mouse is clicked on it.&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font:''' A string or a [[Element/DX_font|dx font element]] of the text font of the switch button.&lt;br /&gt;
&lt;br /&gt;
===imageOn===&lt;br /&gt;
The background image of switch button when the state is on.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;imageOn&amp;quot;,{normalImage,hoverImage,clickImage})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''normalImage:''' An material of background image of turned on switch button.&lt;br /&gt;
*'''hoverImage:''' An material of background image of turned on switch button when the mouse is hovering on it.&lt;br /&gt;
*'''clickImage:''' An material of background image of turned on switch button when the mouse is clicked on it.&lt;br /&gt;
&lt;br /&gt;
===imageOff===&lt;br /&gt;
The background image of switch button when the state is off.(&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;imageOff&amp;quot;,{normalImage,hoverImage,clickImage})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''normalImage:''' An material of background image of turned off switch button.&lt;br /&gt;
*'''hoverImage:''' An material of background image of turned off switch button when the mouse is hovering on it.&lt;br /&gt;
*'''clickImage:''' An material of background image of turned off switch button when the mouse is clicked on it.&lt;br /&gt;
&lt;br /&gt;
===shadow===&lt;br /&gt;
The shadow text of the switch button.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;shadow&amp;quot;,{offsetX,offsetY,color,outline})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the shadow text of the switch button.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the shadow text of the switch button.&lt;br /&gt;
*'''color:''' An integer of the color of the shadow text of the switch button.&lt;br /&gt;
*'''outline:''' A bool of the outline state of the shadow text.&lt;br /&gt;
&lt;br /&gt;
===state===&lt;br /&gt;
This property indicates the state of switch button.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;state&amp;quot;,state)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''state:''' A bool indicates the state of switch button.&lt;br /&gt;
**'''true:''' Turns on&lt;br /&gt;
**'''false:''' Turns off&lt;br /&gt;
&lt;br /&gt;
===stateAnim===&lt;br /&gt;
This stores the progress of cursor animation, which is not recommend to modify.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;stateAnim&amp;quot;,stateAnim)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''stateAnim:''' A float of the cursor animation progress.&lt;br /&gt;
&lt;br /&gt;
===style===&lt;br /&gt;
This property determines the state of switch button.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;style&amp;quot;,style)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''style:''' Mixed, available values are as follows:&lt;br /&gt;
**'''false:''' Default, a switch button with fading color when changing state.&lt;br /&gt;
**'''1:''' Split background color for turned on and off ( also split images ).&lt;br /&gt;
**'''2:''' Split background color for turned on and off ( not split images ).&lt;br /&gt;
&lt;br /&gt;
===textOn===&lt;br /&gt;
This property stores the text to be shown when the switch button turns on.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;textOn&amp;quot;,textOn)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textOn:''' A string of the text of the switch button.&lt;br /&gt;
&lt;br /&gt;
===textOff===&lt;br /&gt;
This property stores the text to be shown when the switch button turns off.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;textOff&amp;quot;,textOff)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textOff:''' A string of the text of the switch button.&lt;br /&gt;
&lt;br /&gt;
===textColorOn===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the text when the switch button turns on.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;textColor_t&amp;quot;,textColor_t)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor_t:''' An integer of the color of the text when the switch button turns on.&lt;br /&gt;
&lt;br /&gt;
===textColorOff===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the text when the switch button turns off.(State=false)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;textColor_f&amp;quot;,textColor_f)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor_f:''' An integer of the color of the text when the switch button turns off.&lt;br /&gt;
&lt;br /&gt;
===textSize===&lt;br /&gt;
The scale of the text of the switch button. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;textSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the switch button.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the switch button.&lt;br /&gt;
&lt;br /&gt;
===troughWidth===&lt;br /&gt;
This property determines trough length of switch button.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;troughWidth&amp;quot;,troughWidth)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''troughWidth:''' A float of the trough length of switch button.&lt;br /&gt;
&lt;br /&gt;
===wordBreak===&lt;br /&gt;
Whether the word-break is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;wordBreak&amp;quot;,wordBreak)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''wordBreak:''' If set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxmemo&amp;diff=74313</id>
		<title>Dgs-dxmemo</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxmemo&amp;diff=74313"/>
		<updated>2022-03-17T10:16:42Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* padding */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxmemo that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===allowCopy===&lt;br /&gt;
This property determines whether the content of memo can be copy(ctrl+c)/cut(ctrl+x)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;allowCopy&amp;quot;,allowCopy)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''allowCopy:'''  A boolean value of the state of whether this memo allows users to copy something from it.&lt;br /&gt;
&lt;br /&gt;
===padding===&lt;br /&gt;
This property determines the content padding from 4 sides of element (left/top/right/bottom)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;padding&amp;quot;, {horizontal, vertical})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''horizontal:'''  A float of the horizontal padding in pixels.&lt;br /&gt;
*'''vertical:'''  A float of the vertical padding in pixels.&lt;br /&gt;
&lt;br /&gt;
===bgColor===&lt;br /&gt;
This property determines the background color of the memo.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;bgColor&amp;quot;,bgColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgColor:'''  An integer of the color that can be converted by [[tocolor]].&lt;br /&gt;
&lt;br /&gt;
===bgColorBlur===&lt;br /&gt;
This property determines the background color of the memo when it is blurred.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;bgColorBlur&amp;quot;,bgColorBlur)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgColorBlur:'''  An integer of the color that can be converted by [[tocolor]], leave to nil to use bgColor.&lt;br /&gt;
&lt;br /&gt;
===bgImage===&lt;br /&gt;
This property determines the background image of the memo.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;bgImage&amp;quot;,bgImage)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgImage:'''  A material element that serves as the background image of the memo (texture/shader/screen source/renderTarget).&lt;br /&gt;
&lt;br /&gt;
===bgImageBlur===&lt;br /&gt;
This property determines the background image of the memo when it is blurred.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;bgImageBlur&amp;quot;,bgImageBlur)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgImageBlur:'''  A material element that serves as the background image of the memo (texture/shader/screen source/renderTarget), leave to nil to use bgImage.&lt;br /&gt;
&lt;br /&gt;
===caretColor===&lt;br /&gt;
This property determines the color of the caret&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;caretColor&amp;quot;,caretColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''caretColor:'''  An integer of the color that can be converted by [[tocolor]].&lt;br /&gt;
&lt;br /&gt;
===caretHeight===&lt;br /&gt;
The height of the caret of the memo (multiple of the font height).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;caretHeight&amp;quot;,caretHeight)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''caretHeight:''' A float of the caret height.&lt;br /&gt;
&lt;br /&gt;
===caretOffset===&lt;br /&gt;
The offset of the caret of the memo.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;caretOffset&amp;quot;,{offsetX,offsetY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:'''  A float of the 2D X position offset of the caret of the memo.&lt;br /&gt;
*'''offsetY:'''  A float of the 2D Y position offset of the caret of the memo.&lt;br /&gt;
&lt;br /&gt;
===caretPos===&lt;br /&gt;
The position in which the caret stays.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;caretPos&amp;quot;,{index,line})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''index:'''  An integer of the index of the text in current line of the memo.&lt;br /&gt;
*'''line:'''  An integer of the line of the memo.&lt;br /&gt;
&lt;br /&gt;
===caretStyle===&lt;br /&gt;
This is equivalent to [[dgsMemoSetCaretStyle]]/[[dgsMemoGetCaretStyle]].&lt;br /&gt;
&lt;br /&gt;
This property allows us to change the style of caret of the memo. ( 0 is &amp;quot;|&amp;quot;; 1 is &amp;quot;_&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
Example(0):&lt;br /&gt;
&lt;br /&gt;
This is Text|&lt;br /&gt;
&lt;br /&gt;
Example(1):&lt;br /&gt;
&lt;br /&gt;
This is Text_&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;caretStyle&amp;quot;,caretStyle)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''caretStyle:'''  An integer of the caret style of the memo.&lt;br /&gt;
&lt;br /&gt;
===caretThick===&lt;br /&gt;
This property allows us to change the thickness of caret of the memo.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;caretThick&amp;quot;,caretThick)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''caretThick:'''  An integer of the thickness of the caret of the memo.&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font:'''  A [[Element/DX_font|dx font element]] of the text font of the memo.&lt;br /&gt;
&lt;br /&gt;
===memo===&lt;br /&gt;
This property stores a gui-memo which is used to input characters.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;memo&amp;quot;,gmemo)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''gmemo:'''  A gui-memo.&lt;br /&gt;
&lt;br /&gt;
===readOnly===&lt;br /&gt;
This is equivalent to [[dgsMemoSetReadOnly]]/[[dgsMemoGetReadOnly]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;readOnly&amp;quot;,readOnly)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''readOnly:'''  A bool indicates whether the memo is only readable.&lt;br /&gt;
&lt;br /&gt;
===readOnlyCaretShow===&lt;br /&gt;
Whether the caret of memo will show/hide under read-only mode.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;readOnlyCaretShow&amp;quot;,readOnlyCaretShow)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''readOnlyCaretShow:'''  A bool indicates whether the caret is shown or hidden when the memo is read-only.&lt;br /&gt;
&lt;br /&gt;
===renderTarget===&lt;br /&gt;
This property stores a render target of the memo.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;renderTarget&amp;quot;,renderTarget)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''renderTarget:'''  A render target that is used to render the text.&lt;br /&gt;
&lt;br /&gt;
===scrollbars===&lt;br /&gt;
This property stores two scroll bars which can be got by [[dgsMemoGetScrollBar]] of the memo.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;scrollbars&amp;quot;,{Vertical,Horizontal})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''Vertical:'''  A vertical scroll bar of the memo.&lt;br /&gt;
*'''Horizontal:'''  A horizontal scroll bar of the memo.&lt;br /&gt;
&lt;br /&gt;
===scrollBarThick===&lt;br /&gt;
This property allows us to change the thickness of scroll bars of the memo.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;scrollBarThick&amp;quot;,scrollBarThick)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scrollBarThick:'''  An integer of the thickness of scroll bars of the memo.&lt;br /&gt;
&lt;br /&gt;
===scrollSize===&lt;br /&gt;
This property determines how many lines will get scrolled out of the rendering area once when you are scrolling your mouse wheel.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;scrollSize&amp;quot;,scrollSize)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scrollSize:'''  Lines to be scrolled.&lt;br /&gt;
&lt;br /&gt;
===selectColorBlur===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the rectangle of text selection of the memo when blurred.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;selectColorBlur&amp;quot;,selectColorBlur)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''selectColorBlur:'''  An integer of the color of the rectangle of text selection of the memo when blurred.&lt;br /&gt;
&lt;br /&gt;
===selectColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the rectangle of text selection of the memo.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;selectColor&amp;quot;,selectColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''selectColor:'''  An integer of the color of the rectangle of text selection of the memo.&lt;br /&gt;
&lt;br /&gt;
===selectFrom===&lt;br /&gt;
The position from which the text is selected.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;selectFrom&amp;quot;,{index,line})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''index:'''  An integer of the index of the text in the line where the text is selected from of the memo.&lt;br /&gt;
*'''line:'''  An integer of the line where the text is selected from of the memo.&lt;br /&gt;
&lt;br /&gt;
===showLine===&lt;br /&gt;
This property stores the value of how many lines does the text move to top.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;showLine&amp;quot;,line)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''line:'''  An integer indicates how many lines does the text move to top.&lt;br /&gt;
&lt;br /&gt;
===showPos===&lt;br /&gt;
This property stores the value of how many pixels of the text are moved to left.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;showPos&amp;quot;,posX)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''posX:'''  An integer indicates how many pixels of the text are moved to left.&lt;br /&gt;
&lt;br /&gt;
===text===&lt;br /&gt;
This is equivalent to [[dgsSetText]]/[[dgsGetText]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;text&amp;quot;,text)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''text:'''  A ''table'' of the text of the memo.( Because of multi lines, I use table instead of string )&lt;br /&gt;
&lt;br /&gt;
===textColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the text of the memo.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;textColor&amp;quot;,textColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor:'''  An integer of the color of the text of the memo.&lt;br /&gt;
&lt;br /&gt;
===textLength===&lt;br /&gt;
This is for scroll bar detection. You had better not touch it.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;textLength&amp;quot;,textlen)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textlen:'''  A table stores the length of text in every line.&lt;br /&gt;
&lt;br /&gt;
===textSize===&lt;br /&gt;
The scale of the text of the memo. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;textSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:'''  A float of the 2D X scale of the text of the memo.&lt;br /&gt;
*'''scaleY:'''  A float of the 2D Y scale of the text of the memo.&lt;br /&gt;
&lt;br /&gt;
===typingSound===&lt;br /&gt;
Typing sound, nil for disabled. This is equivalent to [[dgsMemoSetTypingSound]]/[[dgsMemoGetTypingSound]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;typingSound&amp;quot;,typingSound)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''typingSound:'''  A string of the path/url of typing sound.&lt;br /&gt;
&lt;br /&gt;
===typingSoundVolume===&lt;br /&gt;
Typing sound, nil for disabled. This is equivalent to [[dgsMemoSetTypingSoundVolume]]/[[dgsMemoGetTypingSoundVolume]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;typingSoundVolume&amp;quot;,typingSoundVolume)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''typingSoundVolume:'''  A float of the volume of the typing sound. Range is from 0.0 to 1.0. This can go above 1.0 for amplification.&lt;br /&gt;
&lt;br /&gt;
===wordWrap===&lt;br /&gt;
This property determines the word wrap state of dgs memo. This is equivalent to [[dgsMemoSetWordWrapState]]/[[dgsMemoGetWordWrapState]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(memo,&amp;quot;wordWrap&amp;quot;,wordWrap)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''wordWarp:'''  An integer or a bool of word wrap state, vaild state are as follows:&lt;br /&gt;
**'''false:''' Non-wordwrap&lt;br /&gt;
**'''1:''' Split via single character ( This will break a word into 2 parts )&lt;br /&gt;
**'''2:''' Split via word&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxcombobox&amp;diff=74312</id>
		<title>Dgs-dxcombobox</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxcombobox&amp;diff=74312"/>
		<updated>2022-03-17T09:49:12Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* wordbreak */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxcombobox that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===arrow===&lt;br /&gt;
This property determines the arrow material of the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;arrow&amp;quot;,arrow)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''arrow:''' A material element (texture/shader/screen).&lt;br /&gt;
&lt;br /&gt;
===alignment===&lt;br /&gt;
Alignment of the caption text within the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;alignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX:''' Horizontal alignment of the caption text within the combo box. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY:''' Vertical alignment of the caption text within the combo box. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===autoHideAfterSelected===&lt;br /&gt;
This property determines whether the drop down will be hide automatically after selected.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;autoHideAfterSelected&amp;quot;,autoHideAfterSelected)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''autoHideAfterSelected:''' A bool indicates whether the drop down will be hide automatically after selected.&lt;br /&gt;
&lt;br /&gt;
===autoSort===&lt;br /&gt;
This property determines whether auto sort is enabled. ''See [[dgsComboBoxSetAutoSortEnabled]]/[[dgsComboBoxGetAutoSortEnabled]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;autoSort&amp;quot;,autoSort)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''autoSort:''' A bool of auto sort state.&lt;br /&gt;
&lt;br /&gt;
===bgColor===&lt;br /&gt;
This property determines the background color of the combo box (behind items).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;bgColor&amp;quot;,bgColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgColor:''' An integer of the color that can be converted by [[tocolor]].&lt;br /&gt;
&lt;br /&gt;
===bgImage===&lt;br /&gt;
This property determines the background image of the combo box (behind items).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;bgImage&amp;quot;,bgImage)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgImage:''' A material element that serves as the background image of the combo box (texture/shader/screen source/renderTarget).&lt;br /&gt;
&lt;br /&gt;
===buttonLen===&lt;br /&gt;
This property stores the width of the arrow button.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;buttonLen&amp;quot;,{buttonLen,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''buttonLen:''' A float of the width of arrow button, which is affected by '''relative'''.&lt;br /&gt;
*'''relative:''' If set to ''true'', '''buttonLen''' will range from 0 to 1 relative to combo box's height, otherwise the '''buttonLen''' will be absolute pixels.&lt;br /&gt;
&lt;br /&gt;
===captionEdit===&lt;br /&gt;
This property stores the caption edit when the caption is editable with [[dgsComboBoxSetEditEnabled]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;captionEdit&amp;quot;,captionEdit)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''captionEdit:''' A dgs-dxedit element.&lt;br /&gt;
&lt;br /&gt;
===caption===&lt;br /&gt;
This property stores the caption text of combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;caption&amp;quot;,caption)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''caption:''' A string of the caption text of the combo box.&lt;br /&gt;
&lt;br /&gt;
===clip===&lt;br /&gt;
Whether the clip property is enabled (include caption text and item text). ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;clip&amp;quot;,clip)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clip:''' If set to true, the parts of the text that don't fit within the bounding box will be cut off.&lt;br /&gt;
&lt;br /&gt;
===color===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the background of the combobox (behind arrow).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;color&amp;quot;,{normalColor,hoveringColor,clickedColor})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''normalColor:''' An integer of the color of the combobox ( neither selected nor clicked by mouse ).&lt;br /&gt;
*'''hoveringColor:''' An integer of the color of the combobox which is selected.&lt;br /&gt;
*'''clickedColor:''' An integer of the color of the comboox which is clicked.&lt;br /&gt;
&lt;br /&gt;
===colorcoded===&lt;br /&gt;
Whether the color code is enabled (include caption text and item text). ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;colorcoded&amp;quot;,colorcoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorcoded:''' Set to true to enable embedded #FFFFFF color codes.&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font:''' A string or a [[Element/DX_font|dx font element]] of the text font of the combo box.&lt;br /&gt;
&lt;br /&gt;
===scrollBarThick===&lt;br /&gt;
This property determines the thickness of scroll bar.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;scrollBarThick&amp;quot;,scrollBarThick)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scrollBarThick:''' An integer of the thickness of scroll bar.&lt;br /&gt;
&lt;br /&gt;
===shadow===&lt;br /&gt;
The shadow of the text of the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;shadow&amp;quot;,{offsetX,offsetY,color,outline})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the shadow text of the combo box.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the shadow text of the combo box.&lt;br /&gt;
*'''color:''' An integer of the color of the shadow text of the combo box.&lt;br /&gt;
*'''outline:''' A bool of the outline state of the shadow text.&lt;br /&gt;
&lt;br /&gt;
===myBox===&lt;br /&gt;
Combo box is composed by dgs-dxcombobox and dgs-dxcombobox-Box. This property stores the dgs-combobox-Box of dgs-dxcombobox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;myBox&amp;quot;,myBox)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''myBox:''' A dgs-dxcombobox-box element.&lt;br /&gt;
&lt;br /&gt;
===image===&lt;br /&gt;
The image of combo box ( under arrow ).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;image&amp;quot;,{normalImage,hoveringImage,clickedImage})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''normalImage:''' A texture element of the background of the combobox ( no mouse enter and no mouse click ).&lt;br /&gt;
*'''hoveringImage:''' A texture element of the background of the combobox which is selected.&lt;br /&gt;
*'''clickedImage:''' A texture element of the background of the combobox which is clicked.&lt;br /&gt;
&lt;br /&gt;
===itemAlignment===&lt;br /&gt;
Alignment of the item text within the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemAlignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX:''' Horizontal alignment of the item text within the combo box. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY:''' Vertical alignment of the item text within the combo box. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===itemTextPadding===&lt;br /&gt;
This property determines the item text padding of combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemTextPadding&amp;quot;,{paddingX,paddingY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''paddingX''' : An integer of 2D x padding value.&lt;br /&gt;
*'''paddingY''' : An integer of 2D y padding value.&lt;br /&gt;
&lt;br /&gt;
===itemColor===&lt;br /&gt;
This property determines the 3 states' back ground colors of item.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemColor&amp;quot;,{colorNormal,colorHoving,colorSelected})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorNormal:''' An integer of the color of the item (Normal State).&lt;br /&gt;
*'''colorHoving:''' An integer of the color of the item (Hoving State).&lt;br /&gt;
*'''colorSelected:''' An integer of the color of the item (Selected State).&lt;br /&gt;
&lt;br /&gt;
===itemData===&lt;br /&gt;
This property stores item data.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;itemData&amp;quot;,itemData)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''columnData:''' A table stores all item data.&lt;br /&gt;
'''Item Structure'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	 textColor	BackGround Image			BackGround Color			Text	&lt;br /&gt;
	{[-2]=color,	[-1]={normal,hovering,selected},	[0]={normal,hovering,selected},		text	},&lt;br /&gt;
	{[-2]=color,	[-1]={normal,hovering,selected},	[0]={normal,hovering,selected},		text	},&lt;br /&gt;
	{[-2]=color,	[-1]={normal,hovering,selected},	[0]={normal,hovering,selected},		text	},&lt;br /&gt;
	{	...												},&lt;br /&gt;
}&lt;br /&gt;
]]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===itemImage===&lt;br /&gt;
This property determines the 3 states' background image of item.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemImage&amp;quot;,{imageNormal,imageHoving,imageSelected})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''imageNormal:''' A texture of the image of the row (Normal State).&lt;br /&gt;
*'''imageHoving:''' A texture of the image of the row (Hoving State).&lt;br /&gt;
*'''imageSelected:''' A texture of the image of the row (Selected State).&lt;br /&gt;
&lt;br /&gt;
===itemMoveOffset===&lt;br /&gt;
This property stores the move offset of item that is used to render.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemMoveOffset&amp;quot;,itemMoveOffset)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''itemMoveOffset:''' A float stores the move offset of item that is used to render.&lt;br /&gt;
&lt;br /&gt;
===itemTextColor===&lt;br /&gt;
This property determines the color of the item text of the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemTextColor&amp;quot;,itemTextColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''itemTextColor:''' An integer of the color that can be converted by [[tocolor]].&lt;br /&gt;
&lt;br /&gt;
===itemTextSize===&lt;br /&gt;
This property determines the scale of the item text of the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemTextSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the item.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the item.&lt;br /&gt;
&lt;br /&gt;
===listState===&lt;br /&gt;
This property stores the state of combo box which determines whether the combo box is opened(1) or closed(-1).&lt;br /&gt;
See: [[dgsComboBoxGetState]]/[[dgsComboBoxSetState]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;listState&amp;quot;,listState)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''listState:''' An integer of the state of combo box.&lt;br /&gt;
&lt;br /&gt;
===moveHardness===&lt;br /&gt;
This property determines how hard will the combo box moves when scrolling.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;moveHardness&amp;quot;,moveHardness)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''moveHardness:''' A float determins how hard will the combo box moves when scrolling ( should be larger than 0, lower than 1 ).&lt;br /&gt;
&lt;br /&gt;
===scrollbar===&lt;br /&gt;
This property stores the scroll bar of combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;scrollbar&amp;quot;,scrollbar)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scrollbar:''' a dgs-dxscrollbar element.&lt;br /&gt;
&lt;br /&gt;
===select===&lt;br /&gt;
This property stores the selected item of combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;select&amp;quot;,select)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''select:''' A integer of the index of selected item .&lt;br /&gt;
&lt;br /&gt;
===textColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the caption text of the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;textColor&amp;quot;,textColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor:''' An integer of the color of the text of the combo box.&lt;br /&gt;
&lt;br /&gt;
===textPadding===&lt;br /&gt;
This property determines the caption text padding of combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;textPadding&amp;quot;,{paddingX,paddingY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''paddingX''' : An integer of 2D x padding value.&lt;br /&gt;
*'''paddingY''' : An integer of 2D y padding value.&lt;br /&gt;
&lt;br /&gt;
===textSize===&lt;br /&gt;
The scale of the capiton text of the combo box. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;textSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the combo box.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the combo box.&lt;br /&gt;
&lt;br /&gt;
===textBox===&lt;br /&gt;
This property determines whether the '''caption''' of combo box is enabled or not.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;textBox&amp;quot;,textBox)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textBox:''' A bool indicates whether the '''caption''' of combo box is enabled or not.&lt;br /&gt;
&lt;br /&gt;
===wordBreak===&lt;br /&gt;
Whether the word-break of capiton text is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(capiton ,&amp;quot;wordBreak&amp;quot;,wordbreak)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''wordBreak:''' If set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.&lt;br /&gt;
&lt;br /&gt;
==Property of dgs-dxcombobox-Box==&lt;br /&gt;
===myCombo===&lt;br /&gt;
Combo box is composed by dgs-dxcombobox and dgs-dxcombobox-Box. This property stores the dgs-combobox of dgs-dxcombobox-Box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(myCombo,&amp;quot;myCombo&amp;quot;,myCombo)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''myComboyBox:''' A dgs-dxcombobox element.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxcheckbox&amp;diff=74311</id>
		<title>Dgs-dxcheckbox</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxcheckbox&amp;diff=74311"/>
		<updated>2022-03-16T17:57:33Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* image_t */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxcheckbox that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===alignment===&lt;br /&gt;
Alignment of the text within the checkbox.&lt;br /&gt;
&lt;br /&gt;
The functions as follows are basic on this property.&lt;br /&gt;
&lt;br /&gt;
[[dgsCheckBoxSetHorizontalAlign]]/[[dgsCheckBoxGetHorizontalAlign]]&lt;br /&gt;
&lt;br /&gt;
[[dgsCheckBoxSetVerticalAlign]]/[[dgsCheckBoxGetVerticalAlign]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbx,&amp;quot;alignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX:''' Horizontal alignment of the text within the checkbox. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY:''' Vertical alignment of the text within the checkbox. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===buttonSize===&lt;br /&gt;
This property determines the button size of the check box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;buttonSize&amp;quot;,{size,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''size:''' A number of the size of the button on screen.&lt;br /&gt;
*'''relative:''' A bool indicates whether the size is relative or absolute.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;buttonSize&amp;quot;,{width,height,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''width:''' A number of the width of the button on screen.&lt;br /&gt;
*'''height:''' A number of the height of the button on screen.&lt;br /&gt;
*'''relative:''' A bool indicates whether the size is relative or absolute.&lt;br /&gt;
&lt;br /&gt;
===clip===&lt;br /&gt;
Whether the clip property is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;clip&amp;quot;,clip)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clip:''' If set to true, the parts of the text that don't fit within the bounding box will be cut off.&lt;br /&gt;
&lt;br /&gt;
===colorIndeterminate===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the check box is indeterminate.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;colorIndeterminate&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (indeterminate)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (indeterminate)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (indeterminate)&lt;br /&gt;
&lt;br /&gt;
===colorUnchecked===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the check box is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;colorUnchecked&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===colorChecked===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the check box is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;colorChecked&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (checked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (checked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===colorCoded===&lt;br /&gt;
Whether the color code is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;colorCoded&amp;quot;,colorCoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorCoded:''' Set to true to enable embedded #FFFFFF color codes.&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font:''' A string or a [[Element/DX_font|dx font element]] of the text font of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===imageUnchecked===&lt;br /&gt;
This property determines the icon under 3 conditions when the check box is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;imageUnchecked&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===imageIndeterminate===&lt;br /&gt;
This property determines the icon under 3 conditions when the check box is indeterminate.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;imageIndeterminate&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (indeterminate)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (indeterminate)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (indeterminate)&lt;br /&gt;
&lt;br /&gt;
===imageChecked===&lt;br /&gt;
This property determines the icon under 3 conditions when the check box is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;imageChecked&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (checked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (checked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===shadow===&lt;br /&gt;
The shadow text of the checkbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;shadow&amp;quot;,{offsetX,offsetY,color,outline})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the shadow text of the checkbox.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the shadow text of the checkbox.&lt;br /&gt;
*'''color:''' An integer of the color of the shadow text of the checkbox.&lt;br /&gt;
*'''outline:''' A bool of the outline state of the shadow text.&lt;br /&gt;
&lt;br /&gt;
===state===&lt;br /&gt;
This property stores the state of the check box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;state&amp;quot;,state)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''state:''' A bool/nil of the state. Values can be as follows:&lt;br /&gt;
**'''true:''' Checked&lt;br /&gt;
**'''false:''' Unchecked&lt;br /&gt;
**'''nil:''' indeterminate&lt;br /&gt;
&lt;br /&gt;
===text===&lt;br /&gt;
This is equivalent to [[dgsSetText]]/[[dgsGetText]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;text&amp;quot;,text)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''text:''' A string of the text of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===textColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the text of the checkbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;textColor&amp;quot;,textColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor:''' An integer of the color of the text of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===textPadding===&lt;br /&gt;
This property determines the padding between the text and icon.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;textPadding&amp;quot;,textPadding)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textPadding''' A float of the distance from the icon to the text of the check box.&lt;br /&gt;
&lt;br /&gt;
===textSize===&lt;br /&gt;
The scale of the text of the checkbox. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;textSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the checkbox.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===wordBreak===&lt;br /&gt;
Whether the word-break is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;wordBreak&amp;quot;,wordBreak)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''wordBreak:''' If set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxcheckbox&amp;diff=74310</id>
		<title>Dgs-dxcheckbox</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxcheckbox&amp;diff=74310"/>
		<updated>2022-03-16T17:56:48Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* image_i */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxcheckbox that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===alignment===&lt;br /&gt;
Alignment of the text within the checkbox.&lt;br /&gt;
&lt;br /&gt;
The functions as follows are basic on this property.&lt;br /&gt;
&lt;br /&gt;
[[dgsCheckBoxSetHorizontalAlign]]/[[dgsCheckBoxGetHorizontalAlign]]&lt;br /&gt;
&lt;br /&gt;
[[dgsCheckBoxSetVerticalAlign]]/[[dgsCheckBoxGetVerticalAlign]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbx,&amp;quot;alignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX:''' Horizontal alignment of the text within the checkbox. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY:''' Vertical alignment of the text within the checkbox. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===buttonSize===&lt;br /&gt;
This property determines the button size of the check box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;buttonSize&amp;quot;,{size,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''size:''' A number of the size of the button on screen.&lt;br /&gt;
*'''relative:''' A bool indicates whether the size is relative or absolute.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;buttonSize&amp;quot;,{width,height,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''width:''' A number of the width of the button on screen.&lt;br /&gt;
*'''height:''' A number of the height of the button on screen.&lt;br /&gt;
*'''relative:''' A bool indicates whether the size is relative or absolute.&lt;br /&gt;
&lt;br /&gt;
===clip===&lt;br /&gt;
Whether the clip property is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;clip&amp;quot;,clip)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clip:''' If set to true, the parts of the text that don't fit within the bounding box will be cut off.&lt;br /&gt;
&lt;br /&gt;
===colorIndeterminate===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the check box is indeterminate.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;colorIndeterminate&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (indeterminate)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (indeterminate)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (indeterminate)&lt;br /&gt;
&lt;br /&gt;
===colorUnchecked===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the check box is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;colorUnchecked&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===colorChecked===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the check box is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;colorChecked&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (checked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (checked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===colorCoded===&lt;br /&gt;
Whether the color code is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;colorCoded&amp;quot;,colorCoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorCoded:''' Set to true to enable embedded #FFFFFF color codes.&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font:''' A string or a [[Element/DX_font|dx font element]] of the text font of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===imageUnchecked===&lt;br /&gt;
This property determines the icon under 3 conditions when the check box is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;imageUnchecked&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===imageIndeterminate===&lt;br /&gt;
This property determines the icon under 3 conditions when the check box is indeterminate.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;imageIndeterminate&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (indeterminate)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (indeterminate)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (indeterminate)&lt;br /&gt;
&lt;br /&gt;
===image_t===&lt;br /&gt;
This property determines the icon under 3 conditions when the check box is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;image_t&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (checked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (checked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===shadow===&lt;br /&gt;
The shadow text of the checkbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;shadow&amp;quot;,{offsetX,offsetY,color,outline})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the shadow text of the checkbox.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the shadow text of the checkbox.&lt;br /&gt;
*'''color:''' An integer of the color of the shadow text of the checkbox.&lt;br /&gt;
*'''outline:''' A bool of the outline state of the shadow text.&lt;br /&gt;
&lt;br /&gt;
===state===&lt;br /&gt;
This property stores the state of the check box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;state&amp;quot;,state)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''state:''' A bool/nil of the state. Values can be as follows:&lt;br /&gt;
**'''true:''' Checked&lt;br /&gt;
**'''false:''' Unchecked&lt;br /&gt;
**'''nil:''' indeterminate&lt;br /&gt;
&lt;br /&gt;
===text===&lt;br /&gt;
This is equivalent to [[dgsSetText]]/[[dgsGetText]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;text&amp;quot;,text)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''text:''' A string of the text of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===textColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the text of the checkbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;textColor&amp;quot;,textColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor:''' An integer of the color of the text of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===textPadding===&lt;br /&gt;
This property determines the padding between the text and icon.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;textPadding&amp;quot;,textPadding)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textPadding''' A float of the distance from the icon to the text of the check box.&lt;br /&gt;
&lt;br /&gt;
===textSize===&lt;br /&gt;
The scale of the text of the checkbox. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;textSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the checkbox.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===wordBreak===&lt;br /&gt;
Whether the word-break is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;wordBreak&amp;quot;,wordBreak)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''wordBreak:''' If set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxcheckbox&amp;diff=74309</id>
		<title>Dgs-dxcheckbox</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxcheckbox&amp;diff=74309"/>
		<updated>2022-03-16T17:55:55Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* image_f */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxcheckbox that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===alignment===&lt;br /&gt;
Alignment of the text within the checkbox.&lt;br /&gt;
&lt;br /&gt;
The functions as follows are basic on this property.&lt;br /&gt;
&lt;br /&gt;
[[dgsCheckBoxSetHorizontalAlign]]/[[dgsCheckBoxGetHorizontalAlign]]&lt;br /&gt;
&lt;br /&gt;
[[dgsCheckBoxSetVerticalAlign]]/[[dgsCheckBoxGetVerticalAlign]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbx,&amp;quot;alignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX:''' Horizontal alignment of the text within the checkbox. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY:''' Vertical alignment of the text within the checkbox. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===buttonSize===&lt;br /&gt;
This property determines the button size of the check box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;buttonSize&amp;quot;,{size,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''size:''' A number of the size of the button on screen.&lt;br /&gt;
*'''relative:''' A bool indicates whether the size is relative or absolute.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;buttonSize&amp;quot;,{width,height,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''width:''' A number of the width of the button on screen.&lt;br /&gt;
*'''height:''' A number of the height of the button on screen.&lt;br /&gt;
*'''relative:''' A bool indicates whether the size is relative or absolute.&lt;br /&gt;
&lt;br /&gt;
===clip===&lt;br /&gt;
Whether the clip property is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;clip&amp;quot;,clip)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clip:''' If set to true, the parts of the text that don't fit within the bounding box will be cut off.&lt;br /&gt;
&lt;br /&gt;
===colorIndeterminate===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the check box is indeterminate.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;colorIndeterminate&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (indeterminate)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (indeterminate)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (indeterminate)&lt;br /&gt;
&lt;br /&gt;
===colorUnchecked===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the check box is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;colorUnchecked&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===colorChecked===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the check box is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;colorChecked&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (checked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (checked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===colorCoded===&lt;br /&gt;
Whether the color code is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;colorCoded&amp;quot;,colorCoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorCoded:''' Set to true to enable embedded #FFFFFF color codes.&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font:''' A string or a [[Element/DX_font|dx font element]] of the text font of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===imageUnchecked===&lt;br /&gt;
This property determines the icon under 3 conditions when the check box is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;imageUnchecked&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===image_i===&lt;br /&gt;
This property determines the icon under 3 conditions when the check box is indeterminate.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;image_i&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (indeterminate)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (indeterminate)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (indeterminate)&lt;br /&gt;
&lt;br /&gt;
===image_t===&lt;br /&gt;
This property determines the icon under 3 conditions when the check box is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;image_t&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (checked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (checked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===shadow===&lt;br /&gt;
The shadow text of the checkbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;shadow&amp;quot;,{offsetX,offsetY,color,outline})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the shadow text of the checkbox.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the shadow text of the checkbox.&lt;br /&gt;
*'''color:''' An integer of the color of the shadow text of the checkbox.&lt;br /&gt;
*'''outline:''' A bool of the outline state of the shadow text.&lt;br /&gt;
&lt;br /&gt;
===state===&lt;br /&gt;
This property stores the state of the check box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;state&amp;quot;,state)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''state:''' A bool/nil of the state. Values can be as follows:&lt;br /&gt;
**'''true:''' Checked&lt;br /&gt;
**'''false:''' Unchecked&lt;br /&gt;
**'''nil:''' indeterminate&lt;br /&gt;
&lt;br /&gt;
===text===&lt;br /&gt;
This is equivalent to [[dgsSetText]]/[[dgsGetText]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;text&amp;quot;,text)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''text:''' A string of the text of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===textColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the text of the checkbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;textColor&amp;quot;,textColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor:''' An integer of the color of the text of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===textPadding===&lt;br /&gt;
This property determines the padding between the text and icon.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;textPadding&amp;quot;,textPadding)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textPadding''' A float of the distance from the icon to the text of the check box.&lt;br /&gt;
&lt;br /&gt;
===textSize===&lt;br /&gt;
The scale of the text of the checkbox. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;textSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the checkbox.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===wordBreak===&lt;br /&gt;
Whether the word-break is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;wordBreak&amp;quot;,wordBreak)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''wordBreak:''' If set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxcheckbox&amp;diff=74308</id>
		<title>Dgs-dxcheckbox</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxcheckbox&amp;diff=74308"/>
		<updated>2022-03-16T17:55:06Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* color_t */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxcheckbox that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===alignment===&lt;br /&gt;
Alignment of the text within the checkbox.&lt;br /&gt;
&lt;br /&gt;
The functions as follows are basic on this property.&lt;br /&gt;
&lt;br /&gt;
[[dgsCheckBoxSetHorizontalAlign]]/[[dgsCheckBoxGetHorizontalAlign]]&lt;br /&gt;
&lt;br /&gt;
[[dgsCheckBoxSetVerticalAlign]]/[[dgsCheckBoxGetVerticalAlign]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbx,&amp;quot;alignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX:''' Horizontal alignment of the text within the checkbox. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY:''' Vertical alignment of the text within the checkbox. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===buttonSize===&lt;br /&gt;
This property determines the button size of the check box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;buttonSize&amp;quot;,{size,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''size:''' A number of the size of the button on screen.&lt;br /&gt;
*'''relative:''' A bool indicates whether the size is relative or absolute.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;buttonSize&amp;quot;,{width,height,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''width:''' A number of the width of the button on screen.&lt;br /&gt;
*'''height:''' A number of the height of the button on screen.&lt;br /&gt;
*'''relative:''' A bool indicates whether the size is relative or absolute.&lt;br /&gt;
&lt;br /&gt;
===clip===&lt;br /&gt;
Whether the clip property is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;clip&amp;quot;,clip)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clip:''' If set to true, the parts of the text that don't fit within the bounding box will be cut off.&lt;br /&gt;
&lt;br /&gt;
===colorIndeterminate===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the check box is indeterminate.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;colorIndeterminate&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (indeterminate)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (indeterminate)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (indeterminate)&lt;br /&gt;
&lt;br /&gt;
===colorUnchecked===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the check box is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;colorUnchecked&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===colorChecked===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the check box is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;colorChecked&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (checked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (checked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===colorCoded===&lt;br /&gt;
Whether the color code is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;colorCoded&amp;quot;,colorCoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorCoded:''' Set to true to enable embedded #FFFFFF color codes.&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font:''' A string or a [[Element/DX_font|dx font element]] of the text font of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===image_f===&lt;br /&gt;
This property determines the icon under 3 conditions when the check box is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;image_f&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===image_i===&lt;br /&gt;
This property determines the icon under 3 conditions when the check box is indeterminate.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;image_i&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (indeterminate)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (indeterminate)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (indeterminate)&lt;br /&gt;
&lt;br /&gt;
===image_t===&lt;br /&gt;
This property determines the icon under 3 conditions when the check box is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;image_t&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (checked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (checked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===shadow===&lt;br /&gt;
The shadow text of the checkbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;shadow&amp;quot;,{offsetX,offsetY,color,outline})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the shadow text of the checkbox.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the shadow text of the checkbox.&lt;br /&gt;
*'''color:''' An integer of the color of the shadow text of the checkbox.&lt;br /&gt;
*'''outline:''' A bool of the outline state of the shadow text.&lt;br /&gt;
&lt;br /&gt;
===state===&lt;br /&gt;
This property stores the state of the check box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;state&amp;quot;,state)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''state:''' A bool/nil of the state. Values can be as follows:&lt;br /&gt;
**'''true:''' Checked&lt;br /&gt;
**'''false:''' Unchecked&lt;br /&gt;
**'''nil:''' indeterminate&lt;br /&gt;
&lt;br /&gt;
===text===&lt;br /&gt;
This is equivalent to [[dgsSetText]]/[[dgsGetText]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;text&amp;quot;,text)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''text:''' A string of the text of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===textColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the text of the checkbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;textColor&amp;quot;,textColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor:''' An integer of the color of the text of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===textPadding===&lt;br /&gt;
This property determines the padding between the text and icon.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;textPadding&amp;quot;,textPadding)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textPadding''' A float of the distance from the icon to the text of the check box.&lt;br /&gt;
&lt;br /&gt;
===textSize===&lt;br /&gt;
The scale of the text of the checkbox. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;textSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the checkbox.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===wordBreak===&lt;br /&gt;
Whether the word-break is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;wordBreak&amp;quot;,wordBreak)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''wordBreak:''' If set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxcheckbox&amp;diff=74307</id>
		<title>Dgs-dxcheckbox</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxcheckbox&amp;diff=74307"/>
		<updated>2022-03-16T17:54:20Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* color_f */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxcheckbox that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===alignment===&lt;br /&gt;
Alignment of the text within the checkbox.&lt;br /&gt;
&lt;br /&gt;
The functions as follows are basic on this property.&lt;br /&gt;
&lt;br /&gt;
[[dgsCheckBoxSetHorizontalAlign]]/[[dgsCheckBoxGetHorizontalAlign]]&lt;br /&gt;
&lt;br /&gt;
[[dgsCheckBoxSetVerticalAlign]]/[[dgsCheckBoxGetVerticalAlign]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbx,&amp;quot;alignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX:''' Horizontal alignment of the text within the checkbox. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY:''' Vertical alignment of the text within the checkbox. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===buttonSize===&lt;br /&gt;
This property determines the button size of the check box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;buttonSize&amp;quot;,{size,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''size:''' A number of the size of the button on screen.&lt;br /&gt;
*'''relative:''' A bool indicates whether the size is relative or absolute.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;buttonSize&amp;quot;,{width,height,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''width:''' A number of the width of the button on screen.&lt;br /&gt;
*'''height:''' A number of the height of the button on screen.&lt;br /&gt;
*'''relative:''' A bool indicates whether the size is relative or absolute.&lt;br /&gt;
&lt;br /&gt;
===clip===&lt;br /&gt;
Whether the clip property is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;clip&amp;quot;,clip)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clip:''' If set to true, the parts of the text that don't fit within the bounding box will be cut off.&lt;br /&gt;
&lt;br /&gt;
===colorIndeterminate===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the check box is indeterminate.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;colorIndeterminate&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (indeterminate)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (indeterminate)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (indeterminate)&lt;br /&gt;
&lt;br /&gt;
===colorUnchecked===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the check box is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;colorUnchecked&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===color_t===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the check box is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;color_t&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (checked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (checked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===colorCoded===&lt;br /&gt;
Whether the color code is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;colorCoded&amp;quot;,colorCoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorCoded:''' Set to true to enable embedded #FFFFFF color codes.&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font:''' A string or a [[Element/DX_font|dx font element]] of the text font of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===image_f===&lt;br /&gt;
This property determines the icon under 3 conditions when the check box is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;image_f&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===image_i===&lt;br /&gt;
This property determines the icon under 3 conditions when the check box is indeterminate.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;image_i&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (indeterminate)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (indeterminate)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (indeterminate)&lt;br /&gt;
&lt;br /&gt;
===image_t===&lt;br /&gt;
This property determines the icon under 3 conditions when the check box is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;image_t&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (checked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (checked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===shadow===&lt;br /&gt;
The shadow text of the checkbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;shadow&amp;quot;,{offsetX,offsetY,color,outline})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the shadow text of the checkbox.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the shadow text of the checkbox.&lt;br /&gt;
*'''color:''' An integer of the color of the shadow text of the checkbox.&lt;br /&gt;
*'''outline:''' A bool of the outline state of the shadow text.&lt;br /&gt;
&lt;br /&gt;
===state===&lt;br /&gt;
This property stores the state of the check box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;state&amp;quot;,state)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''state:''' A bool/nil of the state. Values can be as follows:&lt;br /&gt;
**'''true:''' Checked&lt;br /&gt;
**'''false:''' Unchecked&lt;br /&gt;
**'''nil:''' indeterminate&lt;br /&gt;
&lt;br /&gt;
===text===&lt;br /&gt;
This is equivalent to [[dgsSetText]]/[[dgsGetText]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;text&amp;quot;,text)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''text:''' A string of the text of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===textColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the text of the checkbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;textColor&amp;quot;,textColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor:''' An integer of the color of the text of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===textPadding===&lt;br /&gt;
This property determines the padding between the text and icon.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;textPadding&amp;quot;,textPadding)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textPadding''' A float of the distance from the icon to the text of the check box.&lt;br /&gt;
&lt;br /&gt;
===textSize===&lt;br /&gt;
The scale of the text of the checkbox. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;textSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the checkbox.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===wordBreak===&lt;br /&gt;
Whether the word-break is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;wordBreak&amp;quot;,wordBreak)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''wordBreak:''' If set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxcheckbox&amp;diff=74306</id>
		<title>Dgs-dxcheckbox</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxcheckbox&amp;diff=74306"/>
		<updated>2022-03-16T17:53:29Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* color_i */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxcheckbox that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===alignment===&lt;br /&gt;
Alignment of the text within the checkbox.&lt;br /&gt;
&lt;br /&gt;
The functions as follows are basic on this property.&lt;br /&gt;
&lt;br /&gt;
[[dgsCheckBoxSetHorizontalAlign]]/[[dgsCheckBoxGetHorizontalAlign]]&lt;br /&gt;
&lt;br /&gt;
[[dgsCheckBoxSetVerticalAlign]]/[[dgsCheckBoxGetVerticalAlign]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbx,&amp;quot;alignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX:''' Horizontal alignment of the text within the checkbox. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY:''' Vertical alignment of the text within the checkbox. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===buttonSize===&lt;br /&gt;
This property determines the button size of the check box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;buttonSize&amp;quot;,{size,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''size:''' A number of the size of the button on screen.&lt;br /&gt;
*'''relative:''' A bool indicates whether the size is relative or absolute.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;buttonSize&amp;quot;,{width,height,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''width:''' A number of the width of the button on screen.&lt;br /&gt;
*'''height:''' A number of the height of the button on screen.&lt;br /&gt;
*'''relative:''' A bool indicates whether the size is relative or absolute.&lt;br /&gt;
&lt;br /&gt;
===clip===&lt;br /&gt;
Whether the clip property is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;clip&amp;quot;,clip)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clip:''' If set to true, the parts of the text that don't fit within the bounding box will be cut off.&lt;br /&gt;
&lt;br /&gt;
===colorIndeterminate===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the check box is indeterminate.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;colorIndeterminate&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (indeterminate)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (indeterminate)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (indeterminate)&lt;br /&gt;
&lt;br /&gt;
===color_f===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the check box is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;color_f&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===color_t===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the check box is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;color_t&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (checked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (checked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===colorCoded===&lt;br /&gt;
Whether the color code is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;colorCoded&amp;quot;,colorCoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorCoded:''' Set to true to enable embedded #FFFFFF color codes.&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font:''' A string or a [[Element/DX_font|dx font element]] of the text font of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===image_f===&lt;br /&gt;
This property determines the icon under 3 conditions when the check box is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;image_f&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===image_i===&lt;br /&gt;
This property determines the icon under 3 conditions when the check box is indeterminate.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;image_i&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (indeterminate)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (indeterminate)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (indeterminate)&lt;br /&gt;
&lt;br /&gt;
===image_t===&lt;br /&gt;
This property determines the icon under 3 conditions when the check box is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;image_t&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (checked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (checked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===shadow===&lt;br /&gt;
The shadow text of the checkbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;shadow&amp;quot;,{offsetX,offsetY,color,outline})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the shadow text of the checkbox.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the shadow text of the checkbox.&lt;br /&gt;
*'''color:''' An integer of the color of the shadow text of the checkbox.&lt;br /&gt;
*'''outline:''' A bool of the outline state of the shadow text.&lt;br /&gt;
&lt;br /&gt;
===state===&lt;br /&gt;
This property stores the state of the check box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;state&amp;quot;,state)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''state:''' A bool/nil of the state. Values can be as follows:&lt;br /&gt;
**'''true:''' Checked&lt;br /&gt;
**'''false:''' Unchecked&lt;br /&gt;
**'''nil:''' indeterminate&lt;br /&gt;
&lt;br /&gt;
===text===&lt;br /&gt;
This is equivalent to [[dgsSetText]]/[[dgsGetText]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;text&amp;quot;,text)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''text:''' A string of the text of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===textColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the text of the checkbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;textColor&amp;quot;,textColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor:''' An integer of the color of the text of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===textPadding===&lt;br /&gt;
This property determines the padding between the text and icon.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;textPadding&amp;quot;,textPadding)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textPadding''' A float of the distance from the icon to the text of the check box.&lt;br /&gt;
&lt;br /&gt;
===textSize===&lt;br /&gt;
The scale of the text of the checkbox. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;textSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the checkbox.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===wordBreak===&lt;br /&gt;
Whether the word-break is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;wordBreak&amp;quot;,wordBreak)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''wordBreak:''' If set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxradiobutton&amp;diff=74305</id>
		<title>Dgs-dxradiobutton</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxradiobutton&amp;diff=74305"/>
		<updated>2022-03-16T17:52:15Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* image_t */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxradiobutton that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===alignment===&lt;br /&gt;
Alignment of the text within the radiobutton.&lt;br /&gt;
&lt;br /&gt;
The functions as follows are basic on this property.&lt;br /&gt;
&lt;br /&gt;
[[dgsRadioButtonSetHorizontalAlign]]/[[dgsRadioButtonGetHorizontalAlign]]&lt;br /&gt;
&lt;br /&gt;
[[dgsRadioButtonSetVerticalAlign]]/[[dgsRadioButtonGetVerticalAlign]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbx,&amp;quot;alignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX:''' Horizontal alignment of the text within the radiobutton. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY:''' Vertical alignment of the text within the radiobutton. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===clip===&lt;br /&gt;
Whether the clip property is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;clip&amp;quot;,clip)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clip:''' If set to true, the parts of the text that don't fit within the bounding box will be cut off.&lt;br /&gt;
&lt;br /&gt;
===colorUnchecked===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the radio button is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;colorUnchecked&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===colorChecked===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the radio button is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;colorChecked&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (checked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (checked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===colorCoded===&lt;br /&gt;
Whether the color code is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;colorCoded&amp;quot;,colorCoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorCoded:''' Set to true to enable embedded #FFFFFF color codes.&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font:''' A string or a [[Element/DX_font|dx font element]] of the text font of the radiobutton.&lt;br /&gt;
&lt;br /&gt;
===imageUnchecked===&lt;br /&gt;
This property determines the icon under 3 conditions when the radio button is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;imageUnchecked&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===imageChecked===&lt;br /&gt;
This property determines the icon under 3 conditions when the radio button is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;imageChecked&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (checked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (checked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===shadow===&lt;br /&gt;
The shadow text of the radiobutton.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;shadow&amp;quot;,{offsetX,offsetY,color,outline})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the shadow text of the radiobutton.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the shadow text of the radiobutton.&lt;br /&gt;
*'''color:''' An integer of the color of the shadow text of the radiobutton.&lt;br /&gt;
*'''outline:''' A bool of the outline state of the shadow text.&lt;br /&gt;
&lt;br /&gt;
===text===&lt;br /&gt;
This is equivalent to [[dgsSetText]]/[[dgsGetText]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;text&amp;quot;,text)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''text:''' A string of the text of the radiobutton.&lt;br /&gt;
&lt;br /&gt;
===textColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the text of the radiobutton.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;textColor&amp;quot;,textColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor:''' An integer of the color of the text of the radiobutton.&lt;br /&gt;
&lt;br /&gt;
===textPadding===&lt;br /&gt;
This property determines the padding between the text and icon.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;textPadding&amp;quot;,textPadding)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textPadding:''' A float of the distance from the icon to the text of the radio button.&lt;br /&gt;
&lt;br /&gt;
===textSize===&lt;br /&gt;
The scale of the text of the radiobutton. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;textSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the radiobutton.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the radiobutton.&lt;br /&gt;
&lt;br /&gt;
===wordBreak===&lt;br /&gt;
Whether the word-break is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;wordBreak&amp;quot;,wordBreak)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''wordBreak:''' If set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.&lt;br /&gt;
&lt;br /&gt;
==Additional Property For Parent Element==&lt;br /&gt;
===RadioButton===&lt;br /&gt;
This property stores which radio button is selected.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(parent,&amp;quot;RadioButton&amp;quot;,RadioButton)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''RadioButton:''' The radio button that is selected.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxradiobutton&amp;diff=74304</id>
		<title>Dgs-dxradiobutton</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxradiobutton&amp;diff=74304"/>
		<updated>2022-03-16T17:51:32Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* image_f */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxradiobutton that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===alignment===&lt;br /&gt;
Alignment of the text within the radiobutton.&lt;br /&gt;
&lt;br /&gt;
The functions as follows are basic on this property.&lt;br /&gt;
&lt;br /&gt;
[[dgsRadioButtonSetHorizontalAlign]]/[[dgsRadioButtonGetHorizontalAlign]]&lt;br /&gt;
&lt;br /&gt;
[[dgsRadioButtonSetVerticalAlign]]/[[dgsRadioButtonGetVerticalAlign]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbx,&amp;quot;alignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX:''' Horizontal alignment of the text within the radiobutton. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY:''' Vertical alignment of the text within the radiobutton. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===clip===&lt;br /&gt;
Whether the clip property is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;clip&amp;quot;,clip)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clip:''' If set to true, the parts of the text that don't fit within the bounding box will be cut off.&lt;br /&gt;
&lt;br /&gt;
===colorUnchecked===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the radio button is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;colorUnchecked&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===colorChecked===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the radio button is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;colorChecked&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (checked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (checked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===colorCoded===&lt;br /&gt;
Whether the color code is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;colorCoded&amp;quot;,colorCoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorCoded:''' Set to true to enable embedded #FFFFFF color codes.&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font:''' A string or a [[Element/DX_font|dx font element]] of the text font of the radiobutton.&lt;br /&gt;
&lt;br /&gt;
===imageUnchecked===&lt;br /&gt;
This property determines the icon under 3 conditions when the radio button is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;imageUnchecked&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===image_t===&lt;br /&gt;
This property determines the icon under 3 conditions when the radio button is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;image_t&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (checked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (checked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===shadow===&lt;br /&gt;
The shadow text of the radiobutton.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;shadow&amp;quot;,{offsetX,offsetY,color,outline})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the shadow text of the radiobutton.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the shadow text of the radiobutton.&lt;br /&gt;
*'''color:''' An integer of the color of the shadow text of the radiobutton.&lt;br /&gt;
*'''outline:''' A bool of the outline state of the shadow text.&lt;br /&gt;
&lt;br /&gt;
===text===&lt;br /&gt;
This is equivalent to [[dgsSetText]]/[[dgsGetText]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;text&amp;quot;,text)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''text:''' A string of the text of the radiobutton.&lt;br /&gt;
&lt;br /&gt;
===textColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the text of the radiobutton.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;textColor&amp;quot;,textColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor:''' An integer of the color of the text of the radiobutton.&lt;br /&gt;
&lt;br /&gt;
===textPadding===&lt;br /&gt;
This property determines the padding between the text and icon.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;textPadding&amp;quot;,textPadding)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textPadding:''' A float of the distance from the icon to the text of the radio button.&lt;br /&gt;
&lt;br /&gt;
===textSize===&lt;br /&gt;
The scale of the text of the radiobutton. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;textSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the radiobutton.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the radiobutton.&lt;br /&gt;
&lt;br /&gt;
===wordBreak===&lt;br /&gt;
Whether the word-break is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;wordBreak&amp;quot;,wordBreak)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''wordBreak:''' If set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.&lt;br /&gt;
&lt;br /&gt;
==Additional Property For Parent Element==&lt;br /&gt;
===RadioButton===&lt;br /&gt;
This property stores which radio button is selected.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(parent,&amp;quot;RadioButton&amp;quot;,RadioButton)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''RadioButton:''' The radio button that is selected.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxradiobutton&amp;diff=74303</id>
		<title>Dgs-dxradiobutton</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxradiobutton&amp;diff=74303"/>
		<updated>2022-03-16T17:50:37Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* color_f */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxradiobutton that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===alignment===&lt;br /&gt;
Alignment of the text within the radiobutton.&lt;br /&gt;
&lt;br /&gt;
The functions as follows are basic on this property.&lt;br /&gt;
&lt;br /&gt;
[[dgsRadioButtonSetHorizontalAlign]]/[[dgsRadioButtonGetHorizontalAlign]]&lt;br /&gt;
&lt;br /&gt;
[[dgsRadioButtonSetVerticalAlign]]/[[dgsRadioButtonGetVerticalAlign]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbx,&amp;quot;alignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX:''' Horizontal alignment of the text within the radiobutton. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY:''' Vertical alignment of the text within the radiobutton. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===clip===&lt;br /&gt;
Whether the clip property is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;clip&amp;quot;,clip)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clip:''' If set to true, the parts of the text that don't fit within the bounding box will be cut off.&lt;br /&gt;
&lt;br /&gt;
===colorUnchecked===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the radio button is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;colorUnchecked&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===colorChecked===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the radio button is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;colorChecked&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (checked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (checked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===colorCoded===&lt;br /&gt;
Whether the color code is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;colorCoded&amp;quot;,colorCoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorCoded:''' Set to true to enable embedded #FFFFFF color codes.&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font:''' A string or a [[Element/DX_font|dx font element]] of the text font of the radiobutton.&lt;br /&gt;
&lt;br /&gt;
===image_f===&lt;br /&gt;
This property determines the icon under 3 conditions when the radio button is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;image_f&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===image_t===&lt;br /&gt;
This property determines the icon under 3 conditions when the radio button is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;image_t&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (checked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (checked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===shadow===&lt;br /&gt;
The shadow text of the radiobutton.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;shadow&amp;quot;,{offsetX,offsetY,color,outline})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the shadow text of the radiobutton.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the shadow text of the radiobutton.&lt;br /&gt;
*'''color:''' An integer of the color of the shadow text of the radiobutton.&lt;br /&gt;
*'''outline:''' A bool of the outline state of the shadow text.&lt;br /&gt;
&lt;br /&gt;
===text===&lt;br /&gt;
This is equivalent to [[dgsSetText]]/[[dgsGetText]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;text&amp;quot;,text)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''text:''' A string of the text of the radiobutton.&lt;br /&gt;
&lt;br /&gt;
===textColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the text of the radiobutton.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;textColor&amp;quot;,textColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor:''' An integer of the color of the text of the radiobutton.&lt;br /&gt;
&lt;br /&gt;
===textPadding===&lt;br /&gt;
This property determines the padding between the text and icon.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;textPadding&amp;quot;,textPadding)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textPadding:''' A float of the distance from the icon to the text of the radio button.&lt;br /&gt;
&lt;br /&gt;
===textSize===&lt;br /&gt;
The scale of the text of the radiobutton. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;textSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the radiobutton.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the radiobutton.&lt;br /&gt;
&lt;br /&gt;
===wordBreak===&lt;br /&gt;
Whether the word-break is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;wordBreak&amp;quot;,wordBreak)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''wordBreak:''' If set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.&lt;br /&gt;
&lt;br /&gt;
==Additional Property For Parent Element==&lt;br /&gt;
===RadioButton===&lt;br /&gt;
This property stores which radio button is selected.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(parent,&amp;quot;RadioButton&amp;quot;,RadioButton)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''RadioButton:''' The radio button that is selected.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxradiobutton&amp;diff=74302</id>
		<title>Dgs-dxradiobutton</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxradiobutton&amp;diff=74302"/>
		<updated>2022-03-16T17:49:51Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* color_t */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxradiobutton that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===alignment===&lt;br /&gt;
Alignment of the text within the radiobutton.&lt;br /&gt;
&lt;br /&gt;
The functions as follows are basic on this property.&lt;br /&gt;
&lt;br /&gt;
[[dgsRadioButtonSetHorizontalAlign]]/[[dgsRadioButtonGetHorizontalAlign]]&lt;br /&gt;
&lt;br /&gt;
[[dgsRadioButtonSetVerticalAlign]]/[[dgsRadioButtonGetVerticalAlign]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbx,&amp;quot;alignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX:''' Horizontal alignment of the text within the radiobutton. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY:''' Vertical alignment of the text within the radiobutton. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===clip===&lt;br /&gt;
Whether the clip property is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;clip&amp;quot;,clip)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clip:''' If set to true, the parts of the text that don't fit within the bounding box will be cut off.&lt;br /&gt;
&lt;br /&gt;
===color_f===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the radio button is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;color_f&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===colorChecked===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the radio button is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;colorChecked&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (checked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (checked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===colorCoded===&lt;br /&gt;
Whether the color code is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;colorCoded&amp;quot;,colorCoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorCoded:''' Set to true to enable embedded #FFFFFF color codes.&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font:''' A string or a [[Element/DX_font|dx font element]] of the text font of the radiobutton.&lt;br /&gt;
&lt;br /&gt;
===image_f===&lt;br /&gt;
This property determines the icon under 3 conditions when the radio button is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;image_f&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===image_t===&lt;br /&gt;
This property determines the icon under 3 conditions when the radio button is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;image_t&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (checked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (checked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===shadow===&lt;br /&gt;
The shadow text of the radiobutton.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;shadow&amp;quot;,{offsetX,offsetY,color,outline})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the shadow text of the radiobutton.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the shadow text of the radiobutton.&lt;br /&gt;
*'''color:''' An integer of the color of the shadow text of the radiobutton.&lt;br /&gt;
*'''outline:''' A bool of the outline state of the shadow text.&lt;br /&gt;
&lt;br /&gt;
===text===&lt;br /&gt;
This is equivalent to [[dgsSetText]]/[[dgsGetText]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;text&amp;quot;,text)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''text:''' A string of the text of the radiobutton.&lt;br /&gt;
&lt;br /&gt;
===textColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the text of the radiobutton.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;textColor&amp;quot;,textColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor:''' An integer of the color of the text of the radiobutton.&lt;br /&gt;
&lt;br /&gt;
===textPadding===&lt;br /&gt;
This property determines the padding between the text and icon.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;textPadding&amp;quot;,textPadding)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textPadding:''' A float of the distance from the icon to the text of the radio button.&lt;br /&gt;
&lt;br /&gt;
===textSize===&lt;br /&gt;
The scale of the text of the radiobutton. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;textSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the radiobutton.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the radiobutton.&lt;br /&gt;
&lt;br /&gt;
===wordBreak===&lt;br /&gt;
Whether the word-break is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;wordBreak&amp;quot;,wordBreak)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''wordBreak:''' If set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.&lt;br /&gt;
&lt;br /&gt;
==Additional Property For Parent Element==&lt;br /&gt;
===RadioButton===&lt;br /&gt;
This property stores which radio button is selected.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(parent,&amp;quot;RadioButton&amp;quot;,RadioButton)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''RadioButton:''' The radio button that is selected.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxwindow&amp;diff=74301</id>
		<title>Dgs-dxwindow</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxwindow&amp;diff=74301"/>
		<updated>2022-03-16T17:29:53Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* colorcoded */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxwindow that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===alignment===&lt;br /&gt;
Alignment of the title text of the window.&lt;br /&gt;
&lt;br /&gt;
The functions as follows are based on this property.&lt;br /&gt;
&lt;br /&gt;
[[dgsWindowSetHorizontalAlign]]/[[dgsWindowGetHorizontalAlign]]&lt;br /&gt;
&lt;br /&gt;
[[dgsWindowSetVerticalAlign]]/[[dgsWindowGetVerticalAlign]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(window,&amp;quot;alignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX:''' Horizontal alignment of the title text of the windowl. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY:''' Vertical alignment of the title text of the window. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===borderSize===&lt;br /&gt;
This property determines the border size in pixels which is used to resize the window.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(window,&amp;quot;borderSize&amp;quot;,borderSize)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''borderSize:''' An integer of the size of the border of the window in pixels.&lt;br /&gt;
&lt;br /&gt;
===color===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the background of the window.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(window,&amp;quot;color&amp;quot;,color)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''color:''' An integer of the color of the background of the window.&lt;br /&gt;
&lt;br /&gt;
===colorCoded===&lt;br /&gt;
Whether the color code in the title text is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(window,&amp;quot;colorCoded&amp;quot;,colorCoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorCoded:''' Set to true to enable embedded #FFFFFF color codes.&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(window,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font:''' A [[Element/DX_font|dx font element]] of the title text font of the window.&lt;br /&gt;
&lt;br /&gt;
===ignoreTitle===&lt;br /&gt;
This property determines whether to ignore the window title when calculating window's child elements (useful for gui to dgs).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(window,&amp;quot;ignoreTitle&amp;quot;,ignoreTitle)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ignoreTitle:''' A bool of the state of whether to ignore the window title.&lt;br /&gt;
&lt;br /&gt;
===image===&lt;br /&gt;
The texture element(texture/render target/screen source/shader etc) of the background of the window.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(window,&amp;quot;image&amp;quot;,image)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''image:''' A texture element of the background of the window.&lt;br /&gt;
&lt;br /&gt;
===maxSize===&lt;br /&gt;
This property determines the maximum width and height of the window that users can resize to.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(window,&amp;quot;maxSize&amp;quot;,{maxWidth,maxHeight})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''maxWidth:''' An integer of the maximum width of the window.&lt;br /&gt;
*'''maxHeight:''' An integer of the maximum height of the window.&lt;br /&gt;
&lt;br /&gt;
===minSize===&lt;br /&gt;
This property determines the minimum width and height of the window that users can resize to.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(window,&amp;quot;minSize&amp;quot;,{minWidth,minHeight})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''minWidth:''' An integer of the minimum width of the window.&lt;br /&gt;
*'''minHeight:''' An integer of the minimum height of the window.&lt;br /&gt;
&lt;br /&gt;
===movable===&lt;br /&gt;
This is equivalent to [[dgsWindowSetMovable]], which allows you to specify whether or not a user can move a DGS window.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(window,&amp;quot;movable&amp;quot;,movable)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''movable:''' A boolean value indicating whether user can move the window or not.&lt;br /&gt;
&lt;br /&gt;
===sizable===&lt;br /&gt;
This is equivalent to [[dgsWindowSetSizable]], which allows you to specify whether or not a user can resize a DGS window.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(window,&amp;quot;sizable&amp;quot;,sizable)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''movable:''' A boolean value indicating whether user can resize the window or not.&lt;br /&gt;
&lt;br /&gt;
===text===&lt;br /&gt;
This is equivalent to [[dgsSetText]]/[[dgsGetText]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(window,&amp;quot;text&amp;quot;,text)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''text:''' A string of the title text of the window.&lt;br /&gt;
&lt;br /&gt;
===textColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the title text of the window.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(window,&amp;quot;textColor&amp;quot;,textColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor:''' An integer of the color of the title text of the window.&lt;br /&gt;
&lt;br /&gt;
===textSize===&lt;br /&gt;
The scale of the '''title''' ''text'' of the window. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(window,&amp;quot;textSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the title text of the window.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the title text of the window.&lt;br /&gt;
&lt;br /&gt;
===titleColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the '''title''' of the window when the window is '''focused''' ( For '''blurred''', see [[#titleColorBlur|titleColorBlur]] ).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(window,&amp;quot;titleColor&amp;quot;,titleColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''titleColor:''' An integer of the color of the title of the focused window.&lt;br /&gt;
&lt;br /&gt;
===titleColorBlur===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the title of the window when the window is '''blurred'''.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(window,&amp;quot;titleColorBlur&amp;quot;,titleColorBlur)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''titleColorBlur:''' An integer of the color of the title of the blurred window. Set to ''nil'' to disable blur color.&lt;br /&gt;
&lt;br /&gt;
===titleHeight===&lt;br /&gt;
This property determines the title size in pixels which is also used to move the window.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(window,&amp;quot;titleHeight&amp;quot;,titleHeight)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''titleHeight:''' An integer of the size of the title of the window in pixels.&lt;br /&gt;
&lt;br /&gt;
===titleImage===&lt;br /&gt;
The texture element(texture/render target/screen source/shader etc) of the title background of the window.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(window,&amp;quot;titleImage&amp;quot;,titleImage)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''titleImage:''' A texture element of the title background of the window.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxswitchbutton&amp;diff=74300</id>
		<title>Dgs-dxswitchbutton</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxswitchbutton&amp;diff=74300"/>
		<updated>2022-03-16T17:27:11Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* wordbreak */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxswitchbutton that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===clickType===&lt;br /&gt;
This property determines which button on mouse can change the state of switch button.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;clickType&amp;quot;,clickType)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clickType:''' An integer, available values are as follows:&lt;br /&gt;
**'''1:''' Left Mouse Button&lt;br /&gt;
**'''2:''' Wheel&lt;br /&gt;
**'''3:''' Right Mouse Button&lt;br /&gt;
&lt;br /&gt;
===clip===&lt;br /&gt;
Whether the clip property is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;clip&amp;quot;,clip)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clip:''' If set to true, the parts of the text that don't fit within the bounding box will be cut off.&lt;br /&gt;
&lt;br /&gt;
===cursorMoveSpeed===&lt;br /&gt;
This property determines the cursor moving speed when switch button changes state.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;cursorMoveSpeed&amp;quot;,cursorMoveSpeed)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''cursorMoveSpeed:''' A float of the cursor moving speed when switch button changes state.&lt;br /&gt;
&lt;br /&gt;
===cursorWidth===&lt;br /&gt;
This property determines the cursor width of switch button.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;cursorWidth&amp;quot;,cursorWidth)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''cursorWidth:''' A float of the cursor width of switch button.&lt;br /&gt;
&lt;br /&gt;
===cursorLength===&lt;br /&gt;
This property determines the cursor length of switch button.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;cursorLength&amp;quot;,cursorLength)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''cursorLength:''' A float of the cursor length of switch button.&lt;br /&gt;
&lt;br /&gt;
===colorcoded===&lt;br /&gt;
Whether the color code is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;colorcoded&amp;quot;,colorcoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorcoded:''' Set to true to enable embedded #FFFFFF color codes.&lt;br /&gt;
&lt;br /&gt;
===colorOn===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the background color when the switch button turns on.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;colorOn&amp;quot;,{normalColor,hoverColor,clickColor})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''normalColor:''' A integer of background color of turned on switch button.&lt;br /&gt;
*'''hoverColor:''' A integer of background color of turned on switch button when the mouse is hovering on it.&lt;br /&gt;
*'''clickColor:''' A integer of background color of turned on switch button when the mouse is clicked on it.&lt;br /&gt;
&lt;br /&gt;
===colorOff===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the background color when the switch button turns off.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;colorOff&amp;quot;,{normalColor,hoverColor,clickColor})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''normalColor:''' A integer of background color of turned off switch button.&lt;br /&gt;
*'''hoverColor:''' A integer of background color of turned off switch button when the mouse is hovering on it.&lt;br /&gt;
*'''clickColor:''' A integer of background color of turned off switch button when the mouse is clicked on it.&lt;br /&gt;
&lt;br /&gt;
===cursorColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the cursor color.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;cursorColor&amp;quot;,{normalColor,hoverColor,clickColor})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''normalColor:''' A integer of cursor color of the switch button.&lt;br /&gt;
*'''hoverColor:''' A integer of cursor color of the switch button when the mouse is hovering on it.&lt;br /&gt;
*'''clickColor:''' A integer of cursor color of the switch button when the mouse is clicked on it.&lt;br /&gt;
&lt;br /&gt;
===cursorImage===&lt;br /&gt;
The cursor image of switch button.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;cursorImage&amp;quot;,{normalColor,hoverColor,clickColor})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''normalImage:''' An material of cursor image of the switch button.&lt;br /&gt;
*'''hoverImage:''' An material of cursor image of the switch button when the mouse is hovering on it.&lt;br /&gt;
*'''clickImage:''' An material of cursor image of the switch button when the mouse is clicked on it.&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font:''' A string or a [[Element/DX_font|dx font element]] of the text font of the switch button.&lt;br /&gt;
&lt;br /&gt;
===imageOn===&lt;br /&gt;
The background image of switch button when the state is on.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;imageOn&amp;quot;,{normalImage,hoverImage,clickImage})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''normalImage:''' An material of background image of turned on switch button.&lt;br /&gt;
*'''hoverImage:''' An material of background image of turned on switch button when the mouse is hovering on it.&lt;br /&gt;
*'''clickImage:''' An material of background image of turned on switch button when the mouse is clicked on it.&lt;br /&gt;
&lt;br /&gt;
===imageOff===&lt;br /&gt;
The background image of switch button when the state is off.(&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;imageOff&amp;quot;,{normalImage,hoverImage,clickImage})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''normalImage:''' An material of background image of turned off switch button.&lt;br /&gt;
*'''hoverImage:''' An material of background image of turned off switch button when the mouse is hovering on it.&lt;br /&gt;
*'''clickImage:''' An material of background image of turned off switch button when the mouse is clicked on it.&lt;br /&gt;
&lt;br /&gt;
===shadow===&lt;br /&gt;
The shadow text of the switch button.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;shadow&amp;quot;,{offsetX,offsetY,color,outline})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the shadow text of the switch button.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the shadow text of the switch button.&lt;br /&gt;
*'''color:''' An integer of the color of the shadow text of the switch button.&lt;br /&gt;
*'''outline:''' A bool of the outline state of the shadow text.&lt;br /&gt;
&lt;br /&gt;
===state===&lt;br /&gt;
This property indicates the state of switch button.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;state&amp;quot;,state)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''state:''' A bool indicates the state of switch button.&lt;br /&gt;
**'''true:''' Turns on&lt;br /&gt;
**'''false:''' Turns off&lt;br /&gt;
&lt;br /&gt;
===stateAnim===&lt;br /&gt;
This stores the progress of cursor animation, which is not recommend to modify.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;stateAnim&amp;quot;,stateAnim)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''stateAnim:''' A float of the cursor animation progress.&lt;br /&gt;
&lt;br /&gt;
===style===&lt;br /&gt;
This property determines the state of switch button.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;style&amp;quot;,style)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''style:''' Mixed, available values are as follows:&lt;br /&gt;
**'''false:''' Default, a switch button with fading color when changing state.&lt;br /&gt;
**'''1:''' Split background color for turned on and off ( also split images ).&lt;br /&gt;
**'''2:''' Split background color for turned on and off ( not split images ).&lt;br /&gt;
&lt;br /&gt;
===textOn===&lt;br /&gt;
This property stores the text to be shown when the switch button turns on.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;textOn&amp;quot;,textOn)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textOn:''' A string of the text of the switch button.&lt;br /&gt;
&lt;br /&gt;
===textOff===&lt;br /&gt;
This property stores the text to be shown when the switch button turns off.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;textOff&amp;quot;,textOff)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textOff:''' A string of the text of the switch button.&lt;br /&gt;
&lt;br /&gt;
===textColorOn===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the text when the switch button turns on.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;textColor_t&amp;quot;,textColor_t)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor_t:''' An integer of the color of the text when the switch button turns on.&lt;br /&gt;
&lt;br /&gt;
===textColorOff===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the text when the switch button turns off.(State=false)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;textColor_f&amp;quot;,textColor_f)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor_f:''' An integer of the color of the text when the switch button turns off.&lt;br /&gt;
&lt;br /&gt;
===textSize===&lt;br /&gt;
The scale of the text of the switch button. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;textSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the switch button.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the switch button.&lt;br /&gt;
&lt;br /&gt;
===troughWidth===&lt;br /&gt;
This property determines trough length of switch button.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;troughWidth&amp;quot;,troughWidth)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''troughWidth:''' A float of the trough length of switch button.&lt;br /&gt;
&lt;br /&gt;
===wordbreak===&lt;br /&gt;
Whether the word-break is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(switchButton,&amp;quot;wordBreak&amp;quot;,wordBreak)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''wordBreak:''' If set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxscrollbar&amp;diff=74299</id>
		<title>Dgs-dxscrollbar</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxscrollbar&amp;diff=74299"/>
		<updated>2022-03-16T17:22:54Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* map */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxscrollbar that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===arrowWidth===&lt;br /&gt;
This property adjusts the width of arrow ( take vertical scroll bar as a standard ).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(scrollbar,&amp;quot;arrowWidth&amp;quot;,{arrowWidth,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''arrowWidth:''' A number of the width of arrow, which is affected by '''relative'''.&lt;br /&gt;
*'''relative:''' A bool of whether the width is relative or not. If this is true, then length must be between 0 and 1.&lt;br /&gt;
&lt;br /&gt;
===arrowColor===&lt;br /&gt;
The arrow color of scroll bar, includes normal, hovering, click.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(scrollbar,&amp;quot;arrowColor&amp;quot;,{arrowColorNormal,arrowColorHover,arrowColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''arrowColorNormal:''' An integer of the arrow color, which can be converted by [[tocolor]].&lt;br /&gt;
*'''arrowColorHover:''' An integer of the arrow color when the mouse's cursor is hovering on it, which can be converted by [[tocolor]].&lt;br /&gt;
*'''arrowColorClick:''' An integer of the arrow color when the arrow gets clicked, which can be converted by [[tocolor]].&lt;br /&gt;
&lt;br /&gt;
===arrowImage===&lt;br /&gt;
The arrow image of scroll bar.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(scrollbar,&amp;quot;arrowImage&amp;quot;,arrowImage)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''arrowImage:''' A material element of the arrow image of scroll bar.&lt;br /&gt;
&lt;br /&gt;
===cursorColor===&lt;br /&gt;
The cursor color of scroll bar, includes normal, hovering, click.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(scrollbar,&amp;quot;cursorColor&amp;quot;,{cursorColorNormal,cursorColorHover,cursorColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''cursorColorNormal:''' An integer of the cursor color, which can be converted by [[tocolor]].&lt;br /&gt;
*'''cursorColorHover:''' An integer of the cursor color when the mouse's cursor is hovering on it, which can be converted by [[tocolor]].&lt;br /&gt;
*'''cursorColorClick:''' An integer of the cursor color when the cursor gets clicked, which can be converted by [[tocolor]].&lt;br /&gt;
&lt;br /&gt;
===cursorImage===&lt;br /&gt;
The cursor image of scroll bar.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(scrollbar,&amp;quot;cursorImage&amp;quot;,cursorImage)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''cursorImage:''' A material element of the cursor image of scroll bar.&lt;br /&gt;
&lt;br /&gt;
===cursorWidth===&lt;br /&gt;
This property adjusts the width of cursor ( take vertical scroll bar as a standard ).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(scrollbar,&amp;quot;cursorWidth&amp;quot;,{cursorWidth,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''cursorWidth:''' A number of the width of arrow, which is affected by '''relative'''.&lt;br /&gt;
*'''relative:''' A bool of whether the width is relative or not. If this is true, then length must be between 0 and 1.&lt;br /&gt;
&lt;br /&gt;
===grades===&lt;br /&gt;
This property stores the grades of scroll bar. ''See [[dgsScrollBarSetGrades]]/[[dgsScrollBarGetGrades]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(scrollbar,&amp;quot;grades&amp;quot;,grades)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''grades:''' A number of the grades of scroll bar.&lt;br /&gt;
&lt;br /&gt;
===currentGrade===&lt;br /&gt;
This property stores the current grade of scroll bar if ''grades'' enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(scrollbar,&amp;quot;currentGrade&amp;quot;,currentGrade)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''currentGrade:''' A number of the current grade, ranges from 0 to ''grades''.&lt;br /&gt;
&lt;br /&gt;
===image===&lt;br /&gt;
The image of scroll bar, includes arrow, cursor and trough.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(scrollbar,&amp;quot;image&amp;quot;,{arrowImage,cursorImage,troughImage})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''arrowImage:''' A texture of the image of arrow.&lt;br /&gt;
*'''cursorImage:''' A texture of the image of cursor.&lt;br /&gt;
*'''troughImage:''' A texture of the image of trough.&lt;br /&gt;
&lt;br /&gt;
===imageRotation===&lt;br /&gt;
This property solves the problem of the rotation of the images.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(scrollbar,&amp;quot;imageRotation&amp;quot;,{Horizontal,Vertical})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''Horizontal:''' A table includes arrowImageRotation,cursorImageRotation,troughImageRotation of horizontal scroll bar, by default:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; &amp;gt;{0,270,270}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''Vertical:''' A table includes arrowImageRotation,cursorImageRotation,troughImageRotation of vertical scroll bar, by default:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; &amp;gt;{270,0,0}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===length===&lt;br /&gt;
This property determines whether the length of the cursor of scroll bar.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(scrollbar,&amp;quot;length&amp;quot;,{length,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''length:''' A number of the length of scroll bar, which is affected by '''relative'''.&lt;br /&gt;
*'''relative:''' A bool of whether the length is relative or not. If this is true, then length must be between 0 and 1.&lt;br /&gt;
&lt;br /&gt;
===locked===&lt;br /&gt;
This is equivalent to [[dgsScrollBarSetLocked]]/[[dgsScrollBarGetLocked]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(scrollbar,&amp;quot;locked&amp;quot;,locked)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''locked:''' A bool of whether the scroll bar get locked or not.&lt;br /&gt;
&lt;br /&gt;
===map===&lt;br /&gt;
This property will map the value from 0~100 to mapMin~mapMax (Both get and set scroll position).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(scrollbar,&amp;quot;map&amp;quot;,{mapMin,mapMax})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''mapMin:''' A number of the min value.&lt;br /&gt;
*'''mapMax:''' A number of the max value.&lt;br /&gt;
&lt;br /&gt;
===multiplier===&lt;br /&gt;
This property determines whether how much a scroll bar will scroll when you click the arrow or use mouse wheel.&lt;br /&gt;
&lt;br /&gt;
This property is difficult to understand. Before use this property, do an experiment first.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(scrollbar,&amp;quot;multiplier&amp;quot;,{multiplier,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''multiplier:''' A number of the multiplier of scroll bar, which is affected by '''relative'''.&lt;br /&gt;
*'''relative:''' A bool of whether the multiplier is relative or not. If this is true, then multiplier must be between 0 and 1.&lt;br /&gt;
&lt;br /&gt;
===scrollPosition===&lt;br /&gt;
This is equivalent to [[dgsScrollBarSetScrollPosition]]/[[dgsScrollBarGetScrollPosition]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(scrollbar,&amp;quot;scrollPosition&amp;quot;,scrollPosition)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scrollPosition:''' An integer of the scroll poisition of the scroll bar. Ranges from 0 to 100.&lt;br /&gt;
&lt;br /&gt;
===scrollArrow===&lt;br /&gt;
This property indicates whether enable the scroll arrow or not. It is useful when making scroll bar act as slide or something else.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(scrollbar,&amp;quot;scrollArrow&amp;quot;,scrollArrow)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scrollArrow:''' A bool of whether enable the scroll arrow or not.&lt;br /&gt;
&lt;br /&gt;
===troughClickAction===&lt;br /&gt;
This property determines what will the scroll bar do when you click the trough.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(scrollbar,&amp;quot;troughClickAction&amp;quot;,troughClickAction)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''troughClickAction:''' A string. Available values are as follows:&lt;br /&gt;
**'''none:''' No actions.&lt;br /&gt;
**'''step:''' Step up or down.&lt;br /&gt;
**'''jump:''' Make cursor of scroll bar jump to the current place you click.&lt;br /&gt;
&lt;br /&gt;
===troughColor===&lt;br /&gt;
The trough color of scroll bar.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(scrollbar,&amp;quot;troughColor&amp;quot;,{troughColorPart1,troughColorPart2})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''troughColorPart1:''' An integer of the trough color on the left/top side of the cursor, which can be converted by [[tocolor]].&lt;br /&gt;
*'''troughColorPart2:''' An integer of the trough color on the right/bottom side of the cursor, which can be converted by [[tocolor]].&lt;br /&gt;
&lt;br /&gt;
===troughWidth===&lt;br /&gt;
This property adjusts the width of trough ( take vertical scroll bar as a standard ).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(scrollbar,&amp;quot;troughWidth&amp;quot;,{troughWidth,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''troughWidth:''' A number of the width of arrow, which is affected by '''relative'''.&lt;br /&gt;
*'''relative:''' A bool of whether the width is relative or not. If this is true, then length must be between 0 and 1.&lt;br /&gt;
&lt;br /&gt;
===troughImage===&lt;br /&gt;
The trough image of scroll bar.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(scrollbar,&amp;quot;troughImage&amp;quot;,troughImage)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''troughImage:''' A material element of the trough image of scroll bar.&lt;br /&gt;
&lt;br /&gt;
===wheelReversed===&lt;br /&gt;
This property determines whether the increasing/decreasing direction is reversed when using mouse wheel.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(scrollbar,&amp;quot;wheelReversed&amp;quot;,wheelReversed)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''wheelReversed:''' A bool indicates whether the increasing/decreasing direction is reversed when using mouse wheel.&lt;br /&gt;
&lt;br /&gt;
===isHorizontal===&lt;br /&gt;
This property determines whether the scroll bar is horizontal or vertical.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(scrollbar,&amp;quot;isHorizontal&amp;quot;,isHorizontal)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''isHorizontal:''' Available values are as follows:&lt;br /&gt;
**'''false:''' vertical&lt;br /&gt;
**'''true:''' horizontal&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxradiobutton&amp;diff=74298</id>
		<title>Dgs-dxradiobutton</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxradiobutton&amp;diff=74298"/>
		<updated>2022-03-16T17:20:54Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* textPadding */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxradiobutton that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===alignment===&lt;br /&gt;
Alignment of the text within the radiobutton.&lt;br /&gt;
&lt;br /&gt;
The functions as follows are basic on this property.&lt;br /&gt;
&lt;br /&gt;
[[dgsRadioButtonSetHorizontalAlign]]/[[dgsRadioButtonGetHorizontalAlign]]&lt;br /&gt;
&lt;br /&gt;
[[dgsRadioButtonSetVerticalAlign]]/[[dgsRadioButtonGetVerticalAlign]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbx,&amp;quot;alignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX:''' Horizontal alignment of the text within the radiobutton. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY:''' Vertical alignment of the text within the radiobutton. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===clip===&lt;br /&gt;
Whether the clip property is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;clip&amp;quot;,clip)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clip:''' If set to true, the parts of the text that don't fit within the bounding box will be cut off.&lt;br /&gt;
&lt;br /&gt;
===color_f===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the radio button is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;color_f&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===color_t===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the radio button is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;color_t&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (checked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (checked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===colorCoded===&lt;br /&gt;
Whether the color code is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;colorCoded&amp;quot;,colorCoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorCoded:''' Set to true to enable embedded #FFFFFF color codes.&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font:''' A string or a [[Element/DX_font|dx font element]] of the text font of the radiobutton.&lt;br /&gt;
&lt;br /&gt;
===image_f===&lt;br /&gt;
This property determines the icon under 3 conditions when the radio button is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;image_f&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===image_t===&lt;br /&gt;
This property determines the icon under 3 conditions when the radio button is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;image_t&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (checked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (checked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===shadow===&lt;br /&gt;
The shadow text of the radiobutton.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;shadow&amp;quot;,{offsetX,offsetY,color,outline})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the shadow text of the radiobutton.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the shadow text of the radiobutton.&lt;br /&gt;
*'''color:''' An integer of the color of the shadow text of the radiobutton.&lt;br /&gt;
*'''outline:''' A bool of the outline state of the shadow text.&lt;br /&gt;
&lt;br /&gt;
===text===&lt;br /&gt;
This is equivalent to [[dgsSetText]]/[[dgsGetText]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;text&amp;quot;,text)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''text:''' A string of the text of the radiobutton.&lt;br /&gt;
&lt;br /&gt;
===textColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the text of the radiobutton.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;textColor&amp;quot;,textColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor:''' An integer of the color of the text of the radiobutton.&lt;br /&gt;
&lt;br /&gt;
===textPadding===&lt;br /&gt;
This property determines the padding between the text and icon.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;textPadding&amp;quot;,textPadding)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textPadding:''' A float of the distance from the icon to the text of the radio button.&lt;br /&gt;
&lt;br /&gt;
===textSize===&lt;br /&gt;
The scale of the text of the radiobutton. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;textSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the radiobutton.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the radiobutton.&lt;br /&gt;
&lt;br /&gt;
===wordBreak===&lt;br /&gt;
Whether the word-break is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;wordBreak&amp;quot;,wordBreak)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''wordBreak:''' If set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.&lt;br /&gt;
&lt;br /&gt;
==Additional Property For Parent Element==&lt;br /&gt;
===RadioButton===&lt;br /&gt;
This property stores which radio button is selected.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(parent,&amp;quot;RadioButton&amp;quot;,RadioButton)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''RadioButton:''' The radio button that is selected.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxradiobutton&amp;diff=74297</id>
		<title>Dgs-dxradiobutton</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxradiobutton&amp;diff=74297"/>
		<updated>2022-03-16T17:20:20Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* textPadding */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxradiobutton that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===alignment===&lt;br /&gt;
Alignment of the text within the radiobutton.&lt;br /&gt;
&lt;br /&gt;
The functions as follows are basic on this property.&lt;br /&gt;
&lt;br /&gt;
[[dgsRadioButtonSetHorizontalAlign]]/[[dgsRadioButtonGetHorizontalAlign]]&lt;br /&gt;
&lt;br /&gt;
[[dgsRadioButtonSetVerticalAlign]]/[[dgsRadioButtonGetVerticalAlign]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbx,&amp;quot;alignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX:''' Horizontal alignment of the text within the radiobutton. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY:''' Vertical alignment of the text within the radiobutton. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===clip===&lt;br /&gt;
Whether the clip property is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;clip&amp;quot;,clip)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clip:''' If set to true, the parts of the text that don't fit within the bounding box will be cut off.&lt;br /&gt;
&lt;br /&gt;
===color_f===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the radio button is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;color_f&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===color_t===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the radio button is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;color_t&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (checked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (checked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===colorCoded===&lt;br /&gt;
Whether the color code is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;colorCoded&amp;quot;,colorCoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorCoded:''' Set to true to enable embedded #FFFFFF color codes.&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font:''' A string or a [[Element/DX_font|dx font element]] of the text font of the radiobutton.&lt;br /&gt;
&lt;br /&gt;
===image_f===&lt;br /&gt;
This property determines the icon under 3 conditions when the radio button is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;image_f&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===image_t===&lt;br /&gt;
This property determines the icon under 3 conditions when the radio button is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;image_t&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (checked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (checked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===shadow===&lt;br /&gt;
The shadow text of the radiobutton.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;shadow&amp;quot;,{offsetX,offsetY,color,outline})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the shadow text of the radiobutton.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the shadow text of the radiobutton.&lt;br /&gt;
*'''color:''' An integer of the color of the shadow text of the radiobutton.&lt;br /&gt;
*'''outline:''' A bool of the outline state of the shadow text.&lt;br /&gt;
&lt;br /&gt;
===text===&lt;br /&gt;
This is equivalent to [[dgsSetText]]/[[dgsGetText]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;text&amp;quot;,text)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''text:''' A string of the text of the radiobutton.&lt;br /&gt;
&lt;br /&gt;
===textColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the text of the radiobutton.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;textColor&amp;quot;,textColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor:''' An integer of the color of the text of the radiobutton.&lt;br /&gt;
&lt;br /&gt;
===textPadding===&lt;br /&gt;
This property determines the padding between the text and icon.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;textPadding&amp;quot;,textPadding)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textPadding''' A float of the distance from the icon to the text of the radio button.&lt;br /&gt;
&lt;br /&gt;
===textSize===&lt;br /&gt;
The scale of the text of the radiobutton. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;textSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the radiobutton.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the radiobutton.&lt;br /&gt;
&lt;br /&gt;
===wordBreak===&lt;br /&gt;
Whether the word-break is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(radiobutton,&amp;quot;wordBreak&amp;quot;,wordBreak)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''wordBreak:''' If set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.&lt;br /&gt;
&lt;br /&gt;
==Additional Property For Parent Element==&lt;br /&gt;
===RadioButton===&lt;br /&gt;
This property stores which radio button is selected.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(parent,&amp;quot;RadioButton&amp;quot;,RadioButton)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''RadioButton:''' The radio button that is selected.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxprogressbar&amp;diff=74296</id>
		<title>Dgs-dxprogressbar</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxprogressbar&amp;diff=74296"/>
		<updated>2022-03-16T17:19:02Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* thickness */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxlabel that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===bgColor===&lt;br /&gt;
This property determines the background color of the progress bar.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(progressbar,&amp;quot;bgColor&amp;quot;,bgColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgColor''' : An integer of the color that can be converted by [[tocolor]].&lt;br /&gt;
&lt;br /&gt;
===bgImage===&lt;br /&gt;
This property determines the background image of the progress bar.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(progressbar,&amp;quot;bgImage&amp;quot;,bgImage)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgImage''' : A material element that serves as the background image of the progress bar (texture/shader/screen source/renderTarget).&lt;br /&gt;
&lt;br /&gt;
===indicatorColor===&lt;br /&gt;
This property determines the indicator color of the progress bar.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(progressbar,&amp;quot;indicatorColor&amp;quot;,indicatorColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''indicatorColor''' : An integer of the color that can be converted by [[tocolor]].&lt;br /&gt;
&lt;br /&gt;
===indicatorImage===&lt;br /&gt;
This property determines the indicator image of the progress bar.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(progressbar,&amp;quot;indicatorImage&amp;quot;,indicatorImage)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''indicatorImage''' : A material element that serves as the indicator image of the progress bar (texture/shader/screen source/renderTarget).&lt;br /&gt;
&lt;br /&gt;
===padding===&lt;br /&gt;
This property determines the padding of the progress bar.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(progressbar,&amp;quot;padding&amp;quot;,{paddingX,paddingY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''paddingX''' : An integer of 2D x padding value.&lt;br /&gt;
*'''paddingY''' : An integer of 2D y padding value.&lt;br /&gt;
&lt;br /&gt;
===progress===&lt;br /&gt;
This property stores the progress value of progress bar.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(progressbar,&amp;quot;progress&amp;quot;,progress)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''progress''' : A float of progress value.&lt;br /&gt;
&lt;br /&gt;
===style===&lt;br /&gt;
This property stores the style name of progress bar, to change the style use [[dgsProgressBarSetStyle]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(progressbar,&amp;quot;style&amp;quot;,style)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''style''' : A string of the style name.&lt;br /&gt;
&lt;br /&gt;
==Style Properties==&lt;br /&gt;
===&amp;gt;Style:normal-horizontal&amp;lt;===&lt;br /&gt;
None&lt;br /&gt;
===&amp;gt;Style:normal-vertical&amp;lt;===&lt;br /&gt;
None&lt;br /&gt;
===&amp;gt;Style:ring-round&amp;lt;===&lt;br /&gt;
====elements====&lt;br /&gt;
This style property stores the custom elements of the progress bar.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(progressbar,&amp;quot;elements&amp;quot;,elements)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''elements:''' A table of elements. Built-in elements are as follows:&lt;br /&gt;
**'''elements.circleShader:''' A shader of ring-round style.&lt;br /&gt;
&lt;br /&gt;
====isClockwise====&lt;br /&gt;
This style property determines whether the progress direction is clockwise or anti-clockwise .&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(progressbar,&amp;quot;isClockwise&amp;quot;,isClockwise)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''isClockwise:''' A bool of whether the progress direction is clockwise or anti-clockwise.&lt;br /&gt;
&lt;br /&gt;
====rotation====&lt;br /&gt;
This style property determines the rotation of the ring.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(progressbar,&amp;quot;rotation&amp;quot;,rotation)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''rotation:''' A float of the rotation of the ring.&lt;br /&gt;
&lt;br /&gt;
====antiAliased====&lt;br /&gt;
This style property determines the anti aliasing of the ring.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(progressbar,&amp;quot;antiAliased&amp;quot;,antiAliased)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''antiAliased:''' A float of the anti aliasing of the ring.&lt;br /&gt;
&lt;br /&gt;
====radius====&lt;br /&gt;
This style property determines the radius of the ring.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(progressbar,&amp;quot;radius&amp;quot;,radius)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''radius:''' A float of the radius of the ring.&lt;br /&gt;
&lt;br /&gt;
====thickness====&lt;br /&gt;
This style property determines the thickness of the ring.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(progressbar,&amp;quot;thickness&amp;quot;,thickness)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''radius:''' A float of the thickness of the ring.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===&amp;gt;Style:ring-plain&amp;lt;===&lt;br /&gt;
====elements====&lt;br /&gt;
This style property stores the custom elements of the progress bar.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(progressbar,&amp;quot;elements&amp;quot;,elements)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''elements:''' A table of elements. Built-in elements are as follows:&lt;br /&gt;
**'''elements.circleShader:''' A shader of ring-round style.&lt;br /&gt;
&lt;br /&gt;
====isClockwise====&lt;br /&gt;
This style property determines whether the progress direction is clockwise or anti-clockwise.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(progressbar,&amp;quot;isClockwise&amp;quot;,isClockwise)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''isClockwise:''' A bool of whether the progress direction is clockwise or anti-clockwise.&lt;br /&gt;
&lt;br /&gt;
====rotation====&lt;br /&gt;
This style property determines the rotation of the ring.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(progressbar,&amp;quot;rotation&amp;quot;,rotation)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''rotation:''' A float of the rotation of the ring.&lt;br /&gt;
&lt;br /&gt;
====antiAliased====&lt;br /&gt;
This style property determines the anti aliasing of the ring.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(progressbar,&amp;quot;antiAliased&amp;quot;,antiAliased)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''antiAliased:''' A float of the anti aliasing of the ring.&lt;br /&gt;
&lt;br /&gt;
====radius====&lt;br /&gt;
This style property determines the radius of the ring.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(progressbar,&amp;quot;radius&amp;quot;,radius)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''radius:''' A float of the radius of the ring.&lt;br /&gt;
&lt;br /&gt;
====thickness====&lt;br /&gt;
This style property determines the thickness of the ring.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(progressbar,&amp;quot;thickness&amp;quot;,thickness)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''thickness:''' A float of the thickness of the ring.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxgridlist&amp;diff=74295</id>
		<title>Dgs-dxgridlist</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxgridlist&amp;diff=74295"/>
		<updated>2022-03-16T17:11:01Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* columnImage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxgridlist that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===autoSort===&lt;br /&gt;
This property determines whether auto sort is enabled. ''See [[dgsGridListSetAutoSortEnabled]]/[[dgsGridListGetAutoSortEnabled]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;autoSort&amp;quot;,autoSort)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''autoSort:''' A bool of auto sort state.&lt;br /&gt;
&lt;br /&gt;
===backgroundOffset===&lt;br /&gt;
This property determines the offset between the left border and row background.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;backgroundOffset&amp;quot;,backgroundOffset)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''backgroundOffset:''' An integer of the offset between the left border and row background.&lt;br /&gt;
&lt;br /&gt;
===bgColor===&lt;br /&gt;
This property determines the background color of the grid list.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;bgColor&amp;quot;,bgColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgColor:''' An integer of the color that can be converted by [[tocolor]].&lt;br /&gt;
&lt;br /&gt;
===bgImage===&lt;br /&gt;
This property determines the background image of the grid list.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;bgImage&amp;quot;,bgImage)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgImage:''' A material element that serves as the background image of the grid list (texture/shader/screen source/renderTarget).&lt;br /&gt;
&lt;br /&gt;
===clip===&lt;br /&gt;
Whether the clip property is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;clip&amp;quot;,clip)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clip:''' If set to true, the parts of the text that don't fit within the bounding box will be cut off.&lt;br /&gt;
&lt;br /&gt;
===columnColor===&lt;br /&gt;
This property determines the background color of the column of the grid list.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;columnColor&amp;quot;,columnColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''columnColor:''' An integer of the color that can be converted by [[tocolor]].&lt;br /&gt;
&lt;br /&gt;
===columnData===&lt;br /&gt;
This property stores column data.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;columnData&amp;quot;,columnData)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''columnData:''' A table stores all column data.&lt;br /&gt;
'''Data Structure'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	{ text, Width, AllWidthFront, Alignment, color, colorcoded, sizeX, sizeY, font },&lt;br /&gt;
	{ text, Width, AllWidthFront, Alignment, color, colorcoded, sizeX, sizeY, font },&lt;br /&gt;
	{ text, Width, AllWidthFront, Alignment, color, colorcoded, sizeX, sizeY, font },&lt;br /&gt;
	...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===columnHeight===&lt;br /&gt;
This property determines the column height of the grid list.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;columnHeight&amp;quot;,columnHeight)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''columnHeight:''' An integer of column height of the grid list.&lt;br /&gt;
&lt;br /&gt;
===columnImage===&lt;br /&gt;
This property determines the background image of the column of the grid list.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;columnImage&amp;quot;,columnImage)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''columnImage:''' A material element that serves as the background image of the column of the grid list (texture/shader/screen source/renderTarget).&lt;br /&gt;
&lt;br /&gt;
===columnMoveOffset===&lt;br /&gt;
This property stores the move offset of column that is used to render.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;columnMoveOffset&amp;quot;,columnMoveOffset)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''columnMoveOffset:''' A float stores the move offset of column that is used to render.&lt;br /&gt;
&lt;br /&gt;
===columnOffset===&lt;br /&gt;
This property determines the global offset between the left border and column text.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;columnOffset&amp;quot;,columnOffset)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''columnOffset:''' An integer of offset of the column.&lt;br /&gt;
&lt;br /&gt;
===columnRelative===&lt;br /&gt;
This property determines whether the column length is relative or not. ''See [[dgsGridListSetColumnRelative]]/[[dgsGridListGetColumnRelative]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;columnRelative&amp;quot;,columnRelative)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''columnRelative:''' A bool of the relative state of the column length.&lt;br /&gt;
&lt;br /&gt;
===columnShadow===&lt;br /&gt;
The shadow text of the column.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;columnShadow&amp;quot;,{offsetX,offsetY,color})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the shadow text of the column.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the shadow text of the column.&lt;br /&gt;
*'''color:''' An integer of the color of the shadow text of the column.&lt;br /&gt;
&lt;br /&gt;
===columnTextColor===&lt;br /&gt;
This property determines the color of the column text of the grid list.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;columnTextColor&amp;quot;,columnTextColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''columnTextColor:''' An integer of the color that can be converted by [[tocolor]].&lt;br /&gt;
&lt;br /&gt;
===columnTextPosOffset===&lt;br /&gt;
This property adjusts the offset of the text of the column, which can solve text misplacing caused by font.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;columnTextPosOffset&amp;quot;,{offsetX,offsetY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the text of the column.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the text of the column.&lt;br /&gt;
&lt;br /&gt;
===columnTextSize===&lt;br /&gt;
This property determines the scale of the column text of the grid list.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;columnTextSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the column.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the column.&lt;br /&gt;
&lt;br /&gt;
===columnWordBreak===&lt;br /&gt;
This property determines whether word break property for column is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;columnWordBreak&amp;quot;,columnWordBreak)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''columnWordBreak:''' A bool indicates whether the word break is enabled.&lt;br /&gt;
&lt;br /&gt;
===colorcoded===&lt;br /&gt;
Whether the color code is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;colorcoded&amp;quot;,colorcoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorcoded:''' Set to true to enable embedded #FFFFFF color codes.&lt;br /&gt;
&lt;br /&gt;
===defaultColumnOffset===&lt;br /&gt;
This property determines offset of normal row column (is different from but works with columnOffset). ''See [[dgsGridListSetRowAsSection]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;defaultColumnOffset&amp;quot;,defaultColumnOffset)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''defaultColumnOffset:''' An integer of the offset of normal row column.&lt;br /&gt;
&lt;br /&gt;
===defaultSortFunctions===&lt;br /&gt;
This property determines the default sort function of grid list when clicking column.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;defaultSortFunctions&amp;quot;,{lowerSortFunction,upperSortFunction})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''lowerSortFunction:''' A string of the lower sort function name.&lt;br /&gt;
*'''upperSortFunction:''' A string of the upper sort function name.&lt;br /&gt;
Here are three groups can be use:&lt;br /&gt;
*'''greaterLower'''/'''greaterUpper''': Sorting directly with string.&lt;br /&gt;
*'''numGreaterLowerNumFirst'''/'''numGreaterUpperNumFirst''': Sorting support number order with number first.&lt;br /&gt;
*'''numGreaterLowerStrFirst'''/'''numGreaterUpperStrFirst''': Sorting support number order with string first.&lt;br /&gt;
*'''longerLower'''/'''longerUpper''': Sorting according to the utf8 length of the string.&lt;br /&gt;
&lt;br /&gt;
===defaultSortIcons===&lt;br /&gt;
This property determines the icons of the default sort function.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;defaultSortIcons&amp;quot;,{iconA,iconB})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''iconA:''' A string of the lower sort icon ('''▲''' By default).&lt;br /&gt;
*'''iconB:''' A string of the upper sort icon ('''▼''' By default).&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font:''' A [[Element/DX_font|dx font element]] of the default text font of the gridlist.&lt;br /&gt;
&lt;br /&gt;
===leading===&lt;br /&gt;
This property determines the space between rows.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;leading&amp;quot;,leading)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''leading:''' How many pixels between rows&lt;br /&gt;
&lt;br /&gt;
===multiSelection===&lt;br /&gt;
This property determines whether multi selection is enabled or not. ''See [[dgsGridListSetMultiSelectionEnabled]]/[[dgsGridListGetMultiSelectionEnabled]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;multiSelection&amp;quot;,multiSelection)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''multiSelection:''' A bool of the state of the multi selection.&lt;br /&gt;
&lt;br /&gt;
===mode===&lt;br /&gt;
This property determines the render mode of grid list.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;mode&amp;quot;,mode)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''mode:''' A bool of the state of render mode. Detail:&lt;br /&gt;
**'''true:''' No render target mode (Crappy and have a lot of bugs but doesn't take video memory)&lt;br /&gt;
**'''false:''' Render target mode (Great quality but takes video memory)&lt;br /&gt;
&lt;br /&gt;
===mouseSelectButton ===&lt;br /&gt;
This property allows which button on the mouse can select items of grid list.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;mouseSelectButton&amp;quot;,{canLeftButton,canMiddleButton,canRightButton})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''canLeftButton:''' A bool of whether left mouse button can select the grid list (default is true)&lt;br /&gt;
*'''canMiddleButton:''' A bool of whether middle mouse button can select the grid list (default is false)&lt;br /&gt;
*'''canRightButton:''' A bool of whether right mouse button can select the grid list (default is false)&lt;br /&gt;
&lt;br /&gt;
===moveHardness===&lt;br /&gt;
This property determines how hard will the grid list moves when scrolling.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;moveHardness&amp;quot;,{scrollHardness,dragHardness})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scrollHardness:''' A float determins how hard will the grid list moves when scrolling with wheel ( should be larger than 0, lower than 1 ).&lt;br /&gt;
*'''dragHardness:''' A float determins how hard will the grid list moves when dragging with mouse ( should be larger than 0, lower than 1 ).&lt;br /&gt;
&lt;br /&gt;
===preSelect===&lt;br /&gt;
This property stores the item id the cursor is hovering on.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;preSelect&amp;quot;,{rowIndex,columnIndex})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''rowIndex:''' Row Index&lt;br /&gt;
*'''columnIndex:''' Column Index&lt;br /&gt;
&lt;br /&gt;
===rowColor===&lt;br /&gt;
This property determines the default 3 states' colors of row. ''See [[dgsGridListSetRowBackGroundColor]]/[[dgsGridListGetRowBackGroundColor]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;rowColor&amp;quot;,{colorDefault,colorHoving,colorSelected})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorDefault:''' An integer of the color of the row (Default State).&lt;br /&gt;
*'''colorHoving:''' An integer of the color of the row (Hoving State).&lt;br /&gt;
*'''colorSelected:''' An integer of the color of the row (Selected State).&lt;br /&gt;
&lt;br /&gt;
===rowData===&lt;br /&gt;
This property stores row data.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;rowData&amp;quot;,rowData)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''rowData:''' A table stores all row data.&lt;br /&gt;
'''Data Structure'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
	[1] = {&lt;br /&gt;
		[-4] = columnOffset,				--column offset&lt;br /&gt;
		[-3] = {normal,hovering,selected},		--background image&lt;br /&gt;
		[-2] = true/false,				--selectable&lt;br /&gt;
		[-1] = true/false,				--clickable&lt;br /&gt;
		[0] = {normal,hovering,selected},		--background color&lt;br /&gt;
		[1] = {text,color,colorcoded,scalex,scaley,font,{image,color,imagex,imagey,imagew,imageh},unselectable,unclickable},	--Column 1&lt;br /&gt;
		[2] = {text,color,colorcoded,scalex,scaley,font,{image,color,imagex,imagey,imagew,imageh},unselectable,unclickable},	--Column 2&lt;br /&gt;
		...&lt;br /&gt;
	},		--Row 1&lt;br /&gt;
	[2] = {&lt;br /&gt;
		[-4] = columnOffset,				--column offset&lt;br /&gt;
		[-3] = {normal,hovering,selected},		--background image&lt;br /&gt;
		[-2] = true/false,				--selectable&lt;br /&gt;
		[-1] = true/false,				--clickable&lt;br /&gt;
		[0] = {normal,hovering,selected},		--background color&lt;br /&gt;
		[1] = {text,color,colorcoded,scalex,scaley,font,{image,color,imagex,imagey,imagew,imageh},unselectable,unclickable},	--Column 1&lt;br /&gt;
		[2] = {text,color,colorcoded,scalex,scaley,font,{image,color,imagex,imagey,imagew,imageh},unselectable,unclickable},	--Column 2&lt;br /&gt;
		...&lt;br /&gt;
	},		--Row 2&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===rowHeight===&lt;br /&gt;
This property determines the row height of the grid list.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;rowHeight&amp;quot;,rowHeight)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''rowHeight:''' An integer of row height of the grid list.&lt;br /&gt;
&lt;br /&gt;
===rowImage===&lt;br /&gt;
This property determines the default 3 states' background image of row. ''See [[dgsGridListGetRowBackGroundImage]]/[[dgsGridListSetRowBackGroundImage]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;rowImage&amp;quot;,{normalImage,hoveringImage,selectedImage})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''normalImage:''' A texture of the image of the row (Normal State).&lt;br /&gt;
*'''hoveringImage:''' A texture of the image of the row (Hoving State).&lt;br /&gt;
*'''selectedImage:''' A texture of the image of the row (Selected State).&lt;br /&gt;
&lt;br /&gt;
===rowMoveOffset===&lt;br /&gt;
This property stores the move offset of row that is used to render.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;rowMoveOffset&amp;quot;,rowMoveOffset)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''rowMoveOffset:''' A float stores the move offset of row that is used to render.&lt;br /&gt;
&lt;br /&gt;
===rowSelect===&lt;br /&gt;
This property stores the selected rows.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;rowSelect&amp;quot;,data)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''data:''' the data.&lt;br /&gt;
'''Data Structure'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	[Column1] = {&lt;br /&gt;
		Row1,&lt;br /&gt;
		Row2,&lt;br /&gt;
		...&lt;br /&gt;
	},&lt;br /&gt;
	[Column2] = {&lt;br /&gt;
		Row1,&lt;br /&gt;
		Row2,&lt;br /&gt;
		...&lt;br /&gt;
	},&lt;br /&gt;
	...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===rowShadow===&lt;br /&gt;
The shadow text of the row.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;rowShadow&amp;quot;,{offsetX,offsetY,color})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the shadow text of the row.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the shadow text of the row.&lt;br /&gt;
*'''color:''' An integer of the color of the shadow text of the row.&lt;br /&gt;
&lt;br /&gt;
===rowTextColor===&lt;br /&gt;
This property determines the default color of the row text of the grid list.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;rowTextColor&amp;quot;,rowTextColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''rowTextColor:''' An integer of the color of the row text that can be converted by [[tocolor]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;rowTextColor&amp;quot;,{normalColor,hoveringColor,selectedColor})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''normalColor:''' A integer of the color of the row text that can be converted by [[tocolor]](Normal State).&lt;br /&gt;
*'''hoveringColor:''' A integer of the color of the row text that can be converted by [[tocolor]](Hoving State).&lt;br /&gt;
*'''selectedColor:''' A integer of the color of the row text that can be converted by [[tocolor]](Selected State).&lt;br /&gt;
&lt;br /&gt;
===rowTextPosOffset===&lt;br /&gt;
This property adjusts the offset of the text of the row, which can solve text misplacing caused by font.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;rowTextPosOffset&amp;quot;,{offsetX,offsetY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the text of the row.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the text of the row.&lt;br /&gt;
&lt;br /&gt;
===rowTextSize===&lt;br /&gt;
This property determines the default scale of the row text of the grid list.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;rowTextSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the row.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the row.&lt;br /&gt;
&lt;br /&gt;
===rowWordBreak===&lt;br /&gt;
This property determines whether word break property for row is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;rowWordBreak&amp;quot;,rowWordBreak)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''rowWordBreak:''' A bool indicates whether the word break is enabled.&lt;br /&gt;
&lt;br /&gt;
===scrollBarState===&lt;br /&gt;
This property forces the visibility of scroll bar. ''See [[dgsGridListSetScrollBarState]]/[[dgsGridListGetScrollBarState]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;scrollBarState&amp;quot;,{vertical,horizontal})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''vertical:''' A bool of the state of the vertical scroll bar.&lt;br /&gt;
*'''horizontal:''' A bool of the state of the horizontal scroll bar.&lt;br /&gt;
**'''true:''' Force to be visible&lt;br /&gt;
**'''false:''' Force to be invisible&lt;br /&gt;
**'''nil:''' Auto&lt;br /&gt;
&lt;br /&gt;
===scrollBarThick===&lt;br /&gt;
This property determines the thickness of scroll bar.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;scrollBarThick&amp;quot;,scrollBarThick)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scrollBarThick:''' An integer of the thickness of scroll bar.&lt;br /&gt;
&lt;br /&gt;
===sectionColumnOffset===&lt;br /&gt;
This property determines offset of section row column (is different from but works with columnOffset). ''See [[dgsGridListSetRowAsSection]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;sectionColumnOffset&amp;quot;,sectionColumnOffset)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''sectionColumnOffset:''' An integer of the offset of section row column.&lt;br /&gt;
&lt;br /&gt;
===sectionFont===&lt;br /&gt;
This property determines the font of the text of which row is in section mode. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;sectionFont&amp;quot;,sectionFont)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''sectionFont:''' A [[Element/DX_font|dx font element]] of the text of which row is in section mode.&lt;br /&gt;
&lt;br /&gt;
===selectionMode===&lt;br /&gt;
This property stores current selection mode of grid list. ''See [[dgsGridListSetSelectionMode]]/[[dgsGridListGetSelectionMode]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;selectionMode&amp;quot;,selectionMode)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''selectionMode:''' The mode of the selection.  Can be the following values:&lt;br /&gt;
**'''1:''' row selection&lt;br /&gt;
**'''2:''' column selection&lt;br /&gt;
**'''3:''' cell selection&lt;br /&gt;
&lt;br /&gt;
===selectedColumn===&lt;br /&gt;
This property stores the index of which column the cursor is hovering. ''See [[dgsGridListGetEnterColumn]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;selectedColumn&amp;quot;,selectedColumn)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''columnHeight:''' Column Index.&lt;br /&gt;
&lt;br /&gt;
===sortColumn===&lt;br /&gt;
This property determines target sort column. ''See [[dgsGridListSetSortColumn]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;sortColumn&amp;quot;,sortColumn)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''sortColumn:''' An integer of the specific column to be sorted by.&lt;br /&gt;
&lt;br /&gt;
===sortEnabled===&lt;br /&gt;
This property determines whether sort is enabled. ''See [[dgsGridListSetSortEnabled]]/[[dgsGridListGetSortEnabled]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;sortEnabled&amp;quot;,sortEnabled)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''sortEnabled:''' A bool of sort state.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxedit&amp;diff=74294</id>
		<title>Dgs-dxedit</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxedit&amp;diff=74294"/>
		<updated>2022-03-16T17:08:07Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* caretStyle */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxedit that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===alignment===&lt;br /&gt;
Alignment of the text within the edit.&lt;br /&gt;
&lt;br /&gt;
The functions as follows are basic on this property.&lt;br /&gt;
&lt;br /&gt;
[[dgsEditSetHorizontalAlign]]/[[dgsEditGetHorizontalAlign]]&lt;br /&gt;
&lt;br /&gt;
[[dgsEditSetVerticalAlign]]/[[dgsEditGetVerticalAlign]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;alignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX''' : Horizontal alignment of the text within the edit. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY''' : Vertical alignment of the text within the edit. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===allowCopy===&lt;br /&gt;
This propertry determines whether the text can be copyed ( ctrl+c ) or cut ( ctrl+x )&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;allowCopy&amp;quot;,allowCopy)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''allowCopy''' : A bool indicates whether the text can be copyed ( ctrl+c ) or cut ( ctrl+x )&lt;br /&gt;
&lt;br /&gt;
===autoComplete===&lt;br /&gt;
This propertry allows auto complete for edit. ''See'' [[dgsEditAddAutoComplete]]\[[dgsEditRemoveAutoComplete]]\[[dgsEditSetAutoComplete]]\[[dgsEditGetAutoComplete]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;autoComplete&amp;quot;,autoComplete)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''autoComplete''' : The auto complete table. Structure is as follows:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
autoComplete = {&lt;br /&gt;
	name1 = isSensitive,&lt;br /&gt;
	name2 = isSensitive,&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===autoCompleteSkip===&lt;br /&gt;
This propertry allows skip auto complete detect.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;autoCompleteSkip&amp;quot;,autoCompleteSkip)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''autoCompleteSkip''' : A bool if whether disabling auto complete check&lt;br /&gt;
&lt;br /&gt;
===autoCompleteShow===&lt;br /&gt;
This propertry stores current showing auto complete item.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;autoCompleteShow&amp;quot;,autoCompleteShow)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''autoCompleteShow''' : A table stores the showing data. Structure is as follows:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
autoCompleteShow = {matchedAutoCompletion,showingAutoCompletion}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===bgColor===&lt;br /&gt;
This property determines the background color of the edit.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;bgColor&amp;quot;,bgColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgColor''' : An integer of the color that can be converted by [[tocolor]].&lt;br /&gt;
&lt;br /&gt;
===bgColorBlur===&lt;br /&gt;
This property determines the background color of the edit when it is blurred.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;bgColorBlur&amp;quot;,bgColorBlur)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgColorBlur:'''  An integer of the color that can be converted by [[tocolor]], leave to nil to use bgImage.&lt;br /&gt;
&lt;br /&gt;
===bgImage===&lt;br /&gt;
This property determines the background image of the edit.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;bgImage&amp;quot;,bgImage)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgImage''' : A material element that serves as the background image of the edit (texture/shader/screen source/renderTarget).&lt;br /&gt;
&lt;br /&gt;
===bgImageBlur===&lt;br /&gt;
This property determines the background image of the edit when it is blurred.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;bgImageBlur&amp;quot;,bgImageBlur)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgImageBlur:'''  A material element that serves as the background image of the edit(texture/shader/screen source/renderTarget), leave to nil to use bgImage.&lt;br /&gt;
&lt;br /&gt;
===caretColor===&lt;br /&gt;
This property determines the color of the caret&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;caretColor&amp;quot;,caretColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''caretColor''' : An integer of the color that can be converted by [[tocolor]].&lt;br /&gt;
&lt;br /&gt;
===caretHeight===&lt;br /&gt;
This property determines what's the height of the caret.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;caretHeight&amp;quot;,caretHeight)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''caretHeight''' : A float indicates what's the height of the caret.&lt;br /&gt;
&lt;br /&gt;
===caretOffset===&lt;br /&gt;
The offset of the caret of the edit.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;caretOffset&amp;quot;,offset)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offset''' : A float of the offset of the caret of the edit.&lt;br /&gt;
&lt;br /&gt;
===caretPos===&lt;br /&gt;
The position where the caret stays.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;caretPos&amp;quot;,index)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''index''' : An integer of the index of the text that the caret stays.&lt;br /&gt;
&lt;br /&gt;
===clearSelection===&lt;br /&gt;
This property determines whether the text selection will be cleared when the edit blurs.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;clearSelection&amp;quot;,clearSelection)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clearSelection''' : A bool indicates whether the text selection will be cleared when the edit blurs.&lt;br /&gt;
&lt;br /&gt;
===caretStyle===&lt;br /&gt;
This is equivalent to [[dgsEditSetCaretStyle]]/[[dgsEditGetCaretStyle]].&lt;br /&gt;
&lt;br /&gt;
This property allows us to change the style of caret of the edit. ( 0 is &amp;quot;|&amp;quot;; 1 is &amp;quot;_&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
Example(0):&lt;br /&gt;
&lt;br /&gt;
This is Text|&lt;br /&gt;
&lt;br /&gt;
Example(1):&lt;br /&gt;
&lt;br /&gt;
This is Text_&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;caretStyle&amp;quot;,caretStyle)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''caretStyle''' : An integer of the caret style of the edit.&lt;br /&gt;
&lt;br /&gt;
===caretThick===&lt;br /&gt;
This property allows us to change the thickness of caret of the edit.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;caretThick&amp;quot;,caretThick)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''caretThick''' : An integer of the thickness of the caret of the edit.&lt;br /&gt;
&lt;br /&gt;
===caretWidth===&lt;br /&gt;
This property allows us to change the caret width in caretStyle '''&amp;quot;1&amp;quot;'''.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;caretWidth&amp;quot;,{caretWidth,caretDefaultWidth,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''caretWidth''' : A float of the width of the caret of the edit. If '''relative''' is ''true'', this will refer to font width of a character.&lt;br /&gt;
*'''caretDefaultWidth''' : A float of the width of the caret of the edit when there is no text to refer. If '''relative''' is '''true''', this will refer to '''textSize'''.&lt;br /&gt;
*'''relative''' : A bool indicates whether caret width is relative or absolute.&lt;br /&gt;
&lt;br /&gt;
===edit===&lt;br /&gt;
This property stores a gui-edit which is used to input characters.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;edit&amp;quot;,gedit)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''gedit''' : A gui-edit.&lt;br /&gt;
&lt;br /&gt;
===enableTabSwitch===&lt;br /&gt;
This property determines whether we can use the key &amp;quot;tab&amp;quot; to switch to another edit.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;enableTabSwitch&amp;quot;,enableTabSwitch)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''enableTabSwitch''' : A bool indicates whether we can use the key ''tab'' to switch to another edit.&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font''' : A [[Element/DX_font|dx font element]] of the text font of the edit.&lt;br /&gt;
&lt;br /&gt;
===masked===&lt;br /&gt;
This is equivalent to [[dgsEditSetMasked]]/[[dgsEditGetMasked]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;masked&amp;quot;,masked)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''masked''' : A boolean value indicating whether masking is to be enabled or disabled.&lt;br /&gt;
&lt;br /&gt;
===maskText===&lt;br /&gt;
This property determines what the masked text will be, and the default is &amp;quot;*&amp;quot;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;maskText&amp;quot;,maskText)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''maskText''' : A string that the masked text will be.&lt;br /&gt;
&lt;br /&gt;
===maxLength===&lt;br /&gt;
This is equivalent to [[dgsEditGetMaxLength]]/[[dgsEditSetMaxLength]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;maxLength&amp;quot;,maxLength)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''maxLength''' : An integer indicating the maximum number of characters that can be typed into the edit box.&lt;br /&gt;
&lt;br /&gt;
===padding===&lt;br /&gt;
This property determines the padding of the text.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;padding&amp;quot;,{paddingX,paddingY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''paddingX''' : An integer of 2D x padding value.&lt;br /&gt;
*'''paddingY''' : An integer of 2D y padding value.&lt;br /&gt;
&lt;br /&gt;
===placeHolder===&lt;br /&gt;
This is equivalent to [[dgsEditSetPlaceHolder]]//[[dgsEditGetPlaceHolder]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;placeHolder&amp;quot;,placeHolder)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''placeHolder''' : A string of the place holder text of dgs edit ( This text will show when there is no text in a blurred dgs edit ).&lt;br /&gt;
&lt;br /&gt;
===placeHolderColor===&lt;br /&gt;
This property determines the color of the place holder text. The color which can be translated by [[tocolor]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;placeHolderColor&amp;quot;,placeHolderColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''placeHolderColor''' : An integer of the color of the place holder text of the edit.&lt;br /&gt;
&lt;br /&gt;
===placeHolderColorcoded===&lt;br /&gt;
This property determines whether the place holder supports color code.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;placeHolderColorcoded&amp;quot;,placeHolderColorcoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''placeHolderColorcoded''' : A bool indicates whether the place holder supports color code.&lt;br /&gt;
&lt;br /&gt;
===placeHolderFont===&lt;br /&gt;
This property changes the font of place holder.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;placeHolderFont&amp;quot;,placeHolderFont)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''placeHolderFont''' : A string/dx-font element of the font of the place holder.&lt;br /&gt;
&lt;br /&gt;
===placeHolderIgnoreRenderTarget===&lt;br /&gt;
This property determines whether the place holder isn't restricted by render target.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;placeHolderIgnoreRenderTarget&amp;quot;,placeHolderIgnoreRenderTarget)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''placeHolderIgnoreRenderTarget''' : A bool indicates whether the place holder isn't restricted by render target.&lt;br /&gt;
&lt;br /&gt;
===placeHolderOffset===&lt;br /&gt;
This property allows place holder has offsets relative to its original position.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;placeHolderOffset&amp;quot;,{ xOffset, yOffset })&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''xOffset''' : An integer of 2D x offset.&lt;br /&gt;
*'''yOffset''' : An integer of 2D y offset.&lt;br /&gt;
&lt;br /&gt;
===placeHolderVisibleWhenFocus===&lt;br /&gt;
This property allows place holder to be visible even when edit is focused.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;placeHolderVisibleWhenFocus&amp;quot;,placeHolderVisibleWhenFocus)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''placeHolderVisibleWhenFocus''' : A bool indicates whether the place holder when the edit is focused.&lt;br /&gt;
&lt;br /&gt;
===readOnly===&lt;br /&gt;
This is equivalent to [[dgsEditSetReadOnly]]/[[dgsEditGetReadOnly]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;readOnly&amp;quot;,readOnly)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''readOnly''' : A bool indicates whether the edit is only readable.&lt;br /&gt;
&lt;br /&gt;
===readOnlyCaretShow===&lt;br /&gt;
Whether the caret of edit will show/hide under read-only mode.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;readOnlyCaretShow&amp;quot;,readOnlyCaretShow)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''readOnlyCaretShow''' : A bool indicates whether the caret is shown or hidden when the edit is read-only.&lt;br /&gt;
&lt;br /&gt;
===renderTarget===&lt;br /&gt;
This property stores a render target of the edit.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;renderTarget&amp;quot;,renderTarget)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''renderTarget''' : A render target that is used to render the text.&lt;br /&gt;
&lt;br /&gt;
===selectColorBlur===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the rectangle of text selection of the edit when blurred.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;selectColorBlur&amp;quot;,selectColorBlur)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''selectColorBlur''' : An integer of the color of the rectangle of text selection of the edit when blurred.&lt;br /&gt;
&lt;br /&gt;
===selectColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the rectangle of text selection of the edit.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;selectColor&amp;quot;,selectColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''selectColor''' : An integer of the color of the rectangle of text selection of the edit.&lt;br /&gt;
&lt;br /&gt;
===selectFrom===&lt;br /&gt;
The position from which the text is selected.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;selectFrom&amp;quot;,{index,line})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''index''' : An integer of the index of the text that selected from.&lt;br /&gt;
&lt;br /&gt;
===showPos===&lt;br /&gt;
The min value of the x position of the text of the edit starts to show in the render target. ( I don't know how to explain it. XD )&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;showPos&amp;quot;,posX)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''posX''' : An integer indicates how many pixels of the text are moved to left.&lt;br /&gt;
&lt;br /&gt;
===text===&lt;br /&gt;
This is equivalent to [[dgsSetText]]/[[dgsGetText]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;text&amp;quot;,text)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''text''' : A ''table'' of the text of the edit.( Because of multi lines, I use table instead of string )&lt;br /&gt;
&lt;br /&gt;
===textColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the text of the edit.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;textColor&amp;quot;,textColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor''' : An integer of the color of the text of the edit.&lt;br /&gt;
&lt;br /&gt;
===textSize===&lt;br /&gt;
The scale of the text of the edit. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;textSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX''' : A float of the 2D X scale of the text of the edit.&lt;br /&gt;
*'''scaleY''' : A float of the 2D Y scale of the text of the edit.&lt;br /&gt;
&lt;br /&gt;
===typingSound===&lt;br /&gt;
Typing sound, nil for disabled. This is equivalent to [[dgsEditSetTypingSound]]/[[dgsEditGetTypingSound]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;typingSound&amp;quot;,typingSound)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''typingSound:'''  A string of the path/url of typing sound.&lt;br /&gt;
&lt;br /&gt;
===typingSoundVolume===&lt;br /&gt;
Typing sound, nil for disabled. This is equivalent to [[dgsEditSetTypingSoundVolume]]/[[dgsEditGetTypingSoundVolume]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(edit,&amp;quot;typingSoundVolume&amp;quot;,typingSoundVolume)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''typingSoundVolume:'''  A float of the volume of the typing sound. Range is from 0.0 to 1.0. This can go above 1.0 for amplification.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxcombobox&amp;diff=74293</id>
		<title>Dgs-dxcombobox</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxcombobox&amp;diff=74293"/>
		<updated>2022-03-16T17:05:04Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* wordbreak */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxcombobox that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===arrow===&lt;br /&gt;
This property determines the arrow material of the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;arrow&amp;quot;,arrow)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''arrow:''' A material element (texture/shader/screen).&lt;br /&gt;
&lt;br /&gt;
===alignment===&lt;br /&gt;
Alignment of the caption text within the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;alignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX:''' Horizontal alignment of the caption text within the combo box. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY:''' Vertical alignment of the caption text within the combo box. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===autoHideAfterSelected===&lt;br /&gt;
This property determines whether the drop down will be hide automatically after selected.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;autoHideAfterSelected&amp;quot;,autoHideAfterSelected)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''autoHideAfterSelected:''' A bool indicates whether the drop down will be hide automatically after selected.&lt;br /&gt;
&lt;br /&gt;
===autoSort===&lt;br /&gt;
This property determines whether auto sort is enabled. ''See [[dgsComboBoxSetAutoSortEnabled]]/[[dgsComboBoxGetAutoSortEnabled]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;autoSort&amp;quot;,autoSort)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''autoSort:''' A bool of auto sort state.&lt;br /&gt;
&lt;br /&gt;
===bgColor===&lt;br /&gt;
This property determines the background color of the combo box (behind items).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;bgColor&amp;quot;,bgColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgColor:''' An integer of the color that can be converted by [[tocolor]].&lt;br /&gt;
&lt;br /&gt;
===bgImage===&lt;br /&gt;
This property determines the background image of the combo box (behind items).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;bgImage&amp;quot;,bgImage)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgImage:''' A material element that serves as the background image of the combo box (texture/shader/screen source/renderTarget).&lt;br /&gt;
&lt;br /&gt;
===buttonLen===&lt;br /&gt;
This property stores the width of the arrow button.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;buttonLen&amp;quot;,{buttonLen,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''buttonLen:''' A float of the width of arrow button, which is affected by '''relative'''.&lt;br /&gt;
*'''relative:''' If set to ''true'', '''buttonLen''' will range from 0 to 1 relative to combo box's height, otherwise the '''buttonLen''' will be absolute pixels.&lt;br /&gt;
&lt;br /&gt;
===captionEdit===&lt;br /&gt;
This property stores the caption edit when the caption is editable with [[dgsComboBoxSetEditEnabled]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;captionEdit&amp;quot;,captionEdit)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''captionEdit:''' A dgs-dxedit element.&lt;br /&gt;
&lt;br /&gt;
===caption===&lt;br /&gt;
This property stores the caption text of combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;caption&amp;quot;,caption)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''caption:''' A string of the caption text of the combo box.&lt;br /&gt;
&lt;br /&gt;
===clip===&lt;br /&gt;
Whether the clip property is enabled (include caption text and item text). ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;clip&amp;quot;,clip)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clip:''' If set to true, the parts of the text that don't fit within the bounding box will be cut off.&lt;br /&gt;
&lt;br /&gt;
===color===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the background of the combobox (behind arrow).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;color&amp;quot;,{normalColor,hoveringColor,clickedColor})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''normalColor:''' An integer of the color of the combobox ( neither selected nor clicked by mouse ).&lt;br /&gt;
*'''hoveringColor:''' An integer of the color of the combobox which is selected.&lt;br /&gt;
*'''clickedColor:''' An integer of the color of the comboox which is clicked.&lt;br /&gt;
&lt;br /&gt;
===colorcoded===&lt;br /&gt;
Whether the color code is enabled (include caption text and item text). ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;colorcoded&amp;quot;,colorcoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorcoded:''' Set to true to enable embedded #FFFFFF color codes.&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font:''' A string or a [[Element/DX_font|dx font element]] of the text font of the combo box.&lt;br /&gt;
&lt;br /&gt;
===scrollBarThick===&lt;br /&gt;
This property determines the thickness of scroll bar.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;scrollBarThick&amp;quot;,scrollBarThick)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scrollBarThick:''' An integer of the thickness of scroll bar.&lt;br /&gt;
&lt;br /&gt;
===shadow===&lt;br /&gt;
The shadow of the text of the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;shadow&amp;quot;,{offsetX,offsetY,color,outline})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the shadow text of the combo box.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the shadow text of the combo box.&lt;br /&gt;
*'''color:''' An integer of the color of the shadow text of the combo box.&lt;br /&gt;
*'''outline:''' A bool of the outline state of the shadow text.&lt;br /&gt;
&lt;br /&gt;
===myBox===&lt;br /&gt;
Combo box is composed by dgs-dxcombobox and dgs-dxcombobox-Box. This property stores the dgs-combobox-Box of dgs-dxcombobox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;myBox&amp;quot;,myBox)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''myBox:''' A dgs-dxcombobox-box element.&lt;br /&gt;
&lt;br /&gt;
===image===&lt;br /&gt;
The image of combo box ( under arrow ).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;image&amp;quot;,{normalImage,hoveringImage,clickedImage})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''normalImage:''' A texture element of the background of the combobox ( no mouse enter and no mouse click ).&lt;br /&gt;
*'''hoveringImage:''' A texture element of the background of the combobox which is selected.&lt;br /&gt;
*'''clickedImage:''' A texture element of the background of the combobox which is clicked.&lt;br /&gt;
&lt;br /&gt;
===itemAlignment===&lt;br /&gt;
Alignment of the item text within the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemAlignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX:''' Horizontal alignment of the item text within the combo box. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY:''' Vertical alignment of the item text within the combo box. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===itemTextPadding===&lt;br /&gt;
This property determines the item text padding of combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemTextPadding&amp;quot;,{paddingX,paddingY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''paddingX''' : An integer of 2D x padding value.&lt;br /&gt;
*'''paddingY''' : An integer of 2D y padding value.&lt;br /&gt;
&lt;br /&gt;
===itemColor===&lt;br /&gt;
This property determines the 3 states' back ground colors of item.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemColor&amp;quot;,{colorNormal,colorHoving,colorSelected})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorNormal:''' An integer of the color of the item (Normal State).&lt;br /&gt;
*'''colorHoving:''' An integer of the color of the item (Hoving State).&lt;br /&gt;
*'''colorSelected:''' An integer of the color of the item (Selected State).&lt;br /&gt;
&lt;br /&gt;
===itemData===&lt;br /&gt;
This property stores item data.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;itemData&amp;quot;,itemData)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''columnData:''' A table stores all item data.&lt;br /&gt;
'''Item Structure'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	 textColor	BackGround Image			BackGround Color			Text	&lt;br /&gt;
	{[-2]=color,	[-1]={normal,hovering,selected},	[0]={normal,hovering,selected},		text	},&lt;br /&gt;
	{[-2]=color,	[-1]={normal,hovering,selected},	[0]={normal,hovering,selected},		text	},&lt;br /&gt;
	{[-2]=color,	[-1]={normal,hovering,selected},	[0]={normal,hovering,selected},		text	},&lt;br /&gt;
	{	...												},&lt;br /&gt;
}&lt;br /&gt;
]]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===itemImage===&lt;br /&gt;
This property determines the 3 states' background image of item.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemImage&amp;quot;,{imageNormal,imageHoving,imageSelected})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''imageNormal:''' A texture of the image of the row (Normal State).&lt;br /&gt;
*'''imageHoving:''' A texture of the image of the row (Hoving State).&lt;br /&gt;
*'''imageSelected:''' A texture of the image of the row (Selected State).&lt;br /&gt;
&lt;br /&gt;
===itemMoveOffset===&lt;br /&gt;
This property stores the move offset of item that is used to render.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemMoveOffset&amp;quot;,itemMoveOffset)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''itemMoveOffset:''' A float stores the move offset of item that is used to render.&lt;br /&gt;
&lt;br /&gt;
===itemTextColor===&lt;br /&gt;
This property determines the color of the item text of the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemTextColor&amp;quot;,itemTextColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''itemTextColor:''' An integer of the color that can be converted by [[tocolor]].&lt;br /&gt;
&lt;br /&gt;
===itemTextSize===&lt;br /&gt;
This property determines the scale of the item text of the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemTextSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the item.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the item.&lt;br /&gt;
&lt;br /&gt;
===listState===&lt;br /&gt;
This property stores the state of combo box which determines whether the combo box is opened(1) or closed(-1).&lt;br /&gt;
See: [[dgsComboBoxGetState]]/[[dgsComboBoxSetState]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;listState&amp;quot;,listState)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''listState:''' An integer of the state of combo box.&lt;br /&gt;
&lt;br /&gt;
===moveHardness===&lt;br /&gt;
This property determines how hard will the combo box moves when scrolling.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;moveHardness&amp;quot;,moveHardness)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''moveHardness:''' A float determins how hard will the combo box moves when scrolling ( should be larger than 0, lower than 1 ).&lt;br /&gt;
&lt;br /&gt;
===scrollbar===&lt;br /&gt;
This property stores the scroll bar of combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;scrollbar&amp;quot;,scrollbar)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scrollbar:''' a dgs-dxscrollbar element.&lt;br /&gt;
&lt;br /&gt;
===select===&lt;br /&gt;
This property stores the selected item of combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;select&amp;quot;,select)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''select:''' A integer of the index of selected item .&lt;br /&gt;
&lt;br /&gt;
===textColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the caption text of the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;textColor&amp;quot;,textColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor:''' An integer of the color of the text of the combo box.&lt;br /&gt;
&lt;br /&gt;
===textPadding===&lt;br /&gt;
This property determines the caption text padding of combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;textPadding&amp;quot;,{paddingX,paddingY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''paddingX''' : An integer of 2D x padding value.&lt;br /&gt;
*'''paddingY''' : An integer of 2D y padding value.&lt;br /&gt;
&lt;br /&gt;
===textSize===&lt;br /&gt;
The scale of the capiton text of the combo box. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;textSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the combo box.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the combo box.&lt;br /&gt;
&lt;br /&gt;
===textBox===&lt;br /&gt;
This property determines whether the '''caption''' of combo box is enabled or not.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;textBox&amp;quot;,textBox)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textBox:''' A bool indicates whether the '''caption''' of combo box is enabled or not.&lt;br /&gt;
&lt;br /&gt;
===wordbreak===&lt;br /&gt;
Whether the word-break of capiton text is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(capiton ,&amp;quot;wordBreak&amp;quot;,wordbreak)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''wordBreak:''' If set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.&lt;br /&gt;
&lt;br /&gt;
==Property of dgs-dxcombobox-Box==&lt;br /&gt;
===myCombo===&lt;br /&gt;
Combo box is composed by dgs-dxcombobox and dgs-dxcombobox-Box. This property stores the dgs-combobox of dgs-dxcombobox-Box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(myCombo,&amp;quot;myCombo&amp;quot;,myCombo)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''myComboyBox:''' A dgs-dxcombobox element.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxcombobox&amp;diff=74292</id>
		<title>Dgs-dxcombobox</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxcombobox&amp;diff=74292"/>
		<updated>2022-03-16T17:04:15Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* textPadding */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxcombobox that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===arrow===&lt;br /&gt;
This property determines the arrow material of the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;arrow&amp;quot;,arrow)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''arrow:''' A material element (texture/shader/screen).&lt;br /&gt;
&lt;br /&gt;
===alignment===&lt;br /&gt;
Alignment of the caption text within the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;alignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX:''' Horizontal alignment of the caption text within the combo box. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY:''' Vertical alignment of the caption text within the combo box. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===autoHideAfterSelected===&lt;br /&gt;
This property determines whether the drop down will be hide automatically after selected.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;autoHideAfterSelected&amp;quot;,autoHideAfterSelected)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''autoHideAfterSelected:''' A bool indicates whether the drop down will be hide automatically after selected.&lt;br /&gt;
&lt;br /&gt;
===autoSort===&lt;br /&gt;
This property determines whether auto sort is enabled. ''See [[dgsComboBoxSetAutoSortEnabled]]/[[dgsComboBoxGetAutoSortEnabled]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;autoSort&amp;quot;,autoSort)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''autoSort:''' A bool of auto sort state.&lt;br /&gt;
&lt;br /&gt;
===bgColor===&lt;br /&gt;
This property determines the background color of the combo box (behind items).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;bgColor&amp;quot;,bgColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgColor:''' An integer of the color that can be converted by [[tocolor]].&lt;br /&gt;
&lt;br /&gt;
===bgImage===&lt;br /&gt;
This property determines the background image of the combo box (behind items).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;bgImage&amp;quot;,bgImage)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgImage:''' A material element that serves as the background image of the combo box (texture/shader/screen source/renderTarget).&lt;br /&gt;
&lt;br /&gt;
===buttonLen===&lt;br /&gt;
This property stores the width of the arrow button.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;buttonLen&amp;quot;,{buttonLen,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''buttonLen:''' A float of the width of arrow button, which is affected by '''relative'''.&lt;br /&gt;
*'''relative:''' If set to ''true'', '''buttonLen''' will range from 0 to 1 relative to combo box's height, otherwise the '''buttonLen''' will be absolute pixels.&lt;br /&gt;
&lt;br /&gt;
===captionEdit===&lt;br /&gt;
This property stores the caption edit when the caption is editable with [[dgsComboBoxSetEditEnabled]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;captionEdit&amp;quot;,captionEdit)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''captionEdit:''' A dgs-dxedit element.&lt;br /&gt;
&lt;br /&gt;
===caption===&lt;br /&gt;
This property stores the caption text of combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;caption&amp;quot;,caption)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''caption:''' A string of the caption text of the combo box.&lt;br /&gt;
&lt;br /&gt;
===clip===&lt;br /&gt;
Whether the clip property is enabled (include caption text and item text). ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;clip&amp;quot;,clip)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clip:''' If set to true, the parts of the text that don't fit within the bounding box will be cut off.&lt;br /&gt;
&lt;br /&gt;
===color===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the background of the combobox (behind arrow).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;color&amp;quot;,{normalColor,hoveringColor,clickedColor})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''normalColor:''' An integer of the color of the combobox ( neither selected nor clicked by mouse ).&lt;br /&gt;
*'''hoveringColor:''' An integer of the color of the combobox which is selected.&lt;br /&gt;
*'''clickedColor:''' An integer of the color of the comboox which is clicked.&lt;br /&gt;
&lt;br /&gt;
===colorcoded===&lt;br /&gt;
Whether the color code is enabled (include caption text and item text). ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;colorcoded&amp;quot;,colorcoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorcoded:''' Set to true to enable embedded #FFFFFF color codes.&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font:''' A string or a [[Element/DX_font|dx font element]] of the text font of the combo box.&lt;br /&gt;
&lt;br /&gt;
===scrollBarThick===&lt;br /&gt;
This property determines the thickness of scroll bar.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;scrollBarThick&amp;quot;,scrollBarThick)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scrollBarThick:''' An integer of the thickness of scroll bar.&lt;br /&gt;
&lt;br /&gt;
===shadow===&lt;br /&gt;
The shadow of the text of the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;shadow&amp;quot;,{offsetX,offsetY,color,outline})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the shadow text of the combo box.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the shadow text of the combo box.&lt;br /&gt;
*'''color:''' An integer of the color of the shadow text of the combo box.&lt;br /&gt;
*'''outline:''' A bool of the outline state of the shadow text.&lt;br /&gt;
&lt;br /&gt;
===myBox===&lt;br /&gt;
Combo box is composed by dgs-dxcombobox and dgs-dxcombobox-Box. This property stores the dgs-combobox-Box of dgs-dxcombobox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;myBox&amp;quot;,myBox)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''myBox:''' A dgs-dxcombobox-box element.&lt;br /&gt;
&lt;br /&gt;
===image===&lt;br /&gt;
The image of combo box ( under arrow ).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;image&amp;quot;,{normalImage,hoveringImage,clickedImage})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''normalImage:''' A texture element of the background of the combobox ( no mouse enter and no mouse click ).&lt;br /&gt;
*'''hoveringImage:''' A texture element of the background of the combobox which is selected.&lt;br /&gt;
*'''clickedImage:''' A texture element of the background of the combobox which is clicked.&lt;br /&gt;
&lt;br /&gt;
===itemAlignment===&lt;br /&gt;
Alignment of the item text within the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemAlignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX:''' Horizontal alignment of the item text within the combo box. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY:''' Vertical alignment of the item text within the combo box. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===itemTextPadding===&lt;br /&gt;
This property determines the item text padding of combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemTextPadding&amp;quot;,{paddingX,paddingY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''paddingX''' : An integer of 2D x padding value.&lt;br /&gt;
*'''paddingY''' : An integer of 2D y padding value.&lt;br /&gt;
&lt;br /&gt;
===itemColor===&lt;br /&gt;
This property determines the 3 states' back ground colors of item.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemColor&amp;quot;,{colorNormal,colorHoving,colorSelected})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorNormal:''' An integer of the color of the item (Normal State).&lt;br /&gt;
*'''colorHoving:''' An integer of the color of the item (Hoving State).&lt;br /&gt;
*'''colorSelected:''' An integer of the color of the item (Selected State).&lt;br /&gt;
&lt;br /&gt;
===itemData===&lt;br /&gt;
This property stores item data.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;itemData&amp;quot;,itemData)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''columnData:''' A table stores all item data.&lt;br /&gt;
'''Item Structure'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	 textColor	BackGround Image			BackGround Color			Text	&lt;br /&gt;
	{[-2]=color,	[-1]={normal,hovering,selected},	[0]={normal,hovering,selected},		text	},&lt;br /&gt;
	{[-2]=color,	[-1]={normal,hovering,selected},	[0]={normal,hovering,selected},		text	},&lt;br /&gt;
	{[-2]=color,	[-1]={normal,hovering,selected},	[0]={normal,hovering,selected},		text	},&lt;br /&gt;
	{	...												},&lt;br /&gt;
}&lt;br /&gt;
]]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===itemImage===&lt;br /&gt;
This property determines the 3 states' background image of item.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemImage&amp;quot;,{imageNormal,imageHoving,imageSelected})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''imageNormal:''' A texture of the image of the row (Normal State).&lt;br /&gt;
*'''imageHoving:''' A texture of the image of the row (Hoving State).&lt;br /&gt;
*'''imageSelected:''' A texture of the image of the row (Selected State).&lt;br /&gt;
&lt;br /&gt;
===itemMoveOffset===&lt;br /&gt;
This property stores the move offset of item that is used to render.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemMoveOffset&amp;quot;,itemMoveOffset)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''itemMoveOffset:''' A float stores the move offset of item that is used to render.&lt;br /&gt;
&lt;br /&gt;
===itemTextColor===&lt;br /&gt;
This property determines the color of the item text of the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemTextColor&amp;quot;,itemTextColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''itemTextColor:''' An integer of the color that can be converted by [[tocolor]].&lt;br /&gt;
&lt;br /&gt;
===itemTextSize===&lt;br /&gt;
This property determines the scale of the item text of the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemTextSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the item.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the item.&lt;br /&gt;
&lt;br /&gt;
===listState===&lt;br /&gt;
This property stores the state of combo box which determines whether the combo box is opened(1) or closed(-1).&lt;br /&gt;
See: [[dgsComboBoxGetState]]/[[dgsComboBoxSetState]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;listState&amp;quot;,listState)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''listState:''' An integer of the state of combo box.&lt;br /&gt;
&lt;br /&gt;
===moveHardness===&lt;br /&gt;
This property determines how hard will the combo box moves when scrolling.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;moveHardness&amp;quot;,moveHardness)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''moveHardness:''' A float determins how hard will the combo box moves when scrolling ( should be larger than 0, lower than 1 ).&lt;br /&gt;
&lt;br /&gt;
===scrollbar===&lt;br /&gt;
This property stores the scroll bar of combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;scrollbar&amp;quot;,scrollbar)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scrollbar:''' a dgs-dxscrollbar element.&lt;br /&gt;
&lt;br /&gt;
===select===&lt;br /&gt;
This property stores the selected item of combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;select&amp;quot;,select)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''select:''' A integer of the index of selected item .&lt;br /&gt;
&lt;br /&gt;
===textColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the caption text of the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;textColor&amp;quot;,textColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor:''' An integer of the color of the text of the combo box.&lt;br /&gt;
&lt;br /&gt;
===textPadding===&lt;br /&gt;
This property determines the caption text padding of combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;textPadding&amp;quot;,{paddingX,paddingY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''paddingX''' : An integer of 2D x padding value.&lt;br /&gt;
*'''paddingY''' : An integer of 2D y padding value.&lt;br /&gt;
&lt;br /&gt;
===textSize===&lt;br /&gt;
The scale of the capiton text of the combo box. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;textSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the combo box.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the combo box.&lt;br /&gt;
&lt;br /&gt;
===textBox===&lt;br /&gt;
This property determines whether the '''caption''' of combo box is enabled or not.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;textBox&amp;quot;,textBox)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textBox:''' A bool indicates whether the '''caption''' of combo box is enabled or not.&lt;br /&gt;
&lt;br /&gt;
===wordbreak===&lt;br /&gt;
Whether the word-break of capiton text is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(capiton ,&amp;quot;wordbreak&amp;quot;,wordbreak)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''wordbreak:''' If set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.&lt;br /&gt;
&lt;br /&gt;
==Property of dgs-dxcombobox-Box==&lt;br /&gt;
===myCombo===&lt;br /&gt;
Combo box is composed by dgs-dxcombobox and dgs-dxcombobox-Box. This property stores the dgs-combobox of dgs-dxcombobox-Box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(myCombo,&amp;quot;myCombo&amp;quot;,myCombo)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''myComboyBox:''' A dgs-dxcombobox element.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxcombobox&amp;diff=74291</id>
		<title>Dgs-dxcombobox</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxcombobox&amp;diff=74291"/>
		<updated>2022-03-16T17:03:11Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* itemImage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxcombobox that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===arrow===&lt;br /&gt;
This property determines the arrow material of the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;arrow&amp;quot;,arrow)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''arrow:''' A material element (texture/shader/screen).&lt;br /&gt;
&lt;br /&gt;
===alignment===&lt;br /&gt;
Alignment of the caption text within the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;alignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX:''' Horizontal alignment of the caption text within the combo box. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY:''' Vertical alignment of the caption text within the combo box. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===autoHideAfterSelected===&lt;br /&gt;
This property determines whether the drop down will be hide automatically after selected.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;autoHideAfterSelected&amp;quot;,autoHideAfterSelected)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''autoHideAfterSelected:''' A bool indicates whether the drop down will be hide automatically after selected.&lt;br /&gt;
&lt;br /&gt;
===autoSort===&lt;br /&gt;
This property determines whether auto sort is enabled. ''See [[dgsComboBoxSetAutoSortEnabled]]/[[dgsComboBoxGetAutoSortEnabled]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;autoSort&amp;quot;,autoSort)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''autoSort:''' A bool of auto sort state.&lt;br /&gt;
&lt;br /&gt;
===bgColor===&lt;br /&gt;
This property determines the background color of the combo box (behind items).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;bgColor&amp;quot;,bgColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgColor:''' An integer of the color that can be converted by [[tocolor]].&lt;br /&gt;
&lt;br /&gt;
===bgImage===&lt;br /&gt;
This property determines the background image of the combo box (behind items).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;bgImage&amp;quot;,bgImage)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgImage:''' A material element that serves as the background image of the combo box (texture/shader/screen source/renderTarget).&lt;br /&gt;
&lt;br /&gt;
===buttonLen===&lt;br /&gt;
This property stores the width of the arrow button.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;buttonLen&amp;quot;,{buttonLen,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''buttonLen:''' A float of the width of arrow button, which is affected by '''relative'''.&lt;br /&gt;
*'''relative:''' If set to ''true'', '''buttonLen''' will range from 0 to 1 relative to combo box's height, otherwise the '''buttonLen''' will be absolute pixels.&lt;br /&gt;
&lt;br /&gt;
===captionEdit===&lt;br /&gt;
This property stores the caption edit when the caption is editable with [[dgsComboBoxSetEditEnabled]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;captionEdit&amp;quot;,captionEdit)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''captionEdit:''' A dgs-dxedit element.&lt;br /&gt;
&lt;br /&gt;
===caption===&lt;br /&gt;
This property stores the caption text of combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;caption&amp;quot;,caption)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''caption:''' A string of the caption text of the combo box.&lt;br /&gt;
&lt;br /&gt;
===clip===&lt;br /&gt;
Whether the clip property is enabled (include caption text and item text). ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;clip&amp;quot;,clip)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clip:''' If set to true, the parts of the text that don't fit within the bounding box will be cut off.&lt;br /&gt;
&lt;br /&gt;
===color===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the background of the combobox (behind arrow).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;color&amp;quot;,{normalColor,hoveringColor,clickedColor})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''normalColor:''' An integer of the color of the combobox ( neither selected nor clicked by mouse ).&lt;br /&gt;
*'''hoveringColor:''' An integer of the color of the combobox which is selected.&lt;br /&gt;
*'''clickedColor:''' An integer of the color of the comboox which is clicked.&lt;br /&gt;
&lt;br /&gt;
===colorcoded===&lt;br /&gt;
Whether the color code is enabled (include caption text and item text). ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;colorcoded&amp;quot;,colorcoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorcoded:''' Set to true to enable embedded #FFFFFF color codes.&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font:''' A string or a [[Element/DX_font|dx font element]] of the text font of the combo box.&lt;br /&gt;
&lt;br /&gt;
===scrollBarThick===&lt;br /&gt;
This property determines the thickness of scroll bar.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;scrollBarThick&amp;quot;,scrollBarThick)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scrollBarThick:''' An integer of the thickness of scroll bar.&lt;br /&gt;
&lt;br /&gt;
===shadow===&lt;br /&gt;
The shadow of the text of the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;shadow&amp;quot;,{offsetX,offsetY,color,outline})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the shadow text of the combo box.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the shadow text of the combo box.&lt;br /&gt;
*'''color:''' An integer of the color of the shadow text of the combo box.&lt;br /&gt;
*'''outline:''' A bool of the outline state of the shadow text.&lt;br /&gt;
&lt;br /&gt;
===myBox===&lt;br /&gt;
Combo box is composed by dgs-dxcombobox and dgs-dxcombobox-Box. This property stores the dgs-combobox-Box of dgs-dxcombobox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;myBox&amp;quot;,myBox)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''myBox:''' A dgs-dxcombobox-box element.&lt;br /&gt;
&lt;br /&gt;
===image===&lt;br /&gt;
The image of combo box ( under arrow ).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;image&amp;quot;,{normalImage,hoveringImage,clickedImage})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''normalImage:''' A texture element of the background of the combobox ( no mouse enter and no mouse click ).&lt;br /&gt;
*'''hoveringImage:''' A texture element of the background of the combobox which is selected.&lt;br /&gt;
*'''clickedImage:''' A texture element of the background of the combobox which is clicked.&lt;br /&gt;
&lt;br /&gt;
===itemAlignment===&lt;br /&gt;
Alignment of the item text within the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemAlignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX:''' Horizontal alignment of the item text within the combo box. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY:''' Vertical alignment of the item text within the combo box. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===itemTextPadding===&lt;br /&gt;
This property determines the item text padding of combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemTextPadding&amp;quot;,{paddingX,paddingY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''paddingX''' : An integer of 2D x padding value.&lt;br /&gt;
*'''paddingY''' : An integer of 2D y padding value.&lt;br /&gt;
&lt;br /&gt;
===itemColor===&lt;br /&gt;
This property determines the 3 states' back ground colors of item.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemColor&amp;quot;,{colorNormal,colorHoving,colorSelected})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorNormal:''' An integer of the color of the item (Normal State).&lt;br /&gt;
*'''colorHoving:''' An integer of the color of the item (Hoving State).&lt;br /&gt;
*'''colorSelected:''' An integer of the color of the item (Selected State).&lt;br /&gt;
&lt;br /&gt;
===itemData===&lt;br /&gt;
This property stores item data.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;itemData&amp;quot;,itemData)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''columnData:''' A table stores all item data.&lt;br /&gt;
'''Item Structure'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	 textColor	BackGround Image			BackGround Color			Text	&lt;br /&gt;
	{[-2]=color,	[-1]={normal,hovering,selected},	[0]={normal,hovering,selected},		text	},&lt;br /&gt;
	{[-2]=color,	[-1]={normal,hovering,selected},	[0]={normal,hovering,selected},		text	},&lt;br /&gt;
	{[-2]=color,	[-1]={normal,hovering,selected},	[0]={normal,hovering,selected},		text	},&lt;br /&gt;
	{	...												},&lt;br /&gt;
}&lt;br /&gt;
]]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===itemImage===&lt;br /&gt;
This property determines the 3 states' background image of item.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemImage&amp;quot;,{imageNormal,imageHoving,imageSelected})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''imageNormal:''' A texture of the image of the row (Normal State).&lt;br /&gt;
*'''imageHoving:''' A texture of the image of the row (Hoving State).&lt;br /&gt;
*'''imageSelected:''' A texture of the image of the row (Selected State).&lt;br /&gt;
&lt;br /&gt;
===itemMoveOffset===&lt;br /&gt;
This property stores the move offset of item that is used to render.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemMoveOffset&amp;quot;,itemMoveOffset)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''itemMoveOffset:''' A float stores the move offset of item that is used to render.&lt;br /&gt;
&lt;br /&gt;
===itemTextColor===&lt;br /&gt;
This property determines the color of the item text of the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemTextColor&amp;quot;,itemTextColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''itemTextColor:''' An integer of the color that can be converted by [[tocolor]].&lt;br /&gt;
&lt;br /&gt;
===itemTextSize===&lt;br /&gt;
This property determines the scale of the item text of the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemTextSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the item.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the item.&lt;br /&gt;
&lt;br /&gt;
===listState===&lt;br /&gt;
This property stores the state of combo box which determines whether the combo box is opened(1) or closed(-1).&lt;br /&gt;
See: [[dgsComboBoxGetState]]/[[dgsComboBoxSetState]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;listState&amp;quot;,listState)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''listState:''' An integer of the state of combo box.&lt;br /&gt;
&lt;br /&gt;
===moveHardness===&lt;br /&gt;
This property determines how hard will the combo box moves when scrolling.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;moveHardness&amp;quot;,moveHardness)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''moveHardness:''' A float determins how hard will the combo box moves when scrolling ( should be larger than 0, lower than 1 ).&lt;br /&gt;
&lt;br /&gt;
===scrollbar===&lt;br /&gt;
This property stores the scroll bar of combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;scrollbar&amp;quot;,scrollbar)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scrollbar:''' a dgs-dxscrollbar element.&lt;br /&gt;
&lt;br /&gt;
===select===&lt;br /&gt;
This property stores the selected item of combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;select&amp;quot;,select)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''select:''' A integer of the index of selected item .&lt;br /&gt;
&lt;br /&gt;
===textColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the caption text of the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;textColor&amp;quot;,textColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor:''' An integer of the color of the text of the combo box.&lt;br /&gt;
&lt;br /&gt;
===textPadding===&lt;br /&gt;
This property determines the caption text padding of combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;textPadding&amp;quot;,{paddingX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''paddingX''' : An integer of 2D x padding value.&lt;br /&gt;
*'''paddingY''' : An integer of 2D y padding value.&lt;br /&gt;
&lt;br /&gt;
===textSize===&lt;br /&gt;
The scale of the capiton text of the combo box. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;textSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the combo box.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the combo box.&lt;br /&gt;
&lt;br /&gt;
===textBox===&lt;br /&gt;
This property determines whether the '''caption''' of combo box is enabled or not.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;textBox&amp;quot;,textBox)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textBox:''' A bool indicates whether the '''caption''' of combo box is enabled or not.&lt;br /&gt;
&lt;br /&gt;
===wordbreak===&lt;br /&gt;
Whether the word-break of capiton text is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(capiton ,&amp;quot;wordbreak&amp;quot;,wordbreak)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''wordbreak:''' If set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.&lt;br /&gt;
&lt;br /&gt;
==Property of dgs-dxcombobox-Box==&lt;br /&gt;
===myCombo===&lt;br /&gt;
Combo box is composed by dgs-dxcombobox and dgs-dxcombobox-Box. This property stores the dgs-combobox of dgs-dxcombobox-Box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(myCombo,&amp;quot;myCombo&amp;quot;,myCombo)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''myComboyBox:''' A dgs-dxcombobox element.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxcheckbox&amp;diff=74290</id>
		<title>Dgs-dxcheckbox</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxcheckbox&amp;diff=74290"/>
		<updated>2022-03-16T16:59:21Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: /* textPadding */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxcheckbox that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===alignment===&lt;br /&gt;
Alignment of the text within the checkbox.&lt;br /&gt;
&lt;br /&gt;
The functions as follows are basic on this property.&lt;br /&gt;
&lt;br /&gt;
[[dgsCheckBoxSetHorizontalAlign]]/[[dgsCheckBoxGetHorizontalAlign]]&lt;br /&gt;
&lt;br /&gt;
[[dgsCheckBoxSetVerticalAlign]]/[[dgsCheckBoxGetVerticalAlign]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbx,&amp;quot;alignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX:''' Horizontal alignment of the text within the checkbox. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY:''' Vertical alignment of the text within the checkbox. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===buttonSize===&lt;br /&gt;
This property determines the button size of the check box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;buttonSize&amp;quot;,{size,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''size:''' A number of the size of the button on screen.&lt;br /&gt;
*'''relative:''' A bool indicates whether the size is relative or absolute.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;buttonSize&amp;quot;,{width,height,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''width:''' A number of the width of the button on screen.&lt;br /&gt;
*'''height:''' A number of the height of the button on screen.&lt;br /&gt;
*'''relative:''' A bool indicates whether the size is relative or absolute.&lt;br /&gt;
&lt;br /&gt;
===clip===&lt;br /&gt;
Whether the clip property is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;clip&amp;quot;,clip)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clip:''' If set to true, the parts of the text that don't fit within the bounding box will be cut off.&lt;br /&gt;
&lt;br /&gt;
===color_i===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the check box is indeterminate.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;color_i&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (indeterminate)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (indeterminate)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (indeterminate)&lt;br /&gt;
&lt;br /&gt;
===color_f===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the check box is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;color_f&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===color_t===&lt;br /&gt;
This property determines the color of the icon under 3 conditions when the check box is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;color_t&amp;quot;,{ColorNormal,ColorHover,ColorClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ColorNormal:''' An integer of the color of the icon under normal state. (checked)&lt;br /&gt;
*'''ColorHover:''' An integer of the color of the icon under hovering state. (checked)&lt;br /&gt;
*'''ColorClick:''' An integer of the color of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===colorCoded===&lt;br /&gt;
Whether the color code is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;colorCoded&amp;quot;,colorCoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorCoded:''' Set to true to enable embedded #FFFFFF color codes.&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font:''' A string or a [[Element/DX_font|dx font element]] of the text font of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===image_f===&lt;br /&gt;
This property determines the icon under 3 conditions when the check box is unchecked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;image_f&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (unchecked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (unchecked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (unchecked)&lt;br /&gt;
&lt;br /&gt;
===image_i===&lt;br /&gt;
This property determines the icon under 3 conditions when the check box is indeterminate.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;image_i&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (indeterminate)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (indeterminate)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (indeterminate)&lt;br /&gt;
&lt;br /&gt;
===image_t===&lt;br /&gt;
This property determines the icon under 3 conditions when the check box is checked.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;image_t&amp;quot;,{ImageNormal,ImageHover,ImageClick})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''ImageNormal:''' An image element of the icon under normal state. (checked)&lt;br /&gt;
*'''ImageHover:''' An image element of the icon under hovering state. (checked)&lt;br /&gt;
*'''ImageClick:''' An image element of the icon under clicked state. (checked)&lt;br /&gt;
&lt;br /&gt;
===shadow===&lt;br /&gt;
The shadow text of the checkbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;shadow&amp;quot;,{offsetX,offsetY,color,outline})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the shadow text of the checkbox.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the shadow text of the checkbox.&lt;br /&gt;
*'''color:''' An integer of the color of the shadow text of the checkbox.&lt;br /&gt;
*'''outline:''' A bool of the outline state of the shadow text.&lt;br /&gt;
&lt;br /&gt;
===state===&lt;br /&gt;
This property stores the state of the check box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;state&amp;quot;,state)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''state:''' A bool/nil of the state. Values can be as follows:&lt;br /&gt;
**'''true:''' Checked&lt;br /&gt;
**'''false:''' Unchecked&lt;br /&gt;
**'''nil:''' indeterminate&lt;br /&gt;
&lt;br /&gt;
===text===&lt;br /&gt;
This is equivalent to [[dgsSetText]]/[[dgsGetText]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;text&amp;quot;,text)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''text:''' A string of the text of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===textColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the text of the checkbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;textColor&amp;quot;,textColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor:''' An integer of the color of the text of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===textPadding===&lt;br /&gt;
This property determines the padding between the text and icon.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;textPadding&amp;quot;,textPadding)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textPadding''' A float of the distance from the icon to the text of the check box.&lt;br /&gt;
&lt;br /&gt;
===textSize===&lt;br /&gt;
The scale of the text of the checkbox. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;textSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the checkbox.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the checkbox.&lt;br /&gt;
&lt;br /&gt;
===wordBreak===&lt;br /&gt;
Whether the word-break is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(checkbox,&amp;quot;wordBreak&amp;quot;,wordBreak)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''wordBreak:''' If set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs-dxcombobox&amp;diff=74289</id>
		<title>Dgs-dxcombobox</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs-dxcombobox&amp;diff=74289"/>
		<updated>2022-03-16T16:43:23Z</updated>

		<summary type="html">&lt;p&gt;Zhvachka: fix a typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Dgs|DGS]] Properties is always used to change the gui style and make it more fantastic.&lt;br /&gt;
&lt;br /&gt;
This page shows the properties of dgs-dxcombobox that you could use.&lt;br /&gt;
&lt;br /&gt;
==Main Functions==&lt;br /&gt;
*[[dgsSetProperty]]&lt;br /&gt;
*[[dgsGetProperty]]&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
===arrow===&lt;br /&gt;
This property determines the arrow material of the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;arrow&amp;quot;,arrow)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''arrow:''' A material element (texture/shader/screen).&lt;br /&gt;
&lt;br /&gt;
===alignment===&lt;br /&gt;
Alignment of the caption text within the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;alignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX:''' Horizontal alignment of the caption text within the combo box. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY:''' Vertical alignment of the caption text within the combo box. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===autoHideAfterSelected===&lt;br /&gt;
This property determines whether the drop down will be hide automatically after selected.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;autoHideAfterSelected&amp;quot;,autoHideAfterSelected)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''autoHideAfterSelected:''' A bool indicates whether the drop down will be hide automatically after selected.&lt;br /&gt;
&lt;br /&gt;
===autoSort===&lt;br /&gt;
This property determines whether auto sort is enabled. ''See [[dgsComboBoxSetAutoSortEnabled]]/[[dgsComboBoxGetAutoSortEnabled]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;autoSort&amp;quot;,autoSort)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''autoSort:''' A bool of auto sort state.&lt;br /&gt;
&lt;br /&gt;
===bgColor===&lt;br /&gt;
This property determines the background color of the combo box (behind items).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;bgColor&amp;quot;,bgColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgColor:''' An integer of the color that can be converted by [[tocolor]].&lt;br /&gt;
&lt;br /&gt;
===bgImage===&lt;br /&gt;
This property determines the background image of the combo box (behind items).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;bgImage&amp;quot;,bgImage)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''bgImage:''' A material element that serves as the background image of the combo box (texture/shader/screen source/renderTarget).&lt;br /&gt;
&lt;br /&gt;
===buttonLen===&lt;br /&gt;
This property stores the width of the arrow button.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;buttonLen&amp;quot;,{buttonLen,relative})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''buttonLen:''' A float of the width of arrow button, which is affected by '''relative'''.&lt;br /&gt;
*'''relative:''' If set to ''true'', '''buttonLen''' will range from 0 to 1 relative to combo box's height, otherwise the '''buttonLen''' will be absolute pixels.&lt;br /&gt;
&lt;br /&gt;
===captionEdit===&lt;br /&gt;
This property stores the caption edit when the caption is editable with [[dgsComboBoxSetEditEnabled]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;captionEdit&amp;quot;,captionEdit)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''captionEdit:''' A dgs-dxedit element.&lt;br /&gt;
&lt;br /&gt;
===caption===&lt;br /&gt;
This property stores the caption text of combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;caption&amp;quot;,caption)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''caption:''' A string of the caption text of the combo box.&lt;br /&gt;
&lt;br /&gt;
===clip===&lt;br /&gt;
Whether the clip property is enabled (include caption text and item text). ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;clip&amp;quot;,clip)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''clip:''' If set to true, the parts of the text that don't fit within the bounding box will be cut off.&lt;br /&gt;
&lt;br /&gt;
===color===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the background of the combobox (behind arrow).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;color&amp;quot;,{normalColor,hoveringColor,clickedColor})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''normalColor:''' An integer of the color of the combobox ( neither selected nor clicked by mouse ).&lt;br /&gt;
*'''hoveringColor:''' An integer of the color of the combobox which is selected.&lt;br /&gt;
*'''clickedColor:''' An integer of the color of the comboox which is clicked.&lt;br /&gt;
&lt;br /&gt;
===colorcoded===&lt;br /&gt;
Whether the color code is enabled (include caption text and item text). ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;colorcoded&amp;quot;,colorcoded)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorcoded:''' Set to true to enable embedded #FFFFFF color codes.&lt;br /&gt;
&lt;br /&gt;
===font===&lt;br /&gt;
This is equivalent to [[dgsSetFont]]/[[dgsGetFont]]. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;font&amp;quot;,font)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''font:''' A string or a [[Element/DX_font|dx font element]] of the text font of the combo box.&lt;br /&gt;
&lt;br /&gt;
===scrollBarThick===&lt;br /&gt;
This property determines the thickness of scroll bar.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;scrollBarThick&amp;quot;,scrollBarThick)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scrollBarThick:''' An integer of the thickness of scroll bar.&lt;br /&gt;
&lt;br /&gt;
===shadow===&lt;br /&gt;
The shadow of the text of the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;shadow&amp;quot;,{offsetX,offsetY,color,outline})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''offsetX:''' A float of the 2D X offset of the shadow text of the combo box.&lt;br /&gt;
*'''offsetY:''' A float of the 2D Y offset of the shadow text of the combo box.&lt;br /&gt;
*'''color:''' An integer of the color of the shadow text of the combo box.&lt;br /&gt;
*'''outline:''' A bool of the outline state of the shadow text.&lt;br /&gt;
&lt;br /&gt;
===myBox===&lt;br /&gt;
Combo box is composed by dgs-dxcombobox and dgs-dxcombobox-Box. This property stores the dgs-combobox-Box of dgs-dxcombobox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;myBox&amp;quot;,myBox)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''myBox:''' A dgs-dxcombobox-box element.&lt;br /&gt;
&lt;br /&gt;
===image===&lt;br /&gt;
The image of combo box ( under arrow ).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;image&amp;quot;,{normalImage,hoveringImage,clickedImage})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''normalImage:''' A texture element of the background of the combobox ( no mouse enter and no mouse click ).&lt;br /&gt;
*'''hoveringImage:''' A texture element of the background of the combobox which is selected.&lt;br /&gt;
*'''clickedImage:''' A texture element of the background of the combobox which is clicked.&lt;br /&gt;
&lt;br /&gt;
===itemAlignment===&lt;br /&gt;
Alignment of the item text within the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemAlignment&amp;quot;,{alignX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''alignX:''' Horizontal alignment of the item text within the combo box. Can be &amp;quot;left&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;right&amp;quot;.&lt;br /&gt;
*'''alignY:''' Vertical alignment of the item text within the combo box. Can be &amp;quot;top&amp;quot;, &amp;quot;center&amp;quot; or &amp;quot;bottom&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===itemTextPadding===&lt;br /&gt;
This property determines the item text padding of combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemTextPadding&amp;quot;,{paddingX,paddingY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''paddingX''' : An integer of 2D x padding value.&lt;br /&gt;
*'''paddingY''' : An integer of 2D y padding value.&lt;br /&gt;
&lt;br /&gt;
===itemColor===&lt;br /&gt;
This property determines the 3 states' back ground colors of item.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemColor&amp;quot;,{colorNormal,colorHoving,colorSelected})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''colorNormal:''' An integer of the color of the item (Normal State).&lt;br /&gt;
*'''colorHoving:''' An integer of the color of the item (Hoving State).&lt;br /&gt;
*'''colorSelected:''' An integer of the color of the item (Selected State).&lt;br /&gt;
&lt;br /&gt;
===itemData===&lt;br /&gt;
This property stores item data.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(gridlist,&amp;quot;itemData&amp;quot;,itemData)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''columnData:''' A table stores all item data.&lt;br /&gt;
'''Item Structure'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	 textColor	BackGround Image			BackGround Color			Text	&lt;br /&gt;
	{[-2]=color,	[-1]={normal,hovering,selected},	[0]={normal,hovering,selected},		text	},&lt;br /&gt;
	{[-2]=color,	[-1]={normal,hovering,selected},	[0]={normal,hovering,selected},		text	},&lt;br /&gt;
	{[-2]=color,	[-1]={normal,hovering,selected},	[0]={normal,hovering,selected},		text	},&lt;br /&gt;
	{	...												},&lt;br /&gt;
}&lt;br /&gt;
]]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===itemImage===&lt;br /&gt;
This property determines the 3 states' background image of item.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemImage&amp;quot;,{imageDefault,cimageHoving,imageSelected})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''imageNormal:''' A texture of the image of the row (Normal State).&lt;br /&gt;
*'''cimageHoving:''' A texture of the image of the row (Hoving State).&lt;br /&gt;
*'''imageSelected:''' A texture of the image of the row (Selected State).&lt;br /&gt;
&lt;br /&gt;
===itemMoveOffset===&lt;br /&gt;
This property stores the move offset of item that is used to render.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemMoveOffset&amp;quot;,itemMoveOffset)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''itemMoveOffset:''' A float stores the move offset of item that is used to render.&lt;br /&gt;
&lt;br /&gt;
===itemTextColor===&lt;br /&gt;
This property determines the color of the item text of the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemTextColor&amp;quot;,itemTextColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''itemTextColor:''' An integer of the color that can be converted by [[tocolor]].&lt;br /&gt;
&lt;br /&gt;
===itemTextSize===&lt;br /&gt;
This property determines the scale of the item text of the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;itemTextSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the item.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the item.&lt;br /&gt;
&lt;br /&gt;
===listState===&lt;br /&gt;
This property stores the state of combo box which determines whether the combo box is opened(1) or closed(-1).&lt;br /&gt;
See: [[dgsComboBoxGetState]]/[[dgsComboBoxSetState]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;listState&amp;quot;,listState)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''listState:''' An integer of the state of combo box.&lt;br /&gt;
&lt;br /&gt;
===moveHardness===&lt;br /&gt;
This property determines how hard will the combo box moves when scrolling.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;moveHardness&amp;quot;,moveHardness)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''moveHardness:''' A float determins how hard will the combo box moves when scrolling ( should be larger than 0, lower than 1 ).&lt;br /&gt;
&lt;br /&gt;
===scrollbar===&lt;br /&gt;
This property stores the scroll bar of combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;scrollbar&amp;quot;,scrollbar)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scrollbar:''' a dgs-dxscrollbar element.&lt;br /&gt;
&lt;br /&gt;
===select===&lt;br /&gt;
This property stores the selected item of combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;select&amp;quot;,select)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''select:''' A integer of the index of selected item .&lt;br /&gt;
&lt;br /&gt;
===textColor===&lt;br /&gt;
The color which can be translated by [[tocolor]] of the caption text of the combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;textColor&amp;quot;,textColor)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textColor:''' An integer of the color of the text of the combo box.&lt;br /&gt;
&lt;br /&gt;
===textPadding===&lt;br /&gt;
This property determines the caption text padding of combo box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;textPadding&amp;quot;,{paddingX,alignY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''paddingX''' : An integer of 2D x padding value.&lt;br /&gt;
*'''paddingY''' : An integer of 2D y padding value.&lt;br /&gt;
&lt;br /&gt;
===textSize===&lt;br /&gt;
The scale of the capiton text of the combo box. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;textSize&amp;quot;,{scaleX,scaleY})&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''scaleX:''' A float of the 2D X scale of the text of the combo box.&lt;br /&gt;
*'''scaleY:''' A float of the 2D Y scale of the text of the combo box.&lt;br /&gt;
&lt;br /&gt;
===textBox===&lt;br /&gt;
This property determines whether the '''caption''' of combo box is enabled or not.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(combobox,&amp;quot;textBox&amp;quot;,textBox)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''textBox:''' A bool indicates whether the '''caption''' of combo box is enabled or not.&lt;br /&gt;
&lt;br /&gt;
===wordbreak===&lt;br /&gt;
Whether the word-break of capiton text is enabled or not. ''Learn More [[dxDrawText]]''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(capiton ,&amp;quot;wordbreak&amp;quot;,wordbreak)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''wordbreak:''' If set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.&lt;br /&gt;
&lt;br /&gt;
==Property of dgs-dxcombobox-Box==&lt;br /&gt;
===myCombo===&lt;br /&gt;
Combo box is composed by dgs-dxcombobox and dgs-dxcombobox-Box. This property stores the dgs-combobox of dgs-dxcombobox-Box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;dgsSetProperty(myCombo,&amp;quot;myCombo&amp;quot;,myCombo)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''myComboyBox:''' A dgs-dxcombobox element.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSPROPERTIES}}&lt;/div&gt;</summary>
		<author><name>Zhvachka</name></author>
	</entry>
</feed>