Skip to content

Commit

Permalink
war within support
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuller committed May 11, 2024
1 parent c0c3227 commit 2c65f36
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 16 deletions.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# tullaRange release notes

## 10.2.5

* Added initial War Within support
* Update TOCs for 11.0.0 and 10.2.7

## 10.2.4

* Update TOCs
Expand Down
4 changes: 2 additions & 2 deletions tullaRange/tullaRange.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Addon:OnLoad()

-- load the options menu when the settings frame is loaded
self.frame:SetScript("OnShow", function(frame)
LoadAddOn(AddonName .. "_Config")
C_AddOns.LoadAddOn(AddonName .. "_Config")
frame:SetScript("OnShow", nil)
end)

Expand All @@ -46,7 +46,7 @@ function Addon:ADDON_LOADED(event, addonName)

-- add a launcher for the addons tray
_G[addonName .. '_Launch'] = function()
if LoadAddOn(addonName .. '_Config') then
if C_AddOns.LoadAddOn(addonName .. '_Config') then
Settings.OpenToCategory(addonName)
end
end
Expand Down
4 changes: 1 addition & 3 deletions tullaRange/tullaRange.toc
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
## Interface: 100206
## Interface-Cata: 40400
## Interface: 110000, 100207, 40400
## Interface-Classic: 11502
## Interface-Wrath: 30403
## Title: tullaRange
## Author: Tuller
## Notes: Out of range coloring based on RedRange
Expand Down
4 changes: 1 addition & 3 deletions tullaRange_Config/tullaRange_Config.toc
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
## Interface: 100206
## Interface-Cata: 40400
## Interface: 110000, 100207, 40400
## Interface-Classic: 11502
## Interface-Wrath: 30403
## Title: tullaRange Config
## Notes: GUI based configuration for tullaRange
## Author: Tuller
Expand Down
32 changes: 24 additions & 8 deletions tullaRange_Config/widgets/colorSelector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,30 @@ do
local SpellIcons = {}

-- generate spell icons
for i = 1, GetNumSpellTabs() do
local _, _, offset, numSlots = GetSpellTabInfo(i)
local tabEnd = offset + numSlots

for j = offset, tabEnd - 1 do
local texture = GetSpellBookItemTexture(j, 'player')
if texture then
SpellIcons[#SpellIcons + 1] = texture
if type(GetNumSpellTabs) == "function" then
for i = 1, GetNumSpellTabs() do
local _, _, offset, numSlots = GetSpellTabInfo(i)
local tabEnd = offset + numSlots

for j = offset, tabEnd - 1 do
local texture = GetSpellBookItemTexture(j, 'player')
if texture then
SpellIcons[#SpellIcons + 1] = texture
end
end
end
else
for i = 1, C_SpellBook.GetNumSpellBookSkillLines() do
local skillLineInfo = C_SpellBook.GetSpellBookSkillLineInfo(i)
local offset = skillLineInfo.itemIndexOffset
local numSlots = skillLineInfo.numSpellBookItems
local tabEnd = offset + numSlots

for j = offset, tabEnd - 1 do
local texture = C_SpellBook.GetSpellBookItemTexture(j, Enum.SpellBookSpellBank.Player)
if texture then
SpellIcons[#SpellIcons + 1] = texture
end
end
end
end
Expand Down

0 comments on commit 2c65f36

Please sign in to comment.