Permalink
Browse files

Updated default skin - CollapsibleCategory

This works a little bit better in my tests. ( Especially with another
skin )
  • Loading branch information...
1 parent 5ce8919 commit 8690816f099541fa68d92db759541f452469f8c1 @robotboy655 robotboy655 committed May 13, 2016
Showing with 4 additions and 5 deletions.
  1. +4 −5 garrysmod/lua/skins/default.lua
@@ -242,9 +242,9 @@ SKIN.tex.ProgressBar.Front = GWEN.CreateTextureBorder( 384+32, 0, 31, 31, 8, 8,
SKIN.tex.CategoryList = {}
-SKIN.tex.CategoryList.Outer = GWEN.CreateTextureBorder( 256, 384, 63, 63, 8, 8, 8, 8 )
-SKIN.tex.CategoryList.Inner = GWEN.CreateTextureBorder( 256 + 64, 384, 63, 63, 8, 21, 8, 8 )
-SKIN.tex.CategoryList.Header = GWEN.CreateTextureBorder( 320, 352, 63, 31, 8, 8, 8, 8 )
+SKIN.tex.CategoryList.Outer = GWEN.CreateTextureBorder( 256, 384, 63, 63, 8, 8, 8, 8 )
+SKIN.tex.CategoryList.Inner = GWEN.CreateTextureBorder( 320, 384, 63, 63, 8, 21, 8, 8 )
+SKIN.tex.CategoryList.Header = GWEN.CreateTextureBorder( 320, 352, 63, 31, 8, 8, 8, 8 )
SKIN.tex.Tooltip = GWEN.CreateTextureBorder( 384, 64, 31, 31, 8, 8, 8, 8 )
@@ -454,7 +454,6 @@ function SKIN:PaintTextEntry( panel, w, h )
end
-
panel:DrawTextEntryText( panel:GetTextColor(), panel:GetHighlightColor(), panel:GetCursorColor() )
end
@@ -903,7 +902,7 @@ end
function SKIN:PaintCollapsibleCategory( panel, w, h )
- if ( !panel:GetExpanded() && h < 40 ) then
+ if ( h < 21 ) then
return self.tex.CategoryList.Header( 0, 0, w, h )
end

0 comments on commit 8690816

Please sign in to comment.