Added possibility to select the rectangular selection tool

The user can now select the rectangular selection tool. Deleted the m shortcut for the pan tool and used it to shortcut to the rectangular selection tool. The pan tool can already be selected with the p button.
This commit is contained in:
unsettledgames
2020-03-04 12:42:15 +01:00
parent 6995ccb2ee
commit 11337b689b
4 changed files with 17 additions and 3 deletions

View File

@ -1,4 +1,6 @@
<!DOCTYPE html>
<!--todo: credit RECTANGULAR SELECTION ICON BY https://www.flaticon.com/authors/pixel-perfect or
design an original icon (this is just a placeholder)-->
<html>
<head>
@ -34,7 +36,9 @@
<img src="/pixel-editor/pencil.png" />
<img src="/pixel-editor/zoom-in.png" />
<img src = "/pixel-editor/eraser.png"/>
<img src = "/pixel-editor/rectselect.png"/>
</div>
<ul id="main-menu">
<li class="logo">Lospec Pixel Editor</li>
<li>
@ -83,6 +87,7 @@
<button title="Increase Eraser Size" id="eraser-bigger-button" class="tools-menu-sub-button">{{svg "plus.svg" width="12" height="12"}}</button>
<button title="Decrease Eraser Size" id="eraser-smaller-button" class="tools-menu-sub-button">{{svg "minus.svg" width="12" height="12"}}</button>
</li>
<li><button title = "Rectangular Selection Tool (M)" id = "rectselect-button">{{svg "rectselect.svg" width = "32" height = "32"}}</button><li>
</ul>
<ul id="colors-menu">