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.
This commit is contained in:
MicaelNotUsed 2025-04-02 20:49:43 -03:00 committed by GitHub
parent 337811d22b
commit 4a54108898
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 18 additions and 0 deletions

18
mods/hideandshowtools.js Normal file
View File

@ -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."
};