public static void SaveConfig(ICoreClientAPI capi, bool force = false) { if (allowSaving || force) { capi.StoreModConfig(Config, "vshud.json"); allowSaving = true; } }
internal void SaveConfig() { ClientAPI.StoreModConfig( Configs, CONFIG_PATH ); Logger.Debug("Saved alias config."); }
public override void StartClientSide(ICoreClientAPI api) { capi = api; capi.Logger.Event("Hello from ZoomButton!"); // load config file or write it with defaults config = api.LoadModConfig <ModConfig>("zoombutton.json"); if (config == null) { config = new ModConfig(); api.StoreModConfig(config, "zoombutton.json"); } api.Input.RegisterHotKey(HOTKEY_CODE, "Zoom in", GlKeys.Z, HotkeyType.CharacterControls); api.Event.RegisterGameTickListener(OnGameTick, MAX_FRAMERATE_MS); renderer = new SquintOverlayRenderer(api); }
public static void SaveConfig(ICoreClientAPI capi) => capi.StoreModConfig(Config, "vshud.json");
public void Store() { capi.StoreModConfig(this as ModSettingsBase, "ShadersMod.json"); }
public void SaveConfig() => capi.StoreModConfig(Config, "waypointutils.json");