• How can I set a clickable image with derma but without showing the button ?
    1 replies, posted
Hello! I'm wondering how could I set a clickable image with derma but without showing the button ? Because I only want to the image to appear, I hope you could help me Ty!
Hope this helps local image = Material("Path/To/Material", "noclamp smooth") local button = vgui.Create("DButton") button:Size(100,100) --Set the size of the button button:SetText("") --Set the text to an empty string, this makes the text that says "Button" disapear from the button button.Paint = function(s, w, h) --Now override the paint function so we can draw our own graphics   surface.SetMaterial(image)   surface.SetDrawColor(Color(255,255,255,255))   surface.DrawTexturedRect(0,0,w,h) end
Sorry, you need to Log In to post a reply to this thread.