BFrame tweaks

This commit is contained in:
Fesiug 2023-12-06 20:50:04 -05:00
parent 05946b1444
commit c99b347295
1 changed files with 4 additions and 4 deletions

View File

@ -26,10 +26,10 @@ function PANEL:Init()
self.btnClose:SetText( "" ) self.btnClose:SetText( "" )
self.btnClose.DoClick = function ( button ) self:Close() end self.btnClose.DoClick = function ( button ) self:Close() end
self.btnClose.Paint = function( panel, w, h ) self.btnClose.Paint = function( panel, w, h )
surface.SetDrawColor( schema( "bg" ) ) surface.SetDrawColor( schema( "fg" ) )
surface.DrawRect( 0, 0, w, h ) surface.DrawRect( 0, 0, w, h )
draw.SimpleText( "X", "Benny_10", ss(3.3), ss(0), schema_c( "fg" ), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP) draw.SimpleText( "X", "Benny_10", ss(3.3), ss(0), schema_c( "bg" ), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP)
return true return true
end end
@ -162,9 +162,9 @@ function PANEL:Paint( w, h )
surface.DrawRect( 0, 0, w, h ) surface.DrawRect( 0, 0, w, h )
surface.SetDrawColor( schema( "fg" ) ) surface.SetDrawColor( schema( "fg" ) )
surface.DrawRect( 0, 0, w, ss(tall) ) surface.DrawOutlinedRect( 0, 0, w, ss(tall), ss(0.5) )
draw.SimpleText( self.Title, "Benny_16", ss(2), ss(0), schema_c( "bg" ), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP ) draw.SimpleText( self.Title, "Benny_12", ss(2), ss(1), schema_c( "fg" ), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP )
return true return true
end end