• Painting DScrollPanel buttons?
    2 replies, posted
Hey FP, I want to paint(change the color of) these buttons here - [url]http://prntscr.com/est3z5[/url] ( What I did there was I just made the buttons invisible, and put a DPanel painted blue behind it so it looks better. ) but I don't know what to use. Wiki isn't helping and I looked inside the default vgui/dcolumnsheet.lua for garry's mod, but couldn't find a function for it. I'm starting to think that what I'm trying to do isn't possible. Anyone got any ideas?
Here is [URL="http://wiki.garrysmod.com/page/DScrollPanel/GetVBar"]this [/URL]on the wiki... Not sure if that's what you were looking for, if you mean the actual panel you paint it by overriding the paint function just as if it were a DFrame
[QUOTE=MrRalgoman;52062689]Here is [URL="http://wiki.garrysmod.com/page/DScrollPanel/GetVBar"]this [/URL]on the wiki... Not sure if that's what you were looking for, if you mean the actual panel you paint it by overriding the paint function just as if you were if it were a DFrame[/QUOTE] No, not the scroll bar. I painted that. I'm talking about the buttons that you use to switch between the sheets that have been add to the DColumnSheet. Thanks for the help though [editline]5th April 2017[/editline] Nevermind guys. Figured it out. Took some thinking though. :) Pretty much this - [code] dcolumnsheet.Items[1].Button.Paint = function( self, w, h ) draw.RoundedBox( 0, 0, 0, w, h, Color( 0, 255, 0, 255 ) ) end [/code] EDIT: Once I found out that .Items returns the sheet table, it was easy peezy.
Sorry, you need to Log In to post a reply to this thread.