Made freeform tool special and tidied up buttons
This commit is contained in:
parent
7cf15a98ab
commit
ebd003adb2
|
@ -248,7 +248,7 @@ ascii.StateController = function(state) {
|
|||
}.bind(this));
|
||||
|
||||
$('#freeform-button').click(function(e) {
|
||||
this.drawFunction = new DrawFreeform(state, 'O');
|
||||
this.drawFunction = new DrawFreeform(state, '+');
|
||||
}.bind(this));
|
||||
|
||||
$('#erase-button').click(function(e) {
|
||||
|
|
|
@ -13,13 +13,13 @@
|
|||
left: 0px;
|
||||
right: 0px;
|
||||
z-index: 100;
|
||||
width: 400px;
|
||||
width: 320px;
|
||||
background: #EEE;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
button {
|
||||
width: 97px;
|
||||
width: 60px;
|
||||
height: 30px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
|
@ -37,9 +37,9 @@ button {
|
|||
<div id="menu">
|
||||
<button id="box-button">Box</button>
|
||||
<button id="line-button">Line</button>
|
||||
<button id="freeform-button">Freeform</button>
|
||||
<button id="freeform-button">Draw</button>
|
||||
<button id="erase-button">Erase</button>
|
||||
<button id="move-button">Move</button>
|
||||
<button id="move-button">Resize</button>
|
||||
</div>
|
||||
<canvas id="ascii-canvas"></canvas>
|
||||
<script src="jquery-1.9.1.min.js"></script>
|
||||
|
|
Loading…
Reference in New Issue