Public feed #529150

Something

public lua v1 · immutable
Raw Edit
·published 2007-06-01 20:16 UTC
rendered paste body
	// HUDPaint		function ContraptionSaver.HUDPaint()		if (ContraptionSaver.Downloading and ContraptionSaver.Downloading.Percentage) then			surface.SetFont("Default")						local Text = "Downloading: "..ContraptionSaver.Downloading.Percentage.."%"						local W, H = surface.GetTextSize(Text)						W = W + 16						local X = (ScrW() / 2) - (W / 2)			local Y = (ScrH() / 2) + 64						draw.RoundedBox(4, X, Y, W, 32, Color(0, 0, 0, 100))						draw.SimpleText(Text, "Default", X + (W / 2), Y + 16, Color(255, 255, 255, 255), 1, 1) 		end	end		hook.Add("HUDPaint", "ContraptionSaver.HUDPaint", ContraptionSaver.HUDPaint)