Jump to content

Recommended Posts

  • Scripting Moderators
  On 30/05/2017 at 14:05, Senpai said:

so its just like a normal gui?

do I use 

dgsDxGUICloseWindow

to close window if button is clicked?

Expand  

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
Link to comment
  • Scripting Moderators
  On 30/05/2017 at 14:20, 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

Expand  

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

Link to comment
  • Scripting Moderators
  On 31/05/2017 at 12:35, #_iMr.[E]coo said:

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

dgsDxGridListGetItemDataWithKey ( list , row , column , string key )

 

Expand  

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

Link to comment
  On 31/05/2017 at 12:35, #_iMr.[E]coo said:

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

dgsDxGridListGetItemDataWithKey ( list , row , column , string key )

 

Expand  

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
Link to comment
  • Scripting Moderators
  On 31/05/2017 at 12:38, Axel said:

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

Expand  

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

  On 31/05/2017 at 12:38, Axel said:

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

Expand  

I am thinking about how to make a memo

Link to comment
  On 31/05/2017 at 12:40, thisdp said:

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

Expand  

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.

Link to comment
  • Scripting Moderators
  On 31/05/2017 at 12:43, #_iMr.[E]coo said:

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

Expand  

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)

 

Link to comment
  • Scripting Moderators
  On 31/05/2017 at 12:42, 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.

Expand  

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

  On 31/05/2017 at 12:47, Senpai said:

could you add: 

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

 

Expand  

I have a very strong property system

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

Edited by thisdp
Link to comment

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.
×
×
  • Create New...