loadSaveFrame
This commit is contained in:
1 parent
ba4c2b85d7
commit
d3cb2efcd4
4 files changed
+8
-8
No files matched your search
@@ -609,7 +609,7 @@ function newUiObjectsFromNodes() {
|
||||
frame.width = node.savedPayload.frame.width
|
||||
frame.height = node.savedPayload.frame.height
|
||||
frame.radius = node.savedPayload.frame.radius
|
||||
saveFrame(payload, frame)
|
||||
UI.projects.superalgos.utilities.loadSaveFrame.saveFrame(payload, frame)
|
||||
}
|
||||
if (node.savedPayload.tutorial !== undefined) {
|
||||
let tutorial = {
|
||||
|
||||
@@ -141,9 +141,9 @@ function newTimeMachine() {
|
||||
|
||||
function initialize(callBackFunction) {
|
||||
timeFrame = INITIAL_TIME_PERIOD
|
||||
loadFrame(thisObject.payload, thisObject.container.frame)
|
||||
UI.projects.superalgos.utilities.loadSaveFrame.loadFrame(thisObject.payload, thisObject.container.frame)
|
||||
setInitialPosition()
|
||||
saveFrame(thisObject.payload, thisObject.container.frame)
|
||||
UI.projects.superalgos.utilities.loadSaveFrame.saveFrame(thisObject.payload, thisObject.container.frame)
|
||||
|
||||
recalculateCoordinateSystem()
|
||||
recalculateCurrentDatetime()
|
||||
@@ -383,7 +383,7 @@ function newTimeMachine() {
|
||||
thisObject.edgeEditor.physics()
|
||||
timeMachineCoordinateSystem.physics()
|
||||
|
||||
saveFrame(thisObject.payload, thisObject.container.frame)
|
||||
UI.projects.superalgos.utilities.loadSaveFrame.saveFrame(thisObject.payload, thisObject.container.frame)
|
||||
if (thisObject.container.frame.isInViewPort()) {
|
||||
childrenPhysics()
|
||||
syncWithDesigner()
|
||||
|
||||
@@ -86,7 +86,7 @@ function newViewport() {
|
||||
y: 0
|
||||
}
|
||||
}
|
||||
loadFrame(thisObject.payload, frame)
|
||||
UI.projects.superalgos.utilities.loadSaveFrame.loadFrame(thisObject.payload, frame)
|
||||
if (!isNaN(frame.position.x)) {
|
||||
position.x = frame.position.x
|
||||
}
|
||||
@@ -177,7 +177,7 @@ function newViewport() {
|
||||
/* Save the position at the frame lavel */
|
||||
let frame = {}
|
||||
frame.position = position
|
||||
saveFrame(thisObject.payload, frame)
|
||||
UI.projects.superalgos.utilities.loadSaveFrame.saveFrame(thisObject.payload, frame)
|
||||
}
|
||||
|
||||
function animationPhysics() {
|
||||
|
||||
@@ -78,7 +78,7 @@ function newLayersPanel() {
|
||||
}
|
||||
|
||||
thisObject.container.frame.position = position
|
||||
loadFrame(thisObject.payload, thisObject.container.frame)
|
||||
UI.projects.superalgos.utilities.loadSaveFrame.loadFrame(thisObject.payload, thisObject.container.frame)
|
||||
|
||||
thisObject.upDownButton = newUpDownButton()
|
||||
thisObject.upDownButton.parentContainer = thisObject.container
|
||||
@@ -346,7 +346,7 @@ function newLayersPanel() {
|
||||
|
||||
thisObject.upDownButton.physics()
|
||||
thisObject.leftRightButton.physics()
|
||||
saveFrame(thisObject.payload, thisObject.container.frame)
|
||||
UI.projects.superalgos.utilities.loadSaveFrame.saveFrame(thisObject.payload, thisObject.container.frame)
|
||||
syncWithConfigPhysics()
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user