Extra Settings API

This is a dependency mod. This mod may be required by a few mods


227 Likes

332576 Downloads
Version 1.8.1LatestUp to date
  • Fixed an error with the one of the new functions

Released on 2023-07-11

Version 1.8.0Up to date
  • Many code tweaks (including updating to use the new ModEvents)
  • Added new setting type: Multi Button
  • Added the ability to create sections with the mod's settings for better organization
  • Added new access control modes for settings

Released on 2023-07-07

Version 1.7.11Up to date
  • Removed debug message that was left in the last update

Released on 2023-06-01

Version 1.7.10Up to date
  • Small bug fix

Released on 2023-06-01

Version 1.7.9Up to date
  • Fixed a bug in the last update

Released on 2023-02-05

Version 1.7.8Up to date
  • Made some tweaks that should fix implementation methods not working sometimes

Released on 2023-02-04

Version 1.7.7Up to date
  • Uploaded the wrong file last update, sorry
  • Fixed some more errors

Released on 2022-09-17

Version 1.7.6Up to date
  • Reworked the mod patcher to fix some errors
  • Added a simple api function for mods to trigger a global settings save

Released on 2022-09-17

Version 1.7.5Up to date
  • Changed the "unset keybind" from pressing escape while setting to right clicking the keybind (so you left click to start setting or right click to unset)

Released on 2022-08-01

Version 1.7.4Up to date
  • Made it so that pressing Esc while setting a keybind will unset it instead of setting it to Esc. (This will also work on the main game keybinds)

Released on 2022-08-01

Version 1.7.3Up to date
  • Fixed an issue with certain mod's settings conflicting

Released on 2022-07-15

Version 1.7.2Up to date
  • Fixed a mistake in the input's code

Released on 2022-07-12

Version 1.7.1Up to date
  • Attempted to fix an issue with inputs not giving mods their value

Released on 2022-07-12

Version 1.7.0Up to date
  • Added an option for mods to have a custom display text for sliders

Released on 2022-07-10

Version 1.6.12Up to date
  • Improved detection of mod's json files

Released on 2022-06-29

Version 1.6.11Up to date
  • Fixed an issue with the default default value for data type settings
  • Added some more functions for the interface

Released on 2022-06-27

Version 1.6.10Up to date
  • Minor tweaks to value loading

Released on 2022-06-01

Version 1.6.9Untested
  • Added a dropdown button next to mod titles in the settings list, clicking this will show/hide the mod's settings. This will mean less scrolling to find the mod that you're looking for
  • Changed the API load event in mods to happen after the mod should have loaded (this should stop random mods logging errors during their load event)
  • Improved the error information when a mod has an error occur during one of its events
  • Added a alternative interface system with the API. This will make it simpler to implement the API's functions in a mod's code
  • Added an option to move the API's method and field implementations to another class (other than the mod's main class)
  • Added an new option for input type settings that lets mods limit the types of characters that are allowed
  • Some more minor tweaks that should polish things a bit more

Released on 2022-06-01

Version 1.6.6Untested
  • Fixed more bugs related to computer language settings

Released on 2021-06-25

Version 1.6.5Untested
  • Fixed issue that was causing some settings to load wrong for german users

Released on 2021-06-23

Version 1.6.4Untested
  • Fixed errors in mods, using the API, causing the API to malfunction

Released on 2021-06-04

Version 1.6.3Untested
  • Fixed an issue that was causing settings to not save at the correct time

Released on 2021-06-01

Version 1.6.2Untested
  • Fixed world settings sometimes not loading (finally found the issue)

Released on 2021-05-26

Version 1.6.1Untested
  • Fixed minor error that was causing some mods settings to reset

Released on 2021-05-08

Version 1.6.0Untested
  • Fixed very minor issue with the saving system
  • Added a new control type: Input

Released on 2021-05-02

Version 1.5.8Untested
  • Fixed an error with the new Data setting type

Released on 2021-04-20

Version 1.5.7Untested
  • Removed some debugging messages

Released on 2021-04-19

Version 1.5.6Untested
  • Fixed an issue with the Data control type

Released on 2021-04-19

Version 1.5.5Untested
  • Fixed changing keybinds via code not keeping changes
  • Fixed issues with control labels changing when switching language setting
  • Fixed some issues with percentage typed slider controls
  • Added a new control type: Data

Released on 2021-04-19

Version 1.5.1Untested
  • (should) Fix a lag issue with mods erroring while loading

Released on 2021-03-22

Version 1.5.0Untested
  • Added several new functions: GetSettingText, SetSettingText, GetComboboxContent, SetComboboxContent, AddComboboxContent, ResetComboboxContent, ResetSetting, ResetAllSettings
  • Due to the addition of GetSettingText and SetSettingText, the settings now use a separate storage for their reference name and display text. However mods will not NEED to update for this change due to programmed reverse compatibility.

Released on 2021-03-21

Version 1.4.1Untested
  • Fixed bug with trying to open settings while in a world. (dunno how I missed it)

Released on 2021-03-16

Version 1.4.0Untested
  • Fixed issue with world unloading causing multiple significant errors (finally)
  • "SettingsCreate" event is still called but is now obsolete due to changes. Use the "SettingsOpen" event instead

Released on 2021-03-16

Version 1.2.10Untested
  • More fixes to the world specific saving system
  • Fixed an issue with loading, unloading and loading a world in the same session
  • Fixed occasional issue that would cause all the settings to throw errors when trying to change them

Released on 2021-03-15

Version 1.2.8Untested
  • Fixed issues with keybinds becoming invalid after certain actions
  • Added a few new functions related to keybinds
  • Fixed a bug that was causing world specific settings to not save

Released on 2021-03-15

Version 1.2.5Untested
  • Fixed various loading issues
  • Added a new option for settings, Accessibility:
    • Both, this is the default mode.
    • Mainmenu, in this mode the setting can only be changed while on the main menu
    • World, in this mode the setting can only be changed in world (settings are saved in the world)
    • GlobalWorld, in this mode the setting can only be changed in world (settings are shared between worlds)

Released on 2021-03-14

Version 1.2.0Untested
  • Fixed rounded value fetching for percentage slider
  • Fixed issue that would occasionally occur when loading a new mod
  • Added 3 new setting types:
    • Keybind
    • Plain text (not an input. literally just text)
    • Button (with accompanying event)

Released on 2021-03-14

Version 1.1.0Untested
  • Fixed major bug causing certain values to not be assigned
  • Improved error messages

Released on 2021-03-13

Version 1.0.0Untested

This is the first version.

Released on 2021-03-13