Jump to content

[HELP] Gridlist problem (DGS)


sFxMTA

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
Link to comment
  • Scripting Moderators
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
Link to comment
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
Link to comment
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
Link to comment
  • Scripting Moderators
31 minutes ago, XisH said:

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...

https://wiki.multitheftauto.com/wiki/DgsGridListGetScrollBar

  • Thanks 1
Link to comment
  • Scripting Moderators
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

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...