From 3f98e31d46c8b2a9b34d291aa47eec05a901695c Mon Sep 17 00:00:00 2001 From: sukuwc Date: Thu, 3 Feb 2022 12:07:21 +0100 Subject: [PATCH] SUKU Stop Animation block added --- package-lock.json | 4 +- package.json | 2 +- .../config-blocks/LedAnimationStart.svelte | 2 +- src/app/config-blocks/LedAnimationStop.svelte | 218 ++++++++++++++++++ 4 files changed, 222 insertions(+), 4 deletions(-) create mode 100644 src/app/config-blocks/LedAnimationStop.svelte diff --git a/package-lock.json b/package-lock.json index e33ee9c9b..24e4de9f1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "grid_editor", - "version": "1.2.14", + "version": "1.2.15", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "grid_editor", - "version": "1.2.14", + "version": "1.2.15", "hasInstallScript": true, "dependencies": { "@codemirror/basic-setup": "^0.18.0", diff --git a/package.json b/package.json index c81ae7089..a3bcdbe71 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "grid_editor", - "version": "1.2.15", + "version": "1.2.16", "main": "./src/electron.js", "repository": { "type": "git", diff --git a/src/app/config-blocks/LedAnimationStart.svelte b/src/app/config-blocks/LedAnimationStart.svelte index a0fecacd0..2ce4763cf 100644 --- a/src/app/config-blocks/LedAnimationStart.svelte +++ b/src/app/config-blocks/LedAnimationStart.svelte @@ -5,7 +5,7 @@ name: 'LedAnimationStart', rendering: 'standard', category: 'led', - desc: 'Animation Start', + desc: 'Start Animation', color: '#726E60', defaultLua: 'glpfs(num,1,val,1,1)', icon: ` diff --git a/src/app/config-blocks/LedAnimationStop.svelte b/src/app/config-blocks/LedAnimationStop.svelte new file mode 100644 index 000000000..628f97b51 --- /dev/null +++ b/src/app/config-blocks/LedAnimationStop.svelte @@ -0,0 +1,218 @@ + + + + + + + +
+ +
Stop the periodic animation on the LED
+ +
+ +
+ {#each [scriptSegments[0], scriptSegments[1]] as script, i} +
+
{parameterNames[i]}
+ {onActiveFocus(e,i)}} + on:loose-focus={(e)=>{onLooseFocus(e,i)}} + on:change={(e)=>{sendData(e.detail,i)}}/> +
+ {/each} +
+ + {#if showSuggestions && suggestionPlaceMove==true} + + { + scriptSegments[e.detail.index] = e.detail.value; + sendData(e.detail.value,e.detail.index) + }} + /> + + {/if} + + +
+ + \ No newline at end of file