Just Tyding
This commit is contained in:
1 parent
df353348bb
commit
7cdb22cc1e
2 files changed
+1
-14
No files matched your search
@@ -80,12 +80,7 @@ function newFloatingObject () {
|
||||
|
||||
case 'Profile Ball': {
|
||||
thisObject.underlayingObject = newProfileBall()
|
||||
thisObject.underlayingObject.initialize(onInitialized)
|
||||
|
||||
function onInitialized (err) {
|
||||
|
||||
}
|
||||
|
||||
thisObject.underlayingObject.initialize()
|
||||
break
|
||||
}
|
||||
case 'Note': {
|
||||
|
||||
@@ -67,25 +67,17 @@ function newProfileBall () {
|
||||
function initialize () {
|
||||
for (let i = 0; i < ballStringMenu.length; i++) {
|
||||
let menuItem = ballStringMenu[i]
|
||||
|
||||
menuItem.iconOn = new Image()
|
||||
|
||||
menuItem.iconOn.onload = onImageLoad
|
||||
|
||||
function onImageLoad () {
|
||||
menuItem.iconOff = new Image()
|
||||
|
||||
menuItem.iconOff.onload = onImageLoad
|
||||
|
||||
function onImageLoad () {
|
||||
menuItem.canDrawIcon = true
|
||||
}
|
||||
|
||||
menuItem.iconOff.src = window.canvasApp.urlPrefix + menuItem.imagePathOff
|
||||
}
|
||||
|
||||
menuItem.iconOn.src = window.canvasApp.urlPrefix + menuItem.imagePathOn
|
||||
|
||||
menuItem.icon = menuItem.iconOn // The default value is ON.
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user