Exemplo n.º 1
0
        private void Awake()
        {
            context    = this;
            modEnabled = Config.Bind <bool>("General", "Enabled", true, "Enable this mod");
            buttonText = Config.Bind <string>("General", "ButtonText", "Edit", "Button text");
            titleText  = Config.Bind <string>("General", "TitleText", "Edit Character", "Title text");
            nexusID    = Config.Bind <int>("General", "NexusID", 650, "Nexus mod ID for updates");


            if (!modEnabled.Value)
            {
                return;
            }
            harmony = new Harmony(Info.Metadata.GUID);
            harmony.PatchAll();
        }
Exemplo n.º 2
0
        private void Awake()
        {
            context           = this;
            modEnabled        = Config.Bind <bool>("General", "Enabled", true, "Enable this mod");
            buttonText        = Config.Bind <string>("General", "ButtonText", "Edit", "Button text");
            titleText         = Config.Bind <string>("General", "TitleText", "Edit Character", "Title text");
            gamePadButton     = Config.Bind <string>("General", "GamePadButton", "JoyLTrigger", "Gamepad button used to press button. Possible values: JoyHide, JoyGPower, JoyRun, JoyCrouch, JoyMap, JoyMenu, JoyBlock, JoyAttack, JoySecondAttack, JoyAltPlace, JoyRotate, JoyPlace, JoyRemove, JoyTabLeft, JoyTabRight, JoyLStickLeft, JoyLStickRight, JoyLStickUp, JoyLStickDown, JoyDPadLeft, JoyDPadRight, JoyDPadUp, JoyDPadDown, JoyLTrigger, JoyRTrigger, JoyLStick, JoyRStick");
            gamePadButtonHint = Config.Bind <string>("General", "GamePadButtonHint", "LT", "Hint to show for gamepad button");
            nexusID           = Config.Bind <int>("General", "NexusID", 650, "Nexus mod ID for updates");


            if (!modEnabled.Value)
            {
                return;
            }
            harmony = new Harmony(Info.Metadata.GUID);
            harmony.PatchAll();
        }