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));
|
}.bind(this));
|
||||||
|
|
||||||
$('#freeform-button').click(function(e) {
|
$('#freeform-button').click(function(e) {
|
||||||
this.drawFunction = new DrawFreeform(state, 'O');
|
this.drawFunction = new DrawFreeform(state, '+');
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
$('#erase-button').click(function(e) {
|
$('#erase-button').click(function(e) {
|
||||||
|
|
|
@ -13,13 +13,13 @@
|
||||||
left: 0px;
|
left: 0px;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
width: 400px;
|
width: 320px;
|
||||||
background: #EEE;
|
background: #EEE;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
width: 97px;
|
width: 60px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
@ -37,9 +37,9 @@ button {
|
||||||
<div id="menu">
|
<div id="menu">
|
||||||
<button id="box-button">Box</button>
|
<button id="box-button">Box</button>
|
||||||
<button id="line-button">Line</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="erase-button">Erase</button>
|
||||||
<button id="move-button">Move</button>
|
<button id="move-button">Resize</button>
|
||||||
</div>
|
</div>
|
||||||
<canvas id="ascii-canvas"></canvas>
|
<canvas id="ascii-canvas"></canvas>
|
||||||
<script src="jquery-1.9.1.min.js"></script>
|
<script src="jquery-1.9.1.min.js"></script>
|
||||||
|
|
Loading…
Reference in New Issue