internal void Awake() { Instance = this; var harmony = new Harmony(GUID); harmony.PatchAll(); // custom keybindings CustomKeybindings.AddAction(TOGGLE_KEY, KeybindingsCategory.CustomKeybindings, ControlType.Both); SetupConfig(); s_rpcObj = new GameObject("MixedGripRPC"); DontDestroyOnLoad(s_rpcObj); s_rpcObj.AddComponent <GripManager>(); }
internal void Awake() { Instance = this; SwapAnimations = Config.Bind(CTG, "Swap animations to alternate style?", true, "For swords, axes and maces, should animations be swapped to the alternate style (1h/2h)?"); AutoSwapOnEquipChange = Config.Bind(CTG, "Automatically swap grip on equipment change?", true, "Should Mixed Grip automatically swap your grip for you when changing equipment?"); BalanceWeaponsOnSwap = Config.Bind(CTG, "Balance weapons on grip-swap?", true, "Should weapon stats be balanced according to the amount the attack speed changed?"); var harmony = new Harmony(GUID); harmony.PatchAll(); CustomKeybindings.AddAction(TOGGLE_KEY, KeybindingsCategory.CustomKeybindings, ControlType.Both); rpcObject = new GameObject("MixedGripRPC"); DontDestroyOnLoad(rpcObject); rpcObject.AddComponent <GripManager>(); }
internal void Awake() { Instance = this; var harmony = new Harmony(GUID); harmony.PatchAll(); // custom keybindings CustomKeybindings.AddAction(ToggleKey, CustomKeybindings.KeybindingsCategory.Actions, CustomKeybindings.ControlType.Both, 5); config = SetupConfig(); config.Register(); rpcObj = new GameObject("MixedGripRPC"); DontDestroyOnLoad(rpcObj); rpcObj.AddComponent <GripManager>(); }