sandboxels/mods/content.js

131 lines
4.0 KiB
JavaScript
Raw Normal View History

Version 1.13 - December 17, 2025 - Gizmos & Gadgets + Filter + Only allows the first element it touches to pass + Gate + Only allows pixels to pass if electrified + Only conducts electricity into itself and Wire + Canvas background images + Some presets and custom image URLs + Outline View (Press 5) + 2-wide and 4-wide brushes + Ruler tool in Special to measure lengths and angles + Manual element control + Shift-clicking certain element buttons prompt the user for more information + Erase tool allows only deleting certain elements + Cloners allow multiple comma-separated elements + Filters allow states (solid, liquid, or gas) or multiple elements + Sensors allow sensing specific elements + Portals allow the setting of channels + Void allows only deleting certain elements + Random tool allows pre-selected element choices + Explosion allows custom radius + Antibombs allow pre-selected explosion elements ~ Replaced LED Red, Green, and Blue with a single customizable LED ~ LEDs in old saves are automatically converted to the new element - Merged Superheaters and Freezers with Heaters and Coolers + Heaters can be heated to heat the same as a Superheater + Coolers can be cooled to cool the same as a Freezer - Removed Tesla Coil and Shocker ~ These elements in old saves are automatically converted to E-cloners ~ Drag tool is faster and smoother ~ Pixelated and colorful button borders + Translations for Swedish + Parital translations for Japanese, Thai, Arabic, Hebrew, and Viossa [Changes] + Pipes can transport pixels directly with Filter and Gate ~ Pipes no longer conduct heat ~ Brightened blue stage in Pipes ~ Incomplete pipes darken after being initialized + Oxygen can be used to dispose Molten Lead in reactors + Electrolysis of raw Salt + Smashing hot Cooked Meat releases Grease + Worms can compost Lettuce, Tomato, Corn, Pickle, and Bread + Rats can eat Spiders + Caramel and Herb make peppermint-colored sugar + Baking Soda can be made with Lye and Carbon Dioxide + Melting Ash with Dirt creates Tuff ~ Poison Gas no longer makes Slag from molten elements ~ Perfume can exist at room temperature ~ Acid doesn't dissolve Mercury or Diamond ~ Sulfur ignites when hot ~ All Cloud types can be smashed like Rain Cloud ~ Thermite burns into less Iron ~ Rock Wall deletes Light when placed over it for better eclipses - Removed Gallium-Sodium reaction ~ Copper Sulfate reacts with more carbs ~ Rainbow recipe uses Pointer instead of Flash ~ Bless deletes Strange Matter instead of turning it into Neutron + Static recipe + Malware can mix with some metals to create machine parts + Tea stains Paper + Unique fire color for Tin ~ Element buttons are consistently spaced on all sides ~ Recolored Pyrite ~ Acid has a smoother texture ~ Purple Gold is slightly more purple ~ Hyphae and Lichen are grainier ~ Recolored Random button ~ Recolored Balloon button ~ Recolored Confetti button ~ Recolored Hair button ~ Recolored Pistil button ~ Reordered colors in many buttons for consistent "lighting" look ~ Rice, Candy, Nut Oil, Dye, Rainbow, and Spray Paint buttons display with dark text + Firefly alias 'Lightning Bug' ~ Shortened hiding setting labels ~ Language should automatically be set from browser preferences (Untested) ~ Re-saving after saving automatically fills in name, author, and description ~ Save browser thumbnails are crisper ~ Steam Deck compliance [Technical] + 'onShiftSelect' element property, called when selecting element while holding Shift + 'onlyConduct' element property, list of the only elements to conduct electricity into + 'renderTool' element property, renderer function called once per frame while selected + 'updateOrder' element property, prioritizes (positive) or deprioritizes (negative) tick order (integer; default 0) + autoResizeRatio(height,width) function (e.g. (16,9)) ~ 'shiftDown' variable is set even when in a menu [Bug Fixes] ~ Fixed: Placing Humans with Replace Mode causes a gory mess ~ Fixed: Using Human on Cloners cause a gory mess ~ Fixed: Bottom pixels can be cut off on certain window sizes ~ Fixed: Line-drawing preview is opaque when using a theme ~ Fixed: Text in Debug popup can't be selected ~ Fixed: onClicked passes "unknown" when no element is selected, now passes null ~ Fixed: onMouseDown doesn't get called on mobile ~ Fixed: onMouseDown is called when clicking out of a menu ~ Fixed: Using Heat Ray on Stained Glass can make Rainbows ~ Fixed: Saves with pipes containing invalid elements fail to load ~ Fixed: Some Fireflies stay illuminated after hitting another ~ Fixed: Liquid/gaseous pixels with 'skip' property can be displaced by denser pixels ~ Fixed: Salt isn't considered a food and can't be eaten by Humans ~ Fixed: Corn can't be dragged or put into Pipes
2025-12-17 12:08:39 -05:00
// dependOn("borders.js", ()=>{}, true);
2025-12-07 19:46:57 -05:00
dependOn("glow.js", ()=>{}, true);
Version 1.13 - December 17, 2025 - Gizmos & Gadgets + Filter + Only allows the first element it touches to pass + Gate + Only allows pixels to pass if electrified + Only conducts electricity into itself and Wire + Canvas background images + Some presets and custom image URLs + Outline View (Press 5) + 2-wide and 4-wide brushes + Ruler tool in Special to measure lengths and angles + Manual element control + Shift-clicking certain element buttons prompt the user for more information + Erase tool allows only deleting certain elements + Cloners allow multiple comma-separated elements + Filters allow states (solid, liquid, or gas) or multiple elements + Sensors allow sensing specific elements + Portals allow the setting of channels + Void allows only deleting certain elements + Random tool allows pre-selected element choices + Explosion allows custom radius + Antibombs allow pre-selected explosion elements ~ Replaced LED Red, Green, and Blue with a single customizable LED ~ LEDs in old saves are automatically converted to the new element - Merged Superheaters and Freezers with Heaters and Coolers + Heaters can be heated to heat the same as a Superheater + Coolers can be cooled to cool the same as a Freezer - Removed Tesla Coil and Shocker ~ These elements in old saves are automatically converted to E-cloners ~ Drag tool is faster and smoother ~ Pixelated and colorful button borders + Translations for Swedish + Parital translations for Japanese, Thai, Arabic, Hebrew, and Viossa [Changes] + Pipes can transport pixels directly with Filter and Gate ~ Pipes no longer conduct heat ~ Brightened blue stage in Pipes ~ Incomplete pipes darken after being initialized + Oxygen can be used to dispose Molten Lead in reactors + Electrolysis of raw Salt + Smashing hot Cooked Meat releases Grease + Worms can compost Lettuce, Tomato, Corn, Pickle, and Bread + Rats can eat Spiders + Caramel and Herb make peppermint-colored sugar + Baking Soda can be made with Lye and Carbon Dioxide + Melting Ash with Dirt creates Tuff ~ Poison Gas no longer makes Slag from molten elements ~ Perfume can exist at room temperature ~ Acid doesn't dissolve Mercury or Diamond ~ Sulfur ignites when hot ~ All Cloud types can be smashed like Rain Cloud ~ Thermite burns into less Iron ~ Rock Wall deletes Light when placed over it for better eclipses - Removed Gallium-Sodium reaction ~ Copper Sulfate reacts with more carbs ~ Rainbow recipe uses Pointer instead of Flash ~ Bless deletes Strange Matter instead of turning it into Neutron + Static recipe + Malware can mix with some metals to create machine parts + Tea stains Paper + Unique fire color for Tin ~ Element buttons are consistently spaced on all sides ~ Recolored Pyrite ~ Acid has a smoother texture ~ Purple Gold is slightly more purple ~ Hyphae and Lichen are grainier ~ Recolored Random button ~ Recolored Balloon button ~ Recolored Confetti button ~ Recolored Hair button ~ Recolored Pistil button ~ Reordered colors in many buttons for consistent "lighting" look ~ Rice, Candy, Nut Oil, Dye, Rainbow, and Spray Paint buttons display with dark text + Firefly alias 'Lightning Bug' ~ Shortened hiding setting labels ~ Language should automatically be set from browser preferences (Untested) ~ Re-saving after saving automatically fills in name, author, and description ~ Save browser thumbnails are crisper ~ Steam Deck compliance [Technical] + 'onShiftSelect' element property, called when selecting element while holding Shift + 'onlyConduct' element property, list of the only elements to conduct electricity into + 'renderTool' element property, renderer function called once per frame while selected + 'updateOrder' element property, prioritizes (positive) or deprioritizes (negative) tick order (integer; default 0) + autoResizeRatio(height,width) function (e.g. (16,9)) ~ 'shiftDown' variable is set even when in a menu [Bug Fixes] ~ Fixed: Placing Humans with Replace Mode causes a gory mess ~ Fixed: Using Human on Cloners cause a gory mess ~ Fixed: Bottom pixels can be cut off on certain window sizes ~ Fixed: Line-drawing preview is opaque when using a theme ~ Fixed: Text in Debug popup can't be selected ~ Fixed: onClicked passes "unknown" when no element is selected, now passes null ~ Fixed: onMouseDown doesn't get called on mobile ~ Fixed: onMouseDown is called when clicking out of a menu ~ Fixed: Using Heat Ray on Stained Glass can make Rainbows ~ Fixed: Saves with pipes containing invalid elements fail to load ~ Fixed: Some Fireflies stay illuminated after hitting another ~ Fixed: Liquid/gaseous pixels with 'skip' property can be displaced by denser pixels ~ Fixed: Salt isn't considered a food and can't be eaten by Humans ~ Fixed: Corn can't be dragged or put into Pipes
2025-12-17 12:08:39 -05:00
// dependOn("background_changer.js", ()=>{}, true);
2025-12-07 19:46:57 -05:00
dependOn("cursor.js", ()=>{}, true);
Version 1.13 - December 17, 2025 - Gizmos & Gadgets + Filter + Only allows the first element it touches to pass + Gate + Only allows pixels to pass if electrified + Only conducts electricity into itself and Wire + Canvas background images + Some presets and custom image URLs + Outline View (Press 5) + 2-wide and 4-wide brushes + Ruler tool in Special to measure lengths and angles + Manual element control + Shift-clicking certain element buttons prompt the user for more information + Erase tool allows only deleting certain elements + Cloners allow multiple comma-separated elements + Filters allow states (solid, liquid, or gas) or multiple elements + Sensors allow sensing specific elements + Portals allow the setting of channels + Void allows only deleting certain elements + Random tool allows pre-selected element choices + Explosion allows custom radius + Antibombs allow pre-selected explosion elements ~ Replaced LED Red, Green, and Blue with a single customizable LED ~ LEDs in old saves are automatically converted to the new element - Merged Superheaters and Freezers with Heaters and Coolers + Heaters can be heated to heat the same as a Superheater + Coolers can be cooled to cool the same as a Freezer - Removed Tesla Coil and Shocker ~ These elements in old saves are automatically converted to E-cloners ~ Drag tool is faster and smoother ~ Pixelated and colorful button borders + Translations for Swedish + Parital translations for Japanese, Thai, Arabic, Hebrew, and Viossa [Changes] + Pipes can transport pixels directly with Filter and Gate ~ Pipes no longer conduct heat ~ Brightened blue stage in Pipes ~ Incomplete pipes darken after being initialized + Oxygen can be used to dispose Molten Lead in reactors + Electrolysis of raw Salt + Smashing hot Cooked Meat releases Grease + Worms can compost Lettuce, Tomato, Corn, Pickle, and Bread + Rats can eat Spiders + Caramel and Herb make peppermint-colored sugar + Baking Soda can be made with Lye and Carbon Dioxide + Melting Ash with Dirt creates Tuff ~ Poison Gas no longer makes Slag from molten elements ~ Perfume can exist at room temperature ~ Acid doesn't dissolve Mercury or Diamond ~ Sulfur ignites when hot ~ All Cloud types can be smashed like Rain Cloud ~ Thermite burns into less Iron ~ Rock Wall deletes Light when placed over it for better eclipses - Removed Gallium-Sodium reaction ~ Copper Sulfate reacts with more carbs ~ Rainbow recipe uses Pointer instead of Flash ~ Bless deletes Strange Matter instead of turning it into Neutron + Static recipe + Malware can mix with some metals to create machine parts + Tea stains Paper + Unique fire color for Tin ~ Element buttons are consistently spaced on all sides ~ Recolored Pyrite ~ Acid has a smoother texture ~ Purple Gold is slightly more purple ~ Hyphae and Lichen are grainier ~ Recolored Random button ~ Recolored Balloon button ~ Recolored Confetti button ~ Recolored Hair button ~ Recolored Pistil button ~ Reordered colors in many buttons for consistent "lighting" look ~ Rice, Candy, Nut Oil, Dye, Rainbow, and Spray Paint buttons display with dark text + Firefly alias 'Lightning Bug' ~ Shortened hiding setting labels ~ Language should automatically be set from browser preferences (Untested) ~ Re-saving after saving automatically fills in name, author, and description ~ Save browser thumbnails are crisper ~ Steam Deck compliance [Technical] + 'onShiftSelect' element property, called when selecting element while holding Shift + 'onlyConduct' element property, list of the only elements to conduct electricity into + 'renderTool' element property, renderer function called once per frame while selected + 'updateOrder' element property, prioritizes (positive) or deprioritizes (negative) tick order (integer; default 0) + autoResizeRatio(height,width) function (e.g. (16,9)) ~ 'shiftDown' variable is set even when in a menu [Bug Fixes] ~ Fixed: Placing Humans with Replace Mode causes a gory mess ~ Fixed: Using Human on Cloners cause a gory mess ~ Fixed: Bottom pixels can be cut off on certain window sizes ~ Fixed: Line-drawing preview is opaque when using a theme ~ Fixed: Text in Debug popup can't be selected ~ Fixed: onClicked passes "unknown" when no element is selected, now passes null ~ Fixed: onMouseDown doesn't get called on mobile ~ Fixed: onMouseDown is called when clicking out of a menu ~ Fixed: Using Heat Ray on Stained Glass can make Rainbows ~ Fixed: Saves with pipes containing invalid elements fail to load ~ Fixed: Some Fireflies stay illuminated after hitting another ~ Fixed: Liquid/gaseous pixels with 'skip' property can be displaced by denser pixels ~ Fixed: Salt isn't considered a food and can't be eaten by Humans ~ Fixed: Corn can't be dragged or put into Pipes
2025-12-17 12:08:39 -05:00
dependOn("devsnacks.js", ()=>{}, true);
2025-12-07 19:46:57 -05:00
function minimizeElement(selector) {
document.querySelectorAll(selector).forEach(element => {
element.classList.add("minimized");
});
}
function maximizeAll() {
document.querySelectorAll(".minimized").forEach((e) => {
e.classList.remove("minimized");
})
}
document.head.insertAdjacentHTML("beforeend", `
<style>
.minimized {display:none!important}
button:focus, * {outline:0;}
#underDiv {opacity: 0.5; transition: opacity 0.5s}
#underDiv:hover {opacity: 1}
#categoryControls {flex-wrap: nowrap!important;}
#categoryControls button {padding-left:0.9em!important;padding-right:0.9em!important}
#promptParent {
top: 50%;
transform: translate(-50%, -50%);
}
</style>
`);
settings.pixelsize = "6w";
Version 1.13 - December 17, 2025 - Gizmos & Gadgets + Filter + Only allows the first element it touches to pass + Gate + Only allows pixels to pass if electrified + Only conducts electricity into itself and Wire + Canvas background images + Some presets and custom image URLs + Outline View (Press 5) + 2-wide and 4-wide brushes + Ruler tool in Special to measure lengths and angles + Manual element control + Shift-clicking certain element buttons prompt the user for more information + Erase tool allows only deleting certain elements + Cloners allow multiple comma-separated elements + Filters allow states (solid, liquid, or gas) or multiple elements + Sensors allow sensing specific elements + Portals allow the setting of channels + Void allows only deleting certain elements + Random tool allows pre-selected element choices + Explosion allows custom radius + Antibombs allow pre-selected explosion elements ~ Replaced LED Red, Green, and Blue with a single customizable LED ~ LEDs in old saves are automatically converted to the new element - Merged Superheaters and Freezers with Heaters and Coolers + Heaters can be heated to heat the same as a Superheater + Coolers can be cooled to cool the same as a Freezer - Removed Tesla Coil and Shocker ~ These elements in old saves are automatically converted to E-cloners ~ Drag tool is faster and smoother ~ Pixelated and colorful button borders + Translations for Swedish + Parital translations for Japanese, Thai, Arabic, Hebrew, and Viossa [Changes] + Pipes can transport pixels directly with Filter and Gate ~ Pipes no longer conduct heat ~ Brightened blue stage in Pipes ~ Incomplete pipes darken after being initialized + Oxygen can be used to dispose Molten Lead in reactors + Electrolysis of raw Salt + Smashing hot Cooked Meat releases Grease + Worms can compost Lettuce, Tomato, Corn, Pickle, and Bread + Rats can eat Spiders + Caramel and Herb make peppermint-colored sugar + Baking Soda can be made with Lye and Carbon Dioxide + Melting Ash with Dirt creates Tuff ~ Poison Gas no longer makes Slag from molten elements ~ Perfume can exist at room temperature ~ Acid doesn't dissolve Mercury or Diamond ~ Sulfur ignites when hot ~ All Cloud types can be smashed like Rain Cloud ~ Thermite burns into less Iron ~ Rock Wall deletes Light when placed over it for better eclipses - Removed Gallium-Sodium reaction ~ Copper Sulfate reacts with more carbs ~ Rainbow recipe uses Pointer instead of Flash ~ Bless deletes Strange Matter instead of turning it into Neutron + Static recipe + Malware can mix with some metals to create machine parts + Tea stains Paper + Unique fire color for Tin ~ Element buttons are consistently spaced on all sides ~ Recolored Pyrite ~ Acid has a smoother texture ~ Purple Gold is slightly more purple ~ Hyphae and Lichen are grainier ~ Recolored Random button ~ Recolored Balloon button ~ Recolored Confetti button ~ Recolored Hair button ~ Recolored Pistil button ~ Reordered colors in many buttons for consistent "lighting" look ~ Rice, Candy, Nut Oil, Dye, Rainbow, and Spray Paint buttons display with dark text + Firefly alias 'Lightning Bug' ~ Shortened hiding setting labels ~ Language should automatically be set from browser preferences (Untested) ~ Re-saving after saving automatically fills in name, author, and description ~ Save browser thumbnails are crisper ~ Steam Deck compliance [Technical] + 'onShiftSelect' element property, called when selecting element while holding Shift + 'onlyConduct' element property, list of the only elements to conduct electricity into + 'renderTool' element property, renderer function called once per frame while selected + 'updateOrder' element property, prioritizes (positive) or deprioritizes (negative) tick order (integer; default 0) + autoResizeRatio(height,width) function (e.g. (16,9)) ~ 'shiftDown' variable is set even when in a menu [Bug Fixes] ~ Fixed: Placing Humans with Replace Mode causes a gory mess ~ Fixed: Using Human on Cloners cause a gory mess ~ Fixed: Bottom pixels can be cut off on certain window sizes ~ Fixed: Line-drawing preview is opaque when using a theme ~ Fixed: Text in Debug popup can't be selected ~ Fixed: onClicked passes "unknown" when no element is selected, now passes null ~ Fixed: onMouseDown doesn't get called on mobile ~ Fixed: onMouseDown is called when clicking out of a menu ~ Fixed: Using Heat Ray on Stained Glass can make Rainbows ~ Fixed: Saves with pipes containing invalid elements fail to load ~ Fixed: Some Fireflies stay illuminated after hitting another ~ Fixed: Liquid/gaseous pixels with 'skip' property can be displaced by denser pixels ~ Fixed: Salt isn't considered a food and can't be eaten by Humans ~ Fixed: Corn can't be dragged or put into Pipes
2025-12-17 12:08:39 -05:00
let __setMouseColor = (color) => {
mouseColor = color;
settings.mouseColor = color;
}
2025-12-07 19:46:57 -05:00
contentModOptions = {
Version 1.13 - December 17, 2025 - Gizmos & Gadgets + Filter + Only allows the first element it touches to pass + Gate + Only allows pixels to pass if electrified + Only conducts electricity into itself and Wire + Canvas background images + Some presets and custom image URLs + Outline View (Press 5) + 2-wide and 4-wide brushes + Ruler tool in Special to measure lengths and angles + Manual element control + Shift-clicking certain element buttons prompt the user for more information + Erase tool allows only deleting certain elements + Cloners allow multiple comma-separated elements + Filters allow states (solid, liquid, or gas) or multiple elements + Sensors allow sensing specific elements + Portals allow the setting of channels + Void allows only deleting certain elements + Random tool allows pre-selected element choices + Explosion allows custom radius + Antibombs allow pre-selected explosion elements ~ Replaced LED Red, Green, and Blue with a single customizable LED ~ LEDs in old saves are automatically converted to the new element - Merged Superheaters and Freezers with Heaters and Coolers + Heaters can be heated to heat the same as a Superheater + Coolers can be cooled to cool the same as a Freezer - Removed Tesla Coil and Shocker ~ These elements in old saves are automatically converted to E-cloners ~ Drag tool is faster and smoother ~ Pixelated and colorful button borders + Translations for Swedish + Parital translations for Japanese, Thai, Arabic, Hebrew, and Viossa [Changes] + Pipes can transport pixels directly with Filter and Gate ~ Pipes no longer conduct heat ~ Brightened blue stage in Pipes ~ Incomplete pipes darken after being initialized + Oxygen can be used to dispose Molten Lead in reactors + Electrolysis of raw Salt + Smashing hot Cooked Meat releases Grease + Worms can compost Lettuce, Tomato, Corn, Pickle, and Bread + Rats can eat Spiders + Caramel and Herb make peppermint-colored sugar + Baking Soda can be made with Lye and Carbon Dioxide + Melting Ash with Dirt creates Tuff ~ Poison Gas no longer makes Slag from molten elements ~ Perfume can exist at room temperature ~ Acid doesn't dissolve Mercury or Diamond ~ Sulfur ignites when hot ~ All Cloud types can be smashed like Rain Cloud ~ Thermite burns into less Iron ~ Rock Wall deletes Light when placed over it for better eclipses - Removed Gallium-Sodium reaction ~ Copper Sulfate reacts with more carbs ~ Rainbow recipe uses Pointer instead of Flash ~ Bless deletes Strange Matter instead of turning it into Neutron + Static recipe + Malware can mix with some metals to create machine parts + Tea stains Paper + Unique fire color for Tin ~ Element buttons are consistently spaced on all sides ~ Recolored Pyrite ~ Acid has a smoother texture ~ Purple Gold is slightly more purple ~ Hyphae and Lichen are grainier ~ Recolored Random button ~ Recolored Balloon button ~ Recolored Confetti button ~ Recolored Hair button ~ Recolored Pistil button ~ Reordered colors in many buttons for consistent "lighting" look ~ Rice, Candy, Nut Oil, Dye, Rainbow, and Spray Paint buttons display with dark text + Firefly alias 'Lightning Bug' ~ Shortened hiding setting labels ~ Language should automatically be set from browser preferences (Untested) ~ Re-saving after saving automatically fills in name, author, and description ~ Save browser thumbnails are crisper ~ Steam Deck compliance [Technical] + 'onShiftSelect' element property, called when selecting element while holding Shift + 'onlyConduct' element property, list of the only elements to conduct electricity into + 'renderTool' element property, renderer function called once per frame while selected + 'updateOrder' element property, prioritizes (positive) or deprioritizes (negative) tick order (integer; default 0) + autoResizeRatio(height,width) function (e.g. (16,9)) ~ 'shiftDown' variable is set even when in a menu [Bug Fixes] ~ Fixed: Placing Humans with Replace Mode causes a gory mess ~ Fixed: Using Human on Cloners cause a gory mess ~ Fixed: Bottom pixels can be cut off on certain window sizes ~ Fixed: Line-drawing preview is opaque when using a theme ~ Fixed: Text in Debug popup can't be selected ~ Fixed: onClicked passes "unknown" when no element is selected, now passes null ~ Fixed: onMouseDown doesn't get called on mobile ~ Fixed: onMouseDown is called when clicking out of a menu ~ Fixed: Using Heat Ray on Stained Glass can make Rainbows ~ Fixed: Saves with pipes containing invalid elements fail to load ~ Fixed: Some Fireflies stay illuminated after hitting another ~ Fixed: Liquid/gaseous pixels with 'skip' property can be displaced by denser pixels ~ Fixed: Salt isn't considered a food and can't be eaten by Humans ~ Fixed: Corn can't be dragged or put into Pipes
2025-12-17 12:08:39 -05:00
// "Set Background": () => {
// promptChoose("", [
// "Custom", "Grassland", "Sky", "Sky Warm", "Sky Pink", "Sky Purple", "Sky Dark"
// ], r => {
// if (r === "Custom") setCanvasBGPrompt();
// else if (r === "Grassland") {
// setCanvasBG("https://i.imgur.com/Id9WZv4.png", "#2d6138");
// __setMouseColor("#000000");
// }
// else if (r === "Sky") {
// setCanvasBG("https://i.imgur.com/Er068gC.png", "#647690");
// __setMouseColor("#000000");
// }
// else if (r === "Sky Warm") {
// setCanvasBG("https://i.imgur.com/1GWI5xd.png", "#904f45");
// __setMouseColor("#000000");
// }
// else if (r === "Sky Pink") {
// setCanvasBG("https://i.imgur.com/f5gltLn.png", "#435897");
// __setMouseColor("#FFFFFF");
// }
// else if (r === "Sky Purple") {
// setCanvasBG("https://i.imgur.com/1KNCIwJ.png", "#763CB5");
// __setMouseColor("#FFFFFF");
// }
// else if (r === "Sky Dark") {
// setCanvasBG("https://i.imgur.com/wbYia5p.png", "#181628");
// __setMouseColor("#FFFFFF");
// }
// })
// },
// "Clear Background": () => {
// clearCanvasBG();
// mouseColor = "rgba(255,255,255)";
// delete settings.mouseColor;
// },
2025-12-07 19:46:57 -05:00
"Set Cursor Color": () => {
promptInput("Enter an image URL. Leave blank to clear background.", (color) => {
if (!color) {
delete settings.mouseColor;
return;
}
mouseColor = color;
settings.mouseColor = color;
}, "Mouse Color")
},
"Minimize UI": () => {
minimizeElement("#stats");
minimizeElement("#extraInfo");
minimizeElement("#bottomInfoBox");
minimizeElement("#logDiv");
minimizeElement("#toolControls");
document.getElementById("category-tools").style.borderTop = "6px black solid";
document.getElementById("category-tools").style.paddingTop = "0.5em";
resetPrompt();
},
"Maximize UI": () => {
maximizeAll();
},
"Content Hub": () => {
window.open("https://r74n.com/content/", '_blank');
},
}
keybinds.KeyV = () => {
promptChoose("", Object.keys(contentModOptions), (r) => {
contentModOptions[r]();
})
}
elements.invis = {
renderer: (pixel,ctx) => {
if (currentElement === "invis") {
drawSquare(ctx,"#00ff00",pixel.x,pixel.y);
}
},
behavior: (pixel) => {
doDefaults(pixel);
},
onPlace: (pixel) => {
pixel.alpha = 0;
},
tool: (pixel) => {
pixel.alpha = 0;
},
category: "special",
color: "#00ff00"
}
window.addEventListener("load", () => {
contentModOptions["Minimize UI"]();
})