-
Couldn't load subscription status.
- Fork 1
Image Overrides
The imageOverrides.json file allows you to override default graphics in the game.
The file is not required, and will only be loaded by setting the imageOverrides property of your mod.json to true.
In a console, simply run a command to set up image overrides in your mod. For more information on this command, see this guide.
cd "C:/Program Files (x86)/Steam/steamapps/common/Wayward/mods" ..\wayward.cmd +mod create HelloWorld +imageOverrides
[
{
"replace": "doodad/sprucetree"
},
{
"replace": "doodad/mapletree",
"imagePath": "doodad/superSpecialTree",
"animated": true
}
]The replace property specifies the path to the graphic you intend to replace.
- If the path doesn't end with
.png, it is appended automatically.
The imagePath property specifies the mod's path for the image.
- If the path doesn't end with
.png, it is appended automatically. - If the
imagePathproperty is not provided, it defaults to using the same path asreplace, but in your mod directory.- Using the full example above:
-
static/image/doodad/sprucetree.pngwould be replaced with<modname>/static/image/doodad/sprucetree.png -
static/image/doodad/mapletree.pngwould be replaced with<modname>/static/image/doodad/superSpecialTree.png
-
- Using the full example above:
The animated property takes a boolean representing whether or not the image is an animated strip.
- If the property isn't provided it defaults to
false.
You can see an example of image overrides in action in the Trees on Fire mod.
Interface:
type IImageOverrides = Array<string | IImageOverride>;
interface IImageOverride {
replace: string;
animated?: boolean;
imagePath?: string;
}- Script Mods — Add content or tweak functionality with scripts.
- Languages & Extensions — Add new languages or tweak existing ones.
- Customizations — Add new hair colors, skin tones, and hairstyles to the game.
- Stylesheets — Add new CSS to the game in order to change the appearance of the UI.
- Resources & Examples — Help channels and mod examples.
Getting Started
- Introduction
- Prerequisites
+mod create&+mod update- mod.json
- Extracting Assets
- Resources & Examples
- Frequently Asked Questions
Mod Content
Script Documentation
- Using Translations
- Registrations
- Event Handlers
- Injection
- Adding Items
- Adding Doodads
- Adding Creatures
- Adding Magical Properties
- Actions & Multiplayer
- Adding Dialogs
- Context Menu/Action Bar Actions
- Inter-mod Registries
(apologies for all the missing guides, we'll get to them at some point)