2much4Us

Untitled

Jun 29th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. surface.CreateFont("NEWS1", {
  2. font = "Arial",
  3. size = 70,
  4. weight = 2000,
  5. })
  6.  
  7. surface.CreateFont("NEWS2", {
  8. font = "Arial",
  9. size = 150,
  10. weight = 2000,
  11. })
  12.  
  13. local newsPan1 = vgui.Create("DPanel")
  14. newsPan1:SetSize(ScrW(), 150)
  15. newsPan1:SetPos(0, ScrH()-150)
  16. newsPan1.Paint = function()
  17. surface.SetDrawColor(255,255,255,255)
  18. surface.DrawRect(0,0,newsPan1:GetWide(),newsPan1:GetTall())
  19. surface.SetDrawColor(0,157,255,255)
  20. surface.DrawRect(0,4,newsPan1:GetWide(),newsPan1:GetTall())
  21. end
  22. local newsPan2 = vgui.Create("DPanel")
  23. newsPan2:SetSize(ScrW(),ScrH())
  24. newsPan2:SetPos(0,0)
  25. newsPan2.Paint = function()
  26. local trap3 = {
  27. {x = ScrW()-504, y = ScrH()-150},
  28. {x = ScrW()-439, y = ScrH()-254},
  29. {x = ScrW(), y = ScrH()-254},
  30. {x = ScrW(), y = ScrH()-150},
  31. }
  32. local trap4 = {
  33. {x = ScrW()-500, y = ScrH()-146},
  34. {x = ScrW()-435, y = ScrH()-250},
  35. {x = ScrW(), y = ScrH()-250},
  36. {x = ScrW(), y = ScrH()-146},
  37. }
  38. local trap5 = {
  39. {x = ScrW()-475, y = ScrH()-156},
  40. {x = ScrW()-432, y = ScrH()-235},
  41. {x = ScrW()-8, y = ScrH()-235},
  42. {x = ScrW()-8, y = ScrH()-156},
  43. }
  44. draw.NoTexture()
  45. surface.SetDrawColor(255,255,255,255)
  46. surface.DrawPoly(trap3)
  47. draw.NoTexture()
  48. surface.SetDrawColor(0,157,255,255)
  49. surface.DrawPoly(trap4)
  50. draw.NoTexture()
  51. surface.SetDrawColor(0,157,255,255)
  52. surface.DrawPoly(trap5)
  53. end
  54. local title2 = vgui.Create("DLabel", newsPan2)
  55. title2:SetFont("NEWS1")
  56. title2:SetText("Gmod News")
  57. title2:SizeToContents()
  58. title2:SetPos(ScrW()-title2:GetWide()-55, ScrH()-254+title2:GetTall()/2-12)
  59. title2:SetColor(Color(255,255,255))
  60.  
  61. local title3 = vgui.Create("DLabel", newsPan1)
  62. title3:SetFont("NEWS2")
  63. title3:SetText("Breaking News " .. GetHostName() .. " Has been Seized By Team Infinity")
  64. title3:SizeToContents()
  65. title3:SetPos(ScrW(), 10)
  66. title3:SetColor(Color(255,255,255))
  67. timer.Create("movingtext2",.05,0,function()
  68. if title3:GetPos() >= 0-title3:GetWide() then
  69. title3:SetPos(Lerp(.5,title3:GetPos(),title3:GetPos()-10),10)
  70. else
  71. title3:SetPos(ScrW(),10)
  72. end
  73. end)
Advertisement
Add Comment
Please, Sign In to add comment