private void CQSManager_OnAssigningQuickSlotHook(On.CharacterQuickSlotManager.orig_OnAssigningQuickSlot_1 orig, CharacterQuickSlotManager qsManager, Item _itemToQuickSlot) { orig(qsManager, _itemToQuickSlot); if (dev) { Debug.Log("ASSIGNING " + _itemToQuickSlot + " to slot index " + _itemToQuickSlot.QuickSlotIndex + " on " + barMode.ToString() + " skill bar"); } if (_itemToQuickSlot.QuickSlotIndex == -1) { Debug.Log("Found the code where _itemToQuickSlot.QuickSlotIndex == -1"); } else { Character character = qsManager.GetComponent <Character>(); SaveSkillSlotByIndex(character, _itemToQuickSlot.QuickSlotIndex, _itemToQuickSlot); } }
private void onAsignSlotHook(On.CharacterQuickSlotManager.orig_OnAssigningQuickSlot_1 orig, CharacterQuickSlotManager self, Item _itemToQuickSlot) { orig(self, _itemToQuickSlot); if (dev) { Debug.Log("ASSIGNING Quickslot Index" + _itemToQuickSlot.QuickSlotIndex + " to " + _itemToQuickSlot + " on bar mode " + barMode.ToString()); } if (_itemToQuickSlot.QuickSlotIndex == -1) { //Debug.Log("On Assign Quick slot index is -1"); } else { SaveQuickSlotByIndex(_itemToQuickSlot.QuickSlotIndex, _itemToQuickSlot); } //qsm.LoadConfig(); }