Skip to content

Commit

Permalink
Various fixes for WoW Classic Era 1.15.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldpaw committed Feb 7, 2024
1 parent b4f2649 commit 32633af
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
2 changes: 1 addition & 1 deletion AzeriteUI/AzeriteUI_Vanilla.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 11500
## Interface: 11501
## IconTexture: Interface\Addons\AzeriteUI\Assets\power-crystal-ice-icon.tga

## Title: |TInterface\Addons\AzeriteUI\Assets\power-crystal-ice-icon.tga:16:16:0:0:512:512:70:442:40:472|t |cff4488bbAzerite|r |cfffafafaUI|r |cffcccccc5.2|r
Expand Down
4 changes: 4 additions & 0 deletions AzeriteUI/Libs/LibActionButton-1.0-GE/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. Be aware th
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [1.0.126-Alpha] 2024-02-07
### Fixed
- Various fixes for WoW Classic Era 1.15.1.

## [1.0.125-Alpha] 2023-12-18
### Changed
- Don't show hotkeys under any circumstances if the button config says to hide them.
Expand Down
21 changes: 14 additions & 7 deletions AzeriteUI/Libs/LibActionButton-1.0-GE/LibActionButton-1.0-GE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
]]

local MAJOR_VERSION = "LibActionButton-1.0-GE"
local MINOR_VERSION = 125
local MINOR_VERSION = 126

if not LibStub then error(MAJOR_VERSION .. " requires LibStub.") end
local lib, oldversion = LibStub:NewLibrary(MAJOR_VERSION, MINOR_VERSION)
Expand Down Expand Up @@ -375,10 +375,13 @@ function SetupSecureSnippets(button)
local pressAndHold = false
if type == "action" then
self:SetAttribute("typerelease", "actionrelease")
local actionType, id = GetActionInfo(action)
local actionType, id, subType = GetActionInfo(action)
if actionType == "spell" then
pressAndHold = IsPressHoldReleaseSpell(id)
elseif actionType == "macro" then
if subType == "spell" then
pressAndHold = IsPressHoldReleaseSpell(id)
end
-- GetMacroSpell is not in the restricted environment
--[=[
local spellID = GetMacroSpell(id)
Expand Down Expand Up @@ -2489,15 +2492,19 @@ Action.IsConsumableOrStackable = function(self) return IsConsumableAction(self._
Action.IsUnitInRange = function(self, unit) return IsActionInRange(self._state_action, unit) end
Action.SetTooltip = function(self) return GameTooltip:SetAction(self._state_action) end
Action.GetSpellId = function(self)
local actionType, id, _subType = GetActionInfo(self._state_action)
local actionType, id, subType = GetActionInfo(self._state_action)
if actionType == "spell" then
return id
elseif actionType == "macro" then
return (GetMacroSpell(id))
if subType == "spell" then
return id
else
return (GetMacroSpell(id))
end
end
end
Action.GetLossOfControlCooldown = function(self) return GetActionLossOfControlCooldown(self._state_action) end
if C_UnitAuras then
if C_UnitAuras and C_UnitAuras.GetCooldownAuraBySpellID and C_ActionBar and C_ActionBar.GetItemActionOnEquipSpellID then
Action.GetPassiveCooldownSpellID = function(self)
local _actionType, actionID = GetActionInfo(self._state_action)
local onEquipPassiveSpellID
Expand Down Expand Up @@ -2576,7 +2583,7 @@ Item.IsCurrentlyActive = function(self) return IsCurrentItem(self._state_a
Item.IsAutoRepeat = function(self) return nil end
Item.IsUsable = function(self) return IsUsableItem(self._state_action) end
Item.IsConsumableOrStackable = function(self) return IsConsumableItem(self._state_action) end
Item.IsUnitInRange = function(self, unit) return IsItemInRange(self._state_action, unit) end
--Item.IsUnitInRange = function(self, unit) return IsItemInRange(self._state_action, unit) end
Item.SetTooltip = function(self) return GameTooltip:SetHyperlink(self._state_action) end
Item.GetSpellId = function(self) return nil end
Item.GetPassiveCooldownSpellID = function(self) return nil end
Expand Down Expand Up @@ -2629,7 +2636,7 @@ Custom.RunCustom = function(self, unit, button) return self._state
Custom.GetPassiveCooldownSpellID = function(self) return nil end

--- WoW Classic overrides
if (WoWClassic or WoWBCC or WoWWrath) then
if WoWClassic or WoWBCC or WoWWrath then
UpdateOverlayGlow = function() end
end

Expand Down

0 comments on commit 32633af

Please sign in to comment.