Начните вводить название — например, MoreHead, Sodium или PEAK

SettingsApi — иконка
Обложка MuckМод для Muck

SettingsApi

от Terrain

Settings API for allowing mods to add settings.

  • Легендарный
  • 163,5 тыс. скачиваний
  • Версия 1.1.1
  • Обновлён 9 июля 2021
  • Не обновлялся больше года

О моде SettingsApi

SettingsApi — мод для Muck (Мак) от автора Terrain. Settings API for allowing mods to add settings.

Его скачали 163,5 тыс. раз: это 10-е место среди модов Muck в нашем каталоге, редкость — «легендарный» (топ-5% по скачиваниям). Мод давно не обновлялся — проверьте совместимость с текущей версией игры, актуальная версия — 1.1.1.

Это библиотека: сама по себе ничего не добавляет, но нужна другим модам.

Полное описание SettingsApi

Текст автора на языке оригинала

Muck Settings API

This is a helper mod made to allow easier addition of settings to mods that require configuration, all in the in-game settings menu.

An example of implementing this library can be found in the "MuckSettingsExample" subdirectory of this repository.

To add your own settings, first patch one of the 5 tabs in `MuckSettings.Settings: either Gameplay, Controls, Graphics, Video or Audio. Don't worry about the settings overflowing, all pages are scrollable. Next, make sure you take a MuckSettings.Settings.Page argument called page in your patch, and you can add settings to that page. To save your settings, you should be using BepInEx.Configuration;, and create a ConfigFile to store your config. Make sure to specify that config.SaveOnConfigSet = true;` or else your config willl not save when the user changes the settings!

Different settings

Boolean Setting

This one is fairly straightforward. It's a toggle that can be either on, or off.

  • You should use `page.AddBoolSetting(string name, ConfigEntry configEntry) to create a setting that assigns the associated ConfigEntry` from your BepInEx config. The first parameter is the display name for the setting.
  • You can use `page.AddBoolSetting(string name, bool defaultValue, Action update) to create a low-level setting where you control it. name is the name that displays for the option. defaultValue is the value to show when the page loads, and update` is the Action to call with the new value whenever the user changes the setting.

Scroll Setting

