Commit 941a1f4e authored by Christian Winter's avatar Christian Winter

spelling error for ContinuousDrawingState fixed

parent 19c88b6f
......@@ -26,7 +26,7 @@
<script src="scripts/states/InputRecorderState.js"></script>
<script src="scripts/states/BoxSelectionState.js"></script>
<script src="scripts/states/BrushSelectionState.js"></script>
<script src="scripts/states/ContinousDrawingState.js"></script>
<script src="scripts/states/ContinuousDrawingState.js"></script>
<script src="scripts/states/DrawingState.js"></script>
<script src="scripts/states/IdleState.js"></script>
<script src="scripts/states/MoveLinesState.js"></script>
......
......@@ -60,7 +60,7 @@
this.oldPos = currentPosition;
// handle individual states
if (this.logic.currentState instanceof ContinousDrawingState) {
if (this.logic.currentState instanceof ContinuousDrawingState) {
this.logic.currentState.update();
} else if (this.logic.currentState instanceof InputRecorderState) {
this.logic.currentState.currentPos = mousePosition.copy();
......@@ -78,7 +78,7 @@
if (this.logic.currentState instanceof IdleState ||
this.logic.currentState instanceof DrawingState ||
this.logic.currentState instanceof ContinousDrawingState ||
this.logic.currentState instanceof ContinuousDrawingState ||
this.logic.currentState instanceof MeasureState) {
GUI.writeToStatusbarLeft(currentPosition.toString());
}
......@@ -143,7 +143,7 @@
this.logic.currentState.execute();
this.logic.setState(new IdleState());
}
else if (this.logic.currentState instanceof ContinousDrawingState) {
else if (this.logic.currentState instanceof ContinuousDrawingState) {
this.logic.currentState.oldPos = undefined;
} else if (this.logic.currentState instanceof MeasureState) {
this.logic.currentState.mouseUp(0);
......@@ -241,7 +241,7 @@
this.logic.currentState.update();
Application.redrawAllViews();
}
else if (this.logic.currentState instanceof ContinousDrawingState) {
else if (this.logic.currentState instanceof ContinuousDrawingState) {
this.logic.currentState.oldPos = Application.shouldSnap() ? currentPosition.copy() : mousePosition.copy();
}
else if (this.logic.currentState instanceof MeasureState) {
......@@ -489,7 +489,7 @@
}
else {
if (this.logic.currentState instanceof IdleState) {
this.logic.setState(new ContinousDrawingState());
this.logic.setState(new ContinuousDrawingState());
}
}
break;
......@@ -547,7 +547,7 @@
break;
case Key.D:
if (this.logic.currentState instanceof ContinousDrawingState) {
if (this.logic.currentState instanceof ContinuousDrawingState) {
if (!this.logic.currentState.used && !this.selection.isEmpty()) {
this.selection.duplicate();
this.logic.setState(new MoveLinesState());
......
......@@ -64,7 +64,7 @@ class Logic {
_clearStates() {
// TODO HACK
if (this.currentState instanceof ContinousDrawingState)
if (this.currentState instanceof ContinuousDrawingState)
return;
if (this.currentState.cancel)
......
......@@ -21,7 +21,7 @@
this.tips.push("You can press F to connect the endings of all selected lines!");
this.tips.push("Hold the spacebar and use the right mouse button to measure things in grid-units!");
this.tips.push("When holding down Shift while placing prefabs the instance will instead be placed as lines!");
this.tips.push("While holding down D you can draw with the continous drawing tool!")
this.tips.push("While holding down D you can draw with the continuous drawing tool!")
this.tips.push("You can toggle grid snapping temporarily by holding down the Control key!")
this.tips.push("You can selecte / deselect everything by pressing A!")
this.tips.push("You can use a line only for cutting by drawing a line while holding down Alt!")
......
class ContinousDrawingState extends State {
class ContinuousDrawingState extends State {
enter() {
this.lineStart;
this.lineEnd;
......@@ -38,6 +38,6 @@
}
toString() {
return "ContinousDrawingState";
return "ContinuousDrawingState";
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment