I need a panel that functions and looks like HTML's <hr> tag, i.e. a thin (or thick) line spanning the entire width of the parent when using Dock(TOP), visually separating what above it from what's below. Is there an existing panel class that does this, or do I need to make one myself? I know it's pretty basic and easy to make by myself, but I figured it's such a basic element that there's a high chance it already exists in vanilla and I just missed it, so I might as well ask.
You might be able to use the code from DMenu/AddSpacer:
local pnl = vgui.Create( "DPanel", self )
pnl.Paint = function( p, w, h )
derma.SkinHook( "Paint", "MenuSpacer", p, w, h )
end
pnl:SetTall( 1 )
garrysmod/dmenu.lua at master · Facepunch/garrysmod · GitHub
Sorry, you need to Log In to post a reply to this thread.