Methods_T_MSCLoader_Settings - piotrulos/MSCModLoader GitHub Wiki

Settings Methods

Methods

AddButton(String, Action, Boolean) Add button that can execute function.
AddButton(String, Action, SettingsButton.ButtonIcon, Boolean) Add button that can execute function.
AddButton(String, Action, Texture2D, Boolean) Add button that can execute function.
AddButton(String, Action, Color, Color, Boolean) Add button that can execute function.
AddButton(String, Action, Color, Color, SettingsButton.ButtonIcon, Boolean) Add button that can execute function.
AddButton(String, Action, Color, Color, Texture2D, Boolean) Add button that can execute function.
AddCheckBox Add checkbox to settings menu Can execute action when its value is changed.
AddCheckBoxGroup Add checkbox group (radio buttons) to settings menu Can execute action when its value is changed.
AddColorPickerRGB(String, String, Action, Boolean) Add Color Picker with RGB sliders
AddColorPickerRGB(String, String, Color32, Action, Boolean) Add Color Picker with RGB sliders
AddColorPickerRGBA(String, String, Action, Boolean) Add Color Picker with RGBA sliders
AddColorPickerRGBA(String, String, Color32, Action, Boolean) Add Color Picker with RGBA sliders
AddDropDownList Add DropDown List
AddHeader(String, Boolean, Boolean) Add Header, header groups settings together
AddHeader(String, Color, Boolean, Boolean) Add Header, header groups settings together
AddHeader(String, Color, Color, Boolean, Boolean) Add Header, header groups settings together
AddResetButton Add custom reset to default button
AddSaveResetButton Add Reset button to reset your mod's save file (only works when using unified save system)
AddSlider(String, String, Int32, Int32, Int32, Action, String[], Boolean) Add Integer Slider to settings menu
AddSlider(String, String, Single, Single, Single, Action, Int32, Boolean) Add Slider to settings menu
AddText Add just a text
AddTextBox(String, String, String, String, Boolean) Add TextBox where user can type any text
AddTextBox(String, String, String, String, ContentType, Boolean) Add TextBox where user can type any text
Get Undocumented crap don't use
Obsolete.
HideResetAllButton Hides "reset all settings to default" button.

See Also

Reference

Settings Class
MSCLoader Namespace

⚠️ **GitHub.com Fallback** ⚠️