<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Walidza</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Walidza"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Walidza"/>
	<updated>2026-05-01T23:26:41Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:DGS&amp;diff=65829</id>
		<title>Resource:DGS</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:DGS&amp;diff=65829"/>
		<updated>2020-04-11T04:19:23Z</updated>

		<summary type="html">&lt;p&gt;Walidza: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Resource&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
[[Image:DGS_Logo.png|400px|thumb|right|DGS Logo By [[User:Allerek|Allerek]]]]&lt;br /&gt;
This resource is designed to allow you to create directX GUI's as an alternative to the original MTA:SA GUI functions.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding:10px; border-radius:2px;font-size:14px;&amp;quot;&amp;gt;&lt;br /&gt;
'''Full Name''': Thisdp's DirectX Graphical User Interface System (DxGUI Lib)&lt;br /&gt;
&lt;br /&gt;
'''Author''': [[User:thisdp|thisdp]]&lt;br /&gt;
&lt;br /&gt;
'''State''': &amp;lt;span style=&amp;quot;color:#FFFFFF;text-shadow:black 0em 0em 0.3em;&amp;quot;&amp;gt;OpenSource&amp;lt;/span&amp;gt; &amp;amp; &amp;lt;span style=&amp;quot;color:#55FF55;text-shadow:black 0em 0em 0.3em;&amp;quot;&amp;gt;Work in progress&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''GitHub Source''': https://github.com/thisdp/dgs/tree/master&lt;br /&gt;
&lt;br /&gt;
'''Server Discord''': https://discord.gg/QEs8q6W&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Features=&lt;br /&gt;
&lt;br /&gt;
[[Image:DGSNetStatus.png|300px|thumb|right|DGS Network Monitor]]&lt;br /&gt;
&lt;br /&gt;
[[Image:DGSS.png|400px|thumb|right|]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How does it work?'''&lt;br /&gt;
*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.&lt;br /&gt;
*DGS supports OOP syntax, if you don't like POP, then use OOP instead. But you should know that OOP is slower than POP.&lt;br /&gt;
*DGS elements are rendered in the event &amp;quot;onClientRender&amp;quot;. When &amp;quot;onClientRender&amp;quot; is called, every DGS elements will be looped and calculated.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''What's different from cegui?'''&lt;br /&gt;
*This resource is based on dx* functions, so its style will be more flexible than cegui, which means you can define the style by yourself.&lt;br /&gt;
*The latest '''Style System''' enables developer to define their own style such as changing color, loading images and even loading shaders with dgs elements on the server instead of using a lot of [[dgsSetProperty]]/[[dgsSetProperties]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Update System'''&lt;br /&gt;
*It have an update system that can inform you of keeping your DGS latest.&lt;br /&gt;
*When a newer version has been released, it will detecte the version changing periodically and then notice you.&lt;br /&gt;
*Execute command &amp;quot;'''updatedgs'''&amp;quot; to check the least version and update your DGS.&lt;br /&gt;
*Also, you can check the version of DGS by inputting the command &amp;quot;dgsver&amp;quot; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''You Should Know'''&lt;br /&gt;
*This project was started from 2014.&lt;br /&gt;
*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.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Dx_7.PNG|400px|thumb|right|Example DGS Cmd]] &lt;br /&gt;
&lt;br /&gt;
'''Examples scripts'''&lt;br /&gt;
*1.https://community.multitheftauto.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=14757 By ([[User:Ahmed Ly|Ahmed Ly]] ,Mahmod Algeriany)&lt;br /&gt;
*2. Also File test.lua its have more Examples You can See it .&lt;br /&gt;
*3. This Video show you how to play a video by using Dgs https://www.youtube.com/watch?v=ZIq24zS5byI&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Auto Completion'''&lt;br /&gt;
*1. Link: http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip  By [[User:Ahmed Ly|Ahmed Ly]] &lt;br /&gt;
*2. '''Note''': You must put it in file Notepad++\plugins\APIs.&lt;br /&gt;
*3. Not all of DGS Functions are added, but the rest will be added soon.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Debug'''&lt;br /&gt;
* You can enter the debug mode by executing the command &amp;quot;'''debugdgs'''&amp;quot;.&lt;br /&gt;
* &amp;quot;'''debugdgs 2 '''&amp;quot; : to see dgs Element scale with a border&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DGS Type'''&lt;br /&gt;
[[Image:Dx Dgs.jpg|400px|thumb|right|Hurt World GUI Example]]&lt;br /&gt;
* 3D Text(dgs-dx3dtext): A 3D Text.&lt;br /&gt;
* 3D Interface (dgs-dx3dinterface): A 3D Interface.&lt;br /&gt;
* Browser (dgs-browser) : A dgs browser.&lt;br /&gt;
* Button (dgs-dxbutton): A button.&lt;br /&gt;
* Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.&lt;br /&gt;
* Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).&lt;br /&gt;
* Detect Area (dgs-dxdetectarea): A custom detect area.&lt;br /&gt;
* Edit (dgs-dxedit): An edit.&lt;br /&gt;
* Ellipse Detect Area (dgs-dxeda): An oval detect area.&lt;br /&gt;
* Gridlist (dgs-dxgridlist): A grid list.&lt;br /&gt;
* Image (dgs-dximage): A dynamic image.&lt;br /&gt;
* Label (dgs-dxlabel): A text label.&lt;br /&gt;
* Media Browser (dgs-dxmedia) : A media browser that is used to load video/audio/gif.&lt;br /&gt;
* Memo (dgs-dxmemo): A memo.&lt;br /&gt;
* Progress Bar (dgs-dxprogressbar): A Progress Bar.&lt;br /&gt;
* Radio Button (dgs-dxradiobutton): A Radio Button.&lt;br /&gt;
* ScrollBar (dgs-dxscrollbar): A scroll bar.&lt;br /&gt;
* ScrollPane (dgs-dxscrollpane): A scroll pane.&lt;br /&gt;
* Switch Button(dgs-dxswitchbutton): A switch button.&lt;br /&gt;
* Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel. &lt;br /&gt;
* Window (dgs-dxwindow): A window.&lt;br /&gt;
&lt;br /&gt;
'''Notice'''&lt;br /&gt;
*It is recommended to change the resource name to 'dgs'.&lt;br /&gt;
*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&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
label = exports.dgs:dgsCreateLabel(0, 0, 0.5, 0.1, &amp;quot;text&amp;quot;, true)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*Here is a feasible way to shorten the name of an exported function:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs --shorten the export function prefix&lt;br /&gt;
label = DGS:dgsCreateLabel(0,0,0.5,0.1,&amp;quot;text&amp;quot;,true) --create a label&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*From the latest version, it no longer needs '''exports.dgs:''', instead we can do&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())()-- load functions&lt;br /&gt;
label = dgsCreateLabel(0,0,0.5,0.1,&amp;quot;text&amp;quot;,true) --create a label&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
'''Object Oriented Programming'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.dgs:dgsImportOOPClass())()-- load OOP class&lt;br /&gt;
window = DGSClass:createWindow(0,0,0.5,0.1,&amp;quot;test&amp;quot;,true) --create a window with oop&lt;br /&gt;
label = window:createLabel(0,0,1,1,&amp;quot;label&amp;quot;,true) --create a label inside the window&lt;br /&gt;
label.text = &amp;quot;DGS OOP Test&amp;quot; --set text&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Want to talk to us?'''&lt;br /&gt;
*Join Discord Server: https://discord.gg/QEs8q6W&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Special thanks to the following for their help (Respect the contributors)''':&lt;br /&gt;
[[Image:Tab.PNG |200px|thumb|right|Example tab panel and label .]] &lt;br /&gt;
* Axel: Gives some tips and provide some functions.&lt;br /&gt;
* Senpai: Helps with wiki.&lt;br /&gt;
* ZoNe: Helps with wiki.&lt;br /&gt;
* DiGiTal: Helps with wiki.&lt;br /&gt;
* #Dv^: Helps with wiki.&lt;br /&gt;
* maksam07: Suggestions, BUG Fixing and coding.&lt;br /&gt;
* Scorpyo: Debug and Suggestions.&lt;br /&gt;
* Kingleonide: Debug, Suggestions and Code Edit.&lt;br /&gt;
* Bullet(.el3tar): Makes video course of dgs for Arabic language.&lt;br /&gt;
* Allerek: DGS Logo Design, Wiki writing(PL).&lt;br /&gt;
* Deihim007: Helps with wiki, Gives suggestions.&lt;br /&gt;
* OmarSwaitti(HankVoight):Helps with wiki, Gives suggestions. &lt;br /&gt;
Special thanks to:&lt;br /&gt;
* Ahmed Ly: Helps write wiki, release auto completion for N++.&lt;br /&gt;
&lt;br /&gt;
='''DGS Tips'''=&lt;br /&gt;
*[[DGS Events and GUI Events]]&lt;br /&gt;
*[[DGS Functions and GUI Functions]]&lt;br /&gt;
*[[DGS Grid List]]&lt;br /&gt;
*[[DGS OOP Class]]&lt;br /&gt;
*[[DGS Style System]]&lt;br /&gt;
*[[G2D|DGS GUI To DGS]]&lt;br /&gt;
&lt;br /&gt;
='''DGS Element Properties'''=&lt;br /&gt;
{{DGSPROPERTIES}}&lt;br /&gt;
&lt;br /&gt;
='''Client Functions'''=&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;br /&gt;
&lt;br /&gt;
=Client Events=&lt;br /&gt;
{{DGSEVENTS}}&lt;br /&gt;
&lt;br /&gt;
=Last=&lt;br /&gt;
'''Everyone is welcome to make suggestions, test the script, help make adjustments/finish the wiki, etc.'''&lt;br /&gt;
[[Category:Resource]]&lt;br /&gt;
&lt;br /&gt;
[[ar:Dgs]]&lt;br /&gt;
[[ZH-CN:Dgs]]&lt;br /&gt;
[[PL:Dgs]]&lt;/div&gt;</summary>
		<author><name>Walidza</name></author>
	</entry>
</feed>