SFSSettings - 105-Code/SFS-Modloader GitHub Wiki

SFSSettings

Description

Use this interface to create keybinding settings for your mod.

Events

There are not events for this interface.

Properties

There are not properties for this interface.

Public Methods

string getModId();

Get mod id. This is used to identify for keybiding for another mods.

  ModSettings.main.addKeybinding( MyLoadedSettings.My_Key, MyDefaultSettings.My_Key, "My_Key", MyLoadedSettings);

Implementation Example

// My Settigns class
public class MySettings : SFSSettings
{
  // key definition
  public KeybindingsPC.Key MyKey = KeyCode.T;

  public string getModId()
  {
      return 'MyModId';
  }

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