Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --local DEMO = {}
- --DEMO.Title = "Windowstruct"
- --DEMO.Author = "Lapin"
- local function MakeCirclePoly( _x, _y, _r, _points ) -- thx acecool // _if you fucking _dmca me im going to fucking _eat your family
- local _u = ( _x + _r * 1 ) - _x;
- local _v = ( _y + _r * 1 ) - _y;
- local _slices = ( 2 * math.pi ) / _points;
- local _poly = { };
- for i = 0, _points - 1 do local _angle = ( _slices * i ) % _points;
- local x = _x + _r * math.cos( _angle );
- local y = _y + _r * math.sin( _angle );
- table.insert( _poly, { x = x, y = y, u = _u, v = _v } ) end return _poly;
- end
- local circle1 = MakeCirclePoly(443, 263, 10, 100)
- local circle2 = MakeCirclePoly(443, 263, 8.9, 100)
- local thecross1 = -- i hate vectors
- {
- { x = 732, y = 57 },
- { x = 734, y = 57 },
- { x = 742, y = 64 },
- { x = 740, y = 64 }
- }
- local thecross2 = -- i still hate vectors (i n gmod)
- {
- { x = 740, y = 57 },
- { x = 742, y = 57 },
- { x = 734, y = 64 },
- { x = 732, y = 64 }
- }
- -- i tried
- local arrow =
- {
- { x = 438, y = 264 },
- { x = 438, y = 259 },
- -- { x = 342, y = 273 }, -- mid up -- fuck gmod poly system
- { x = 448, y = 259 },
- { x = 448 , y = 264 },
- { x = 443, y = 269 }, -- mid down
- }
- local arrow2 = -- lets eat a part of the arrow
- {
- { x = 437, y = 258 },
- { x = 449, y = 258 },
- { x = 443, y = 263.5 }, -- I FUCKIING HATE VECTORS
- }
- surface.CreateFont( "WindowsPopUpTitle", {
- font = "Segoe UI",
- size = 24,
- } )
- surface.CreateFont( "WindowsPopUpTitle2", {
- font = "Segoe UI",
- size = 20,
- } )
- local function WindowsLoadingBar(xpos, ypos, x, y, speed, color1, color2, colorg1, colorg2, colorg3, colorg4, colorg5 )-- yess
- local pos1 = xpos+x*math.tan(SysTime()*speed)
- local bordermax = math.Max(0, (pos1+x/5)-(xpos+x))
- local bordermin = math.Max(0, (xpos+x/5)-(pos1))
- surface.SetDrawColor(color1) -- Background
- surface.DrawRect(xpos, ypos, x, y)
- surface.SetDrawColor(color2)
- if (pos1+x/5 > xpos) and (pos1 < xpos+x) and pos1 > xpos then -- Last is a quick fix for 3d rendering
- surface.SetDrawColor(color2)
- surface.DrawRect(pos1, ypos,( (x/5)- bordermax - bordermin ), y*(8/13))
- surface.SetDrawColor(colorg1)
- surface.DrawRect(pos1, ypos + y*(8/13),( (x/5)- bordermax - bordermin ), y*(1/13))
- surface.SetDrawColor(colorg2)
- surface.DrawRect(pos1, ypos + y*(9/13),( (x/5)- bordermax - bordermin ), y*(1/13))
- surface.SetDrawColor(colorg3)
- surface.DrawRect(pos1, ypos + y*(10/13),( (x/5)- bordermax - bordermin ), y*(1/13))
- surface.SetDrawColor(colorg4)
- surface.DrawRect(pos1, ypos + y*(11/13),( (x/5)- bordermax - bordermin ), y*(1/13))
- surface.SetDrawColor(colorg5)
- surface.DrawRect(pos1, ypos+y*(12/13),( (x/5)- bordermax - bordermin ), y*(1/13))
- end
- end
- hook.Add("HUDPaint", "WindowsStruct", function()
- surface.SetDrawColor(Color(64, 134, 195, 250)) -- Background outline
- surface.DrawRect(399, 49, 370, 250)
- surface.SetDrawColor(Color(84, 175, 255)) -- Background
- surface.DrawRect(400, 50, 368, 248)
- draw.SimpleText("Metastruct OS Error", "WindowsPopUpTitle", 560, 62 , Color(0,0,0,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
- surface.SetDrawColor(Color(64, 134, 195, 250)) -- Background grey for outline
- surface.DrawRect(408, 81, 352, 210)
- surface.SetDrawColor(Color(255, 255, 255)) -- Main message background
- surface.DrawRect(409, 82, 350, 208)
- surface.SetDrawColor(Color(200, 80, 80)) -- exit button
- surface.DrawRect(714, 50, 45, 20)
- surface.SetDrawColor(Color(62, 107, 147)) -- BIGGGGER SCREEN PLS
- surface.DrawRect(696, 55, 10, 8)
- surface.SetDrawColor(Color(84, 175, 225)) -- clear the interior this time
- surface.DrawRect(697, 57, 8, 5)
- surface.SetDrawColor(Color(40, 40, 40)) -- reduce it pls
- surface.DrawRect(670, 61, 8, 2)
- surface.SetDrawColor(Color(150, 150, 150, 225)) -- exit button background
- surface.DrawRect(434, 209, 302, 17) -- loading bar outline
- surface.SetDrawColor(Color(227, 227, 227)) -- SEP BAR
- surface.DrawRect(409, 240, 350, 1)
- --surface.SetTexture(surface.GetTextureID("msa/msa_logo_1_unlitgeneric_2")) -- msa logo
- --surface.DrawTexturedRect(420, 90, 100, 100)
- --draw.SimpleText("Ding dong", "WindowsPopUpTitle2", 640, 110 , Color(60,50,50,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER) -- Text
- --draw.SimpleText("Bannu", "WindowsPopUpTitle2", 700, 110 , Color(60,50,50,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
- --draw.SimpleText("pls no", "WindowsPopUpTitle2", 660, 150 , Color(60,50,50,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
- --draw.SimpleText("Shit :<", "WindowsPopUpTitle2", 600, 180 , Color(60,50,50,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
- --draw.SimpleText("fukin admn", "WindowsPopUpTitle2", 690, 170 , Color(60,50,50,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
- --draw.SimpleText("no pls no ban", "WindowsPopUpTitle2", 570, 130 , Color(60,50,50,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
- --draw.SimpleText("More details", "WindowsPopUpTitle2", 500, 262 , Color(60,50,50,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
- surface.SetDrawColor(84, 175, 225)
- draw.NoTexture()
- surface.DrawPoly( circle1 )
- surface.SetDrawColor( 255, 255, 255, 255 )
- draw.NoTexture()
- surface.DrawPoly( circle2 )
- surface.SetDrawColor( 255, 255, 255, 255 )
- draw.NoTexture()
- surface.DrawPoly( thecross1 )
- surface.SetDrawColor( 0, 0, 0, 255)
- draw.NoTexture()
- surface.DrawPoly( arrow )
- surface.SetDrawColor( 255,255,255)
- draw.NoTexture()
- surface.DrawPoly( arrow2 )
- surface.SetDrawColor( 255, 255, 255, 255 )
- draw.NoTexture()
- surface.DrawPoly( thecross2 )
- WindowsLoadingBar(435, 210, 300, 15, 1.2, Color(230, 230, 230), Color(6, 176, 37), Color(16, 179, 46), Color(40, 187, 6), Color(62,194,86), Color(69,196,96), Color(77,199,99)) -- wow
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement