Resource icon

Options API 0.3.0

Code bundle that simplifies adding new game settings for other modders.

## Features
* Provides a small api for declaring new options and reading their current values
* Adds the setting to the in-game (or shell) ui
* Handles all reading and writing from localStorage
* Adds namespaces to keep options between mods separate (all mods must currently share one localStorage key)
* Leaves options created by other mods in place
* Conforms to the game's Settings workflow, allowing players to cancel changes with no effect and reset default values just like normal settings

## Installation
Not installable by itself. Requires integration into new mods. See instructions on github below.

## Example mod
Choose Starting Layers mod

## Using this in your mod
Instructions on github
Author
tbq
Downloads
243
Views
1,367
First release
Last update

Ratings

5.00 star(s) 1 ratings

More resources from tbq

Latest updates

  1. Small Improvements

    Changes in 0.3.0 Adds the 'Mods' section to the Game settings tab if it's not already present...
  2. Downgrade from mod

    Instead of packaging this as a mod, which requires multiple steps for users to install properly...

Latest reviews

Thx, really make it easy
Back
Top Bottom