Class KeyHintManager
Manager for handling custom key hints
Inheritance
System.Object
KeyHintManager
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Jotunn.Managers
Assembly: Jotunn.dll
Syntax
public class KeyHintManager : IManager
Properties
| Improve this Doc View SourceInstance
Singleton instance
Declaration
public static KeyHintManager Instance { get; }
Property Value
Type | Description |
---|---|
KeyHintManager |
Methods
| Improve this Doc View SourceAddKeyHint(KeyHintConfig)
Add a KeyHintConfig to the manager.
Checks if the custom key hint is unique (i.e. the first one registered for an item).
Custom key hints are displayed in the game instead of the default KeyHints for equipped tools or weapons they are registered for.
Checks if the custom key hint is unique (i.e. the first one registered for an item).
Custom key hints are displayed in the game instead of the default KeyHints for equipped tools or weapons they are registered for.
Declaration
public bool AddKeyHint(KeyHintConfig hintConfig)
Parameters
Type | Name | Description |
---|---|---|
KeyHintConfig | hintConfig | The custom key hint config to add. |
Returns
Type | Description |
---|---|
System.Boolean | true if the custom key hint config was added to the manager. |
Init()
Initialize the manager
Declaration
public void Init()
RemoveKeyHint(KeyHintConfig)
Removes a KeyHintConfig from the game.
Declaration
public void RemoveKeyHint(KeyHintConfig hintConfig)
Parameters
Type | Name | Description |
---|---|---|
KeyHintConfig | hintConfig | The custom key hint config to add. |