mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-13 18:21:51 +00:00
31 lines
946 B
JavaScript
31 lines
946 B
JavaScript
|
|
/**
|
||
|
|
* This example shows how to modify the builtin themes. If you want to create your own theme,
|
||
|
|
* be sure to check out the "custom_theme" example
|
||
|
|
*/
|
||
|
|
registerMod(() => {
|
||
|
|
return class ModImpl extends shapez.Mod {
|
||
|
|
constructor(app, modLoader) {
|
||
|
|
super(
|
||
|
|
app,
|
||
|
|
{
|
||
|
|
website: "https://tobspr.io",
|
||
|
|
author: "tobspr",
|
||
|
|
name: "Mod Example: Modify Builtin Themes",
|
||
|
|
version: "1",
|
||
|
|
id: "modify-theme",
|
||
|
|
description: "Shows how to modify builtin themes",
|
||
|
|
},
|
||
|
|
modLoader
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
init() {
|
||
|
|
shapez.THEMES.light.map.background = "#eee";
|
||
|
|
shapez.THEMES.light.items.outline = "#000";
|
||
|
|
|
||
|
|
shapez.THEMES.dark.map.background = "#245";
|
||
|
|
shapez.THEMES.dark.items.outline = "#fff";
|
||
|
|
}
|
||
|
|
};
|
||
|
|
});
|