Added border panel theme

master
gnomerd 5 years ago
parent eb07a249f3
commit 8148796afc
  1. 8
      gamemode/engine/derma/lib/cl_menu_theme.lua
  2. 4
      gamemode/engine/derma/menus/menu_character.lua

@ -25,6 +25,14 @@ local function renderBlur( p, a, d )
end end
end end
function theme.borderpanel( p, color )
local w, h = p:GetSize()
local clr = color || Color( 20, 20, 20, 100 )
surface.SetDrawColor( clr )
surface.DrawOutlinedRect( 0, 0, w, h )
end
function theme.panel( p, color ) function theme.panel( p, color )
local w, h = p:GetSize() local w, h = p:GetSize()
local clr = color || Color( 0, 0, 0, 200 ) local clr = color || Color( 0, 0, 0, 200 )

@ -258,7 +258,9 @@ local pages = {
mscroll.w, mscroll.h = mscroll:GetSize() mscroll.w, mscroll.h = mscroll:GetSize()
mscroll:SetPos( 0, ip.h - mscroll.h ) mscroll:SetPos( 0, ip.h - mscroll.h )
mscroll:GetVBar():SetSize( 0, 0 ) mscroll:GetVBar():SetSize( 0, 0 )
mscroll.Paint = function( self ) theme.panel( self ) end -- temp mscroll.Paint = function( self ) theme.panel( self )
theme.borderpanel( self )
end
--- Model viewer --- Model viewer

Loading…
Cancel
Save