aboutsummaryrefslogtreecommitdiff
path: root/lua/weapons/weapon_zone_designator.lua
diff options
context:
space:
mode:
authorBob Blackmon <bob.blackmon@ymail.com>2017-04-03 14:47:27 -0400
committerBob Blackmon <bob.blackmon@ymail.com>2017-04-03 14:47:27 -0400
commit8bea4a86946aed6c84d5e2639bcb4be3fbc77104 (patch)
treeab8a1aef15cf1f2bba04f75ee6ec014cbd7767f4 /lua/weapons/weapon_zone_designator.lua
parente221216c250a5d7dde9409f7c726bdff7382a1c6 (diff)
downloadzones-8bea4a86946aed6c84d5e2639bcb4be3fbc77104.tar.gz
zones-8bea4a86946aed6c84d5e2639bcb4be3fbc77104.tar.bz2
zones-8bea4a86946aed6c84d5e2639bcb4be3fbc77104.zip
Better HUD
Diffstat (limited to 'lua/weapons/weapon_zone_designator.lua')
-rw-r--r--lua/weapons/weapon_zone_designator.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/lua/weapons/weapon_zone_designator.lua b/lua/weapons/weapon_zone_designator.lua
index 19ae40b..0e9ce9a 100644
--- a/lua/weapons/weapon_zone_designator.lua
+++ b/lua/weapons/weapon_zone_designator.lua
@@ -121,8 +121,13 @@ end
function SWEP:DrawHUD()
local z,id = LocalPlayer():GetCurrentZone(GetConVarNumber("zone_filter") == 1 and self:GetZoneClass() or nil)
- z = z and z.class.."(# "..id..")" or "None"
- draw.SimpleText("Current Zone: "..z, "DermaLarge", 100,100)
+ z = z and z.class.."(# "..id..")" or "NONE"
+ surface.SetFont("DermaLarge")
+ local w = math.max(360,surface.GetTextSize("Current Zone: "..z)+40)
+ draw.RoundedBox(8,ScrW()/2-w/2,ScrH()-160,w,100,Color(0,0,0,150))
+ draw.SimpleText("Current Zone: "..z, "DermaLarge", ScrW()/2,ScrH()-130,color_white,TEXT_ALIGN_CENTER,TEXT_ALIGN_CENTER)
+ draw.SimpleText("Hold "..input.LookupBinding("+reload"):upper().." to change modes", "DermaLarge",ScrW()/2,ScrH()-90,color_white,TEXT_ALIGN_CENTER,TEXT_ALIGN_CENTER)
+
end
function SWEP:PrimaryAttack()