mirror of
https://github.com/parnic/breakables.git
synced 2025-06-16 17:40:13 -05:00
Fix microstutter when pressing modifiers
Where "modifiers" are Shift, Alt, etc. Fixes #1
This commit is contained in:
@ -479,7 +479,6 @@ function Breakables:RegisterEvents()
|
|||||||
self:RegisterEvent("PLAYER_REGEN_DISABLED", "OnEnterCombat")
|
self:RegisterEvent("PLAYER_REGEN_DISABLED", "OnEnterCombat")
|
||||||
self:RegisterEvent("PLAYER_REGEN_ENABLED", "OnLeaveCombat")
|
self:RegisterEvent("PLAYER_REGEN_ENABLED", "OnLeaveCombat")
|
||||||
|
|
||||||
self:RegisterEvent("MODIFIER_STATE_CHANGED", "FindBreakables")
|
|
||||||
self:RegisterEvent("SPELLS_CHANGED", "OnSpellsChanged")
|
self:RegisterEvent("SPELLS_CHANGED", "OnSpellsChanged")
|
||||||
-- this will show lockboxes if the player gains a level that then enables opening that box
|
-- this will show lockboxes if the player gains a level that then enables opening that box
|
||||||
self:RegisterEvent("PLAYER_LEVEL_UP", "FindBreakables")
|
self:RegisterEvent("PLAYER_LEVEL_UP", "FindBreakables")
|
||||||
@ -496,12 +495,6 @@ function Breakables:RegisterEvents()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function Breakables:OnModifierChanged()
|
|
||||||
if showingTooltip ~= nil and not self.bCombat then
|
|
||||||
self:OnEnterBreakableButton(showingTooltip)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function Breakables:OnDisable()
|
function Breakables:OnDisable()
|
||||||
self:UnregisterAllEvents()
|
self:UnregisterAllEvents()
|
||||||
self.frame:SetScript("OnUpdate", nil)
|
self.frame:SetScript("OnUpdate", nil)
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
v1.9.8:
|
||||||
|
|
||||||
|
- Add Dragonflight Mystic disenchantable items.
|
||||||
|
- Fix microstutter every time a modifier key, such as Alt, was pressed.
|
||||||
|
|
||||||
v1.9.7:
|
v1.9.7:
|
||||||
|
|
||||||
- Add Dragonflight lockboxes.
|
- Add Dragonflight lockboxes.
|
||||||
|
Reference in New Issue
Block a user