Recommended Posts

Thisdp's Dx Graphical User Interface System ( Dx LIB )


Features:
1. Check Update(Will Notice You , But You Can Choose To Ignore It) Update Command: "updatedgs"
2. DxGUI Types:
  Window
  Edit Box
  Button
  Grid List
  Image
  Scroll Bar
  Scroll Pane
  Text Label
  Tab Panel
  Cycle Hit Shape Check
  CMD
  Radio Button
  Combo Box
  Check Box
  Memo
3. Edit Selection Fixed
4. Cyclehitshape is used to check whether your mouse is in the target cycle area.
5. Debug Mode , Command: "debugdgs"
6. You can apply shader to the dxgui
7. Include CMD, Command: "cmd"
8. Memo rewritten.

Notice:Do not close your server or stop the script when it is updating.

Wiki: https://wiki.multitheftauto.com/wiki/Dgs ( Still Working In Process )

Auto Completion For N++ (Thanks To Ahmed Ly):  http://www.mediafire.com/file/m6dm7815d5dihax/lua.zip

Here are two ways to download DGS

Full script (need to be unziped): here

Updater (need to be unziped): here

NOTICE: Need rights to call fetchRemote.

To Contact Me , Skype: thisdpzjl

If you want to close update system, you can clear 'update.lua' but not delete it.

PmExU5C.jpg

Edited by thisdp
  • Like 10
  • Thanks 2

Share this post


Link to post

This is my server. The gui is made by dgs. ( I am bad in design sry)

nKz9FWp.png

ZJhOVEf.png

Edited by thisdp
  • Like 7

Share this post


Link to post

This actually looks pretty neat, finally a usable dxGui library, well done.

  • Haha 1

Share this post


Link to post
1 minute ago, Senpai said:

needs to show how to use, give us an example script :D

You can use it like original gui, more over I added additional functions

Share this post


Link to post

so its just like a normal gui?

do I use 

dgsDxGUICloseWindow

to close window if button is clicked?

  • Like 1

Share this post


Link to post
1 minute ago, Senpai said:

so its just like a normal gui?

do I use 

dgsDxGUICloseWindow

to close window if button is clicked?

It will closed itself. But if you want to add animations, you need to cancel Event  (onClientDgsDxWindowClose) and  insert your code then closeWindow(source)

Edited by thisdp
add

Share this post


Link to post
Just now, pa3ck said:

Since all the other DxGui libraries are outdated / abandoned, I think many people will decide to use yours. Are you sure you are not willing to make an English documentation? A wiki page like this: https://wiki.multitheftauto.com/wiki/Slothman/Slothbot

It have 90+ functions and 18 events. I don't have so much time to write it. xD

Share this post


Link to post

You need a similar to guiCreateTabPanel and guiCreateMemo dxGui and I would defintely use it

  • Like 1

Share this post


Link to post

I agree with @pa3ck here, you should definitely create wiki pages for your library. Stunning looks, and I love the variety of options to manipulate with created drawings, amazing job.

Share this post


Link to post

nice 

add

dgsDxGridListSetItemDataWithKey 
dgsDxGridListGetItemDataWithKey

 

Share this post


Link to post
1 hour ago, #_iMr.[E]coo said:

nice 

add


dgsDxGridListSetItemDataWithKey 
dgsDxGridListGetItemDataWithKey

 

What do you mean?

Share this post


Link to post
dgsDxGridListSetItemDataWithKey ( list , row , column , var data , string key )

dgsDxGridListGetItemDataWithKey ( list , row , column , string key )

 

Share this post


Link to post

Could you do an equivalent to guiCreateTabPanel and guiCreateMemo? Thank you.

Share this post


Link to post
2 minutes ago, #_iMr.[E]coo said:

dgsDxGridListSetItemDataWithKey ( list , row , column , var data , string key )

dgsDxGridListGetItemDataWithKey ( list , row , column , string key )

 

I have already did this -> dgsDxGridListSetItemText(list,row,-4,table,true)

Share this post


Link to post
3 minutes ago, #_iMr.[E]coo said:

dgsDxGridListSetItemDataWithKey ( list , row , column , var data , string key )

dgsDxGridListGetItemDataWithKey ( list , row , column , string key )

 

So for example you have a list of cars "Mercedes", "BMW", "Audi" in the GridList, but you want to get their 'actual' data assigned to them e.g. "Mercedes" -> "Sultan", "BMW" -> "Washington", "Audi" -> "Admiral"? If so, that'd be a good idea. 

  • Like 1

Share this post


Link to post
1 minute ago, Axel said:

Could you do an equivalent to guiCreateTabPanel and guiCreateMemo? Thank you.

Tab Panel can be created by button and (static image or scroll pane)

2 minutes ago, Axel said:

Could you do an equivalent to guiCreateTabPanel and guiCreateMemo? Thank you.

I am thinking about how to make a memo

Share this post


Link to post
1 minute ago, thisdp said:

Tab Panel can be created by button and (static image or scroll pane)

Yes, but it would be easier with functions that does it, so people open all their scripts and replace guiCreateTabPanel and other functions with exports.dgs:dxCreateTabPanel, etc, and they have a new gui in minutes.

Share this post


Link to post
3 minutes ago, thisdp said:

I have already did this -> dgsDxGridListSetItemText(list,row,-4,table,true)

No , The idea is to put data on the row using a key He brings him on the key

Edited by #_iMr.[E]coo

Share this post


Link to post
1 minute ago, #_iMr.[E]coo said:

No , The idea is to put data on the row using a key He brings him on the key

It is the same. 

local tabl = {}
tabl["a"] = 1
tabl["b"] = 2
dgsDxGridListSetItemText(list,row,-4,tabl,true)

local mytabl = dgsDxGridListGetItemText(list,row,-4)
print(mytabl.a)

 

Share this post


Link to post

could you add: 

guiLabelSetColor ( element theElement, int red, int green, int blue )

 

Share this post


Link to post
6 minutes ago, Axel said:

Yes, but it would be easier with functions that does it, so people open all their scripts and replace guiCreateTabPanel and other functions with exports.dgs:dxCreateTabPanel, etc, and they have a new gui in minutes.

Actually. Tab panel can be made as a plugin in dgs.

1 minute ago, Senpai said:

could you add: 


guiLabelSetColor ( element theElement, int red, int green, int blue )

 

I have a very strong property system

dgsDxGUISetProperty(label,"textcolor",tocolor(r,g,b,a))

Edited by thisdp

Share this post


Link to post
Just now, Senpai said:

textcolor = #fff000?

you can either use tocolor(r,g,b,a) or use 0xRRGGBBAA

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.