Dancing Stuff

This commit is contained in:
Luis Fernando Molina committed 2019-05-03 19:10:37 +02:00
1 parent 4e579df61e
commit 1687f96166
4 files changed
+74 -24

No files matched your search

+6 -1
View File
@@ -52,6 +52,7 @@ function newStrategyPart () {
]
let floatingLayer
let isMouseOver = false
return thisObject
@@ -107,6 +108,8 @@ function newStrategyPart () {
menuItem.targetRadius = menuItem.rawRadius * 1.5
}
isMouseOver = true
}
function onMouseNotOver () {
@@ -115,6 +118,8 @@ function newStrategyPart () {
menuItem.targetRadius = menuItem.rawRadius * 0 - i * 5
}
isMouseOver = false
}
function onMouseClick (pPoint, pFloatingObject) {
@@ -312,7 +317,7 @@ function newStrategyPart () {
label = pFloatingObject.payload.profile.downLabel
if (label !== undefined) {
if (label !== undefined && isMouseOver === true) {
labelPoint = {
x: pFloatingObject.currentPosition.x - label.length / 2 * fontSize * FONT_ASPECT_RATIO,
y: pFloatingObject.currentPosition.y + pFloatingObject.currentImageSize / 2 + fontSize * FONT_ASPECT_RATIO + 15