Resource:DGS: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 2: Line 2:


This is a resource designed to allow you create dx gui on the screen instead of the original gui.
This is a resource designed to allow you create dx gui on the screen instead of the original gui.
Full Name : Thisdp's DX Graphical User Interface System
Full Name : Thisdp's DX Graphical User Interface System
Author : thisdp
Author : thisdp
State : OpenSource (WIP)
State : OpenSource (WIP)


=Features=
=Features=

Revision as of 15:17, 30 May 2017

This is a resource designed to allow you create dx gui on the screen instead of the original gui.

Full Name : Thisdp's DX Graphical User Interface System

Author : thisdp

State : OpenSource (WIP)


Features

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 everyone easier to understand. 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.


DGS Type

  • Button (dgs-dxbutton): A button.
  • Command (dgs-dxcmd): A command just like one of windows.
  • Cyclehitshape (dgs-dxcyclehitshape): A check area that is cycle.
  • Edit (dgs-dxedit): A edit.
  • Gridlist (dgs-dxgridlist): A grid list.
  • Image (dgs-dximage): A static image.
  • Label (dgs-dxlabel): A text label.
  • ScrollBar (dgs-dxscrollbar): A scroll bar.
  • ScrollPane (dgs-dxscrollpane): A scroll pane.
  • Window (dgs-dxwindow): A window.

Client Functions

Client Events

Thanks to Everyone else who made suggestions, tested the script, helped when i was stuck, etc