Sign in to follow this  
sFxMTA

[HELP] Gridlist problem (DGS)

Recommended Posts

Hello everyone, i hope someone could explain me what i'm doing wrong, i'm getting a weird bug when i start to fill my gridlist in dgs, is that a bug or what?

LlujeQSCTU65HiSTs8qYhA.png

This is my gridlist code:

Nextmap = DGS:dgsCreateGridList (0.51, 0.54, 0.16, 0.14, true )
DGS:dgsSetFont ( Nextmap, "default-bold" ) 			
DGS:dgsSetProperty(Nextmap,"bgColor",tocolor(0,0,0,180))
DGS:dgsSetProperty(Nextmap,"rowTextColor",tocolor(135,206,250,255))
DGS:dgsSetProperty(Nextmap,"columnColor",tocolor(0,0,0,180)) 
DGS:dgsSetProperty(Nextmap,"rowColor",{tocolor(135,206,250,0),tocolor(135,206,250,0),tocolor(135,206,250,0)})
DGS:dgsSetProperty(Nextmap,"scrollBarState",{true,false})

If you see, the scrollbar goes out of the gridlist and i can't figure out why, there's just 2 rows and i'm forcing the vertical scrollbar to true

Also, i'd like to know if there's some functions to change the scrollbar's color since i can't see anything in the documentation

I hope you all or @thisdp could help me, thanks in advance!

Edited by XisH

Share this post


Link to post

thanks for reporting :D it's a bug and has been discovered by you:D

Edited by thisdp
  • Thanks 1

Share this post


Link to post
2 hours ago, thisdp said:

thanks for reporting :D it's a bug and has been discovered by you:D

I hope it will get fixed, i love this library and i don't wanna change it, i'm making my whole server based on it :)

  • Like 1

Share this post


Link to post
21 hours ago, thisdp said:

fixed 

Thank you so much @thisdp, i'd like to know just one more thing, is there any function to change the scrollbar color? Because i can't see anything related in the documentation (Maybe i'm blinded, idk)

Share this post


Link to post
2 hours ago, XisH said:

Thank you so much @thisdp, i'd like to know just one more thing, is there any function to change the scrollbar color? Because i can't see anything related in the documentation (Maybe i'm blinded, idk)

property:
    "arrowColor"    {arrowColorNormal, arrowColorHover, arrowColorClick}
    "cursorColor"    {cursorColorNormal, cursorColorHover, cursorColorClick}
    "troughColor"    troughColor

 

See Core/scrollbar.lua

  • Thanks 1

Share this post


Link to post
6 hours ago, thisdp said:

property:
    "arrowColor"    {arrowColorNormal, arrowColorHover, arrowColorClick}
    "cursorColor"    {cursorColorNormal, cursorColorHover, cursorColorClick}
    "troughColor"    troughColor

 

See Core/scrollbar.lua

I'll try it out, thank you for your patience, i really appreciate your help :)

  • Like 1

Share this post


Link to post
17 hours ago, XisH said:

I'll try it out, thank you for your patience, i really appreciate your help :)

Thanks for your supports :D

  • Thanks 1

Share this post


Link to post
On 08/09/2018 at 04:11, thisdp said:

property:
    "arrowColor"    {arrowColorNormal, arrowColorHover, arrowColorClick}
    "cursorColor"    {cursorColorNormal, cursorColorHover, cursorColorClick}
    "troughColor"    troughColor

 

See Core/scrollbar.lua

Sorry to update this topic still, i tried all of those functions but it seems to not affect on my gridlist, i tried different ways...

{tocolor(r,g,b,a)}, tocolor(r,g,b,a), {r,g,b,a} and even hex codes but i can't get it working, maybe i'm missing something or idk...

Edited by XisH

Share this post


Link to post
23 minutes ago, XisH said:

Thank you so much and sorry, i didn't knew about that function and i was trying to use that functions directly on the gridlist, haha

Solved, thanks for your patience again :)

My pleasure :D Thanks for your support again :D

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.