Adjust testData to new labels syntax
This commit is contained in:
@@ -241,7 +241,7 @@ class CanvasState(val canvas: HTMLCanvasElement) {
|
||||
}
|
||||
|
||||
jq(canvas).dblclick {
|
||||
val newCreature = Creature(mousePos(it), this @CanvasState)
|
||||
val newCreature = Creature(mousePos(it), this@CanvasState)
|
||||
addShape(newCreature)
|
||||
valid = false
|
||||
}
|
||||
|
||||
@@ -381,7 +381,7 @@ class CanvasState(val canvas: HTMLCanvasElement) {
|
||||
init {
|
||||
jq(canvas).click {
|
||||
val mousePos = mousePos(it)
|
||||
@shapeLoop for (shape in shapes) {
|
||||
shapeLoop@ for (shape in shapes) {
|
||||
if (shape is Button && mousePos in shape) {
|
||||
val name = shape.src
|
||||
shape.mouseClick()
|
||||
|
||||
Reference in New Issue
Block a user