2nd update of layers when calculating
This commit is contained in:
1 parent
40ab33192f
commit
8dd41d4759
1 file changed
+26
-5
@@ -167,11 +167,21 @@ function newRestartSimulation () {
|
||||
break
|
||||
case 'Calculating':
|
||||
thisObject.status = 'Refreshing'
|
||||
turnOffProductCards()
|
||||
counterTillNextState = 10
|
||||
counterTillNextState = 25
|
||||
break
|
||||
case 'Refreshing':
|
||||
thisObject.status = 'Reviewing'
|
||||
turnOffProductCards()
|
||||
turnOnProductCards()
|
||||
counterTillNextState = 250
|
||||
break
|
||||
case 'Reviewing':
|
||||
thisObject.status = '2nd Refresh'
|
||||
counterTillNextState = 25
|
||||
break
|
||||
case '2nd Refresh':
|
||||
thisObject.status = 'Ready'
|
||||
turnOffProductCards()
|
||||
turnOnProductCards()
|
||||
break
|
||||
case 'Error':
|
||||
@@ -224,7 +234,7 @@ function newRestartSimulation () {
|
||||
break
|
||||
}
|
||||
case 'Saving':
|
||||
params.backgroundColor = UI_COLOR.MANGANESE_PURPLE
|
||||
params.backgroundColor = UI_COLOR.GREY
|
||||
break
|
||||
case 'Restarting':
|
||||
params.backgroundColor = UI_COLOR.GREY
|
||||
@@ -235,6 +245,12 @@ function newRestartSimulation () {
|
||||
case 'Calculating':
|
||||
params.backgroundColor = UI_COLOR.TITANIUM_YELLOW
|
||||
break
|
||||
case 'Reviewing':
|
||||
params.backgroundColor = UI_COLOR.GREY
|
||||
break
|
||||
case '2nd Refresh':
|
||||
params.backgroundColor = UI_COLOR.GOLDEN_ORANGE
|
||||
break
|
||||
case 'Error':
|
||||
params.backgroundColor = UI_COLOR.RUSTED_RED
|
||||
break
|
||||
@@ -259,7 +275,7 @@ function newRestartSimulation () {
|
||||
|
||||
switch (thisObject.status) {
|
||||
case 'Ready':
|
||||
label = 'RE-CALCULATE'
|
||||
label = 'RUN SIMULATION'
|
||||
break
|
||||
case 'Saving':
|
||||
label = 'SAVING STRATEGIES CHANGES...'
|
||||
@@ -273,6 +289,12 @@ function newRestartSimulation () {
|
||||
case 'Calculating':
|
||||
label = 'CALCULATING...'
|
||||
break
|
||||
case 'Reviewing':
|
||||
label = 'WAITING TO UPDATE...'
|
||||
break
|
||||
case '2nd Refresh':
|
||||
label = 'UPDATING...'
|
||||
break
|
||||
case 'Error':
|
||||
label = 'ERROR, RETRY LATER'
|
||||
break
|
||||
@@ -288,4 +310,3 @@ function newRestartSimulation () {
|
||||
browserCanvasContext.fillText(label, labelPoint.x, labelPoint.y)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user