Final touches on radius animation
This commit is contained in:
1 parent
6476fd6428
commit
c69c8fc5b7
2 files changed
+6
-4
No files matched your search
@@ -134,9 +134,9 @@ function newFloatingObject () {
|
||||
|
||||
if (Math.abs(thisObject.container.frame.radius - thisObject.targetRadius) >= 1) {
|
||||
if (thisObject.container.frame.radius < thisObject.targetRadius) {
|
||||
thisObject.container.frame.radius = thisObject.container.frame.radius + 2
|
||||
thisObject.container.frame.radius = thisObject.container.frame.radius + 2.5
|
||||
} else {
|
||||
thisObject.container.frame.radius = thisObject.container.frame.radius - 2
|
||||
thisObject.container.frame.radius = thisObject.container.frame.radius - 2.5
|
||||
}
|
||||
thisObject.container.eventHandler.raiseEvent('Dimmensions Changed', event)
|
||||
}
|
||||
@@ -163,7 +163,7 @@ function newFloatingObject () {
|
||||
}
|
||||
|
||||
function onMouseOver () {
|
||||
thisObject.targetRadius = thisObject.rawRadius * 4.0
|
||||
thisObject.targetRadius = thisObject.rawRadius * 5.0
|
||||
thisObject.targetImageSize = thisObject.rawImageSize * 2.0
|
||||
thisObject.targetFontSize = thisObject.rawFontSize * 2.0
|
||||
|
||||
|
||||
@@ -291,7 +291,9 @@ function newStrategyPart () {
|
||||
}
|
||||
|
||||
function drawBackground (pFloatingObject) {
|
||||
drawPartBackground(pFloatingObject)
|
||||
if (isMouseOver === false) {
|
||||
drawPartBackground(pFloatingObject)
|
||||
}
|
||||
thisObject.menu.drawBackground()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user