fork/m-overlay
git clone https://git.julia.blue/fork/m-overlay
a8034e9
master
1local PANEL =class . create ( "GCBinderPanel" , "Label" ) 2 3function PANEL : GCBinderPanel () 4self : super () -- Initialize our baseclass 5self : SetFocusable ( true ) 6self : SetDrawPanel ( true ) 7self : SetBGColor ( color ( 215 , 215 , 215 )) 8 9self : SetHeight ( 48 ) 10 11self : TextMargin ( 0 , 4 , 0 , 0 ) 12self : SetTextAlignmentX ( "center" ) 13self : SetTextAlignmentY ( "top" ) 14self : SetTextColor ( color_darkgrey ) 15self : DockPadding ( 2 , 18 , 2 , 2 ) 16 17self . m_pBinder =self : Add ( "GCBinder" ) 18self . m_pBinder : Dock ( DOCK_TOP ) 19 20self : InheritMethods ( self . m_pBinder ) -- Inherit all slider functions 21end 22 23function PANEL : Skin () 24self : super ( "Skin" ) 25gui . skinHook ( "Init" , "SubPanel" , self ) 26end