mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-26 22:30:27 -04:00
Add ability to create cloud variables, and have cloud provider wait for confirmation from server.
This commit is contained in:
parent
0a68722b80
commit
3fc1b89b30
4 changed files with 58 additions and 6 deletions
src/engine
|
@ -366,7 +366,7 @@ class Blocks {
|
|||
// into a state where a local var was requested for the stage,
|
||||
// create a stage (global) var after checking for name conflicts
|
||||
// on all the sprites.
|
||||
if (e.isLocal && editingTarget && !editingTarget.isStage) {
|
||||
if (e.isLocal && editingTarget && !editingTarget.isStage && !e.isCloud) {
|
||||
if (!editingTarget.lookupVariableById(e.varId)) {
|
||||
editingTarget.createVariable(e.varId, e.varName, e.varType);
|
||||
}
|
||||
|
@ -378,7 +378,7 @@ class Blocks {
|
|||
return;
|
||||
}
|
||||
}
|
||||
stage.createVariable(e.varId, e.varName, e.varType);
|
||||
stage.createVariable(e.varId, e.varName, e.varType, e.isCloud);
|
||||
}
|
||||
break;
|
||||
case 'var_rename':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue