Table of Contents
ModHelperComponent that's the base panel for the visual representation of a ModSetting
public class ModHelperOption : BTD_Mod_Helper.Api.Components.ModHelperComponent
Inheritance UnityEngine.MonoBehaviour ModHelperComponent ModHelperOption
Derived
↳ ModHelperCategory
The bottom row of elements containing the reset button and whatever input is added
public BTD_Mod_Helper.Api.Components.ModHelperPanel BottomRow { get; set; }
The Icon for this setting. Will be null if no Icon provided
public BTD_Mod_Helper.Api.Components.ModHelperImage Icon { get; set; }
The button that popups the description when pressed
public BTD_Mod_Helper.Api.Components.ModHelperButton InfoButton { get; set; }
The displayed name for this setting
public BTD_Mod_Helper.Api.Components.ModHelperText Name { get; set; }
The button that resets this setting
public BTD_Mod_Helper.Api.Components.ModHelperButton ResetButton { get; set; }
The image shown when this setting requires a restart
public BTD_Mod_Helper.Api.Components.ModHelperImage RestartIcon { get; set; }
The top row of elements containing icon, name, info button
public BTD_Mod_Helper.Api.Components.ModHelperPanel TopRow { get; set; }
Creates a new MoodHelperOption
public static BTD_Mod_Helper.Api.Components.ModHelperOption Create(string displayName, string description=null, string icon=null);
displayName
System.String
The displayed name of the mod setting
description
System.String
The description of the mod setting, if any
icon
System.String
The icon of the mod setting, if any
ModHelperOption
The created ModHelperOption
Creates a new MoodHelperOption
protected static T Create<T>(string displayName, string description=null, string icon=null)
where T : BTD_Mod_Helper.Api.Components.ModHelperOption;
T
displayName
System.String
The displayed name of the mod setting
description
System.String
The description of the mod setting, if any
icon
System.String
The icon of the mod setting, if any
T
The created ModHelperOption
Adds an action to the reset button
public void SetResetAction(UnityAction action);