From 4a54108898cd07d990abfd5ebbe48e655adbdbde Mon Sep 17 00:00:00 2001 From: MicaelNotUsed Date: Wed, 2 Apr 2025 20:49:43 -0300 Subject: [PATCH] Add hideandshowtools.js Hide and Show tools is a mod that adds two tools: Hide tool, which you click on pixels to hide them, and Show tool, where you click on pixels to show them if they're hidden. --- mods/hideandshowtools.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 mods/hideandshowtools.js diff --git a/mods/hideandshowtools.js b/mods/hideandshowtools.js new file mode 100644 index 00000000..78d1065e --- /dev/null +++ b/mods/hideandshowtools.js @@ -0,0 +1,18 @@ +elements.hide = { + color: "#000000", + tool: function(pixel){ + pixel.alpha = 0 + }, + category: "tools", + canPlace: false, + desc: "Use on pixels to hide them.", +}; +elements.show = { + color: "#ffffff", + tool: function(pixel){ + pixel.alpha = 1 + }, + category: "tools", + canPlace: false, + desc: "Use on pixels to show them, can also unpaint elements." +}; \ No newline at end of file