From 5c4ebc932d8c02522802c842d43d863d89aca162 Mon Sep 17 00:00:00 2001 From: Apickx Date: Mon, 28 Dec 2015 19:10:44 -0500 Subject: Initial commit --- gamemode/hud/draw.lua | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 gamemode/hud/draw.lua (limited to 'gamemode/hud/draw.lua') diff --git a/gamemode/hud/draw.lua b/gamemode/hud/draw.lua new file mode 100644 index 0000000..1d30d6a --- /dev/null +++ b/gamemode/hud/draw.lua @@ -0,0 +1,31 @@ + +local MCO = Color(0,0,0,150) + +function GM:HUDPaint() + local CountDown = self.CountDown + + if (CountDown and CountDown > CurTime()) then + DrawRect(5,5,100,20,MCO) + DrawText("Preround: "..math.ceil(CountDown-CurTime()), "Trebuchet18", 10, 6, MAIN_WHITECOLOR) + end + + if (CountDown and CountDown < CurTime() and CountDown > CurTime()-MAIN_PVPTIMER) then + DrawRect(5,5,130,20,MCO) + DrawText("Anti PVP timer: "..math.ceil(CountDown-(CurTime()-MAIN_PVPTIMER)), "Trebuchet18", 10, 6, MAIN_WHITECOLOR) + end + + if(#player.GetAll() == 1) then + local height = 20 + local width = 65*6 + local x = (ScrH()/2) - (height/2) + local y = (ScrW()/2) - (width/2) + DrawRect(x,y,width,height,MCO) + DrawText("Winter Survival requires at least 2 players to begin, Invite a friend!","Trebuchet18",x+3,y, MAIN_WHITECOLOR) + end + + DrawAccountInventory() + DrawHelp() + DrawIndicators() + DrawWepSwap() + DrawTargets() +end -- cgit v1.2.3-70-g09d2