EladNLG-ModSettings icon

ModSettings

A mod that adds a settings menu for modders to add their own settings in - with a filter to find certain ones easily.

Last updated 2 weeks ago
Total downloads 2293
Total rating 2 
Categories Mods Client-side Language: EN
Dependency string EladNLG-ModSettings-1.1.1
Dependants 4 other mods depend on this mod

README

ModSettings

A mod that adds a settings menu for modders to add their own settings in - with a filter to find certain ones easily.


Modder's Guide

Use these functions in an UI script which receives the Before UI Callback.

Normal Settings

void function AddConVarSetting( string conVar, string displayName, string modName, string type = "" )

Adds a setting to the menu.

Parameters

  • conVar - the ConVar to change.
  • displayName - the text to display as the label for the setting.
  • modName - the category. Change this when adding a new setting to separate the categories.
  • type - the type of the ConVar - can be: float, float2, float3/vector or int.

Example

AddConVarSetting("ns_private_match_countdown_length", "Private Match Countdown Duration", "Northstar - Private Match", "float")

Enum Settings

void function AddConVarSettingEnum( string conVar, string displayName, string modName, array<string> values )

Adds an enum setting to the menu.

Parameters

  • conVar - the ConVar to change.
  • displayName - the text to display as the label for the setting.
  • modName - the category. Change this when adding a new setting to separate the categories.
  • values - the labels for the values in the enum. The ConVar will be set to the index of the value in the array.

Example

// The array is set so that No is in the 0th index and Yes is in the 1st.
// The mod will set ns_should_return_to_lobby to 0 when No is selected and to 1 when Yes is selected.
// The mod will let the player switch between values using the arrow keys instead of typing the value in.
AddConVarSettingEnum("ns_should_return_to_lobby", "Return To Lobby After Match End", "Northstar - Server", [ "No", "Yes" ])

Available versions

Please note that the install buttons only work if you have compatible client software installed, such as the Thunderstore Mod Manager. Otherwise use the zip download links instead.

Upload date Version number Downloads Download link  
2022-5-5 1.1.1 951 Version 1.1.1 Install
2022-5-5 1.1.0 12 Version 1.1.0 Install
2022-4-19 1.0.3 473 Version 1.0.3 Install
2022-3-29 1.0.1 530 Version 1.0.1 Install
2022-3-22 1.0.0 327 Version 1.0.0 Install