Пример #1
0
        // ================ Main Setup ====================

        internal void Awake()
        {
            Instance = this;
            new SL();

            SL.Log($"Version {SL.VERSION} starting...");

            /* setup Harmony */

            var harmony = new Harmony(SL.GUID);

            harmony.PatchAll();

            /* SceneManager.sceneLoaded event */

            SceneManager.sceneLoaded += SL.Instance.SceneLoaded;

            /* Initialize custom textures callbacks */

            CustomTextures.Init();

            /* Setup keybinding */

            CustomKeybindings.AddAction(UIManager.MENU_TOGGLE_KEY, KeybindingsCategory.CustomKeybindings);
        }
Пример #2
0
 public static void LogWarning(string log) => SLPlugin.Log(log, LogLevel.Warning);
Пример #3
0
 public static void LogError(string log) => SLPlugin.Log(log, LogLevel.Error);
Пример #4
0
 public static void Log(string log) => SLPlugin.Log(log, LogLevel.Message);