mirror of
https://github.com/parnic/breakables.git
synced 2025-06-17 01:41:51 -05:00
Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
ab8c9eb427
|
|||
98a73a1872
|
|||
85280456af | |||
e388f5243e | |||
d24498372b
|
|||
89191ad299
|
|||
96cac06743
|
|||
10da683630
|
|||
2a0ad73b5f
|
|||
71ee74a273
|
|||
76fa35ef02
|
|||
dd746f2800
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -32,7 +32,7 @@ jobs:
|
||||
|
||||
# we first have to clone the AddOn project, this is a required step
|
||||
- name: Clone project
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0 # gets git history for changelogs
|
||||
|
||||
|
@ -34,6 +34,25 @@ if C_Container then
|
||||
end
|
||||
end
|
||||
|
||||
local GetSpellInfo = GetSpellInfo
|
||||
if not GetSpellInfo and C_Spell and C_Spell.GetSpellInfo then
|
||||
GetSpellInfo = function(id)
|
||||
if not id then
|
||||
return nil
|
||||
end
|
||||
|
||||
local info = C_Spell.GetSpellInfo(id)
|
||||
if info then
|
||||
return info.name, nil, info.iconID
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local IsUsableSpell = IsUsableSpell
|
||||
if not IsUsableSpell and C_Spell and C_Spell.IsSpellUsable then
|
||||
IsUsableSpell = C_Spell.IsSpellUsable
|
||||
end
|
||||
|
||||
local EQUIPPED_LAST = EQUIPPED_LAST
|
||||
if not EQUIPPED_LAST then
|
||||
EQUIPPED_LAST = INVSLOT_LAST_EQUIPPED
|
||||
@ -508,7 +527,11 @@ function Breakables:OnDisable()
|
||||
end
|
||||
|
||||
function Breakables:OnSlashCommand(input)
|
||||
InterfaceOptionsFrame_OpenToCategory(self.optionsFrame)
|
||||
if InterfaceOptionsFrame_OpenToCategory then
|
||||
InterfaceOptionsFrame_OpenToCategory(self.optionsFrame)
|
||||
else
|
||||
Settings.OpenToCategory("Breakables")
|
||||
end
|
||||
end
|
||||
|
||||
function Breakables:OnItemReceived(event, bag)
|
||||
@ -1490,9 +1513,11 @@ function Breakables:FindBreakablesInSlot(bagId, slotId)
|
||||
local tooltipData
|
||||
if C_TooltipInfo then
|
||||
tooltipData = C_TooltipInfo.GetBagItem(bagId, slotId)
|
||||
TooltipUtil.SurfaceArgs(tooltipData)
|
||||
for _, line in ipairs(tooltipData.lines) do
|
||||
TooltipUtil.SurfaceArgs(line)
|
||||
if TooltipUtil and TooltipUtil.SurfaceArgs then
|
||||
TooltipUtil.SurfaceArgs(tooltipData)
|
||||
for _, line in ipairs(tooltipData.lines) do
|
||||
TooltipUtil.SurfaceArgs(line)
|
||||
end
|
||||
end
|
||||
else
|
||||
self.myTooltip:SetBagItem(bagId, slotId)
|
||||
@ -1593,9 +1618,13 @@ function Breakables:PlayerHasSkillToPickItem(bagId, slotId)
|
||||
return true
|
||||
end
|
||||
|
||||
TooltipUtil.SurfaceArgs(tooltipData)
|
||||
if TooltipUtil and TooltipUtil.SurfaceArgs then
|
||||
TooltipUtil.SurfaceArgs(tooltipData)
|
||||
end
|
||||
for _, line in ipairs(tooltipData.lines) do
|
||||
TooltipUtil.SurfaceArgs(line)
|
||||
if TooltipUtil and TooltipUtil.SurfaceArgs then
|
||||
TooltipUtil.SurfaceArgs(line)
|
||||
end
|
||||
if line.leftText == LOCKED then
|
||||
return not (line.leftColor and line.leftColor.r == 1 and line.leftColor.g < 0.2 and line.leftColor.b < 0.2)
|
||||
end
|
||||
|
@ -1,9 +1,9 @@
|
||||
## Interface: 100207
|
||||
## Interface-Retail: 100207
|
||||
## Interface-Classic: 11502
|
||||
## Interface: 110007
|
||||
## Interface-Retail: 110007
|
||||
## Interface-Classic: 11505
|
||||
## Interface-BCC: 20504
|
||||
## Interface-Wrath: 30403
|
||||
## Interface-Cata: 40400
|
||||
## Interface-Cata: 40401
|
||||
## Author: Parnic
|
||||
## Name: Breakables
|
||||
## Title: Breakables |cff7fff7f-Ace3-|r
|
||||
|
@ -1,3 +1,30 @@
|
||||
v1.10.5:
|
||||
|
||||
- Update TOCs
|
||||
|
||||
v1.10.4:
|
||||
|
||||
- Update Cataclysm Classic TOC to 4.4.1
|
||||
- Update Classic-era TOC for 1.15.4
|
||||
- Update TWW TOC for 11.0.5
|
||||
|
||||
v1.10.3:
|
||||
|
||||
- Fix another error from 11.0.2
|
||||
|
||||
v1.10.2:
|
||||
|
||||
- Fix error from 11.0.2
|
||||
|
||||
v1.10.1:
|
||||
|
||||
- Update Classic-era TOC for 1.15.3
|
||||
- Update TOC for TWW
|
||||
|
||||
v1.10.0:
|
||||
|
||||
- Support The War Within/11.0
|
||||
|
||||
v1.9.26:
|
||||
|
||||
- Update Dragonflight TOC for 10.2.7
|
||||
|
Reference in New Issue
Block a user