From 6f09cb151dc69bec6eb878e79f9642f3da2d169c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=28=20=CD=A1=C2=B0=20=CD=9C=CA=96=20=CD=A1=C2=B0=29=20Fs?= =?UTF-8?q?=20unlimited?= Date: Fri, 2 Feb 2024 18:22:00 -0500 Subject: [PATCH] qxsck/var-and-list: add color (#1271) Co-authored-by: Muffin --- extensions/qxsck/var-and-list.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/extensions/qxsck/var-and-list.js b/extensions/qxsck/var-and-list.js index 68779b7866..bbd42e72cf 100644 --- a/extensions/qxsck/var-and-list.js +++ b/extensions/qxsck/var-and-list.js @@ -10,6 +10,8 @@ return { id: "qxsckvarandlist", name: Scratch.translate({ id: "name", default: "Variable and list" }), + color1: "#FF661A", + color2: "#EE6521", blocks: [ { opcode: "getVar", @@ -24,6 +26,7 @@ defaultValue: "variable", }, }, + extensions: ["colours_data"], }, { opcode: "seriVarsToJson", @@ -38,6 +41,7 @@ defaultValue: "variable", }, }, + extensions: ["colours_data"], }, { opcode: "setVar", @@ -56,6 +60,7 @@ defaultValue: "value", }, }, + extensions: ["colours_data"], }, { opcode: "getList", @@ -70,6 +75,7 @@ defaultValue: "list", }, }, + extensions: ["colours_data_lists"], }, { opcode: "getValueOfList", @@ -88,6 +94,7 @@ defaultValue: "1", }, }, + extensions: ["colours_data_lists"], }, { opcode: "seriListsToJson", @@ -102,6 +109,7 @@ defaultValue: "list", }, }, + extensions: ["colours_data_lists"], }, { opcode: "clearList", @@ -116,6 +124,7 @@ defaultValue: "list", }, }, + extensions: ["colours_data_lists"], }, { opcode: "deleteOfList", @@ -134,6 +143,7 @@ defaultValue: "1", }, }, + extensions: ["colours_data_lists"], }, { opcode: "addValueInList", @@ -152,6 +162,7 @@ defaultValue: "value", }, }, + extensions: ["colours_data_lists"], }, { opcode: "replaceOfList", @@ -174,6 +185,7 @@ defaultValue: "thing", }, }, + extensions: ["colours_data_lists"], }, { opcode: "getIndexOfList", @@ -192,6 +204,7 @@ defaultValue: "thing", }, }, + extensions: ["colours_data_lists"], }, { opcode: "getIndexesOfList", @@ -210,6 +223,7 @@ defaultValue: "thing", }, }, + extensions: ["colours_data_lists"], }, { opcode: "length", @@ -224,6 +238,7 @@ defaultValue: "list", }, }, + extensions: ["colours_data_lists"], }, { opcode: "listContains", @@ -242,6 +257,7 @@ defaultValue: "thing", }, }, + extensions: ["colours_data_lists"], }, { opcode: "copyList", @@ -260,6 +276,7 @@ defaultValue: "list2", }, }, + extensions: ["colours_data_lists"], }, ], };