Strategy items get clicked

This commit is contained in:
Luis Fernando Molina committed 2019-05-03 12:41:22 +02:00
1 parent b5d49e5148
commit 1e315841b8
5 files changed
+399 -18

No files matched your search

+2 -3
View File
@@ -37,12 +37,12 @@ function newStrategyCollectionItem () {
}
function onMouseClick (event) {
console.log('ITEM CLICKED')
}
function getContainer (point) {
let container
if (thisObject.container.frame.isThispointHere(point, true) === true) {
if (thisObject.container.frame.isThisPointHere(point, true) === true) {
return thisObject.container
} else {
return undefined
@@ -161,4 +161,3 @@ function newStrategyCollectionItem () {
browserCanvasContext.drawImage(thisObject.icon, point1.x - IMAGE_SIZE / 2, point1.y - IMAGE_SIZE / 2, IMAGE_SIZE, IMAGE_SIZE)
}
}