From 61a374e873c496b3d07ff5ccea8a09ed2278bef2 Mon Sep 17 00:00:00 2001 From: Brian Harvey Date: Tue, 1 May 2018 20:48:22 -0400 Subject: [PATCH] declare global or sprite-local variables new library with GLOBAL VARIABLES and SPRITE-LOCAL VARIABLES blocks --- libraries/LIBRARIES | 2 +- libraries/make-variables.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 libraries/make-variables.xml diff --git a/libraries/LIBRARIES b/libraries/LIBRARIES index 36e55802..762da5f7 100644 --- a/libraries/LIBRARIES +++ b/libraries/LIBRARIES @@ -17,4 +17,4 @@ speech_module.xml Text to speech output text using speech synthesis. animation_module.xml Animation glide, grow and rotate using easing functions. pixel_module.xml Pixels manipulate costumes pixel-wise. audioComp_module.xml Audio Comp analyze, manipulate and generate sound samples. -atomic_HOFs_module.xml "Bigger" Data [EXPERIMENTAL] crunch large lists very fast +make-variables.xml create variables in program declare global or sprite-local variables in a script diff --git a/libraries/make-variables.xml b/libraries/make-variables.xml new file mode 100644 index 00000000..1710467a --- /dev/null +++ b/libraries/make-variables.xml @@ -0,0 +1 @@ +
var ide = this.parentThatIsA(IDE_Morph); ide.flushBlocksCache('variables'); // b/c of inheritance ide.refreshPalette();
var ide = this.parentThatIsA(IDE_Morph); ide.flushBlocksCache('variables'); // b/c of inheritance ide.refreshPalette();
\ No newline at end of file