|
@@ -1,9 +1,8 @@
|
|
|
-using UnityEngine;
|
|
|
|
|
using GadgetCore.API;
|
|
using GadgetCore.API;
|
|
|
-using System.Collections;
|
|
|
|
|
|
|
+using GadgetCore.API.ConfigMenu;
|
|
|
using System;
|
|
using System;
|
|
|
|
|
+using UnityEngine;
|
|
|
using UnityEngine.SceneManagement;
|
|
using UnityEngine.SceneManagement;
|
|
|
-using System.Reflection;
|
|
|
|
|
|
|
|
|
|
namespace CombatChipChest
|
|
namespace CombatChipChest
|
|
|
{
|
|
{
|
|
@@ -13,11 +12,8 @@ namespace CombatChipChest
|
|
|
public const string MOD_VERSION = "1.0"; // Set this to the version of your mod.
|
|
public const string MOD_VERSION = "1.0"; // Set this to the version of your mod.
|
|
|
public const string CONFIG_VERSION = "1.0"; // Increment this whenever you change your mod's config file.
|
|
public const string CONFIG_VERSION = "1.0"; // Increment this whenever you change your mod's config file.
|
|
|
|
|
|
|
|
- protected override void LoadConfig()
|
|
|
|
|
- {
|
|
|
|
|
- Config.Reset();
|
|
|
|
|
- Config.Save();
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ public override IGadgetConfigMenu GetConfigMenu() { return null; }
|
|
|
|
|
+ protected override void LoadConfig() { Config.Reset(); Config.Save(); }
|
|
|
|
|
|
|
|
public override string GetModDescription()
|
|
public override string GetModDescription()
|
|
|
{
|
|
{
|
|
@@ -44,7 +40,7 @@ namespace CombatChipChest
|
|
|
Core.menu = new MenuInfo(MenuType.CHIP, menuCombat, tile);
|
|
Core.menu = new MenuInfo(MenuType.CHIP, menuCombat, tile);
|
|
|
Core.menu.Register("Combat Chip Chest");
|
|
Core.menu.Register("Combat Chip Chest");
|
|
|
|
|
|
|
|
- SceneManager.sceneLoaded += OnSceneLoaded;
|
|
|
|
|
|
|
+ // SceneManager.sceneLoaded += OnSceneLoaded;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
internal static void OnSceneLoaded(Scene scene, LoadSceneMode mode)
|
|
internal static void OnSceneLoaded(Scene scene, LoadSceneMode mode)
|