Made freeform tool special and tidied up buttons

This commit is contained in:
Lewis Hemens 2014-01-18 14:25:19 +00:00
parent 7cf15a98ab
commit ebd003adb2
2 changed files with 5 additions and 5 deletions

View File

@ -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) {

View File

@ -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>