From 034d737a80eacd78c124a974e7807b34f9093a5a Mon Sep 17 00:00:00 2001 From: Xeltalliv <90340988+Xeltalliv@users.noreply.github.com> Date: Sun, 7 Jul 2024 20:22:06 +0300 Subject: [PATCH] Xeltalliv/simple3D: add button to extra resources and improve sample project (#1593) --- extensions/Xeltalliv/simple3D.js | 10 +++++++++- samples/Simple3D template.sb3 | Bin 21909 -> 22337 bytes 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/extensions/Xeltalliv/simple3D.js b/extensions/Xeltalliv/simple3D.js index bef86490..9540ffb6 100644 --- a/extensions/Xeltalliv/simple3D.js +++ b/extensions/Xeltalliv/simple3D.js @@ -3,7 +3,7 @@ // Description: Make GPU accelerated 3D projects easily. // By: Vadik1 // License: MPL-2.0 AND BSD-3-Clause -// Version: 1.0.3 +// Version: 1.0.4 (function (Scratch) { "use strict"; @@ -1629,6 +1629,14 @@ void main() { runtime.on("PROJECT_LOADED", resetEverything); const definitions = [ + { + blockType: BlockType.BUTTON, + text: "Open extra resources", + func: "openSite", + def: function () { + Scratch.openWindow("https://xeltalliv.github.io/simple3d-extension/"); + }, + }, { blockType: BlockType.BUTTON, text: "Open sample project", diff --git a/samples/Simple3D template.sb3 b/samples/Simple3D template.sb3 index da1a5e06c0ba463547edb13d4c0330fb034caa6a..82fe10c589453e9393996c93b4a23926f2b2bb12 100644 GIT binary patch delta 5210 zcmY+IWmME%*T(4?x+RAWX<_I_>6Ucpkd%hG2dTewDIL-v4lN;#bV)bTAvJ(VN$2DJ zydU26?6rRDoOPXj*7a?#wXf82^sY*DKvx433l9wq4UBdSN4=VEwlGyAM?>58Ktm(= zt9p33JKNd%@H>0EyN#L?nl4IHJ@A+}m{<81&8MAiSE3emCu^b^qhf9(sTR>vr>Yy? zxp;TnYb|2%i8c`KuA=-rNHTY15!(M&kHEToc_=-di}@o)OW=Md5r%0TAfouIGc53w z!PoAW6&4?)fk3hH9y^F=+!f#0&-ixA(dUl2b}iMwi#WeKh`eGrT$4YGhf*WP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