https://wiki.multitheftauto.com/api.php?action=feedcontributions&user=Ahmed+Ly&feedformat=atomMulti Theft Auto: Wiki - User contributions [en]2024-03-28T14:02:35ZUser contributionsMediaWiki 1.39.3https://wiki.multitheftauto.com/index.php?title=DGS_Events_and_GUI_Events&diff=58147DGS Events and GUI Events2018-08-15T19:01:50Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="#000000" subcaption=""></pageclass><br />
<br />
<br />
This page shows the events between DGS and GUI. If you want to convert GUI to DGS, please read following table.<br />
<br />
{| class="wikitable" style="width: 900px; text-align: center; table-layout: fixed;"<br />
|-<br />
!GUI Events<br />
!DGS Events<br />
|-<br />
|[[onClientGUIAccepted]]<br />
|[[onDgsEditAccepted]]<br />
|-<br />
|[[onClientGUIBlur]]<br />
|[[onDgsBlur]]<br />
|-<br />
|[[onClientGUIChanged]]<br />
|[[onDgsTextChange]]<br />
|-<br />
|[[onClientGUIClick]]<br />
[[onClientGUIMouseUp]]<br />
<br />
[[onClientGUIMouseDown]]<br />
|[[onDgsMouseClick]]<br />
|-<br />
|[[onClientGUIComboBoxAccepted]]<br />
|[[onDgsComboBoxAccepted]]<br />
|-<br />
|[[onClientGUIDoubleClick]]<br />
|[[onDgsMouseDoubleClick]]<br />
|-<br />
|[[onClientGUIFocus]]<br />
|[[onDgsFocus]]<br />
|-<br />
|[[onClientGUIMove]]<br />
|[[onDgsPositionChange]]<br />
|-<br />
|[[onClientGUISize]]<br />
|[[onDgsSizeChange]]<br />
|-<br />
|[[onClientGUIScroll]]<br />
|[[onDgsScrollBarScrollPositionChange]]<br />
|-<br />
|[[onClientGUITabSwitched]]<br />
|[[onDgsTabSelect]]<br />
|-<br />
|[[onClientMouseEnter]]<br />
|[[onDgsMouseEnter]]<br />
|-<br />
|[[onClientMouseLeave]]<br />
|[[onDgsMouseLeave]]<br />
|-<br />
|[[onClientMouseMove]]<br />
|[[onDgsCursorMove]]<br />
|-<br />
|[[onClientMouseWheel]]<br />
|[[onDgsMouseWheel]]<br />
|-</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=Resource:DGS&diff=55225Resource:DGS2018-06-08T17:38:55Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
[[Image:DGSNetStatus.png|300px|thumb|right|DGS Network Monitor]]<br />
<br />
This resource is designed to allow you to create directX GUI's as an alternative to the original MTA:SA GUI functions.<br />
<br />
<br />
'''Full Name''': Thisdp's DirectX Graphical User Interface System (DxGUI Lib)<br />
<br />
'''Author''': [[User:thisdp|thisdp]] <br />
<br />
'''State''': OpenSourced & Work in progress<br />
<br />
'''GitHub Source''': https://github.com/thisdp/dgs/tree/master<br />
<br />
'''Server Discord''': https://discord.gg/QEs8q6W<br />
<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''How does it work?'''<br />
*DGS is based on [[element]] system, which just likes the cegui system. To make DGS easier to use and understand, I choose to follow the usage of cegui's.<br />
*DGS elements are rendered in the event "onClientRender". When "onClientRender" is called, every DGS elements will be looped and calculated.<br />
<br />
<br />
'''What's different from cegui?'''<br />
*This resource is based on dx* functions, so it's style will be more flexible than cegui, which means you can define the style by yourself.<br />
<br />
<br />
<br />
'''Update System'''<br />
*It have an update system that can inform you of keeping your DGS latest.<br />
*When a newer version has been released, it will detected and then notice you.<br />
*Execute command "'''updatedgs'''" to check the least version and update your DGS.<br />
*Also, you can check the version of DGS by inputting the command "dgsver" <br />
<br />
<br />
'''Update Logs'''<br />
*'''You can view the update logs here: [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
<br />
'''You Should Know'''<br />
*Scroll Pane, Grid List, Combo Box, Memo and Edit Box use Render Target, which means if you don't have enough video memory, '''Render Target won't be created''', and therefore those dgs elements won't be shown.<br />
<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
'''Examples scripts'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. Also File test.lua its have more Examples You can See it .<br />
*3. This Video show you how to play a video by using Dgs https://www.youtube.com/watch?v=ZIq24zS5byI&feature=youtu.be.<br />
<br />
<br />
'''Auto Completion'''<br />
*1. Link: http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*2. '''Note''': You must put it in file Notepad++\plugins\APIs.<br />
*3. Not all of DGS Functions are added, but the rest will be added soon.<br />
<br />
<br />
'''Debug'''<br />
* You can enter the debug mode by executing the command "'''debugdgs'''".<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|Hurt World GUI Example]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Ellipse Detect Area (dgs-dxeda): An oval detect area.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* Ellipse Detecting Area (EDA)<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''Notice'''<br />
*It is recommended to change the resource name to 'dgs'.<br />
*This is a resource, if you want to use the functions exported by this resource, you should use an exported function prefix ('''exports.dgs:''') call in your code, such as<br />
<syntaxhighlight lang="lua"><br />
label = exports.dgs:dgsCreateLabel(0, 0, 0.5, 0.1, "text", true)<br />
</syntaxhighlight><br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsCreateLabel(0,0,0.5,0.1,"text",true) --create a label<br />
</syntaxhighlight><br />
*From the latest version, it no longer needs '''exports.dgs:''', instead we can do<br />
<syntaxhighlight lang="lua"><br />
loadstring(exports.dgs:dgsImportFunction())()-- load functions<br />
label = dgsCreateLabel(0,0,0.5,0.1,"text",true) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''Want to talk to us?'''<br />
*Join Discord Server: https://discord.gg/QEs8q6W<br />
<br />
<br />
'''Special thanks to the following for their help''':<br />
[[Image:Tab.PNG |200px|thumb|right|Example tab panel and label .]] <br />
* Axel: Gives some tips and provide some functions.<br />
* Senpai: Helps with wiki.<br />
* ZoNe: Helps with wiki.<br />
* DiGiTal: Helps with wiki.<br />
* #Dv^: Helps with wiki.<br />
* maksam07: Suggestions, BUG Fixing and coding<br />
* Scorpyo: Debug and Suggestions<br />
<br />
Special thanks to:<br />
* Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=Last=<br />
'''Everyone is welcome to make suggestions, test the script, help make adjustments/finish the wiki, etc.'''<br />
[[Category:Resource]]<br />
<br />
[[ar:Dgs]]<br />
[[ZH-CN:Dgs]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=DgsCreateFont&diff=55224DgsCreateFont2018-06-08T17:37:32Z<p>Ahmed Ly: --see also</p>
<hr />
<div>This function creates a dgs font element that can be used in [dgsSetFont]https://wiki.multitheftauto.com/wiki/DgsSetFont. Successful font creation is not guaranteed, and may fail due to hardware or memory limitations.<br />
<br />
==Syntax== <br />
<syntaxhighlight lang="lua"><br />
element dgsCreateFont ( string filepath[, int size=9 ] )<br />
</syntaxhighlight> <br />
<br />
===Required Arguments=== <br />
*'''filepath:''' the name of the file containing the font<br />
<br />
===Optional Arguments===<br />
*'''size:''' size of the font<br />
<br />
===Returns===<br />
Returns a DGS font element if successful, ''false'' if invalid arguments were passed to the function, or there is insufficient resources available.<br />
<br />
'''You should always check to see if this function has returned false.'''<br />
<br />
==Example== <br />
<syntaxhighlight lang="lua"><br />
-- Display a dgs label<br />
local myLabel = dgsCreateLabel( 100, 300, 400, 50, "DGS label", false )<br />
<br />
-- Use 'toggle' command to switch custom font on and off<br />
addCommandHandler( "toggle",<br />
function()<br />
if not myFont then<br />
myFont = dgsCreateFont( "segoeui.ttf", 20 ) -- Create DGS custom font<br />
dgsSetFont( myLabel, myFont ) -- Apply font to a widget<br />
else <br />
destroyElement( myFont ) -- Destroy custom font<br />
myFont = nil<br />
end<br />
end<br />
)<br />
</syntaxhighlight><br />
<br />
==See Also==<br />
{{DGSFUNCTIONS}}</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=DgsBringToFront&diff=55223DgsBringToFront2018-06-08T17:36:58Z<p>Ahmed Ly: </p>
<hr />
<div>This function sets the font of a dgs element to be used when drawing text.<br />
<br />
==Syntax== <br />
<syntaxhighlight lang="lua"><br />
bool guiBringToFront ( element dgsElement )<br />
</syntaxhighlight> <br />
<br />
===Required Arguments=== <br />
*'''dgsElement:''' the DGS element that you want to move to the front.<br />
<br />
===Returns===<br />
Returns ''true'' if the function was successful, ''false'' otherwise.<br />
<br />
==Example== <br />
This example creates a dgs window and brings it on top.<br />
<syntaxhighlight lang="lua"><br />
local window = dgsCreateWindow ( 0.4, 0.4, 0.3, 0.3, "My dummy window", true )<br />
dgsBringToFront ( window )<br />
</syntaxhighlight><br />
<br />
==See Also==<br />
{{DGSFUNCTIONS}}</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=DgsSetVisible&diff=55101DgsSetVisible2018-05-22T19:53:36Z<p>Ahmed Ly: </p>
<hr />
<div>{{Client function}}<br />
__NOTOC__<br />
This function changes the visibility state of a DGS element.<br />
<br />
==Syntax== <br />
<syntaxhighlight lang="lua"><br />
bool dgsSetVisible ( element dgsElement, bool state )<br />
</syntaxhighlight> <br />
<br />
===Required Arguments=== <br />
*'''dgsElement:''' the DGS element whose visibility is to be changed<br />
*'''state:''' the new visibility state<br />
<br />
===Returns===<br />
Returns ''true'' if the element's visibility could be changed, ''false'' otherwise.<br />
<br />
==Example== <br />
This example creates a dgs window and changes its visibility every 2 seconds, infinite times.<br />
<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs<br />
<br />
function changeVisibility ( )<br />
-- we check if the dgs element is visible<br />
DGS:dgsSetVisible (myWindow, not dgsGetVisible ( myWindow ) )<br />
end<br />
<br />
--Create a dgs window called 'myWindow'<br />
myWindow = DGS:dgsCreateWindow ( 0.3, 0.3, 0.5, 0.60, "DGS window title", true )<br />
--Set a timer to change the window's visibility every 2 seconds, infinite times<br />
setTimer ( changeVisibility, 2000, 0 )</syntaxhighlight><br />
<br />
This example creates a dgs window with yes and no buttons and make it visible/invisible with the bindkey 'x'.<br />
<section name="Client" class="client" show="true"> <br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs<br />
<br />
newdgs = { button = {}, wind= {} }<br />
<br />
addEventHandler("onClientResourceStart", resourceRoot,function()<br />
newdgs.wind[1] = DGS:dgsDxCreateWindow(434, 304, 280, 123, "New Window", false)<br />
DGS:dgsDxWindowSetSizable(newdgs.wind[1], false)<br />
newdgs.button[1] = DGS:dgsDxCreateButton(35, 46, 87, 40, "yes", false, newdgs.wind[1])<br />
newdgs.button[2] = DGS:dgsDxCreateButton(166, 49, 92, 37, "no", false, newdgs.wind[1]) <br />
end)<br />
<br />
bindKey ( "x", "down", function ( )<br />
local state = ( not DGS:dgsGetVisible( newdgs.wind[1] ) )<br />
DGS:dgsSetVisible( newdgs.wind[1], state )<br />
showCursor ( state )<br />
end)<br />
</syntaxhighlight></section><br />
<br />
==See Also==<br />
{{DGSFUNCTIONS}}</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=DgsSetVisible&diff=55100DgsSetVisible2018-05-22T19:53:00Z<p>Ahmed Ly: </p>
<hr />
<div>{{Client function}}<br />
__NOTOC__<br />
This function changes the visibility state of a DGS element.<br />
<br />
==Syntax== <br />
<syntaxhighlight lang="lua"><br />
bool dgsSetVisible ( element dgsElement, bool state )<br />
</syntaxhighlight> <br />
<br />
===Required Arguments=== <br />
*'''dgsElement:''' the DGS element whose visibility is to be changed<br />
*'''state:''' the new visibility state<br />
<br />
===Returns===<br />
Returns ''true'' if the element's visibility could be changed, ''false'' otherwise.<br />
<br />
==Example== <br />
This example creates a dgs window and changes its visibility every 2 seconds, infinite times.<br />
<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs<br />
<br />
function changeVisibility ( )<br />
-- we check if the dgs element is visible<br />
DGS:dgsSetVisible (myWindow, not dgsGetVisible ( myWindow ) )<br />
end<br />
<br />
--Create a dgs window called 'myWindow'<br />
myWindow = DGS:dgsCreateWindow ( 0.3, 0.3, 0.5, 0.60, "DGS window title", true )<br />
--Set a timer to change the window's visibility every 2 seconds, infinite times<br />
setTimer ( changeVisibility, 2000, 0 )</syntaxhighlight><br />
<br />
This example creates a dgs window with yes and no buttons and make it visible/invisible with the bindkey 'x'.<br />
<section name="Client" class="client" show="true"> <br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs<br />
<br />
newdgs = { button = {}, wind= {} }<br />
<br />
addEventHandler("onClientResourceStart", resourceRoot,function()<br />
newdgs.wind[1] = DGS:dgsDxCreateWindow(434, 304, 280, 123, "New Window", false)<br />
DGS:dgsDxWindowSetSizable(newdgs.wind[1], false)<br />
newdgs.button[1] = DGS:dgsDxCreateButton(35, 46, 87, 40, "yes", false, newdgs.wind[1])<br />
newdgs.button[2] = DGS:dgsDxCreateButton(166, 49, 92, 37, "no", false, newdgs.wind[1]) <br />
end)<br />
<br />
bindKey ( "x", "down", function ( )<br />
local state = ( not DGS:DgsGetVisible( newdgs.wind[1] ) )<br />
DGS:DgsSetVisible( newdgs.wind[1], state )<br />
showCursor ( state )<br />
end)<br />
</syntaxhighlight></section><br />
<br />
==See Also==<br />
{{DGSFUNCTIONS}}</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=Resource:DGS&diff=54913Resource:DGS2018-05-12T15:55:49Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
[[Image:DGSNetStatus.png|300px|thumb|right|DGS Network Monitor]]<br />
<br />
This resource is designed to allow you to create directX GUI's as an alternative to the original MTA:SA GUI functions.<br />
<br />
<br />
'''Full Name''': Thisdp's DirectX Graphical User Interface System (DxGUI Lib)<br />
<br />
'''Author''': [[User:thisdp|thisdp]] <br />
<br />
'''State''': OpenSource (WIP)<br />
<br />
'''GitHub Source''': https://github.com/thisdp/dgs/tree/master<br />
<br />
'''Server Discord''': https://discord.gg/QEs8q6W<br />
<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''How does it work?'''<br />
*DGS is just like the original gui system that is based on element system. I use a simple way that can make it easier to understand.<br />
*DGS elements are rendered in "onClientRender". There is two or more tables store DGS elements. When "onClientRender" is called, "for" loop will loop and calculate every DGS element.<br />
<br />
<br />
'''What's different?'''<br />
*This resource is based on dx* functions. It allows us to edit our gui and make it in customlization.<br />
<br />
<br />
<br />
'''Update System'''<br />
*It have an update system that can keep your DGS latest.<br />
*When a newer version has been pushed, it will detected and notice you to update dgs.<br />
*Execute command "'''updatedgs'''" to check the least version and update your DGS.<br />
*You can check the version of DGS by command "dgsver" <br />
<br />
<br />
'''Update Logs'''<br />
*'''You can view the update logs here: [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
<br />
'''You Should Know'''<br />
*Scroll Pane, Grid List, Combo Box, Memo and Edit box use Render Target, which means if you don't have enough video memory, '''Render Target won't be created.'''<br />
<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
'''Examples scripts'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. Also File test.lua its have more Examples You can See it .<br />
*3. This Video show you how to play a video by using Dgs https://www.youtube.com/watch?v=ZIq24zS5byI&feature=youtu.be.<br />
<br />
<br />
'''Auto Completion'''<br />
*1. Link: http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*2. '''Note''': You must put it in file Notepad++\plugins\APIs.<br />
*3. Not all of DGS Functions are added, but the rest will be added soon.<br />
<br />
<br />
'''Debug'''<br />
* You can enter the debug mode by executing the command "'''debugdgs'''".<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|Hurt World GUI Example]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Ellipse Detect Area (dgs-dxeda): An oval detect area.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* Ellipse Detecting Area (EDA)<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''Notice'''<br />
*It is recommended to change the resource name to 'dgs'.<br />
*This is a resource, if you want to use the functions exported by this resource, you should use an exported function prefix ('''exports.dgs:''') call in your code, such as<br />
<syntaxhighlight lang="lua"><br />
label = exports.dgs:dgsCreateLabel(0, 0, 0.5, 0.1, "text", true)<br />
</syntaxhighlight><br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsCreateLabel(0,0,0.5,0.1,"text",true) --create a label<br />
</syntaxhighlight><br />
*From the latest version, it no longer needs exports.dgs: so much:<br />
<syntaxhighlight lang="lua"><br />
loadstring(exports.dgs:dgsImportFunction())()-- load functions<br />
label = dgsCreateLabel(0,0,0.5,0.1,"text",true) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''Want to talk to us?'''<br />
*Join Discord Server: https://discord.gg/QEs8q6W<br />
<br />
<br />
'''Special thanks to the following for their help''':<br />
[[Image:Tab.PNG |200px|thumb|right|Example tab panel and label .]] <br />
* Axel: Gives some tips and provide some functions.<br />
* Senpai: Helps write wiki.<br />
* ZoNe: Helps write wiki.<br />
* DiGiTal: Helps write wiki.<br />
* #Dv^: Helps write wiki.<br />
<br />
Special thanks to:<br />
* Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=Last=<br />
'''Everyone is welcome to make suggestions, test the script, help make adjustments/finish the wiki, etc.'''<br />
[[Category:Resource]]<br />
<br />
[[ar:Dgs]]<br />
[[ZH-CN:Dgs]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=DgsSetProperties&diff=54890DgsSetProperties2018-05-06T17:54:57Z<p>Ahmed Ly: </p>
<hr />
<div>{{Client function}}<br />
__NOTOC__<br />
This function sets the values of specific properties of a DGS element. For a list of properties and their meaning, see the [[template:DGSPROPERTIES | DGS properties page]].<br />
<br />
{{Note|If you push a value improperly, errors or warnings will occur, which may cause lag and debug info spamming.}}<br />
<br />
==Syntax==<br />
<syntaxhighlight lang="lua"><br />
bool dgsSetProperties ( element/table dgsElement, table properties )<br />
</syntaxhighlight><br />
<br />
===Required Arguments===<br />
*'''dgsElement:''' the DGS element or a list of DGS elements you wish to set a property to.<br />
*'''properties:''' a table stores the properties name and value that you want to set (index = property name; value = property value).<br />
<br />
===Returns===<br />
returns true if succeeds, false otherwise.<br />
<br />
==Example==<br />
This example shows how to set multi properties at a time.<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs<br />
button = DGS:dgsCreateLabel(20, 200, 150, 30, "Test", false)<br />
properties = {}<br />
properties.text = "Done"<br />
properties.shadow = {1,1,tocolor(0,0,0,255)}<br />
DGS:dgsSetProperties(button, properties)<br />
</syntaxhighlight><br />
<br />
==See Also==<br />
{{DGSFUNCTIONS}}</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=Resource:DGS&diff=54889Resource:DGS2018-05-06T17:45:59Z<p>Ahmed Ly: --add link for server discord</p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
[[Image:DGSNetStatus.png|300px|thumb|right|DGS Network Monitor]]<br />
<br />
This resource is designed to allow you to create directX GUI's as an alternative to the original MTA:SA GUI functions.<br />
<br />
<br />
'''Full Name''': Thisdp's DirectX Graphical User Interface System (DxGUI Lib)<br />
<br />
'''Author''': [[User:thisdp|thisdp]] <br />
<br />
'''State''': OpenSource (WIP)<br />
<br />
'''GitHub Source''': https://github.com/thisdp/dgs/tree/master<br />
<br />
'''Server Discord''': https://discord.gg/QEs8q6W<br />
<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''How does it work?'''<br />
*DGS is just like the original gui system that is based on element system. I use a simple way that can make it easier to understand.<br />
*DGS elements are rendered in "onClientRender". There is two or more tables store DGS elements. When "onClientRender" is called, "for" loop will loop and calculate every DGS element.<br />
<br />
<br />
'''What's different?'''<br />
*This resource is based on dx* functions. It allows us to edit our gui and make it in customlization.<br />
<br />
<br />
<br />
'''Update System'''<br />
*It have an update system that can keep your DGS latest.<br />
*When a newer version has been pushed, it will detected and notice you to update dgs.<br />
*Execute command "'''updatedgs'''" to check the least version and update your DGS.<br />
*You can check the version of DGS by command "dgsver" <br />
<br />
<br />
'''Update Logs'''<br />
*'''You can view the update logs here: [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
<br />
'''You Should Know'''<br />
*Scroll Pane, Grid List, Combo Box, Memo and Edit box use Render Target, which means if you don't have enough video memory, '''Render Target won't be created.'''<br />
<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
'''Examples scripts'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. Also File test.lua its have more Examples You can See it<br />
<br />
<br />
'''Auto Completion'''<br />
*1. Link: http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*2. '''Note''': You must put it in file Notepad++\plugins\APIs.<br />
*3. Not all of DGS Functions are added, but the rest will be added soon.<br />
<br />
<br />
'''Debug'''<br />
* You can enter the debug mode by executing the command "'''debugdgs'''".<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|Hurt World GUI Example]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Ellipse Detect Area (dgs-dxeda): An oval detect area.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* Ellipse Detecting Area (EDA)<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''Notice'''<br />
*It is recommended to change the resource name to 'dgs'.<br />
*This is a resource, if you want to use the functions exported by this resource, you should use an exported function prefix ('''exports.dgs:''') call in your code, such as<br />
<syntaxhighlight lang="lua"><br />
label = exports.dgs:dgsCreateLabel(0, 0, 0.5, 0.1, "text", true)<br />
</syntaxhighlight><br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsCreateLabel(0,0,0.5,0.1,"text",true) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''Want to talk to us?'''<br />
*Join Discord Server: https://discord.gg/QEs8q6W<br />
<br />
<br />
'''Special thanks to the following for their help''':<br />
[[Image:Tab.PNG |200px|thumb|right|Example tab panel and label .]] <br />
* Axel: Gives some tips and provide some functions.<br />
* Senpai: Helps write wiki.<br />
* ZoNe: Helps write wiki.<br />
* DiGiTal: Helps write wiki.<br />
* #Dv^: Helps write wiki.<br />
<br />
Special thanks to:<br />
* Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=Last=<br />
'''Everyone is welcome to make suggestions, test the script, help make adjustments/finish the wiki, etc.'''<br />
[[Category:Resource]]<br />
<br />
[[ar:Dgs]]<br />
[[ZH-CN:Dgs]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=AR/Dgs&diff=54536AR/Dgs2018-04-04T07:11:21Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
[[Image:DGSNetStatus.png|300px|thumb|right|DGS Network Monitor]]<br />
<br />
تم تصميم هذا مود للسماح لك لإنشاء لوحات دي اكس بدل من وظائف دي اكس الخاصه بــ ام تي اي .<br />
<br />
<br />
'''الاسم''': نظام واجهة المستخدم الرسومية ديريكتكس<br />
<br />
'''مصمم المود''': [[User:thisdp|thisdp]] <br />
<br />
'''حالة''': لمصدر المفتوح<br />
<br />
'''جيثب''': https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''كيف يعمل'''<br />
* دغس هو تماما مثل نظام واجهة المستخدم الرسومية الأصلي الذي يقوم على نظام العنصر. يمكنني استخدام طريقة بسيطة يمكن أن تجعل من السهل أن نفهم.<br />
* يتم تقديم عناصر دغس في "onClientRender". هناك اثنين أو أكثر من الجداول تخزين عناصر دغس. عندما يسمى "onClientRender"، "for" حلقة حلقة وحساب كل عنصر دغس.<br />
<br />
<br />
'''ما هو المختلف؟'''<br />
* يستند هذا المورد على دكس * وظائف. انها تسمح لنا لتحرير لدينا واجهة المستخدم الرسومية وجعله في التخصيص.<br />
<br />
<br />
<br />
'''نظام تحديث'''<br />
*لديها نظام التحديث<br />
*عندما تاتي نسخه جديد ل مود يجب عليك تحديث المود <br />
*يمكنك استخدم امر "'''updatedgs'''" كشف علي اخر تحديث ل مود<br />
*يمكنك فحص اخر تحديث بوسطة امر "dgsver" <br />
<br />
<br />
'''سجلات التحديث'''<br />
*''' سجلات التحديث هنا: [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
<br />
'''يجب ان تعرف'''<br />
*Scroll Pane, Grid List, Combo Box, Memo and Edit box استخدام تحقيق الهدف، مما يعني إذا لم يكن لديك ما يكفي من ذاكرة الفيديو، '' 'سوف تحدث مشكله'''<br />
<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
'''امثله'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. أيضا test.lua ملف لها المزيد من الأمثلة يمكنك أن ترى ذلك<br />
<br />
<br />
'''Auto Completion'''<br />
*1. رابط: http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*2. '''ملاجظه''': يجب عليك وضع ملف في Notepad++\plugins\APIs.<br />
*3. لم يتم اضفت جميع وظايف ولكن سوف يتم اضفت جميع وظائف قريبا<br />
<br />
<br />
'''Debug'''<br />
* يمكنك استخدام دي بق باستخدام امر "'''debugdgs'''".<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|Hurt World GUI Example]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Ellipse Detect Area (dgs-dxeda): An oval detect area.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* Ellipse Detect Area (EDA)<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''تنويه'''<br />
*من المستحسن تغيير اسم المود "dgs" إلى.<br />
*This is a resource, if you want to use the functions exported by this resource, you should use an exported function prefix ('''exports.dgs:''') call in your code, such as<br />
<syntaxhighlight lang="lua"><br />
label = exports.dgs:dgsCreateLabel(0, 0, 0.5, 0.1, "text", true)<br />
</syntaxhighlight><br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsCreateLabel(0,0,0.5,0.1,"text",false) -- انشاء ليبل Label<br />
</syntaxhighlight><br />
<br />
<br />
'''شكر خاص لمساعدتهم''':<br />
[[Image:Tab.PNG |200px|thumb|right|Example tab panel and label .]] <br />
* Axel: يعطي بعض النصائح وتوفير بعض الوظائف.<br />
* Senpai: يساعد كتابة ويكي.<br />
* ZoNe: يساعد كتابة ويكي.<br />
* DiGiTal: يساعد كتابة ويكي.<br />
* #Dv^: يساعد كتابة ويكي.<br />
<br />
شكر خاص ل:<br />
* Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=في اخر=<br />
'''الجميع مرحب به لتقديم اقتراحات، واختبار النص البرمجي، والمساعدة في إجراء تعديلات / إنهاء ويكي، وما إلى ذلك.'''<br />
[[Category:Resource]]<br />
<br />
[[ar:Dgs]]<br />
[[ZH-CN:Dgs]]<br />
[[EN:Dgs]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=AR/Dgs&diff=54169AR/Dgs2018-03-19T23:17:37Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
[[Image:DGSNetStatus.png|300px|thumb|right|DGS Network Monitor]]<br />
<br />
تم تصميم هذا مود للسماح لك لإنشاء لوحات دي اكس بدل من وظائف دي اكس الخاصه بــ ام تي اي .<br />
<br />
<br />
'''الاسم''': نظام واجهة المستخدم الرسومية ديريكتكس<br />
<br />
'''مصمم المود''': [[User:thisdp|thisdp]] <br />
<br />
'''حالة''': لمصدر المفتوح<br />
<br />
'''جيثب''': https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''كيف يعمل'''<br />
* دغس هو تماما مثل نظام واجهة المستخدم الرسومية الأصلي الذي يقوم على نظام العنصر. يمكنني استخدام طريقة بسيطة يمكن أن تجعل من السهل أن نفهم.<br />
* يتم تقديم عناصر دغس في "onClientRender". هناك اثنين أو أكثر من الجداول تخزين عناصر دغس. عندما يسمى "onClientRender"، "for" حلقة حلقة وحساب كل عنصر دغس.<br />
<br />
<br />
'''ما هو المختلف؟'''<br />
* يستند هذا المورد على دكس * وظائف. انها تسمح لنا لتحرير لدينا واجهة المستخدم الرسومية وجعله في التخصيص.<br />
<br />
<br />
<br />
'''نظام تحديث'''<br />
*لديها نظام التحديث<br />
*عندما تاتي نسخه جديد ل مود يجب عليك تحديث المود <br />
*يمكنك استخدم امر "'''updatedgs'''" كشف علي اخر تحديث ل مود<br />
*يمكنك فحص اخر تحديث بوسطة امر "dgsver" <br />
<br />
<br />
'''سجلات التحديث'''<br />
*''' سجلات التحديث هنا: [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
<br />
'''يجب ان تعرف'''<br />
*Scroll Pane, Grid List, Combo Box, Memo and Edit box استخدام تحقيق الهدف، مما يعني إذا لم يكن لديك ما يكفي من ذاكرة الفيديو، '' 'سوف تحدث مشكله'''<br />
<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
'''امثله'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. أيضا test.lua ملف لها المزيد من الأمثلة يمكنك أن ترى ذلك<br />
<br />
<br />
'''Auto Completion'''<br />
*1. رابط: http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*2. '''ملاجظه''': يجب عليك وضع ملف في Notepad++\plugins\APIs.<br />
*3. لم يتم اضفت جميع وظايف ولكن سوف يتم اضفت جميع وظائف قريبا<br />
<br />
<br />
'''Debug'''<br />
* يمكنك استخدام دي بق باستخدام امر "'''debugdgs'''".<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|Hurt World GUI Example]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Ellipse Detect Area (dgs-dxeda): An oval detect area.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* Ellipse Detect Area (EDA)<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''تنويه'''<br />
*من المستحسن تغيير اسم المود "dgs" إلى.<br />
*This is a resource, if you want to use the functions exported by this resource, you should use an exported function prefix ('''exports.dgs:''') call in your code, such as<br />
<syntaxhighlight lang="lua"><br />
label = exports.dgs:dgsCreateLabel(0, 0, 0.5, 0.1, "text", true)<br />
</syntaxhighlight><br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsCreateLabel(0,0,0.5,0.1,"text",false) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''شكر خاص لمساعدتهم''':<br />
[[Image:Tab.PNG |200px|thumb|right|Example tab panel and label .]] <br />
* Axel: يعطي بعض النصائح وتوفير بعض الوظائف.<br />
* Senpai: يساعد كتابة ويكي.<br />
* ZoNe: يساعد كتابة ويكي.<br />
* DiGiTal: يساعد كتابة ويكي.<br />
* #Dv^: يساعد كتابة ويكي.<br />
<br />
شكر خاص ل:<br />
* Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=في اخر=<br />
'''الجميع مرحب به لتقديم اقتراحات، واختبار النص البرمجي، والمساعدة في إجراء تعديلات / إنهاء ويكي، وما إلى ذلك.'''<br />
[[Category:Resource]]<br />
<br />
[[ar:Dgs]]<br />
[[ZH-CN:Dgs]]<br />
[[EN:Dgs]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=AR/Dgs&diff=54168AR/Dgs2018-03-19T23:15:48Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
[[Image:DGSNetStatus.png|300px|thumb|right|DGS Network Monitor]]<br />
<br />
تم تصميم هذا مود للسماح لك لإنشاء لوحات دي اكس بدل من وظائف دي اكس الخاصه بــ ام تي اي .<br />
<br />
<br />
'''الاسم''': نظام واجهة المستخدم الرسومية ديريكتكس<br />
<br />
'''مصمم المود''': [[User:thisdp|thisdp]] <br />
<br />
'''حالة''': لمصدر المفتوح<br />
<br />
'''جيثب''': https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''كيف يعمل'''<br />
* دغس هو تماما مثل نظام واجهة المستخدم الرسومية الأصلي الذي يقوم على نظام العنصر. يمكنني استخدام طريقة بسيطة يمكن أن تجعل من السهل أن نفهم.<br />
* يتم تقديم عناصر دغس في "onClientRender". هناك اثنين أو أكثر من الجداول تخزين عناصر دغس. عندما يسمى "onClientRender"، "for" حلقة حلقة وحساب كل عنصر دغس.<br />
<br />
<br />
'''ما هو المختلف؟'''<br />
* يستند هذا المورد على دكس * وظائف. انها تسمح لنا لتحرير لدينا واجهة المستخدم الرسومية وجعله في التخصيص.<br />
<br />
<br />
<br />
'''نظام تحديث'''<br />
*لديها نظام التحديث<br />
*عندما تاتي نسخه جديد ل مود يجب عليك تحديث المود <br />
*يمكنك استخدم امر "'''updatedgs'''" كشف علي اخر تحديث ل مود<br />
*يمكنك فحص اخر تحديث بوسطة امر "dgsver" <br />
<br />
<br />
'''سجلات التحديث'''<br />
*''' سجلات التحديث هنا: [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
<br />
'''يجب ان تعرف'''<br />
*Scroll Pane, Grid List, Combo Box, Memo and Edit box استخدام تحقيق الهدف، مما يعني إذا لم يكن لديك ما يكفي من ذاكرة الفيديو، '' 'سوف تحدث مشكله'''<br />
<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
'''امثله'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. أيضا test.lua ملف لها المزيد من الأمثلة يمكنك أن ترى ذلك<br />
<br />
<br />
'''Auto Completion'''<br />
*1. رابط: http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*2. '''ملاجظه''': يجب عليك وضع ملف في Notepad++\plugins\APIs.<br />
*3. لم يتم اضفت جميع وظايف ولكن سوف يتم اضفت جميع وظائف قريبا<br />
<br />
<br />
'''Debug'''<br />
* يمكنك استخدام دي بق باستخدام امر "'''debugdgs'''".<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|Hurt World GUI Example]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Ellipse Detect Area (dgs-dxeda): An oval detect area.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* Ellipse Detect Area (EDA)<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''تنويه'''<br />
*من المستحسن تغيير اسم المود "Dgs" إلى.<br />
*This is a resource, if you want to use the functions exported by this resource, you should use an exported function prefix ('''exports.dgs:''') call in your code, such as<br />
<syntaxhighlight lang="lua"><br />
label = exports.dgs:dgsCreateLabel(0, 0, 0.5, 0.1, "text", true)<br />
</syntaxhighlight><br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsCreateLabel(0,0,0.5,0.1,"text",false) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''شكر خاص لمساعدتهم''':<br />
[[Image:Tab.PNG |200px|thumb|right|Example tab panel and label .]] <br />
* Axel: يعطي بعض النصائح وتوفير بعض الوظائف.<br />
* Senpai: يساعد كتابة ويكي.<br />
* ZoNe: يساعد كتابة ويكي.<br />
* DiGiTal: يساعد كتابة ويكي.<br />
* #Dv^: يساعد كتابة ويكي.<br />
<br />
شكر خاص ل:<br />
* Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=في اخر=<br />
'''الجميع مرحب به لتقديم اقتراحات، واختبار النص البرمجي، والمساعدة في إجراء تعديلات / إنهاء ويكي، وما إلى ذلك.'''<br />
[[Category:Resource]]<br />
<br />
[[ar:Dgs]]<br />
[[ZH-CN:Dgs]]<br />
[[EN:Dgs]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=AR/Dgs&diff=54149AR/Dgs2018-03-17T16:25:59Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
[[Image:DGSNetStatus.png|300px|thumb|right|DGS Network Monitor]]<br />
<br />
تم تصميم هذا مود للسماح لك لإنشاء لوحات دي اكس بدل من وظائف دي اكس الخاصه بــ ام تي اي .<br />
<br />
<br />
'''الاسم''': نظام واجهة المستخدم الرسومية ديريكتكس<br />
<br />
'''مصمم المود''': [[User:thisdp|thisdp]] <br />
<br />
'''حالة''': لمصدر المفتوح<br />
<br />
'''جيثب''': https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''كيف يعمل'''<br />
* دغس هو تماما مثل نظام واجهة المستخدم الرسومية الأصلي الذي يقوم على نظام العنصر. يمكنني استخدام طريقة بسيطة يمكن أن تجعل من السهل أن نفهم.<br />
* يتم تقديم عناصر دغس في "onClientRender". هناك اثنين أو أكثر من الجداول تخزين عناصر دغس. عندما يسمى "onClientRender"، "for" حلقة حلقة وحساب كل عنصر دغس.<br />
<br />
<br />
'''ما هو المختلف؟'''<br />
* يستند هذا المورد على دكس * وظائف. انها تسمح لنا لتحرير لدينا واجهة المستخدم الرسومية وجعله في التخصيص.<br />
<br />
<br />
<br />
'''نظام تحديث'''<br />
*لديها نظام التحديث<br />
*عندما تاتي نسخه جديد ل مود يجب عليك تحديث المود <br />
*يمكنك استخدم امر "'''updatedgs'''" كشف علي اخر تحديث ل مود<br />
*يمكنك فحص اخر تحديث بوسطة امر "dgsver" <br />
<br />
<br />
'''سجلات التحديث'''<br />
*''' سجلات التحديث هنا: [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
<br />
'''يجب ان تعرف'''<br />
*Scroll Pane, Grid List, Combo Box, Memo and Edit box استخدام تحقيق الهدف، مما يعني إذا لم يكن لديك ما يكفي من ذاكرة الفيديو، '' 'سوف تحدث مشكله'''<br />
<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
'''امثله'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. أيضا test.lua ملف لها المزيد من الأمثلة يمكنك أن ترى ذلك<br />
<br />
<br />
'''Auto Completion'''<br />
*1. رابط: http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*2. '''ملاجظه''': يجب عليك وضع ملف في Notepad++\plugins\APIs.<br />
*3. لم يتم اضفت جميع وظايف ولكن سوف يتم اضفت جميع وظائف قريبا<br />
<br />
<br />
'''Debug'''<br />
* يمكنك استخدام دي بق باستخدام امر "'''debugdgs'''".<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|Hurt World GUI Example]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Ellipse Detect Area (dgs-dxeda): An oval detect area.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* Ellipse Detect Area (EDA)<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''Notice'''<br />
*It is recommended to change the resource name to 'dgs'.<br />
*This is a resource, if you want to use the functions exported by this resource, you should use an exported function prefix ('''exports.dgs:''') call in your code, such as<br />
<syntaxhighlight lang="lua"><br />
label = exports.dgs:dgsCreateLabel(0, 0, 0.5, 0.1, "text", true)<br />
</syntaxhighlight><br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsCreateLabel(0,0,0.5,0.1,"text",false) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''شكر خاص لمساعدتهم''':<br />
[[Image:Tab.PNG |200px|thumb|right|Example tab panel and label .]] <br />
* Axel: يعطي بعض النصائح وتوفير بعض الوظائف.<br />
* Senpai: يساعد كتابة ويكي.<br />
* ZoNe: يساعد كتابة ويكي.<br />
* DiGiTal: يساعد كتابة ويكي.<br />
* #Dv^: يساعد كتابة ويكي.<br />
<br />
شكر خاص ل:<br />
* Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=في اخر=<br />
'''الجميع مرحب به لتقديم اقتراحات، واختبار النص البرمجي، والمساعدة في إجراء تعديلات / إنهاء ويكي، وما إلى ذلك.'''<br />
[[Category:Resource]]<br />
<br />
[[ar:Dgs]]<br />
[[ZH-CN:Dgs]]<br />
[[EN:Dgs]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=AR/Dgs&diff=54028AR/Dgs2018-02-23T07:09:57Z<p>Ahmed Ly: Created page with "<pageclass class="resource" subcaption="Resource"></pageclass> DGS Network Monitor تم تصميم هذا مود للسماح ل..."</p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
[[Image:DGSNetStatus.png|300px|thumb|right|DGS Network Monitor]]<br />
<br />
تم تصميم هذا مود للسماح لك لإنشاء لوحات دي اكس بدل من وظائف دي اكس الخاصه بــ ام تي اي .<br />
<br />
<br />
'''الاسم''': نظام واجهة المستخدم الرسومية ديريكتكس<br />
<br />
'''مصمم المود''': [[User:thisdp|thisdp]] <br />
<br />
'''حالة''': لمصدر المفتوح<br />
<br />
'''جيثب''': https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''كيف يعمل'''<br />
* دغس هو تماما مثل نظام واجهة المستخدم الرسومية الأصلي الذي يقوم على نظام العنصر. يمكنني استخدام طريقة بسيطة يمكن أن تجعل من السهل أن نفهم.<br />
* يتم تقديم عناصر دغس في "onClientRender". هناك اثنين أو أكثر من الجداول تخزين عناصر دغس. عندما يسمى "onClientRender"، "for" حلقة حلقة وحساب كل عنصر دغس.<br />
<br />
<br />
'''ما هو المختلف؟'''<br />
* يستند هذا المورد على دكس * وظائف. انها تسمح لنا لتحرير لدينا واجهة المستخدم الرسومية وجعله في التخصيص.<br />
<br />
<br />
<br />
'''نظام تحديث'''<br />
*لديها نظام التحديث<br />
*عندما تاتي نسخه جديد ل مود يجب عليك تحديث المود <br />
*يمكنك استخدم امر "'''updatedgs'''" كشف علي اخر تحديث ل مود<br />
*يمكنك فحص اخر تحديث بوسطة امر "dgsver" <br />
<br />
<br />
'''سجلات التحديث'''<br />
*''' سجلات التحديث هنا: [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
<br />
'''يجب ان تعرف'''<br />
*Scroll Pane, Grid List, Combo Box, Memo and Edit box استخدام تحقيق الهدف، مما يعني إذا لم يكن لديك ما يكفي من ذاكرة الفيديو، '' 'سوف تحدث مشكله'''<br />
<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
'''امثله'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. أيضا test.lua ملف لها المزيد من الأمثلة يمكنك أن ترى ذلك<br />
<br />
<br />
'''Auto Completion'''<br />
*1. Link: http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*2. '''Note''': You must put it in file Notepad++\plugins\APIs.<br />
*3. Not all of DGS Functions are added, but the rest will be added soon.<br />
<br />
<br />
'''Debug'''<br />
* يمكنك استخدام دي بق باستخدام امر "'''debugdgs'''".<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|Hurt World GUI Example]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Ellipse Detect Area (dgs-dxeda): An oval detect area.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* Ellipse Detect Area (EDA)<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''Notice'''<br />
*It is recommended to change the resource name to 'dgs'.<br />
*This is a resource, if you want to use the functions exported by this resource, you should use a exported function call in your code, such as "'''exports.dgs:dgsCreateLabel(0, 0, 0.5, 0.1, "text", true)'''".<br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsCreateLabel(0,0,0.5,0.1,"text",false) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''شكر خاص لمساعدتهم''':<br />
[[Image:Tab.PNG |200px|thumb|right|Example tab panel and label .]] <br />
* Axel: يعطي بعض النصائح وتوفير بعض الوظائف.<br />
* Senpai: يساعد كتابة ويكي.<br />
* ZoNe: يساعد كتابة ويكي.<br />
* DiGiTal: يساعد كتابة ويكي.<br />
* #Dv^: يساعد كتابة ويكي.<br />
<br />
شكر خاص ل:<br />
* Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=في اخر=<br />
'''الجميع مرحب به لتقديم اقتراحات، واختبار النص البرمجي، والمساعدة في إجراء تعديلات / إنهاء ويكي، وما إلى ذلك.'''<br />
[[Category:Resource]]<br />
<br />
[[ar:Dgs]]<br />
[[ZH-CN:Dgs]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=Resource:DGS&diff=54027Resource:DGS2018-02-23T06:42:24Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
[[Image:DGSNetStatus.png|300px|thumb|right|DGS Network Monitor]]<br />
<br />
This resource is designed to allow you to create directX GUI's as an alternative to the original MTA:SA GUI functions.<br />
<br />
<br />
'''Full Name''': Thisdp's DirectX Graphical User Interface System (DxGUI Lib)<br />
<br />
'''Author''': [[User:thisdp|thisdp]] <br />
<br />
'''State''': OpenSource (WIP)<br />
<br />
'''GitHub Source''': https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''How does it work?'''<br />
*DGS is just like the original gui system that is based on element system. I use a simple way that can make it easier to understand.<br />
*DGS elements are rendered in "onClientRender". There is two or more tables store DGS elements. When "onClientRender" is called, "for" loop will loop and calculate every DGS element.<br />
<br />
<br />
'''What's different?'''<br />
*This resource is based on dx* functions. It allows us to edit our gui and make it in customlization.<br />
<br />
<br />
<br />
'''Update System'''<br />
*It have an update system that can keep your DGS latest.<br />
*When a newer version has been pushed, it will detected and notice you to update dgs.<br />
*Execute command "'''updatedgs'''" to check the least version and update your DGS.<br />
*You can check the version of DGS by command "dgsver" <br />
<br />
<br />
'''Update Logs'''<br />
*'''You can view the update logs here: [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
<br />
'''You Should Know'''<br />
*Scroll Pane, Grid List, Combo Box, Memo and Edit box use Render Target, which means if you don't have enough video memory, '''Render Target won't be created.'''<br />
<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
'''Examples scripts'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. Also File test.lua its have more Examples You can See it<br />
<br />
<br />
'''Auto Completion'''<br />
*1. Link: http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*2. '''Note''': You must put it in file Notepad++\plugins\APIs.<br />
*3. Not all of DGS Functions are added, but the rest will be added soon.<br />
<br />
<br />
'''Debug'''<br />
* You can enter the debug mode by executing the command "'''debugdgs'''".<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|Hurt World GUI Example]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Ellipse Detect Area (dgs-dxeda): An oval detect area.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* Ellipse Detect Area (EDA)<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''Notice'''<br />
*It is recommended to change the resource name to 'dgs'.<br />
*This is a resource, if you want to use the functions exported by this resource, you should use a exported function call in your code, such as "'''exports.dgs:dgsCreateLabel(0, 0, 0.5, 0.1, "text", true)'''".<br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsCreateLabel(0,0,0.5,0.1,"text",false) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''Special thanks to the following for their help''':<br />
[[Image:Tab.PNG |200px|thumb|right|Example tab panel and label .]] <br />
* Axel: Gives some tips and provide some functions.<br />
* Senpai: Helps write wiki.<br />
* ZoNe: Helps write wiki.<br />
* DiGiTal: Helps write wiki.<br />
* #Dv^: Helps write wiki.<br />
<br />
Special thanks to:<br />
* Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=Last=<br />
'''Everyone is welcome to make suggestions, test the script, help make adjustments/finish the wiki, etc.'''<br />
[[Category:Resource]]<br />
<br />
[[ar:Dgs]]<br />
[[ZH-CN:Dgs]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=Resource:DGS&diff=53264Resource:DGS2018-01-02T22:08:25Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
<br />
[[Image:dx_3.PNG|200px|thumb|right|Example DGS Gridlist.]]<br />
<br />
This is a resource designed to allow you create dx gui on the screen instead of the original gui.<br />
<br />
<br />
'''Full Name''' : Thisdp's DX Graphical User Interface System ( Dx GUI Lib )<br />
<br />
'''Author''' : [[User:thisdp|thisdp]] <br />
<br />
'''State''' : OpenSource (WIP)<br />
<br />
'''GitHub Source''' : https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''How it works?'''<br />
*DGS is just like the original gui system that is based on element system. I use a simple way that can make it easier to understand.<br />
*DGS elements are rendered in "onClientRender". There is two or more tables store DGS elements. When "onClientRender" is called, "for" loop will loop and calculate every DGS element.<br />
<br />
<br />
'''What's different?'''<br />
*This resource is based on dx* functions. It allows us to edit our gui and make it in customlization.<br />
<br />
<br />
<br />
'''Update System'''<br />
*It have an update system that can keep your DGS latest.<br />
*When a newer version has been pushed, it will detected and notice you to update dgs.<br />
*Execute command "'''updatedgs'''" to check the least version and update your DGS.<br />
*You can check the version of DGS by command "dgsver" <br />
<br />
<br />
'''Update logs'''<br />
*'''Update Schedule (Need to be done)'''<br />
*'''Next Target :'''<br />
*1. Improve dgs-dxCycleHitShape -> dgs-dxOvalDetectArea<br />
*2. Add version-recovery command -> recoverdgs (If there are problems with new version, you can go back to the version before you update)<br />
*'''For More Info About Update logs : [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
'''Examples scripts'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. Also File test.lua its have more Examples You can See it<br />
<br />
<br />
'''Auto Completion'''<br />
*1.link:http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*'''Note''':<br />
*2.You must put it in file Notepad++\plugins\APIs.<br />
*3.Not all of DGS Functions are added, but the rest will be added soon.<br />
<br />
<br />
'''Debug'''<br />
*You can enter debug mode by executing the command "'''debugdgs'''"<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|Hurt World GUI Example]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Ellipse Detect Area (dgs-dxeda): An oval detect area.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* Ellipse Detect Area (EDA)<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''Notice'''<br />
*Recommend to change the resource name to 'dgs'.<br />
*This is a resource. If you want to use the functions exported by this resource, you should add something in front of the function like "'''exports.dgs:dgsDxCreateLabel(0,0,0.5,0.1,"text",true)'''".<br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsDxCreateLabel(0,0,0.5,0.1,"text",false) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''Thanks for their helps''' :<br />
[[Image:Tab.PNG |200px|thumb|right|Example tab panel and label .]] <br />
* Axel: Gives some tips and provide some functions.<br />
* Senpai: Helps write wiki.<br />
* ZoNe: Helps write wiki.<br />
* DiGiTal: Helps write wiki.<br />
* #Dv^: Helps write wiki.<br />
-->Especially For:<br />
* Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=Last=<br />
'''Welcome everyone else to made suggestions, tested the script, helped me to finish the wiki, etc'''<br />
[[Category:Resource]]<br />
<br />
[[ZH-CN:Slothbot]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=DgsSetProperties&diff=53263DgsSetProperties2018-01-02T22:04:27Z<p>Ahmed Ly: </p>
<hr />
<div>{{Client function}}<br />
__NOTOC__<br />
This function sets the value of a specific property of a DGS element. For a list of properties and their meaning, see the [[template:DGSPROPERTIES | DGS properties page]].<br />
<br />
'''Note: If you push a value improperly, errors or warnings will occur, which may cause lag and debug info spamming.'''<br />
<br />
==Syntax==<br />
<syntaxhighlight lang="lua"><br />
string dgsDxGUISetProperty ( element dgsElement, string property, mixed value [, mixed arg1, mixed arg2 ... ] )<br />
</syntaxhighlight><br />
<br />
===Required Arguments===<br />
*'''dgsElement:''' the DGS element you wish to set a property to.<br />
*'''property:''' the name of of property you want the value to.<br />
*'''value:''' the value you want to set.<br />
<br />
===Returns===<br />
If the function succeeds, it returns true, false otherwise.<br />
<br />
==Example==<br />
This example creates a label whose text can be changed by itself.<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs<br />
button = DGS:dgsDxCreateLabel(20, 200, 150, 30, "Test", false)<br />
code = "return getTickCount()"<br />
DGS:dgsDxGUISetProperty(button, "functions", code)<br />
</syntaxhighlight><br />
<br />
==See Also==<br />
{{DGSFUNCTIONS}}</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=Resource:DGS&diff=53096Resource:DGS2017-12-08T21:35:32Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
<br />
[[Image:dx_3.PNG|200px|thumb|right|Example DGS Gridlist.]]<br />
<br />
This is a resource designed to allow you create dx gui on the screen instead of the original gui.<br />
<br />
<br />
'''Full Name''' : Thisdp's DX Graphical User Interface System ( Dx GUI Lib )<br />
<br />
'''Author''' : [[User:thisdp|thisdp]] <br />
<br />
'''State''' : OpenSource (WIP)<br />
<br />
'''GitHub Source''' : https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''How it works?'''<br />
*DGS is just like the original gui system that is based on element system. I use a simple way that can make it easier to understand.<br />
*DGS elements are rendered in "onClientRender". There is two or more tables store DGS elements. When "onClientRender" is called, "for" loop will loop and calculate every DGS element.<br />
<br />
<br />
'''What's different?'''<br />
*This resource is based on dx* functions. It allows us to edit our gui and make it in customlization.<br />
<br />
<br />
<br />
'''Update System'''<br />
*It have an update system that can keep your DGS latest.<br />
*When a newer version has been pushed, it will detected and notice you to update dgs.<br />
*Execute command "'''updatedgs'''" to check the least version and update your DGS.<br />
*You can check the version of DGS by command "dgsver" <br />
<br />
<br />
'''Update logs'''<br />
*'''Update Schedule (Need to be done)'''<br />
*'''Next Target :'''<br />
*1. Improve dgs-dxCycleHitShape -> dgs-dxOvalDetectArea<br />
*2. Add version-recovery command -> recoverdgs (If there are problems with new version, you can go back to the version before you update)<br />
*'''For More Info About Update logs : [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
'''Examples scripts'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. Also File test.lua its have more Examples You can See it<br />
<br />
<br />
'''Auto Completion'''<br />
*1.link:http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*'''Note''':<br />
*2.You must put it in file Notepad++\plugins\APIs.<br />
*3.Not all of DGS Functions are added, but the rest will be added soon.<br />
<br />
<br />
'''Debug'''<br />
*You can enter debug mode by executing the command "'''debugdgs'''"<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|Hurt World GUI Example]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Cyclehitshape (dgs-dxcyclehitshape): A check area that is cycle.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''Notice'''<br />
*Recommend to change the resource name to 'dgs'.<br />
*This is a resource. If you want to use the functions exported by this resource, you should add something in front of the function like "'''exports.dgs:dgsDxCreateLabel(0,0,0.5,0.1,"text",true)'''".<br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsDxCreateLabel(0,0,0.5,0.1,"text",false) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''Thanks for their helps''' :<br />
[[Image:Tab.PNG |200px|thumb|right|Example tab panel and label .]] <br />
*Axel: Gives some tips and provide some functions.<br />
*Senpai: Helps write wiki.<br />
*ZoNe: Helps write wiki.<br />
*DiGiTal: Helps write wiki.<br />
-->Especially For:<br />
*Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=Last=<br />
'''Welcome everyone else to made suggestions, tested the script, helped me to finish the wiki, etc'''<br />
[[Category:Resource]]<br />
<br />
[[ZH-CN:Slothbot]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=Resource:DGS&diff=53095Resource:DGS2017-12-08T21:32:23Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
<br />
[[Image:dx_3.PNG|200px|thumb|right|Example DGS Gridlist.]]<br />
<br />
This is a resource designed to allow you create dx gui on the screen instead of the original gui.<br />
<br />
<br />
'''Full Name''' : Thisdp's DX Graphical User Interface System ( Dx GUI Lib )<br />
<br />
'''Author''' : [[User:thisdp|thisdp]] <br />
<br />
'''State''' : OpenSource (WIP)<br />
<br />
'''GitHub Source''' : https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''How it works?'''<br />
*DGS is just like the original gui system that is based on element system. I use a simple way that can make it easier to understand.<br />
*DGS elements are rendered in "onClientRender". There is two or more tables store DGS elements. When "onClientRender" is called, "for" loop will loop and calculate every DGS element.<br />
<br />
<br />
'''What's different?'''<br />
*This resource is based on dx* functions. It allows us to edit our gui and make it in customlization.<br />
<br />
<br />
<br />
'''Update System'''<br />
*It have an update system that can keep your DGS latest.<br />
*When a newer version has been pushed, it will detected and notice you to update dgs.<br />
*Execute command "'''updatedgs'''" to check the least version and update your DGS.<br />
*You can check the version of DGS by command "dgsver" <br />
<br />
<br />
'''Update logs'''<br />
<br />
*'''2.953 Update:'''<br />
*1. Improve dgs-dxCycleHitShape -> dgs-dxOvalDetectArea<br />
*2. Add version-recovery command -> recoverdgs (If there are problems with new version, you can go back to the version before you update)<br />
*'''For More Info About Update logs : [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
'''Examples scripts'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. Also File test.lua its have more Examples You can See it<br />
<br />
<br />
'''Auto Completion'''<br />
*1.link:http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*'''Note''':<br />
*2.You must put it in file Notepad++\plugins\APIs.<br />
*3.Not all of DGS Functions are added, but the rest will be added soon.<br />
<br />
<br />
'''Debug'''<br />
*You can enter debug mode by executing the command "'''debugdgs'''"<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|Hurt World GUI Example]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Cyclehitshape (dgs-dxcyclehitshape): A check area that is cycle.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''Notice'''<br />
*Recommend to change the resource name to 'dgs'.<br />
*This is a resource. If you want to use the functions exported by this resource, you should add something in front of the function like "'''exports.dgs:dgsDxCreateLabel(0,0,0.5,0.1,"text",true)'''".<br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsDxCreateLabel(0,0,0.5,0.1,"text",false) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''Thanks for their helps''' :<br />
[[Image:Tab.PNG |200px|thumb|right|Example tab panel and label .]] <br />
*Axel: Gives some tips and provide some functions.<br />
*Senpai: Helps write wiki.<br />
*ZoNe: Helps write wiki.<br />
*DiGiTal: Helps write wiki.<br />
-->Especially For:<br />
*Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=Last=<br />
'''Welcome everyone else to made suggestions, tested the script, helped me to finish the wiki, etc'''<br />
[[Category:Resource]]<br />
<br />
[[ZH-CN:Slothbot]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=Server_Scripting_Events&diff=53048Server Scripting Events2017-12-03T19:54:28Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="server"></pageclass><br />
This page lists all '''server-side''' scripting [[event]]s that have been implemented and are available in the Deathmatch mod.<br />
<br />
To request a function or event, use [[Requested Functions and Events]].<br />
<br />
'''Client-side scripting events can be found here: [[Client Scripting Events]]<br />
<br />
==Client events==<br />
{{Client_events}}<br />
<br />
==Colshape events==<br />
{{Colshape_events}}<br />
<br />
==Element events==<br />
{{Element_events}}<br />
<br />
==Marker events==<br />
{{Marker_events}}<br />
<br />
==Pickup events==<br />
{{Pickup_events}}<br />
<br />
==Player events==<br />
{{Player_events}}<br />
<br />
==Ped events==<br />
{{Ped_events}}<br />
<br />
== Resource events==<br />
{{Resource_events}}<br />
<br />
==Server events==<br />
{{Server_events}}<br />
<br />
== Vehicle events ==<br />
{{Vehicle_events}}<br />
<br />
== Weapon events ==<br />
{{Weapon_events}}<br />
<br />
[[tr:Server Scripting Events]]<br />
[[pt-br:Eventos de Scripting do Servidor]]<br />
[[ru:Server Scripting Events]]<br />
[[fr:Server Scripting Events]]<br />
[[ru:Server Scripting Events]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=Resource:DGS&diff=52927Resource:DGS2017-11-27T20:11:08Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
<br />
[[Image:dx_3.PNG|200px|thumb|right|Example DGS Gridlist.]]<br />
<br />
This is a resource designed to allow you create dx gui on the screen instead of the original gui.<br />
<br />
<br />
'''Full Name''' : Thisdp's DX Graphical User Interface System ( Dx GUI Lib )<br />
<br />
'''Author''' : [[User:thisdp|thisdp]] <br />
<br />
'''State''' : OpenSource (WIP)<br />
<br />
'''GitHub Source''' : https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''How it works?'''<br />
*DGS is just like the original gui system that is based on element system. I use a simple way that can make it easier to understand.<br />
*DGS elements are rendered in "onClientRender". There is two or more tables store DGS elements. When "onClientRender" is called, "for" loop will loop and calculate every DGS element.<br />
<br />
<br />
'''What's different?'''<br />
*This resource is based on dx* functions. It allows us to edit our gui and make it in customlization.<br />
<br />
<br />
<br />
'''Update System'''<br />
*It have an update system that can keep your DGS latest.<br />
*When a newer version has been pushed, it will detected and notice you to update dgs.<br />
*Execute command "'''updatedgs'''" to check the least version and update your DGS.<br />
*You can check the version of DGS by command "dgsver" <br />
<br />
<br />
'''Update logs'''<br />
<br />
*'''2.953 Update:'''<br />
*1.Urgent Fix : Check Box and Radio Button is not working. <br />
*'''For More Info About Update logs : [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
'''Examples scripts'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. Also File test.lua its have more Examples You can See it<br />
<br />
<br />
'''Auto Completion'''<br />
*1.link:http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*'''Note''':<br />
*2.You must put it in file Notepad++\plugins\APIs.<br />
*3.Not all of DGS Functions are added, but the rest will be added soon.<br />
<br />
<br />
'''Debug'''<br />
*You can enter debug mode by executing the command "'''debugdgs'''"<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|Hurt World GUI Example]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Cyclehitshape (dgs-dxcyclehitshape): A check area that is cycle.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''Notice'''<br />
*Recommend to change the resource name to 'dgs'.<br />
*This is a resource. If you want to use the functions exported by this resource, you should add something in front of the function like "'''exports.dgs:dgsDxCreateLabel(0,0,0.5,0.1,"text",true)'''".<br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsDxCreateLabel(0,0,0.5,0.1,"text",false) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''Thanks for their helps''' :<br />
[[Image:Tab.PNG |200px|thumb|right|Example tab panel and label .]] <br />
*Axel: Gives some tips and provide some functions.<br />
*Senpai: Helps write wiki.<br />
*ZoNe: Helps write wiki.<br />
*DiGiTal: Helps write wiki.<br />
-->Especially For:<br />
*Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=Last=<br />
'''Welcome everyone else to made suggestions, tested the script, helped me to finish the wiki, etc'''<br />
[[Category:Resource]]<br />
<br />
[[ZH-CN:Slothbot]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=Resource:DGS&diff=52926Resource:DGS2017-11-27T20:09:49Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
<br />
[[Image:dx_3.PNG|200px|thumb|right|Example DGS Gridlist.]]<br />
<br />
This is a resource designed to allow you create dx gui on the screen instead of the original gui.<br />
<br />
<br />
'''Full Name''' : Thisdp's DX Graphical User Interface System ( Dx GUI Lib )<br />
<br />
'''Author''' : [[User:thisdp|thisdp]] <br />
<br />
'''State''' : OpenSource (WIP)<br />
<br />
'''GitHub Source''' : https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''How it works?'''<br />
*DGS is just like the original gui system that is based on element system. I use a simple way that can make it easier to understand.<br />
*DGS elements are rendered in "onClientRender". There is two or more tables store DGS elements. When "onClientRender" is called, "for" loop will loop and calculate every DGS element.<br />
<br />
<br />
'''What's different?'''<br />
*This resource is based on dx* functions. It allows us to edit our gui and make it in customlization.<br />
<br />
<br />
<br />
'''Update System'''<br />
*It have an update system that can keep your DGS latest.<br />
*When a newer version has been pushed, it will detected and notice you to update dgs.<br />
*Execute command "'''updatedgs'''" to check the least version and update your DGS.<br />
*You can check the version of DGS by command "dgsver" <br />
<br />
<br />
'''Update logs'''<br />
<br />
*'''2.951 Update:'''<br />
*1.Urgent Fix : Check Box and Radio Button is not working. <br />
<br />
*'''For More Info About Update logs : [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
'''Examples scripts'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. Also File test.lua its have more Examples You can See it<br />
<br />
<br />
'''Auto Completion'''<br />
*1.link:http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*'''Note''':<br />
*2.You must put it in file Notepad++\plugins\APIs.<br />
*3.Not all of DGS Functions are added, but the rest will be added soon.<br />
<br />
<br />
'''Debug'''<br />
*You can enter debug mode by executing the command "'''debugdgs'''"<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|Hurt World GUI Example]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Cyclehitshape (dgs-dxcyclehitshape): A check area that is cycle.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''Notice'''<br />
*Recommend to change the resource name to 'dgs'.<br />
*This is a resource. If you want to use the functions exported by this resource, you should add something in front of the function like "'''exports.dgs:dgsDxCreateLabel(0,0,0.5,0.1,"text",true)'''".<br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsDxCreateLabel(0,0,0.5,0.1,"text",false) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''Thanks for their helps''' :<br />
[[Image:Tab.PNG |200px|thumb|right|Example tab panel and label .]] <br />
*Axel: Gives some tips and provide some functions.<br />
*Senpai: Helps write wiki.<br />
*ZoNe: Helps write wiki.<br />
*DiGiTal: Helps write wiki.<br />
-->Especially For:<br />
*Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=Last=<br />
'''Welcome everyone else to made suggestions, tested the script, helped me to finish the wiki, etc'''<br />
[[Category:Resource]]<br />
<br />
[[ZH-CN:Slothbot]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=Resource:DGS&diff=52918Resource:DGS2017-11-25T18:41:37Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
<br />
[[Image:dx_3.PNG|200px|thumb|right|Example DGS Gridlist.]]<br />
<br />
This is a resource designed to allow you create dx gui on the screen instead of the original gui.<br />
<br />
<br />
'''Full Name''' : Thisdp's DX Graphical User Interface System ( Dx GUI Lib )<br />
<br />
'''Author''' : [[User:thisdp|thisdp]] <br />
<br />
'''State''' : OpenSource (WIP)<br />
<br />
'''GitHub Source''' : https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''How it works?'''<br />
*DGS is just like the original gui system that is based on element system. I use a simple way that can make it easier to understand.<br />
*DGS elements are rendered in "onClientRender". There is two or more tables store DGS elements. When "onClientRender" is called, "for" loop will loop and calculate every DGS element.<br />
<br />
<br />
'''What's different?'''<br />
*This resource is based on dx* functions. It allows us to edit our gui and make it in customlization.<br />
<br />
<br />
<br />
'''Update System'''<br />
*It have an update system that can keep your DGS latest.<br />
*When a newer version has been pushed, it will detected and notice you to update dgs.<br />
*Execute command "'''updatedgs'''" to check the least version and update your DGS.<br />
*You can check the version of DGS by command "dgsver" <br />
<br />
<br />
'''Update logs'''<br />
<br />
*'''2.951 Update:'''<br />
*1-Added : Make color scheme more convenient (Added color scheme config file which will be skipped when updating dgs if exists). <br />
'''For More Info About Update logs : [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
'''Examples scripts'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. Also File test.lua its have more Examples You can See it<br />
<br />
<br />
'''Auto Completion'''<br />
*1.link:http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*'''Note''':<br />
*2.You must put it in file Notepad++\plugins\APIs.<br />
*3.Not all of DGS Functions are added, but the rest will be added soon.<br />
<br />
<br />
'''Debug'''<br />
*You can enter debug mode by executing the command "'''debugdgs'''"<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|Hurt World GUI Example]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Cyclehitshape (dgs-dxcyclehitshape): A check area that is cycle.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''Notice'''<br />
*Recommend to change the resource name to 'dgs'.<br />
*This is a resource. If you want to use the functions exported by this resource, you should add something in front of the function like "'''exports.dgs:dgsDxCreateLabel(0,0,0.5,0.1,"text",true)'''".<br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsDxCreateLabel(0,0,0.5,0.1,"text",false) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''Thanks for their helps''' :<br />
[[Image:Tab.PNG |200px|thumb|right|Example tab panel and label .]] <br />
*Axel: Gives some tips and provide some functions.<br />
*Senpai: Helps write wiki.<br />
*ZoNe: Helps write wiki.<br />
*DiGiTal: Helps write wiki.<br />
-->Especially For:<br />
*Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=Last=<br />
'''Welcome everyone else to made suggestions, tested the script, helped me to finish the wiki, etc'''<br />
[[Category:Resource]]<br />
<br />
[[ZH-CN:Slothbot]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=Resource:DGS&diff=52912Resource:DGS2017-11-22T07:22:37Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
<br />
[[Image:dx_3.PNG|200px|thumb|right|Example DGS Gridlist.]]<br />
<br />
This is a resource designed to allow you create dx gui on the screen instead of the original gui.<br />
<br />
<br />
'''Full Name''' : Thisdp's DX Graphical User Interface System ( Dx GUI Lib )<br />
<br />
'''Author''' : [[User:thisdp|thisdp]] <br />
<br />
'''State''' : OpenSource (WIP)<br />
<br />
'''GitHub Source''' : https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''How it works?'''<br />
*DGS is just like the original gui system that is based on element system. I use a simple way that can make it easier to understand.<br />
*DGS elements are rendered in "onClientRender". There is two or more tables store DGS elements. When "onClientRender" is called, "for" loop will loop and calculate every DGS element.<br />
<br />
<br />
'''What's different?'''<br />
*This resource is based on dx* functions. It allows us to edit our gui and make it in customlization.<br />
<br />
<br />
<br />
'''Update System'''<br />
*It have an update system that can keep your DGS latest.<br />
*When a newer version has been pushed, it will detected and notice you to update dgs.<br />
*Execute command "'''updatedgs'''" to check the least version and update your DGS.<br />
*You can check the version of DGS by command "dgsver" <br />
<br />
<br />
'''Update logs'''<br />
<br />
*'''2.941 Update:'''<br />
*1.Fixed : dgsDxComboBoxSetBoxHeight isn't working well.<br />
*2.Add Property : (bool) PixelInt -> The text of dx grid list is always blurred when the pixel is not an integer. The property means to whether use math.floor() when calculating the position of text. <br />
<br />
'''For More Info About Update logs : [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
'''Examples scripts'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. Also File test.lua its have more Examples You can See it<br />
<br />
<br />
'''Auto Completion'''<br />
*1.link:http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*'''Note''':<br />
*2.You must put it in file Notepad++\plugins\APIs.<br />
*3.Not all of DGS Functions are added, but the rest will be added soon.<br />
<br />
<br />
'''Debug'''<br />
*You can enter debug mode by executing the command "'''debugdgs'''"<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|Hurt World GUI Example]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Cyclehitshape (dgs-dxcyclehitshape): A check area that is cycle.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''Notice'''<br />
*Recommend to change the resource name to 'dgs'.<br />
*This is a resource. If you want to use the functions exported by this resource, you should add something in front of the function like "'''exports.dgs:dgsDxCreateLabel(0,0,0.5,0.1,"text",true)'''".<br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsDxCreateLabel(0,0,0.5,0.1,"text",false) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''Thanks for their helps''' :<br />
[[Image:Tab.PNG |200px|thumb|right|Example tab panel and label .]] <br />
*Axel: Gives some tips and provide some functions.<br />
*Senpai: Helps write wiki.<br />
*ZoNe: Helps write wiki.<br />
*DiGiTal: Helps write wiki.<br />
-->Especially For:<br />
*Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=Last=<br />
'''Welcome everyone else to made suggestions, tested the script, helped me to finish the wiki, etc'''<br />
[[Category:Resource]]<br />
<br />
[[ZH-CN:Slothbot]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=Resource:DGS&diff=52905Resource:DGS2017-11-19T07:23:32Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
<br />
[[Image:dx_3.PNG|200px|thumb|right|Example DGS Gridlist.]]<br />
<br />
This is a resource designed to allow you create dx gui on the screen instead of the original gui.<br />
<br />
<br />
'''Full Name''' : Thisdp's DX Graphical User Interface System ( Dx GUI Lib )<br />
<br />
'''Author''' : [[User:thisdp|thisdp]] <br />
<br />
'''State''' : OpenSource (WIP)<br />
<br />
'''GitHub Source''' : https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''How it works?'''<br />
*DGS is just like the original gui system that is based on element system. I use a simple way that can make it easier to understand.<br />
*DGS elements are rendered in "onClientRender". There is two or more tables store DGS elements. When "onClientRender" is called, "for" loop will loop and calculate every DGS element.<br />
<br />
<br />
'''What's different?'''<br />
*This resource is based on dx* functions. It allows us to edit our gui and make it in customlization.<br />
<br />
<br />
<br />
'''Update System'''<br />
*It have an update system that can keep your DGS latest.<br />
*When a newer version has been pushed, it will detected and notice you to update dgs.<br />
*Execute command "'''updatedgs'''" to check the least version and update your DGS.<br />
*You can check the version of DGS by command "dgsver" <br />
<br />
<br />
'''Update logs'''<br />
<br />
*'''2.94 Update:'''<br />
*1.Fixed : Dx Memo got NaN value when the line is out of bounding box<br />
*2.Fixed : dgsDxMemoSetReadOnly is not working<br />
*3.Fixed : dgsDxEditSetMaxLength is not working with dgsDxGUISetText<br />
*4.Added Property: (bool) readOnlyCaretShow -> Dx Memo and Dx Edit now supports to show/hide caret when they are read-only.<br />
*5.Added Property: (bool) clearSelection -> Dx Edit now supports to clear/reserve text selection when it is blurred.<br />
*6.Added Function: int dgsDxEditGetCaretStyle(edit)<br />
*7.Added Function: int dgsDxMemoGetCaretStyle(memo)<br />
'''For More Info About Update logs : [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
'''Examples scripts'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. Also File test.lua its have more Examples You can See it<br />
<br />
<br />
'''Auto Completion'''<br />
*1.link:http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*'''Note''':<br />
*2.You must put it in file Notepad++\plugins\APIs.<br />
*3.Not all of DGS Functions are added, but the rest will be added soon.<br />
<br />
<br />
'''Debug'''<br />
*You can enter debug mode by executing the command "'''debugdgs'''"<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|Hurt World GUI Example]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Cyclehitshape (dgs-dxcyclehitshape): A check area that is cycle.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''Notice'''<br />
*Recommend to change the resource name to 'dgs'.<br />
*This is a resource. If you want to use the functions exported by this resource, you should add something in front of the function like "'''exports.dgs:dgsDxCreateLabel(0,0,0.5,0.1,"text",true)'''".<br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsDxCreateLabel(0,0,0.5,0.1,"text",false) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''Thanks for their helps''' :<br />
[[Image:Tab.PNG |200px|thumb|right|Example tab panel and label .]] <br />
*Axel: Gives some tips and provide some functions.<br />
*Senpai: Helps write wiki.<br />
*ZoNe: Helps write wiki.<br />
*DiGiTal: Helps write wiki.<br />
-->Especially For:<br />
*Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=Last=<br />
'''Welcome everyone else to made suggestions, tested the script, helped me to finish the wiki, etc'''<br />
[[Category:Resource]]<br />
<br />
[[ZH-CN:Slothbot]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=DgsDeleteTab&diff=52902DgsDeleteTab2017-11-19T03:41:44Z<p>Ahmed Ly: Created page with "__NOTOC__ {{Client function}} This function deletes a tab from a tab panel. ==Syntax== <syntaxhighlight lang="lua"> bool dgsDxDeleteTab ( element tabToDelete ) </syntaxhigh..."</p>
<hr />
<div>__NOTOC__ <br />
{{Client function}}<br />
This function deletes a tab from a tab panel.<br />
<br />
==Syntax== <br />
<syntaxhighlight lang="lua"><br />
bool dgsDxDeleteTab ( element tabToDelete )<br />
</syntaxhighlight> <br />
<br />
===Required Arguments=== <br />
*'''tabToDelete:''' This is an element representing the tab that you want to delete.<br />
<br />
===Returns===<br />
Returns ''true'' the tab was successfully deleted, ''false'' otherwise.<br />
<br />
==Example== <br />
This example remove a tab panel <br />
<syntaxhighlight lang="lua"><br />
<br />
DGS = exports.dgs<br />
matab = {}<br />
matab[1] = DGS:dgsDxCreateTabPanel (0.22, 0.19, 0.56, 0.63,true)<br />
DGS:dgsDxGUISetVisible (matab[1] , true ) <br />
matab[2] = DGS:dgsDxCreateTab("Main",matab[1])<br />
matab[3] = DGS:dgsDxCreateTab("Rules",matab[1])<br />
matab[4] = DGS:dgsDxCreateTab("FAQ",matab[1])<br />
matab[5] = DGS:dgsDxCreateTab("About Us",matab[1])<br />
<br />
use = false<br />
addCommandHandler("Delete",function (cmd,player)<br />
if use == false then <br />
use = true<br />
for i = 2,4 do <br />
DGS:dgsDxDeleteTab(matab[i]); <br />
end <br />
end<br />
end <br />
)<br />
</syntaxhighlight><br />
<br />
==See Also==<br />
{{DGSFUNCTIONS}}</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=Resource:DGS&diff=52863Resource:DGS2017-11-18T12:19:09Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
<br />
[[Image:dx_3.PNG|200px|thumb|right|Example DGS Gridlist.]]<br />
<br />
This is a resource designed to allow you create dx gui on the screen instead of the original gui.<br />
<br />
<br />
'''Full Name''' : Thisdp's DX Graphical User Interface System ( Dx GUI Lib )<br />
<br />
'''Author''' : [[User:thisdp|thisdp]] <br />
<br />
'''State''' : OpenSource (WIP)<br />
<br />
'''GitHub Source''' : https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''How it works?'''<br />
*DGS is just like the original gui system that is based on element system. I use a simple way that can make it easier to understand.<br />
*DGS elements are rendered in "onClientRender". There is two or more tables store DGS elements. When "onClientRender" is called, "for" loop will loop and calculate every DGS element.<br />
<br />
<br />
'''What's different?'''<br />
*This resource is based on dx* functions. It allows us to edit our gui and make it in customlization.<br />
<br />
<br />
<br />
'''Update System'''<br />
*It have an update system that can keep your DGS latest.<br />
*When a newer version has been pushed, it will detected and notice you to update dgs.<br />
*Execute command "'''updatedgs'''" to check the least version and update your DGS.<br />
*You can check the version of DGS by command "dgsver" <br />
<br />
<br />
'''Update logs'''<br />
<br />
*'''2.94 Update:'''<br />
*1.Fixed : Dx Memo got NaN value when the line is out of bounding box<br />
*2.Fixed : dgsDxMemoSetReadOnly is not working<br />
*3.Fixed : dgsDxEditSetMaxLength is not working with dgsDxGUISetText<br />
*4.Added Property: (bool) readOnlyCaretShow -> Dx Memo and Dx Edit now supports to show/hide caret when they are read-only.<br />
*5.Added Property: (bool) clearSelection -> Dx Edit now supports to clear/reserve text selection when it is blurred.<br />
'''For More Info About Update logs : [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
'''Examples scripts'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. Also File test.lua its have more Examples You can See it<br />
<br />
<br />
'''Auto Completion'''<br />
*1.link:http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*'''Note''':<br />
*2.You must put it in file Notepad++\plugins\APIs.<br />
*3.Not all of DGS Functions are added, but the rest will be added soon.<br />
<br />
<br />
'''Debug'''<br />
*You can enter debug mode by executing the command "'''debugdgs'''"<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|Hurt World GUI Example]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Cyclehitshape (dgs-dxcyclehitshape): A check area that is cycle.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''Notice'''<br />
*Recommend to change the resource name to 'dgs'.<br />
*This is a resource. If you want to use the functions exported by this resource, you should add something in front of the function like "'''exports.dgs:dgsDxCreateLabel(0,0,0.5,0.1,"text",true)'''".<br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsDxCreateLabel(0,0,0.5,0.1,"text",false) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''Thanks for their helps''' :<br />
[[Image:Tab.PNG |200px|thumb|right|Example tab panel and label .]] <br />
*Axel: Gives some tips and provide some functions.<br />
*Senpai: Helps write wiki.<br />
*ZoNe: Helps write wiki.<br />
*DiGiTal: Helps write wiki.<br />
-->Especially For:<br />
*Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=Last=<br />
'''Welcome everyone else to made suggestions, tested the script, helped me to finish the wiki, etc'''<br />
[[Category:Resource]]<br />
<br />
[[ZH-CN:Slothbot]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=Resource:DGS&diff=52854Resource:DGS2017-11-18T01:41:04Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
<br />
[[Image:dx_3.PNG|200px|thumb|right|Example DGS Gridlist.]]<br />
<br />
This is a resource designed to allow you create dx gui on the screen instead of the original gui.<br />
<br />
<br />
'''Full Name''' : Thisdp's DX Graphical User Interface System ( Dx GUI Lib )<br />
<br />
'''Author''' : [[User:thisdp|thisdp]] <br />
<br />
'''State''' : OpenSource (WIP)<br />
<br />
'''GitHub Source''' : https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''How it works?'''<br />
*DGS is just like the original gui system that is based on element system. I use a simple way that can make it easier to understand.<br />
*DGS elements are rendered in "onClientRender". There is two or more tables store DGS elements. When "onClientRender" is called, "for" loop will loop and calculate every DGS element.<br />
<br />
<br />
'''What's different?'''<br />
*This resource is based on dx* functions. It allows us to edit our gui and make it in customlization.<br />
<br />
<br />
<br />
'''Update System'''<br />
*It have an update system that can keep your DGS latest.<br />
*When a newer version has been pushed, it will detected and notice you to update dgs.<br />
*Execute command "'''updatedgs'''" to check the least version and update your DGS.<br />
*You can check the version of DGS by command "dgsver" <br />
<br />
<br />
'''Update logs'''<br />
<br />
*'''2.932 Update:'''<br />
*1.Fixed : When ChatBoxInput/ConsoleBox/MainMenu shows, the cursor of dgs-dxmemo/dgs-dxedit still exists<br />
'''For More Info About Update logs : [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
'''Examples scripts'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. Also File test.lua its have more Examples You can See it<br />
<br />
<br />
'''Auto Completion'''<br />
*1.link:http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*'''Note''':<br />
*2.You must put it in file Notepad++\plugins\APIs.<br />
*3.Not all of DGS Functions are added, but the rest will be added soon.<br />
<br />
<br />
'''Debug'''<br />
*You can enter debug mode by executing the command "'''debugdgs'''"<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|Hurt World GUI Example]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Cyclehitshape (dgs-dxcyclehitshape): A check area that is cycle.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''Notice'''<br />
*Recommend to change the resource name to 'dgs'.<br />
*This is a resource. If you want to use the functions exported by this resource, you should add something in front of the function like "'''exports.dgs:dgsDxCreateLabel(0,0,0.5,0.1,"text",true)'''".<br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsDxCreateLabel(0,0,0.5,0.1,"text",false) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''Thanks for their helps''' :<br />
[[Image:Tab.PNG |200px|thumb|right|Example tab panel and label .]] <br />
*Axel: Gives some tips and provide some functions.<br />
*Senpai: Helps write wiki.<br />
*ZoNe: Helps write wiki.<br />
*DiGiTal: Helps write wiki.<br />
-->Especially For:<br />
*Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=Last=<br />
'''Welcome everyone else to made suggestions, tested the script, helped me to finish the wiki, etc'''<br />
[[Category:Resource]]<br />
<br />
[[ZH-CN:Slothbot]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=DgsCreateLabel&diff=52853DgsCreateLabel2017-11-18T01:39:16Z<p>Ahmed Ly: </p>
<hr />
<div>__NOTOC__ <br />
{{Client function}}<br />
<table><tr><td valign=top height=100><br />
This function is for creating a new DGS label. A label is simply a piece of text that cannot be edited by the user. If you would like to have a bigger text you can either change its size with property "textsize"( dgsDxGUISetProperty(label,"textsize",{scale_x,scale_y}) ) or change its font.<br />
</td></tr></table><br />
==Syntax== <br />
<syntaxhighlight lang="lua"><br />
element dgsDxCreateLabel ( float x, float y, float width, float height, string text, bool relative, [element parent = nil, int textcolor = 0xFFFFFFFF, float scale_x = 1, float scale_y = 1, float shadowOffset_x = nil, float shadowOffset_y = nil, int shadowColor = nil, string horizontalAlign = "left", string verticalAlign = "top"] )<br />
</syntaxhighlight> <br />
<br />
===Required Arguments=== <br />
[[Image:Tab.PNG |400px|thumb|right|Example tab panel and label .]] <br />
*'''x:''' A float of the 2D x position of the DGS label on a player's screen. This is affected by the ''relative'' argument.<br />
*'''y:''' A float of the 2D y position of the DGS label on a player's screen. This is affected by the ''relative'' argument.<br />
*'''width:''' A float of the width of the GUI label. This is affected by the ''relative'' argument.<br />
*'''height:''' A float of the height of the GUI label. This is affected by the ''relative'' argument.<br />
*'''text:''' A string of the text that will be displayed by the label.<br />
*'''relative:''' This is whether sizes and positioning are relative. If this is ''true'', then all x,y,width,height floats must be between 0 and 1, representing sizes relative to the parent.<br />
<br />
===Optional Arguments=== <br />
{{OptionalArg}} <br />
*'''parent:''' This is the parent that the gui label is attached to. If the ''relative'' argument is true, sizes and positioning will be made relative to this parent. If the ''relative'' argument is false, positioning will be the number of offset pixels from the parent's origin. If no parent is passed, the parent will become the screen - causing positioning and sizing according to screen positioning.<br />
*'''textcolor:''' An int of the color of the text color.<br />
*'''scale_x:''' A float of the width of the text scale.<br />
*'''scale_y:''' A float of the height of the text scale.<br />
*'''shadowOffset_x:''' A float of the 2D x position offset of the shadow text. <br />
*'''shadowOffset_y:''' A float of the 2D y position offset of the shadow text.<br />
*'''shadowColor:''' An int of the color of the shadow text.<br />
*'''horizontalAlign:''' A string of the horizontal alignment of the label.<br />
**"left"<br />
**"center"<br />
**"right"<br />
*'''verticalAlign:''' A string of the vertical alignment of the label.<br />
**"top"<br />
**"center"<br />
**"bottom"<br />
===Returns===<br />
Returns an [[DGS_widgets|element]] of the created label if it was successfully created, false otherwise.<br />
<br />
==Example== <br />
'''Example 1:''' This example creates a information window and adds two tabs to a "tabPanel" tabpanel, and adds some dgs labels to each tab.<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs<br />
local myWindow = DGS:dgsDxCreateWindow ( 0, 0, 0.5, 0.4, "Information", true )--create a window which has "Information" in the title bar.<br />
local tabPanel = DGS:dgsDxCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow ) --create a tab panel which fills the whole window<br />
local tabMap = DGS:dgsDxCreateTab( "Map Information", tabPanel ) -- create a tab named "Map Information" on 'tabPanel'<br />
local tabHelp = DGS:dgsDxCreateTab( "Help", tabPanel ) -- create another tab named "Help" on 'tabPanel'<br />
<br />
-- adds a label (text) to each tab<br />
DGS:dgsDxCreateLabel(0.02,0.04,0.94,0.2,"This is information about the current map",true,tabMap)<br />
DGS:dgsDxCreateLabel(0.02,0.04,0.94,0.92,"This is help text.",true,tabHelp)<br />
</syntaxhighlight><br />
<br />
'''Example 2:''' This example creates a label. When an element is clicked, the label displays in the position of the element telling you what kind of element you have clicked. It hides after 5 seconds.<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs<br />
local myLabel = DGS:dgsDxCreateLabel ( 0, 0, 1, 1, "", true )<br />
<br />
function addLabelOnClick ( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement )<br />
--if an element was clicked on screen<br />
if ( clickedElement ) then<br />
--retreive the element type<br />
local elementType = getElementType ( clickedElement )<br />
--change the label text to that element type<br />
DGS:dgsDxGUISetText ( myLabel, elementType )<br />
--and place it in the position of where the element is<br />
DGS:dgsSetPosition ( myLabel, absoluteX, absoluteY, false )<br />
--hide the text by passing an empty string 5 seconds later<br />
setTimer ( DGS:dgsDxGUISetText, 5000, 1, myLabel, "" )<br />
end<br />
end<br />
addEventHandler ( "onClientClick", getRootElement(), addLabelOnClick )<br />
</syntaxhighlight><br />
<br />
==See Also==<br />
{{DGSFUNCTIONS}}</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=DgsCreateTab&diff=52852DgsCreateTab2017-11-18T00:37:30Z<p>Ahmed Ly: </p>
<hr />
<div>__NOTOC__ <br />
{{Client function}}<br />
This function creates a tab on a pre-existing tab panel. A tab is a button as well as a 'dimension' that can be used to switch between information by clicking on the tabs. Tabs are sorted on a tab panel in the order that they are created.<br />
<br />
==Syntax== <br />
<syntaxhighlight lang="lua"><br />
element dgsDxCreateTab ( string text, element parent [,int scalex = 1, int scaley = 1, int textcolor = 0xFFFFFFFF, element bgimg = nil, int bgcolor = 0x000000C8, element tabdefimg = nil, element tabhovimg = nil, element tabcliimg = nil, int tabdefcolor = 282828B4, int tabhovcolor = 0x505050BE, int tabclicolor = 0X000000C8])<br />
</syntaxhighlight> <br />
<br />
===Required Arguments=== <br />
[[Image:Tab.PNG |frame|Example tab panel with two tabs.]]<br />
*'''text:''' The caption for the tab<br />
*'''parent:''' The parent tab panel, as a tab panel [[element]] type<br />
<br />
==Optional Arguments==<br />
*'''scalex:''' A float of the 2D x scale of the text of the tab.<br />
*'''scaley:''' A float of the 2D y scale of the text of the tab.<br />
*'''bgimg:''' An image element of the background image of the panel of the tab.<br />
*'''bgcolor:''' An integer of the background color of the panel of the tab.<br />
*'''tabdefimg:''' An image element of the background image of the tab (default state).<br />
*'''tabhovimg:''' An image element of the background imag of the tab (hovered state).<br />
*'''tabcliimg:''' An image element of the background image of the tab (clicked state).<br />
*'''tabdefcolor:''' An integer of the background color of the tab (default state).<br />
*'''tabselcolor:''' An integer of the background color of the tab (hovered state).<br />
*'''tabclicolor:''' An integer of the background color of the tab (clicked state).<br />
<br />
===Returns===<br />
Returns a dgs-dxtab element if successful, ''false'' otherwise.<br />
<br />
==Example== <br />
This example creates a information window and adds two tabs to a "tabPanel" tabpanel, and adds some other dgs elements to it.<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs<br />
local myWindow = DGS:dgsDxCreateWindow ( 0, 0, 0.5, 0.4, "Information", true )--create a window which has "Information" in the title bar.<br />
local tabPanel = DGS:dgsDxCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow ) --create a tab panel which fills the whole window<br />
local tabMap = DGS:dgsDxCreateTab( "Map Information", tabPanel ) -- create a tab named "Map Information" on 'tabPanel'<br />
local tabHelp = DGS:dgsDxCreateTab( "Help", tabPanel ) -- create another tab named "Help" on 'tabPanel'<br />
<br />
-- adds a label (text) to each tab<br />
DGS:dgsDxCreateLabel(0.02,0.04,0.94,0.2,"This is information about the current map",true,tabMap)<br />
DGS:dgsDxCreateLabel(0.02,0.04,0.94,0.92,"This is help text.",true,tabHelp)<br />
</syntaxhighlight><br />
<br />
==See Also==<br />
{{DGSFUNCTIONS}}</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=File:Tab.PNG&diff=52851File:Tab.PNG2017-11-18T00:36:49Z<p>Ahmed Ly: </p>
<hr />
<div></div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=DgsCreateMemo&diff=52850DgsCreateMemo2017-11-18T00:32:59Z<p>Ahmed Ly: </p>
<hr />
<div>__NOTOC__ <br />
{{Client function}}<br />
This function creates a new DGS memo. This is a multiline edit box in which the user can input text.<br />
<br />
==Syntax== <br />
<syntaxhighlight lang="lua"><br />
element dgsDxCreateMemo ( float x, float y, float width, float height, string text, bool relative, [element parent = nil, int textcolor = 0x000000FF, int scale_x = 1, int scale_y = 1, element imagebg = nil, int colorbg = 0xFFFFFFFF ] )<br />
</syntaxhighlight> <br />
<br />
===Required Arguments=== <br />
[[Image:DGS Memo.png|frame|Example DGS memo.]]<br />
*'''x:''' A float of the 2D x position of the DGS memo on a player's screen. This is affected by the ''relative'' argument.<br />
*'''y:''' A float of the 2D y position of the DGS memo on a player's screen. This is affected by the ''relative'' argument.<br />
*'''width:''' A float of the width of the DGS memo. This is affected by the ''relative'' argument.<br />
*'''height:''' A float of the height of the DGS memo. This is affected by the ''relative'' argument.<br />
*'''text:''' A string of the text that will be displayed by default in the memo.<br />
*'''relative:''' This is whether sizes and positioning are relative. If this is ''true'', then all x,y,width,height floats must be between 0 and 1, representing measures relative to the parent.<br />
<br />
===Optional Arguments=== <br />
{{OptionalArg}} <br />
*'''parent:''' This is the parent that the DGS memo is attached to. If the ''relative'' argument is true, sizes and positioning will be made relative to this parent. If the ''relative'' argument is false, positioning will be the number of offset pixels from the parent's origin. If no parent is passed, the parent will become the screen - causing positioning and sizing according to screen positioning.<br />
*'''textcolor:''' An integer of the color of the text.<br />
*'''scale_x:''' A float of the width of the text scale.<br />
*'''scale_y:''' A float of the height of the text scale.<br />
*'''imagebg:''' A texture element of the back ground image of the memo.<br />
*'''colorbg:''' A texture element of the back ground color of the memo.<br />
<br />
===Element Type===<br />
The Element Type of this element is dgs-dxmemo.<br />
===Returns===<br />
Returns a dgs-dxmemo element of the created memo if it was successfully created, false otherwise.<br />
<br />
==Example== <br />
{{Client functions}}<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs<br />
<br />
addEventHandler("onClientResourceStart", resourceRoot, function()<br />
Window = DGS:dgsDxCreateWindow(0.3664,0.2764,0.3508,0.3477,"DGS Window",true)<br />
DGS:dgsDxCreateMemo(17,79,414,246,"",false,Window)<br />
end)<br />
</syntaxhighlight><br />
<br />
==See Also==<br />
{{DGSFUNCTIONS}}</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=File:DGS_Memo.png&diff=52849File:DGS Memo.png2017-11-18T00:32:20Z<p>Ahmed Ly: </p>
<hr />
<div></div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=Resource:DGS&diff=52848Resource:DGS2017-11-18T00:18:09Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
<br />
[[Image:dx_3.PNG|200px|thumb|right|Example DGS Gridlist.]]<br />
<br />
This is a resource designed to allow you create dx gui on the screen instead of the original gui.<br />
<br />
<br />
'''Full Name''' : Thisdp's DX Graphical User Interface System ( Dx GUI Lib )<br />
<br />
'''Author''' : [[User:thisdp|thisdp]] <br />
<br />
'''State''' : OpenSource (WIP)<br />
<br />
'''GitHub Source''' : https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''How it works?'''<br />
*DGS is just like the original gui system that is based on element system. I use a simple way that can make it easier to understand.<br />
*DGS elements are rendered in "onClientRender". There is two or more tables store DGS elements. When "onClientRender" is called, "for" loop will loop and calculate every DGS element.<br />
<br />
<br />
'''What's different?'''<br />
*This resource is based on dx* functions. It allows us to edit our gui and make it in customlization.<br />
<br />
<br />
<br />
'''Update System'''<br />
*It have an update system that can keep your DGS latest.<br />
*When a newer version has been pushed, it will detected and notice you to update dgs.<br />
*Execute command "'''updatedgs'''" to check the least version and update your DGS.<br />
*You can check the version of DGS by command "dgsver" <br />
<br />
<br />
'''Update logs'''<br />
<br />
*'''2.932 Update:'''<br />
*1.Fixed : When ChatBoxInput/ConsoleBox/MainMenu shows, the cursor of dgs-dxmemo/dgs-dxedit still exists<br />
'''For More Info About Update logs : [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
'''Examples scripts'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. Also File test.lua its have more Examples You can See it<br />
<br />
<br />
'''Auto Completion'''<br />
*1.link:http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*'''Note''':<br />
*2.You must put it in file Notepad++\plugins\APIs.<br />
*3.Not all of DGS Functions are added, but the rest will be added soon.<br />
<br />
<br />
'''Debug'''<br />
*You can enter debug mode by executing the command "'''debugdgs'''"<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|Hurt World GUI Example]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Cyclehitshape (dgs-dxcyclehitshape): A check area that is cycle.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''Notice'''<br />
*Recommend to change the resource name to 'dgs'.<br />
*This is a resource. If you want to use the functions exported by this resource, you should add something in front of the function like "'''exports.dgs:dgsDxCreateLabel(0,0,0.5,0.1,"text",true)'''".<br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsDxCreateLabel(0,0,0.5,0.1,"text",false) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''Thanks for their helps''' :<br />
*Axel: Gives some tips and provide some functions.<br />
*Senpai: Helps write wiki.<br />
*ZoNe: Helps write wiki.<br />
*DiGiTal: Helps write wiki.<br />
-->Especially For:<br />
*Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=Last=<br />
'''Welcome everyone else to made suggestions, tested the script, helped me to finish the wiki, etc'''<br />
[[Category:Resource]]<br />
<br />
[[ZH-CN:Slothbot]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=Resource:DGS&diff=52835Resource:DGS2017-11-16T08:20:01Z<p>Ahmed Ly: --2.931 Update (2017-11-15): http://angel.mtaip.cn:233/dgsUpdate/</p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
<br />
[[Image:dx_3.PNG|200px|thumb|right|Example DGS Gridlist.]]<br />
<br />
This is a resource designed to allow you create dx gui on the screen instead of the original gui.<br />
<br />
<br />
'''Full Name''' : Thisdp's DX Graphical User Interface System ( Dx GUI Lib )<br />
<br />
'''Author''' : [[User:thisdp|thisdp]] <br />
<br />
'''State''' : OpenSource (WIP)<br />
<br />
'''GitHub Source''' : https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''How it works?'''<br />
*DGS is just like the original gui system that is based on element system. I use a simple way that can make it easier to understand.<br />
*DGS elements are rendered in "onClientRender". There is two or more tables store DGS elements. When "onClientRender" is called, "for" loop will loop and calculate every DGS element.<br />
<br />
<br />
'''What's different?'''<br />
*This resource is based on dx* functions. It allows us to edit our gui and make it in customlization.<br />
<br />
<br />
<br />
'''Update System'''<br />
*It have an update system that can keep your DGS latest.<br />
*When a newer version has been pushed, it will detected and notice you to update dgs.<br />
*Execute command "'''updatedgs'''" to check the least version and update your DGS.<br />
*You can check the version of DGS by command "dgsver" <br />
<br />
<br />
'''Update logs'''<br />
<br />
*'''2.931 Update:'''<br />
*1.Fixed : When ChatBoxInput/ConsoleBox/MainMenu shows, the cursor of dgs-dxmemo/dgs-dxedit still exists<br />
'''For More Info About Update logs : [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
'''Examples scripts'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. Also File test.lua its have more Examples You can See it<br />
<br />
<br />
'''Auto Completion'''<br />
*1.link:http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*'''Note''':<br />
*2.You must put it in file Notepad++\plugins\APIs.<br />
*3.Not all of DGS Functions are added, but the rest will be added soon.<br />
<br />
<br />
'''Debug'''<br />
*You can enter debug mode by executing the command "'''debugdgs'''"<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|Hurt World GUI Example]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Cyclehitshape (dgs-dxcyclehitshape): A check area that is cycle.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''Notice'''<br />
*Recommend to change the resource name to 'dgs'.<br />
*This is a resource. If you want to use the functions exported by this resource, you should add something in front of the function like "'''exports.dgs:dgsDxCreateLabel(0,0,0.5,0.1,"text",true)'''".<br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsDxCreateLabel(0,0,0.5,0.1,"text",false) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''Thanks for their helps''' :<br />
*Axel: Gives some tips and provide some functions.<br />
*Senpai: Helps write wiki.<br />
*ZoNe: Helps write wiki.<br />
*DiGiTal: Helps write wiki.<br />
-->Especially For:<br />
*Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=Last=<br />
'''Welcome everyone else to made suggestions, tested the script, helped me to finish the wiki, etc'''<br />
[[Category:Resource]]<br />
<br />
[[ZH-CN:Slothbot]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=Resource:DGS&diff=52834Resource:DGS2017-11-16T08:19:17Z<p>Ahmed Ly: --2.931 Update (2017-11-15): http://angel.mtaip.cn:233/dgsUpdate/</p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
<br />
[[Image:dx_3.PNG|200px|thumb|right|Example DGS Gridlist.]]<br />
<br />
This is a resource designed to allow you create dx gui on the screen instead of the original gui.<br />
<br />
<br />
'''Full Name''' : Thisdp's DX Graphical User Interface System ( Dx GUI Lib )<br />
<br />
'''Author''' : [[User:thisdp|thisdp]] <br />
<br />
'''State''' : OpenSource (WIP)<br />
<br />
'''GitHub Source''' : https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''How it works?'''<br />
*DGS is just like the original gui system that is based on element system. I use a simple way that can make it easier to understand.<br />
*DGS elements are rendered in "onClientRender". There is two or more tables store DGS elements. When "onClientRender" is called, "for" loop will loop and calculate every DGS element.<br />
<br />
<br />
'''What's different?'''<br />
*This resource is based on dx* functions. It allows us to edit our gui and make it in customlization.<br />
<br />
<br />
<br />
'''Update System'''<br />
*It have an update system that can keep your DGS latest.<br />
*When a newer version has been pushed, it will detected and notice you to update dgs.<br />
*Execute command "'''updatedgs'''" to check the least version and update your DGS.<br />
*You can check the version of DGS by command "dgsver" <br />
<br />
<br />
'''Update logs'''<br />
<br />
*'''2.93 Update:'''<br />
*1.Fixed : When ChatBoxInput/ConsoleBox/MainMenu shows, the cursor of dgs-dxmemo/dgs-dxedit still exists<br />
'''For More Info About Update logs : [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
'''Examples scripts'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. Also File test.lua its have more Examples You can See it<br />
<br />
<br />
'''Auto Completion'''<br />
*1.link:http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*'''Note''':<br />
*2.You must put it in file Notepad++\plugins\APIs.<br />
*3.Not all of DGS Functions are added, but the rest will be added soon.<br />
<br />
<br />
'''Debug'''<br />
*You can enter debug mode by executing the command "'''debugdgs'''"<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|Hurt World GUI Example]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Cyclehitshape (dgs-dxcyclehitshape): A check area that is cycle.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''Notice'''<br />
*Recommend to change the resource name to 'dgs'.<br />
*This is a resource. If you want to use the functions exported by this resource, you should add something in front of the function like "'''exports.dgs:dgsDxCreateLabel(0,0,0.5,0.1,"text",true)'''".<br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsDxCreateLabel(0,0,0.5,0.1,"text",false) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''Thanks for their helps''' :<br />
*Axel: Gives some tips and provide some functions.<br />
*Senpai: Helps write wiki.<br />
*ZoNe: Helps write wiki.<br />
*DiGiTal: Helps write wiki.<br />
-->Especially For:<br />
*Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=Last=<br />
'''Welcome everyone else to made suggestions, tested the script, helped me to finish the wiki, etc'''<br />
[[Category:Resource]]<br />
<br />
[[ZH-CN:Slothbot]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=Resource:DGS&diff=52830Resource:DGS2017-11-12T04:49:50Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
<br />
[[Image:dx_3.PNG|200px|thumb|right|Example DGS Gridlist.]]<br />
<br />
This is a resource designed to allow you create dx gui on the screen instead of the original gui.<br />
<br />
<br />
'''Full Name''' : Thisdp's DX Graphical User Interface System ( Dx GUI Lib )<br />
<br />
'''Author''' : [[User:thisdp|thisdp]] <br />
<br />
'''State''' : OpenSource (WIP)<br />
<br />
'''GitHub Source''' : https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''How it works?'''<br />
*DGS is just like the original gui system that is based on element system. I use a simple way that can make it easier to understand.<br />
*DGS elements are rendered in "onClientRender". There is two or more tables store DGS elements. When "onClientRender" is called, "for" loop will loop and calculate every DGS element.<br />
<br />
<br />
'''What's different?'''<br />
*This resource is based on dx* functions. It allows us to edit our gui and make it in customlization.<br />
<br />
<br />
<br />
'''Update System'''<br />
*It have an update system that can keep your DGS latest.<br />
*When a newer version has been pushed, it will detected and notice you to update dgs.<br />
*Execute command "'''updatedgs'''" to check the least version and update your DGS.<br />
*You can check the version of DGS by command "dgsver" <br />
<br />
<br />
'''Update logs'''<br />
<br />
*'''2.93 Update:'''<br />
*1.Added : float = dgsDxComboBoxGetBoxHeight(combobox,relative)<br />
*2.Added : bool = dgsDxComboBoxSetBoxHeight(combobox,height,relative)<br />
*3.Added : scrollbar = dgsDxComboBoxGetScrollBar(combobox)<br />
'''For More Info About Update logs : [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
'''Examples scripts'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. Also File test.lua its have more Examples You can See it<br />
<br />
<br />
'''Auto Completion'''<br />
*1.link:http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*'''Note''':<br />
*2.You must put it in file Notepad++\plugins\APIs.<br />
*3.Not all of DGS Functions are added, but the rest will be added soon.<br />
<br />
<br />
'''Debug'''<br />
*You can enter debug mode by executing the command "'''debugdgs'''"<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Cyclehitshape (dgs-dxcyclehitshape): A check area that is cycle.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''Notice'''<br />
*Recommend to change the resource name to 'dgs'.<br />
*This is a resource. If you want to use the functions exported by this resource, you should add something in front of the function like "'''exports.dgs:dgsDxCreateLabel(0,0,0.5,0.1,"text",true)'''".<br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsDxCreateLabel(0,0,0.5,0.1,"text",false) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''Thanks for their helps''' :<br />
*Axel: Gives some tips and provide some functions.<br />
*Senpai: Helps write wiki.<br />
*ZoNe: Helps write wiki.<br />
*DiGiTal: Helps write wiki.<br />
-->Especially For:<br />
*Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=Last=<br />
'''Welcome everyone else to made suggestions, tested the script, helped me to finish the wiki, etc'''<br />
[[Category:Resource]]<br />
<br />
[[ZH-CN:Slothbot]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=GuiBringToFront&diff=52806GuiBringToFront2017-11-11T01:01:12Z<p>Ahmed Ly: </p>
<hr />
<div>{{Client function}}<br />
__NOTOC__<br />
This function brings a GUI element on top of others.<br />
<br />
{{Note|If property "AlwaysOnTop" sets to "True", this function will return false .}}<br />
<br />
<br />
==Syntax== <br />
<syntaxhighlight lang="lua"><br />
bool guiBringToFront ( element guiElement )<br />
</syntaxhighlight> <br />
<br />
===Required Arguments=== <br />
*'''guiElement:''' the GUI element that you want to move to the front.<br />
<br />
===Returns===<br />
Returns ''true'' if the function was successful, ''false'' otherwise.<br />
<br />
==Example== <br />
This example creates a gui window and brings it on top.<br />
<syntaxhighlight lang="lua"><br />
local window = guiCreateWindow ( 0.4, 0.4, 0.3, 0.3, "My dummy window", true )<br />
guiBringToFront ( window )<br />
</syntaxhighlight><br />
<br />
==See Also==<br />
{{GUI_functions}}</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=GuiBringToFront&diff=52805GuiBringToFront2017-11-11T01:00:52Z<p>Ahmed Ly: </p>
<hr />
<div>{{Client function}}<br />
__NOTOC__<br />
This function brings a GUI element on top of others.<br />
'''If property "AlwaysOnTop" sets to "True", this function will return false.'''<br />
{{Note|If property "AlwaysOnTop" sets to "True", this function will return false .}}<br />
<br />
<br />
==Syntax== <br />
<syntaxhighlight lang="lua"><br />
bool guiBringToFront ( element guiElement )<br />
</syntaxhighlight> <br />
<br />
===Required Arguments=== <br />
*'''guiElement:''' the GUI element that you want to move to the front.<br />
<br />
===Returns===<br />
Returns ''true'' if the function was successful, ''false'' otherwise.<br />
<br />
==Example== <br />
This example creates a gui window and brings it on top.<br />
<syntaxhighlight lang="lua"><br />
local window = guiCreateWindow ( 0.4, 0.4, 0.3, 0.3, "My dummy window", true )<br />
guiBringToFront ( window )<br />
</syntaxhighlight><br />
<br />
==See Also==<br />
{{GUI_functions}}</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=DgsGridListSetItemData&diff=52804DgsGridListSetItemData2017-11-11T00:58:39Z<p>Ahmed Ly: </p>
<hr />
<div>{{Client function}}<br />
<br />
This function sets a Item Data associated to a grid list item.<br />
{{Note|This function can work before you set the item's text using [[dgsDxGridListSetItemData]] Different from [[guiGridListSetItemData]] .}}<br />
<br />
==Syntax== <br />
<syntaxhighlight lang="lua"><br />
bool dgsDxGridListSetItemData ( element gridList, int rowIndex, int columnIndex, var data )<br />
</syntaxhighlight> <br />
<br />
===Required Arguments=== <br />
*'''gridList:''' the grid list containing the item you're interested in.<br />
*'''rowIndex:''' the row index of the item.<br />
*'''columnIndex:''' the column index of the item.<br />
*'''data:''' the data you want to set.<br />
<br />
===Returns===<br />
Returns '''true''' if set successfully, ''false'' if one of the arguments was invalid.<br />
<br />
==Example==<br />
This example displays a random item data from the gridlist.<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs<br />
function clientsideResourceStart ()<br />
local numberList = DGS:dgsDxCreateGridList ( 0.80, 0.10, 0.15, 0.60, true )<br />
local column = DGS:dgsDxGridListAddColumn ( numberList, "Column Title", 0.85 )<br />
if ( column ) then<br />
local row = DGS:dgsDxGridListAddRow ( numberList )<br />
local myItem = DGS:dgsDxGridListSetItemText ( numberList, row, column, tostring( math.random(0, 10) ^ 100 ), false, false )<br />
DGS:dgsDxGridListSetItemData ( numberList, row, column, "Test" )<br />
local myItemData = DGS:dgsDxGridListGetItemData ( numberList, row, column )<br />
outputChatBox ( "My gridlist item data: " .. myItemData )<br />
end<br />
end<br />
addEventHandler ( "onClientResourceStart", resourceRoot, clientsideResourceStart )<br />
</syntaxhighlight><br />
<br />
==See Also==<br />
{{DGSFUNCTIONS}}</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=DgsGridListSetItemData&diff=52803DgsGridListSetItemData2017-11-11T00:58:09Z<p>Ahmed Ly: </p>
<hr />
<div>{{Client function}}<br />
<br />
This function sets a Item Data associated to a grid list item.<br />
{{Note|This function can work before you set the item's text using [[dgsDxGridListSetItemData]] ! Different from [[guiGridListSetItemData]] .}}<br />
<br />
==Syntax== <br />
<syntaxhighlight lang="lua"><br />
bool dgsDxGridListSetItemData ( element gridList, int rowIndex, int columnIndex, var data )<br />
</syntaxhighlight> <br />
<br />
===Required Arguments=== <br />
*'''gridList:''' the grid list containing the item you're interested in.<br />
*'''rowIndex:''' the row index of the item.<br />
*'''columnIndex:''' the column index of the item.<br />
*'''data:''' the data you want to set.<br />
<br />
===Returns===<br />
Returns '''true''' if set successfully, ''false'' if one of the arguments was invalid.<br />
<br />
==Example==<br />
This example displays a random item data from the gridlist.<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs<br />
function clientsideResourceStart ()<br />
local numberList = DGS:dgsDxCreateGridList ( 0.80, 0.10, 0.15, 0.60, true )<br />
local column = DGS:dgsDxGridListAddColumn ( numberList, "Column Title", 0.85 )<br />
if ( column ) then<br />
local row = DGS:dgsDxGridListAddRow ( numberList )<br />
local myItem = DGS:dgsDxGridListSetItemText ( numberList, row, column, tostring( math.random(0, 10) ^ 100 ), false, false )<br />
DGS:dgsDxGridListSetItemData ( numberList, row, column, "Test" )<br />
local myItemData = DGS:dgsDxGridListGetItemData ( numberList, row, column )<br />
outputChatBox ( "My gridlist item data: " .. myItemData )<br />
end<br />
end<br />
addEventHandler ( "onClientResourceStart", resourceRoot, clientsideResourceStart )<br />
</syntaxhighlight><br />
<br />
==See Also==<br />
{{DGSFUNCTIONS}}</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=DgsGridListSetItemData&diff=52802DgsGridListSetItemData2017-11-11T00:57:55Z<p>Ahmed Ly: </p>
<hr />
<div>{{Client function}}<br />
<br />
This function sets a Item Data associated to a grid list item.<br />
{{Note|This function can work before you set the item's text using [[DgsDxGridListSetItemData]] ! Different from [[guiGridListSetItemData]] .}}<br />
<br />
==Syntax== <br />
<syntaxhighlight lang="lua"><br />
bool dgsDxGridListSetItemData ( element gridList, int rowIndex, int columnIndex, var data )<br />
</syntaxhighlight> <br />
<br />
===Required Arguments=== <br />
*'''gridList:''' the grid list containing the item you're interested in.<br />
*'''rowIndex:''' the row index of the item.<br />
*'''columnIndex:''' the column index of the item.<br />
*'''data:''' the data you want to set.<br />
<br />
===Returns===<br />
Returns '''true''' if set successfully, ''false'' if one of the arguments was invalid.<br />
<br />
==Example==<br />
This example displays a random item data from the gridlist.<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs<br />
function clientsideResourceStart ()<br />
local numberList = DGS:dgsDxCreateGridList ( 0.80, 0.10, 0.15, 0.60, true )<br />
local column = DGS:dgsDxGridListAddColumn ( numberList, "Column Title", 0.85 )<br />
if ( column ) then<br />
local row = DGS:dgsDxGridListAddRow ( numberList )<br />
local myItem = DGS:dgsDxGridListSetItemText ( numberList, row, column, tostring( math.random(0, 10) ^ 100 ), false, false )<br />
DGS:dgsDxGridListSetItemData ( numberList, row, column, "Test" )<br />
local myItemData = DGS:dgsDxGridListGetItemData ( numberList, row, column )<br />
outputChatBox ( "My gridlist item data: " .. myItemData )<br />
end<br />
end<br />
addEventHandler ( "onClientResourceStart", resourceRoot, clientsideResourceStart )<br />
</syntaxhighlight><br />
<br />
==See Also==<br />
{{DGSFUNCTIONS}}</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=DgsGridListSetItemColor&diff=52790DgsGridListSetItemColor2017-11-07T17:25:11Z<p>Ahmed Ly: Created page with "{{Client function}} __NOTOC__ This function changes the color of a gridlist item. ==Syntax== <syntaxhighlight lang="lua"> bool DgsDxGridListSetItemColor ( element gridList,..."</p>
<hr />
<div>{{Client function}}<br />
__NOTOC__<br />
This function changes the color of a gridlist item.<br />
<br />
==Syntax== <br />
<syntaxhighlight lang="lua"><br />
bool DgsDxGridListSetItemColor ( element gridList, int rowIndex, int columnIndex,int color)<br />
</syntaxhighlight> <br />
<br />
===Required Arguments=== <br />
*'''gridList:''' The dgs grid list element<br />
*'''rowIndex:''' Row ID<br />
*'''columnIndex:''' Column ID<br />
*'''color:''' The color of the text<br />
<br />
===Returns===<br />
Returns ''true'' if the item color was set successfully, ''false'' otherwise.<br />
<br />
==Example== <br />
<section name="Client" class="client" show="true"><br />
<syntaxhighlight lang="lua"><br />
--TODO<br />
</syntaxhighlight><br />
</section><br />
<br />
==See Also==<br />
{{DGSFUNCTIONS}}</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=Resource:DGS&diff=52789Resource:DGS2017-11-07T17:18:15Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
<br />
[[Image:dx_3.PNG|200px|thumb|right|Example DGS Gridlist.]]<br />
<br />
This is a resource designed to allow you create dx gui on the screen instead of the original gui.<br />
<br />
<br />
'''Full Name''' : Thisdp's DX Graphical User Interface System ( Dx GUI Lib )<br />
<br />
'''Author''' : [[User:thisdp|thisdp]] <br />
<br />
'''State''' : OpenSource (WIP)<br />
<br />
'''GitHub Source''' : https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''How it works?'''<br />
*DGS is just like the original gui system that is based on element system. I use a simple way that can make it easier to understand.<br />
*DGS elements are rendered in "onClientRender". There is two or more tables store DGS elements. When "onClientRender" is called, "for" loop will loop and calculate every DGS element.<br />
<br />
<br />
'''What's different?'''<br />
*This resource is based on dx* functions. It allows us to edit our gui and make it in customlization.<br />
<br />
<br />
<br />
'''Update System'''<br />
*It have an update system that can keep your DGS latest.<br />
*When a newer version has been pushed, it will detected and notice you to update dgs.<br />
*Execute command "'''updatedgs'''" to check the least version and update your DGS.<br />
*You can check the version of DGS by command "dgsver" <br />
<br />
<br />
'''Update logs'''<br />
<br />
*'''2.91 Update:'''<br />
*1.Added : scroll bars for dgs-dxmemo<br />
*2.Fixed : backspace and delete doesn't works well in dgs-dxmemo<br />
*3.Fixed : some problems in the function handleMemoText<br />
'''For More Info About Update logs : [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
<br />
'''Examples scripts'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. Also File test.lua its have more Examples You can See it<br />
<br />
<br />
'''Auto Completion'''<br />
*1.link:http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*'''Note''':<br />
*2.You must put it in file Notepad++\plugins\APIs.<br />
*3.Not all of DGS Functions are added, but the rest will be added soon.<br />
<br />
<br />
'''Debug'''<br />
*You can enter debug mode by executing the command "'''debugdgs'''"<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Cyclehitshape (dgs-dxcyclehitshape): A check area that is cycle.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''Notice'''<br />
*Recommend to change the resource name to 'dgs'.<br />
*This is a resource. If you want to use the functions exported by this resource, you should add something in front of the function like "'''exports.dgs:dgsDxCreateLabel(0,0,0.5,0.1,"text",true)'''".<br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsDxCreateLabel(0,0,0.5,0.1,"text",false) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''Thanks for their helps''' :<br />
*Axel: Gives some tips and provide some functions.<br />
*Senpai: Helps write wiki.<br />
*ZoNe: Helps write wiki.<br />
*DiGiTal: Helps write wiki.<br />
-->Especially For:<br />
*Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=Last=<br />
'''Welcome everyone else to made suggestions, tested the script, helped me to finish the wiki, etc'''<br />
[[Category:Resource]]<br />
<br />
[[ZH-CN:Slothbot]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=Resource:DGS&diff=52788Resource:DGS2017-11-07T17:16:58Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
<br />
This is a resource designed to allow you create dx gui on the screen instead of the original gui.<br />
<br />
[[Image:dx_3.PNG|200px|thumb|right|Example DGS Gridlist.]]<br />
<br />
'''Full Name''' : Thisdp's DX Graphical User Interface System ( Dx GUI Lib )<br />
<br />
'''Author''' : [[User:thisdp|thisdp]] <br />
<br />
'''State''' : OpenSource (WIP)<br />
<br />
'''GitHub Source''' : https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''How it works?'''<br />
*DGS is just like the original gui system that is based on element system. I use a simple way that can make it easier to understand.<br />
*DGS elements are rendered in "onClientRender". There is two or more tables store DGS elements. When "onClientRender" is called, "for" loop will loop and calculate every DGS element.<br />
<br />
<br />
'''What's different?'''<br />
*This resource is based on dx* functions. It allows us to edit our gui and make it in customlization.<br />
<br />
<br />
<br />
'''Update System'''<br />
*It have an update system that can keep your DGS latest.<br />
*When a newer version has been pushed, it will detected and notice you to update dgs.<br />
*Execute command "'''updatedgs'''" to check the least version and update your DGS.<br />
*You can check the version of DGS by command "dgsver" <br />
<br />
<br />
'''Update logs'''<br />
<br />
*'''2.91 Update:'''<br />
*1.Added : scroll bars for dgs-dxmemo<br />
*2.Fixed : backspace and delete doesn't works well in dgs-dxmemo<br />
*3.Fixed : some problems in the function handleMemoText<br />
'''For More Info About Update logs : [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
<br />
'''Examples scripts'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. Also File test.lua its have more Examples You can See it<br />
<br />
<br />
'''Auto Completion'''<br />
*1.link:http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*'''Note''':<br />
*2.You must put it in file Notepad++\plugins\APIs.<br />
*3.Not all of DGS Functions are added, but the rest will be added soon.<br />
<br />
<br />
'''Debug'''<br />
*You can enter debug mode by executing the command "'''debugdgs'''"<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Cyclehitshape (dgs-dxcyclehitshape): A check area that is cycle.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''Notice'''<br />
*Recommend to change the resource name to 'dgs'.<br />
*This is a resource. If you want to use the functions exported by this resource, you should add something in front of the function like "'''exports.dgs:dgsDxCreateLabel(0,0,0.5,0.1,"text",true)'''".<br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsDxCreateLabel(0,0,0.5,0.1,"text",false) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''Thanks for their helps''' :<br />
*Axel: Gives some tips and provide some functions.<br />
*Senpai: Helps write wiki.<br />
*ZoNe: Helps write wiki.<br />
*DiGiTal: Helps write wiki.<br />
-->Especially For:<br />
*Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=Last=<br />
'''Welcome everyone else to made suggestions, tested the script, helped me to finish the wiki, etc'''<br />
[[Category:Resource]]<br />
<br />
[[ZH-CN:Slothbot]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=Resource:DGS&diff=52787Resource:DGS2017-11-07T17:16:43Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
<br />
This is a resource designed to allow you create dx gui on the screen instead of the original gui.<br />
<br />
[[Image:dx_3.PNG|200px|thumb|right|Example DGS Gridlist.]]<br />
<br />
'''Full Name''' : Thisdp's DX Graphical User Interface System ( Dx GUI Lib )<br />
<br />
'''Author''' : [[User:thisdp|thisdp]] <br />
<br />
'''State''' : OpenSource (WIP)<br />
<br />
<br />
<br />
'''GitHub Source''' : https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
<br />
<br />
'''How it works?'''<br />
*DGS is just like the original gui system that is based on element system. I use a simple way that can make it easier to understand.<br />
*DGS elements are rendered in "onClientRender". There is two or more tables store DGS elements. When "onClientRender" is called, "for" loop will loop and calculate every DGS element.<br />
<br />
<br />
'''What's different?'''<br />
*This resource is based on dx* functions. It allows us to edit our gui and make it in customlization.<br />
<br />
<br />
<br />
'''Update System'''<br />
*It have an update system that can keep your DGS latest.<br />
*When a newer version has been pushed, it will detected and notice you to update dgs.<br />
*Execute command "'''updatedgs'''" to check the least version and update your DGS.<br />
*You can check the version of DGS by command "dgsver" <br />
<br />
<br />
'''Update logs'''<br />
<br />
*'''2.91 Update:'''<br />
*1.Added : scroll bars for dgs-dxmemo<br />
*2.Fixed : backspace and delete doesn't works well in dgs-dxmemo<br />
*3.Fixed : some problems in the function handleMemoText<br />
'''For More Info About Update logs : [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
<br />
'''Examples scripts'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. Also File test.lua its have more Examples You can See it<br />
<br />
<br />
'''Auto Completion'''<br />
*1.link:http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*'''Note''':<br />
*2.You must put it in file Notepad++\plugins\APIs.<br />
*3.Not all of DGS Functions are added, but the rest will be added soon.<br />
<br />
<br />
'''Debug'''<br />
*You can enter debug mode by executing the command "'''debugdgs'''"<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Cyclehitshape (dgs-dxcyclehitshape): A check area that is cycle.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''Notice'''<br />
*Recommend to change the resource name to 'dgs'.<br />
*This is a resource. If you want to use the functions exported by this resource, you should add something in front of the function like "'''exports.dgs:dgsDxCreateLabel(0,0,0.5,0.1,"text",true)'''".<br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsDxCreateLabel(0,0,0.5,0.1,"text",false) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''Thanks for their helps''' :<br />
*Axel: Gives some tips and provide some functions.<br />
*Senpai: Helps write wiki.<br />
*ZoNe: Helps write wiki.<br />
*DiGiTal: Helps write wiki.<br />
-->Especially For:<br />
*Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=Last=<br />
'''Welcome everyone else to made suggestions, tested the script, helped me to finish the wiki, etc'''<br />
[[Category:Resource]]<br />
<br />
[[ZH-CN:Slothbot]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=Resource:DGS&diff=52786Resource:DGS2017-11-07T17:13:42Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
<br />
This is a resource designed to allow you create dx gui on the screen instead of the original gui.<br />
<br />
'''Full Name''' : Thisdp's DX Graphical User Interface System ( Dx GUI Lib )<br />
<br />
'''Author''' : [[User:thisdp|thisdp]] <br />
<br />
'''State''' : OpenSource (WIP)<br />
<br />
'''GitHub Source''' : https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
'''How it works?'''*DGS is just like the original gui system that is based on element system. I use a simple way that can make it easier to understand.<br />
*DGS elements are rendered in "onClientRender". There is two or more tables store DGS elements. When "onClientRender" is called, "for" loop will loop and calculate every DGS element.<br />
<br />
<br />
'''What's different?'''<br />
*This resource is based on dx* functions. It allows us to edit our gui and make it in customlization.<br />
<br />
<br />
<br />
'''Update System'''<br />
*It have an update system that can keep your DGS latest.<br />
*When a newer version has been pushed, it will detected and notice you to update dgs.<br />
*Execute command "'''updatedgs'''" to check the least version and update your DGS.<br />
*You can check the version of DGS by command "dgsver" <br />
<br />
<br />
'''Update logs'''<br />
<br />
*'''2.91 Update:'''<br />
*1.Added : scroll bars for dgs-dxmemo<br />
*2.Fixed : backspace and delete doesn't works well in dgs-dxmemo<br />
*3.Fixed : some problems in the function handleMemoText<br />
'''For More Info About Update logs : [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
<br />
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] <br />
<br />
<br />
'''Examples scripts'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. Also File test.lua its have more Examples You can See it<br />
<br />
<br />
'''Auto Completion'''<br />
*1.link:http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*'''Note''':<br />
*2.You must put it in file Notepad++\plugins\APIs.<br />
*3.Not all of DGS Functions are added, but the rest will be added soon.<br />
<br />
<br />
'''Debug'''<br />
*You can enter debug mode by executing the command "'''debugdgs'''"<br />
<br />
<br />
'''DGS Type'''<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Cyclehitshape (dgs-dxcyclehitshape): A check area that is cycle.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
<br />
'''Notice'''<br />
*Recommend to change the resource name to 'dgs'.<br />
*This is a resource. If you want to use the functions exported by this resource, you should add something in front of the function like "'''exports.dgs:dgsDxCreateLabel(0,0,0.5,0.1,"text",true)'''".<br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsDxCreateLabel(0,0,0.5,0.1,"text",false) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''Thanks for their helps''' :<br />
*Axel: Gives some tips and provide some functions.<br />
*Senpai: Helps write wiki.<br />
*ZoNe: Helps write wiki.<br />
*DiGiTal: Helps write wiki.<br />
-->Especially For:<br />
*Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=Last=<br />
'''Welcome everyone else to made suggestions, tested the script, helped me to finish the wiki, etc'''<br />
[[Category:Resource]]<br />
<br />
[[ZH-CN:Slothbot]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=Resource:DGS&diff=52774Resource:DGS2017-11-05T05:31:52Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
<br />
This is a resource designed to allow you create dx gui on the screen instead of the original gui.<br />
<br />
'''Full Name''' : Thisdp's DX Graphical User Interface System ( Dx GUI Lib )<br />
<br />
'''Author''' : [[User:thisdp|thisdp]] <br />
<br />
'''State''' : OpenSource (WIP)<br />
<br />
'''GitHub Source''' : https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|]] <br />
'''How it works?'''<br />
*DGS is just like the original gui system that is based on element system. I use a simple way that can make it easier to understand.<br />
*DGS elements are rendered in "onClientRender". There is two or more tables store DGS elements. When "onClientRender" is called, "for" loop will loop and calculate every DGS element.<br />
<br />
<br />
'''What's different?'''<br />
*This resource is based on dx* functions. It allows us to edit our gui and make it in customlization.<br />
<br />
<br />
<br />
'''Update System'''<br />
*It have an update system that can keep your DGS latest.<br />
*When a newer version has been pushed, it will detected and notice you to update dgs.<br />
*Execute command "'''updatedgs'''" to check the least version and update your DGS.<br />
*You can check the version of DGS by command "dgsver" <br />
<br />
<br />
'''Update logs'''<br />
*'''2.91 Update:'''<br />
*1.Added : scroll bars for dgs-dxmemo<br />
*2.Fixed : backspace and delete doesn't works well in dgs-dxmemo<br />
*3.Fixed : some problems in the function handleMemoText<br />
'''For More Info About Update logs : [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
'''Examples scripts'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. Also File test.lua its have more Examples You can See it<br />
<br />
<br />
'''Auto Completion'''<br />
*1.link:http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*'''Note''':<br />
*2.You must put it in file Notepad++\plugins\APIs.<br />
*3.Not all of DGS Functions are added, but the rest will be added soon.<br />
<br />
<br />
'''Debug'''<br />
*You can enter debug mode by executing the command "'''debugdgs'''"<br />
<br />
<br />
'''DGS Type'''<br />
<br />
<br />
[[Image:Dx Dgs.jpg|400px|thumb|right|]] <br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Cyclehitshape (dgs-dxcyclehitshape): A check area that is cycle.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
'''Notice'''<br />
*Recommend to change the resource name to 'dgs'.<br />
*This is a resource. If you want to use the functions exported by this resource, you should add something in front of the function like 'exports.dgs:dgsDxCreateLabel(0,0,0.5,0.1,"text",true)'.<br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsDxCreateLabel(0,0,0.5,0.1,"text",false) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''Thanks for their helps''' :<br />
*Axel: Gives some tips and provide some functions.<br />
*Senpai: Helps write wiki.<br />
*ZoNe: Helps write wiki.<br />
*DiGiTal: Helps write wiki.<br />
-->Especially For:<br />
*Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=Last=<br />
'''Welcome everyone else to made suggestions, tested the script, helped me to finish the wiki, etc'''<br />
[[Category:Resource]]<br />
<br />
[[ZH-CN:Slothbot]]</div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=File:Dx_Dgs.jpg&diff=52773File:Dx Dgs.jpg2017-11-05T05:26:57Z<p>Ahmed Ly: </p>
<hr />
<div></div>Ahmed Lyhttps://wiki.multitheftauto.com/index.php?title=Resource:DGS&diff=52772Resource:DGS2017-11-05T05:18:21Z<p>Ahmed Ly: </p>
<hr />
<div><pageclass class="resource" subcaption="Resource"></pageclass><br />
<br />
This is a resource designed to allow you create dx gui on the screen instead of the original gui.<br />
<br />
'''Full Name''' : Thisdp's DX Graphical User Interface System ( Dx GUI Lib )<br />
<br />
'''Author''' : [[User:thisdp|thisdp]] <br />
<br />
'''State''' : OpenSource (WIP)<br />
<br />
'''GitHub Source''' : https://github.com/thisdp/dgs/tree/master<br />
<br />
<br />
<br />
=Features=<br />
<br />
[[Image:DGSS.png|400px|thumb|right|DGS]] <br />
'''How it works?'''<br />
*DGS is just like the original gui system that is based on element system. I use a simple way that can make it easier to understand.<br />
*DGS elements are rendered in "onClientRender". There is two or more tables store DGS elements. When "onClientRender" is called, "for" loop will loop and calculate every DGS element.<br />
<br />
<br />
'''What's different?'''<br />
*This resource is based on dx* functions. It allows us to edit our gui and make it in customlization.<br />
<br />
<br />
'''Update System'''<br />
*It have an update system that can keep your DGS latest.<br />
*When a newer version has been pushed, it will detected and notice you to update dgs.<br />
*Execute command "'''updatedgs'''" to check the least version and update your DGS.<br />
*You can check the version of DGS by command "dgsver" <br />
<br />
<br />
'''Update logs'''<br />
*'''2.91 Update:'''<br />
*1.Added : scroll bars for dgs-dxmemo<br />
*2.Fixed : backspace and delete doesn't works well in dgs-dxmemo<br />
*3.Fixed : some problems in the function handleMemoText<br />
'''For More Info About Update logs : [http://angel.mtaip.cn:233/dgsUpdate/ Update Log]'''<br />
<br />
<br />
'''Examples scripts'''<br />
*1.https://community.multitheftauto.com/index.php?p=resources&s=details&id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)<br />
*2. Also File test.lua its have more Examples You can See it<br />
<br />
<br />
'''Auto Completion'''<br />
*1.link:http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip By [[User:Ahmed Ly|Ahmed Ly]] <br />
*'''Note''':<br />
*2.You must put it in file Notepad++\plugins\APIs.<br />
*3.Not all of DGS Functions are added, but the rest will be added soon.<br />
<br />
<br />
'''Debug'''<br />
*You can enter debug mode by executing the command "'''debugdgs'''"<br />
<br />
<br />
'''DGS Type'''<br />
<br />
* Button (dgs-dxbutton): A button.<br />
* Command (dgs-dxcmd): A command just like windows.<br />
* Cyclehitshape (dgs-dxcyclehitshape): A check area that is cycle.<br />
* Edit (dgs-dxedit): An edit.<br />
* Memo (dgs-dxmemo): A memo.<br />
* Gridlist (dgs-dxgridlist): A grid list.<br />
* Image (dgs-dximage): A dynamic image.<br />
* Label (dgs-dxlabel): A text label.<br />
* ScrollBar (dgs-dxscrollbar): A scroll bar.<br />
* ScrollPane (dgs-dxscrollpane): A scroll pane.<br />
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. <br />
* Window (dgs-dxwindow): A window.<br />
* Progress Bar (dgs-dxprogressbar): A Progress Bar.<br />
* Radio Button (dgs-dxradiobutton): A Radio Button.<br />
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.<br />
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).<br />
<br />
'''Notice'''<br />
*Recommend to change the resource name to 'dgs'.<br />
*This is a resource. If you want to use the functions exported by this resource, you should add something in front of the function like 'exports.dgs:dgsDxCreateLabel(0,0,0.5,0.1,"text",true)'.<br />
*Here is a feasible way to shorten the name of an exported function:<br />
<syntaxhighlight lang="lua"><br />
DGS = exports.dgs --shorten the export function prefix<br />
label = DGS:dgsDxCreateLabel(0,0,0.5,0.1,"text",false) --create a label<br />
</syntaxhighlight><br />
<br />
<br />
'''Thanks for their helps''' :<br />
*Axel: Gives some tips and provide some functions.<br />
*Senpai: Helps write wiki.<br />
*ZoNe: Helps write wiki.<br />
*DiGiTal: Helps write wiki.<br />
-->Especially For:<br />
*Ahmed Ly: Helps write wiki, release auto completion for N++.<br />
<br />
='''DGS Element Properties'''=<br />
{{DGSPROPERTIES}}<br />
<br />
='''Client Functions'''=<br />
{{DGSFUNCTIONS}}<br />
<br />
=Client Events=<br />
{{DGSEVENTS}}<br />
<br />
=Last=<br />
'''Welcome everyone else to made suggestions, tested the script, helped me to finish the wiki, etc'''<br />
[[Category:Resource]]<br />
<br />
[[ZH-CN:Slothbot]]</div>Ahmed Ly