Added back pan and missing sprite scaling functions

Also fixed bug that let the user change the brush size to 0
This commit is contained in:
unsettledgames
2021-11-01 12:01:31 +01:00
parent 32fb4ca943
commit c1aba0a89e
5 changed files with 142 additions and 9 deletions

View File

@ -3,8 +3,9 @@ const ToolManager = (() => {
eraserTool = new EraserTool("eraser", {type: 'html'}, switchTool);
rectangleTool = new RectangleTool("rectangle", {type: 'html'}, switchTool);
lineTool = new LineTool("line", {type: 'html'}, switchTool);
fillTool = new FillTool("fill", {type: 'cursor', pic: 'fill.png'}, switchTool);
eyedropperTool = new EyedropperTool("eyedropper", {type: 'cursor', pic: 'none'}, switchTool);
fillTool = new FillTool("fill", {type: 'cursor', style: 'crosshair'}, switchTool);
eyedropperTool = new EyedropperTool("eyedropper", {type: 'cursor', style: 'crosshair'}, switchTool);
panTool = new PanTool("pan", {type: 'custom'}, switchTool);
currTool = brushTool;
currTool.onSelect();