local MainFrame
= vgui.
Create(
"DFrame" )
MainFrame:
SetSize(
500,
300 )
MainFrame:
Center()
MainFrame:
MakePopup()
local MainSheet
= vgui.
Create(
"DPropertySheet", MainFrame )
MainSheet:
Dock( FILL )
local First_Panel
= vgui.
Create(
"DPanel", MainSheet )
First_Panel.Paint
= function( self, w, h )
draw.
RoundedBox(
4,
0,
0, w, h,
Color(
255,
128,
0,
self:
GetAlpha() ) )
end
MainSheet:
AddSheet(
"Users Page", First_Panel,
"icon16/user.png" )
local Second_Panel
= vgui.
Create(
"DPanel", MainSheet )
Second_Panel.Paint
= function( self, w, h )
draw.
RoundedBox(
4,
0,
0, w, h,
Color(
0,
128,
255,
self:
GetAlpha() ) )
end
MainSheet:
AddSheet(
"Admins Page", Second_Panel,
"icon16/lightning.png" )
if LocalPlayer():
IsAdmin()
then
MainSheet:
CloseTab(
MainSheet:
GetItems()
[1].Tab )
else
MainSheet:
CloseTab(
MainSheet:
GetItems()
[2].Tab )
end