• DColumnSheet Customisation?
    7 replies, posted
I was making a DFrame menu and decided to use DColumnSheet is there anyway i can customise the buttons on the side of the Frame? sorry if it is simple however I tried using .paint with no success. Any ideas?
Easier and cleaner way is to create a new derma element. Just grab the DColumnSheet code and modify it to your needs then register it as something else. https://github.com/Facepunch/garrysmod/blob/master/garrysmod/lua/vgui/dcolumnsheet.lua
Thank you, for the advise. I'll give it a go.
Oh my god that seems so much easier than the method I'm currently using.
If you'd like to keep the default panel, you should just be able to do: panel.Items[<sheet number>].Button this holds the button itself.
What do you mean by that? @Badger
panel.Items[1].Button this would get the button of the first item/panel or whatever.
Thx dude it worked, but is there a way i would be able to change the position of the buttons? panel.Items[1].Button:SetPos( 0, 1 ) however this works but it doesn't move the text with it only the rect i am drawing over it
Sorry, you need to Log In to post a reply to this thread.