Community Curator/Source/TSWRes DrawCM

-- Create Mode Drawing stuff --

-- GUI --

-- Tool Gui function Draw.Tool(Tool) if Tool == "Popit Cursor" then Draw.SizeControls if ObjSelected ~= nil then v = ObjTab[ObjSelected] local CT = v["CorTab"] if type(CT)--~="table" then Draw.Object(CT, SizeX-64, SizeY-64, ObjTooSiz[CT], v["RotRad"], v["Mat"] or SelectedMaterial, true) end else Draw.PopitCursor(SizeX-64, SizeY-64, 48) end elseif Tool == "Object Cursor" then local CT = ObjSelected Draw.Object(CT, SizeX-64, SizeY-64, ObjTooSiz[CT], 0, SelectedMaterial, ObjSelected, true) elseif Tool == "Corner Editor" then Draw.CornerEditIco(SizeX-64, SizeY-64, 32) elseif Tool == "Sticker Editor" then if StickerSelected then local SS = StickerSelected Stickers[SS["Sticker"]](SizeX-64, SizeY-64, 32) else Draw.StickerEditIco(SizeX-64, SizeY-64, 32) end elseif Tool == "Sticker Cursor" then local SS = StickerSelected local Stick = Stickers[SS["Sticker"]] Stick(SizeX-64, SizeY-64, 32) elseif Tool == "Material Changer" then Draw.MaterialChangerIco(SizeX-64, SizeY-64, 32) else draw.fillroundedrect(SizeX - (96 - 12), SizeY - 96, SizeX - (32 + 12), SizeY - 32, 4, PlayCol1) end end

function Draw.ZoomControls draw.fillroundedrect(SizeX - 192, SizeY - 96, SizeX - 96, SizeY - 64, 4, PlayCol1) draw.roundedrect(SizeX - 192, SizeY - 96, SizeX - 96, SizeY-64, 4, PlayCol2) draw.string(Zoom, SizeX - 192, SizeY - 96, PCBG) Draw.StringBoxR("-", SizeX - 160, SizeY - 96, SizeX - 128, SizeY - 64, PlayCol1) Draw.StringBoxR("+", SizeX - 128, SizeY - 96, SizeX - 96, SizeY - 64, PlayCol1) end

function Draw.SizeControls Draw.StringBoxR("+", 32, 32, 64, 64, PlayCol1) Draw.StringBoxR("-", 64, 32, 96, 64, PlayCol1) end

-- The Thermometer function Draw.Thermometer(Value, X, Y, X2, Y2) local line = draw.line local ThT = (Y2 - Y)  if Value > .9 then GT.ThNotice ThermoPus, TPS = Math.Bounce(ThermoPus, 255, 16, TPS) else ThermoPus, TPS = 16, 0 end if Value > 1 then GT.ThOverNotice ThermoPus, TPS = Math.Bounce(ThermoPus, 255, 32, TPS) end local FillColor = Draw.Col255(255,ThermoPus,ThermoPus) draw.circle(X + 12, Y2 + 12, 24, draw.white) draw.rect(X, Y2 - (ThT), X2, Y2, draw.white) draw.fillrect(X + 2, Y2 - (ThT*Value),X2 - 2,Y2 ,FillColor) draw.arc(X + ((X2 - X)/2), Y, (X2 - X)/2, -(math.pi), 0, draw.white ) draw.setantialias(false) line(X + 4, Y + (ThT*.875), X2, Y + (ThT*.875), draw.white) line(X, Y+(ThT*.75), X2, Y+(ThT*.75), draw.white) line(X+4, Y+(ThT*.625), X2, Y+(ThT*.625), draw.white) line(X, Y+(ThT*.5), X2, Y+(ThT*.5), draw.white) line(X+4, Y+(ThT*.375), X2, Y+(ThT*.375), draw.white) line(X, Y+(ThT*.25), X2, Y+(ThT*.25), draw.white) line(X+4, Y+(ThT*.125), X2, Y+(ThT*.125), draw.white) draw.setantialias(true) draw.fillcircle(X+12, Y2+12, 21, FillColor) end

return