Skip to Main Content

BTD_Mod_Helper​.Api​.ModOptions​.ModSettingHotkey


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.ModOptions

ModSettingHotkey Class

ModSetting for a customizable Hotkey

public class ModSettingHotkey : BTD_Mod_Helper.Api.ModOptions.ModSetting<string>

Inheritance System.ObjectModSettingBTD_Mod_Helper.Api.ModOptions.ModSetting<System.String>  ModSettingHotkey

Constructors

ModSettingHotkey() Constructor

Initializes a new instance of the System.Object class.

public ModSettingHotkey();

Methods

ModSettingHotkey.IsPressed() Method

Returns whether the Hotkey is currently being pressed / held

public bool IsPressed();

Returns

System.Boolean

ModSettingHotkey.JustPressed() Method

Returns whether the Hotkey was pressed down on this frame

public bool JustPressed();

Returns

System.Boolean

ModSettingHotkey.JustReleased() Method

Returns whether the Hotkey just went from being pressed to not being pressed on this frame

public bool JustReleased();

Returns

System.Boolean

ModSettingHotkey.SetValue(object) Method

Sets the current value of this ModSetting

public override void SetValue(object val);

Parameters

val System.Object

The new value

Operators

ModSettingHotkey.implicit operator ModSettingHotkey(KeyCode) Operator

Creates a new ModSettingHotkey from a KeyCode

public static BTD_Mod_Helper.Api.ModOptions.ModSettingHotkey implicit operator ModSettingHotkey(KeyCode key);

Parameters

key UnityEngine.KeyCode

Returns

ModSettingHotkey

To learn how to download BTD Mod Helper and install mods, click here