Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- C:/Users/Io/AppData/Local/Temp/cl_init.lua-revBASE.svn000.tmp.lua Sun Mar 25 20:32:04 2012
- +++ C:/Program Files (x86)/Steam/steamapps/bunyan93/garrysmod/garrysmod/addons/spacebuild/lua/entities/resource_node/cl_init.lua Mon Aug 20 02:26:46 2012
- @@ -181,8 +181,10 @@
- TempY = TempY + extra
- for k, v in pairs(resources) do
- if mode == 3 then
- + surface.SetDrawColor(200,200,255,255)
- surface.SetTextColor(200,200,255,255)
- - amt = v.value/v.maxvalue
- + amt = math.Clamp(v.value/v.maxvalue, 0, 1)
- + if (amt ~= amt) then amt = 0 end -- in case of Nan
- surface.SetTextPos(textStartPos+15, TempY)
- surface.DrawText(" "..CAF.GetAddon("Resource Distribution").GetProperResourceName(k))
- surface.DrawOutlinedRect(-20, TempY-5, -2*(textStartPos)+20, 40)
Add Comment
Please, Sign In to add comment