Merge pull request #1077 from MicaelNotUsed/main

Add hideandshowtool.js to the game files
This commit is contained in:
slweeb 2025-04-02 20:40:47 -04:00 committed by GitHub
commit 832e56d51f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 0 deletions

View File

@ -160,6 +160,7 @@
<tr><td>extra_element_info.js</td><td>Adds descriptions to various vanilla elements. Used to provide the functionality that desc now does before it was added to vanilla</td><td>Melecie</td></tr>
<tr><td>extrasaveslots.js</td><td>Adds extra saves slots !SAVE IMPORTANT SAVES AS FILES!</td><td>Jayd</td></tr>
<tr><td>find.js</td><td>Adds a find mode that highlights a chosen element as pulsating red and yellow <a href="https://github.com/R74nCom/sandboxels/commit/de0dc088ab4d928c77587b9d0e3a7d7663e3f94a">(read commit description)</a></td><td>Alice</td></tr>
<tr><td>hideandshowtools.js</td><td>Adds two tools, one that hides elements, and one that shows hidden elements</td><td>MicaelNotUsed</td><tr>
<tr><td>human_friendly_design.js</td><td>Makes the drag and mix tools not kill humans.</td><td>Nekonico</td></tr>
<tr><td>insane_random_events.js</td><td>Massively buffs random events</td><td>Alice</td></tr>
<tr><td>jaydsfunctions.js</td><td>Adds extra tools</td><td>Jayd</td></tr>

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