A scroll setting lets the user scroll through a list of predetermined options.

  • You should use `page.AddScrollSetting(string name, ConfigEntry configEntry) where T : Enum to create a scroll setting from enum values with the given ConfigEntry`. For this to work correctly you need the values to be consecutive from 0 (i.e. just the names in the declaration, no values assigned).
  • You can use `page.AddScrollSetting(string name, T defaultValue, Action update) where T : Enum to create a scroll setting from enum values, starting at the specified defaultValue and telling when it changes using the update` callback.
  • You can use `page.AddScrollSetting(string name, int index, Action update) where T : Enum`. It works very similarly to the one above, but this one takes the value of the enums, and not the enum object straight up. You should probably only use this when you actually need the index values, such as when storing them and you cannot change that (i.e. the vanilla game's settings store, which is the only reason this overload exists).
  • You can use `page.AddScrollSetting(string name, string[] values, int defaultIndex, Action update) to create a with name still being the name that displays, values is the array of options to show, defaultIndex the index you loaded to show by default, and update` is a callback giving you the index of the option whenever the user changes it.

Slider Setting

A slider setting is... a slider, that you use to select a number within a range. The sliders are only whole numbers, and you can use divison if you want fractional values, such as with the music slider in the base game, which actually ranges from 0-1 internally but is divided by 10 since the slider range is 0-10.

  • You should use `page.AddSliderSetting(string name, ConfigEntry configEntry, int min, int max) to create a slider from the given ConfigEntry, ranging from min-max and with the display name name`.
  • You can use `page.AddSliderSetting(string name, int defaultValue, int min, int max, Action update) to create a slider setting with the given name and defaultValue, ranging from min to max and telling you when it changes with update`.

Control Setting

A control setting allows the user to choose a button on their keyboard or mouse to bind a specific action to.

  • You should use `page.AddControlSetting(string name, ConfigEntry configEntry) to create a control setting from the given ConfigEntry. name` is the display name in the settings page.
  • You can use `page.AddControlSetting(string name, KeyCode defaultValue, Action update) to create a control setting from the given name, with the defaultValue and the callback update`.

Two bool setting

Mainly in order to compress "inverted mouse" options, there's a more compact alternative: Two bool setting.

  • You should use `page.AddTwoBoolSetting(string name, string label1, string label2, ConfigEntry configEntry1, ConfigEntry configEntry2) to create a two bool setting from the given name, label1 for configEntry1 and label2 for ConfigEntry2. Usually, label1 and label2 will be something like "X", "Y"`.
  • You can use `page.AddTwoBoolSetting(string name, string label1, string label2, bool defaultValue1, bool defaultValue2, Action update) to create a two bool setting from raw values. Its first 3 parameters are the labels for the setting name, for the first value `label1, and the for second value label2. The defaultValue1 and defaultValue2 parameters are the values that are assigned to the options when the page loads, and the last parameter update` is a callback to when either option changes.

There's also a Resolution setting, which i will not be documenting here because its only purpose is the resolution setting in the game, which is different from the rest.

Моды, которым нужен SettingsApi

25 в каталоге · показаны самые популярные

FpsBooster — иконка

FpsBooster

Provides settings to change rendering distance and disable post-processing, particles and world mesh shadows, which greatly improves performance on low-end devices.

Эпический73,9 тыс.Библиотека

Crouch — иконка

Crouch

Enables the crouching functionality already in the game.

Редкий67,1 тыс.Библиотека

CommonFly — иконка

CommonFly

A common implementation of a fly mode.

Редкий66,2 тыс.Библиотека

BetterSettingsApi — иконка

BetterSettingsApi

Mod of Terrain's SettingsApi mod. Fixes incompatibilities with other mods like SaveUtility. Reverts back original settings and makes the menu a little bit better.

Редкий45,2 тыс.Библиотека

BetterControls — иконка

BetterControls

Mod that aims to expand the available controls and customize them, all for a smoother interaction with the game.

Редкий41,8 тыс.Библиотека

Mucalamity — иконка

Mucalamity

a modpack containing around 30 mods or something, its alright i guess

Редкий23,2 тыс.Сборки

Как установить SettingsApi

Файл скачивается с официального сервера Thunderstore, без перезаливов и сторонних установщиков

Подробная инструкция для Muck
  1. Скачайте менеджер модов r2modman (или Gale) и выберите в нём игру Muck.
  2. Создайте профиль — так моды не смешаются с чистой версией игры.
  3. Найдите «SettingsApi» во вкладке Online и нажмите Download — BepInEx и все зависимости подтянутся сами.
  4. Нажмите «Start modded» — игра запустится с модами.
  5. Для мультиплеера всем игрокам нужен одинаковый набор модов: в r2modman профиль можно экспортировать кодом и отправить друзьям.
Вы автор мода? Поставьте ссылку на русское описание

Вставьте значок в описание на Thunderstore, в README или в Discord — русскоязычные игроки сразу попадут на страницу с переводом и инструкцией.

Описание на русском — Модка
Markdown[![Описание на русском — Модка](https://modka.app/badge.png)](https://modka.app/muck/terrain-settingsapi/)
HTML<a href="https://modka.app/muck/terrain-settingsapi/"><img src="https://modka.app/badge.png" alt="Описание на русском — Модка" height="44"></a>
Steam (BBCode)[url=https://modka.app/muck/terrain-settingsapi/]Описание на русском — Модка[/url]

Частые вопросы о SettingsApi

Как установить SettingsApi?

Скачайте менеджер модов r2modman (или Gale) и выберите в нём игру Muck. Создайте профиль — так моды не смешаются с чистой версией игры. Найдите «SettingsApi» во вкладке Online и нажмите Download — BepInEx и все зависимости подтянутся сами. Нажмите «Start modded» — игра запустится с модами. Для мультиплеера всем игрокам нужен одинаковый набор модов: в r2modman профиль можно экспортировать кодом и отправить друзьям.

Безопасен ли SettingsApi?

Файл скачивается с официального сервера Thunderstore, куда его загрузил Terrain. Мы не перезаливаем и не изменяем моды.

Нужно ли друзьям ставить SettingsApi?

Автор не указал, клиентский это мод или серверный. Безопаснее, чтобы одинаковый набор модов был у всех игроков в лобби: проще всего поделиться профилем r2modman.

Когда SettingsApi обновлялся последний раз?

9 июля 2021, актуальная версия — 1.1.1. Это больше года назад: перед установкой проверьте, работает ли мод на текущей версии игры.

Похожие моды

Все моды на Muck
Free Chests — иконка

Free Chests

This is a Bepinex mod for Muck. It makes it so interacting with any powerup chest will open it regardless of how much it costs. I was using UnityExplorer to open chests & my friend said I should make a mod for that.

Эпический156 тыс.Читы

Powerup Config — иконка

Powerup Config

Adds a config file for how many powerups you recieve from chests

Эпический150,5 тыс.Читы

God Powers 2 — иконка

God Powers 2

A Mod Menu For Muck. With Custom Weapons, Flying, Etc. This Is The Second Version Of Muck God Powers

Редкий65,3 тыс.Дополнения

GiveItems — иконка

GiveItems

This mod creates a new command /give 'name or id of the item' 'how much'.

Редкий53,6 тыс.Читы

InfiniteStats — иконка

InfiniteStats

This is mod made by Frogger. Press Right Shift in game to turn it On/Off

Редкий53,5 тыс.Читы

ModMenu — иконка

ModMenu

A miscellaneous modding menu.

Редкий46,7 тыс.Читы