sFxMTA Posted September 5, 2018 Posted September 5, 2018 (edited) 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? 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 September 5, 2018 by XisH
Scripting Moderators thisdp Posted September 6, 2018 Scripting Moderators Posted September 6, 2018 (edited) thanks for reporting it's a bug and has been discovered by you:D Edited September 6, 2018 by thisdp 1
sFxMTA Posted September 6, 2018 Author Posted September 6, 2018 2 hours ago, thisdp said: thanks for reporting 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 1
Scripting Moderators thisdp Posted September 7, 2018 Scripting Moderators Posted September 7, 2018 fixed 1
sFxMTA Posted September 7, 2018 Author Posted September 7, 2018 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)
Scripting Moderators thisdp Posted September 8, 2018 Scripting Moderators Posted September 8, 2018 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 1
sFxMTA Posted September 8, 2018 Author Posted September 8, 2018 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 1
Scripting Moderators thisdp Posted September 9, 2018 Scripting Moderators Posted September 9, 2018 17 hours ago, XisH said: I'll try it out, thank you for your patience, i really appreciate your help Thanks for your supports 1
sFxMTA Posted September 10, 2018 Author Posted September 10, 2018 (edited) 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 September 10, 2018 by XisH
Scripting Moderators thisdp Posted September 10, 2018 Scripting Moderators Posted September 10, 2018 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 1
sFxMTA Posted September 10, 2018 Author Posted September 10, 2018 1 hour ago, thisdp said: https://wiki.multitheftauto.com/wiki/DgsGridListGetScrollBar 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 1
Scripting Moderators thisdp Posted September 10, 2018 Scripting Moderators Posted September 10, 2018 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 Thanks for your support again
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now