Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include("shared.lua")
- function ENT:Draw()
- self:DrawModel()
- end
- net.Receive("1level1", function()
- local FrameMain = vgui.Create("DFrame")
- FrameMain:SetSize(ScrW(), ScrH())
- FrameMain:Center()
- FrameMain:MakePopup()
- local mat = Material("directory/cis_info.png", "noclamp smooth")
- FrameMain.Paint = function(self, w, h)
- surface.SetDrawColor(255, 255, 255)
- surface.SetMaterial(mat)
- surface.DrawTexturedRect(0, 0, w * 1, h * 1)
- end
- local FirstButton = vgui.Create("DButton", FrameMain)
- FirstButton:SetText("Page 2")
- FirstButton:SetTextColor(Color(255, 255, 255))
- FirstButton:SetPos(1400, 920)
- FirstButton:SetSize(35, 25)
- FirstButton.Paint = function(self, w, h)
- draw.RoundedBox(0, 0, 0, w, h, Color(41, 128, 185, 250)) -- Draw a blue button
- end
- FirstButton.DoClick = function()
- local SecFrame = vgui.Create("DFrame")
- SecFrame:SetSize(ScrW(), ScrH())
- SecFrame:Center()
- SecFrame:MakePopup()
- local mat = Material("directory/crystals.png", "noclamp smooth")
- SecFrame.Paint = function(self, w, h)
- surface.SetDrawColor(255, 255, 255)
- surface.SetMaterial(mat)
- surface.DrawTexturedRect(0, 0, w * 1, h * 1)
- end
- end
- local SecButton = vgui.Create("DButton", FrameMain)
- SecButton:SetText("Page 3")
- SecButton:SetTextColor(Color(255, 255, 255))
- SecButton:SetPos(1500, 920)
- SecButton:SetSize(35, 25)
- SecButton.Paint = function(self, w, h)
- draw.RoundedBox(0, 0, 0, w, h, Color(41, 128, 185, 250)) -- Draw a blue button
- end
- SecButton.DoClick = function()
- local ThirdFrame = vgui.Create("DFrame")
- ThirdFrame:SetSize(ScrW(), ScrH())
- ThirdFrame:Center()
- ThirdFrame:MakePopup()
- local mat = Material("directory/masters.png", "noclamp smooth")
- ThirdFrame.Paint = function(self, w, h)
- surface.SetDrawColor(255, 255, 255)
- surface.SetMaterial(mat)
- surface.DrawTexturedRect(0, 0, w * 1, h * 1)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement