Reducing Funcitonality to Floating Object Only

This commit is contained in:
Luis Fernando Molina committed 2019-07-13 14:51:33 +02:00
1 parent 64e154d165
commit e19dbd5655
3 files changed
+74 -69

No files matched your search

+4 -1
View File
@@ -102,6 +102,7 @@ function newFloatingObject () {
}
function getContainer (point) {
if (thisObject.isCollapsed === true && thisObject.collapsedManually === false) { return }
let container
container = thisObject.payload.uiObject.getContainer(point)
@@ -336,14 +337,17 @@ function newFloatingObject () {
}
function drawBackground () {
if (thisObject.isCollapsed === true && thisObject.collapsedManually === false) { return }
thisObject.payload.uiObject.drawBackground()
}
function drawMiddleground () {
if (thisObject.isCollapsed === true && thisObject.collapsedManually === false) { return }
thisObject.payload.uiObject.drawMiddleground()
}
function drawForeground () {
if (thisObject.isCollapsed === true && thisObject.collapsedManually === false) { return }
thisObject.payload.uiObject.drawForeground()
}
@@ -455,4 +459,3 @@ function newFloatingObject () {
function updateRadius () {
}
}