Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include("shared.lua")
- surface.CreateFont( "shekelsfont", {
- font = "Helvetica", -- Use the font-name which is shown to you by your operating system Font Viewer, not the file name
- extended = false,
- size = 55,
- weight = 700,
- blursize = 0,
- scanlines = 0,
- antialias = true,
- underline = false,
- italic = false,
- strikeout = false,
- symbol = false,
- rotary = false,
- shadow = false,
- additive = false,
- outline = false,
- } )
- surface.CreateFont( "header", {
- font = "Helvetica", -- Use the font-name which is shown to you by your operating system Font Viewer, not the file name
- extended = false,
- size = 35,
- weight = 700,
- blursize = 0,
- scanlines = 0,
- antialias = true,
- underline = false,
- italic = false,
- strikeout = false,
- symbol = false,
- rotary = false,
- shadow = false,
- additive = false,
- outline = false,
- } )
- function ENT:Draw()
- self:DrawModel()
- local ang = self:GetAngles() + Angle(0,180,-270)
- local pos = self:GetPos() + (ang:Forward() * -14 ) + (ang:Up() * -5 ) + (ang:Right() * -20)
- local shekels = self:GetShekelAmount()
- cam.Start3D2D(pos,ang,.075)
- draw.RoundedBox(0,-5,-55,310,160,Color(255,0,0))
- draw.RoundedBox(0,0,-50,300,150,Color(40,40,40))
- draw.RoundedBox(0,0,0,300,100,Color(72,72,72))
- draw.SimpleText("Shekel Bank","header",150,-25,Color(120,120,120),1,1)
- if shekels == 1 then
- draw.SimpleText(shekels .. " Shekel","shekelsfont",150,50,Color(255,255,255),1,1)
- elseif shekels == 0 then
- draw.SimpleText("No Shekels!", "shekelsfont",150,50,Color(255,255,255),1,1)
- else
- draw.SimpleText(shekels .. " Shekels","shekelsfont",150,50,Color(255,255,255),1,1)
- end
- cam.End3D2D()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement