Skip to content

Commit

Permalink
fix(core): compatible with 11.0.2
Browse files Browse the repository at this point in the history
fix(toc): ## Interface: 110002
  • Loading branch information
casualshammy committed Aug 14, 2024
1 parent 0e6c6c0 commit 1eab15c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<strong>r21 (2024/08/14)</strong>
<ul>
<li>Removed deprecated functions</li>
<li>TOC update</li>
</ul>
<br>
<strong>r20 (2024/01/20)</strong>
<ul>
<li>Fixed color button for new api in wow 10.2.5+</li>
Expand Down
9 changes: 5 additions & 4 deletions LibRedDropdown-1.0.lua
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
-- luacheck: no max line length
-- luacheck: globals LibStub IndentationLib CreateFrame UIParent BackdropTemplateMixin Spell hooksecurefunc GameFontHighlightSmall unpack GetBuildInfo CLOSE GetSpellTexture ColorPickerFrame
-- luacheck: globals OpacitySliderFrame ChatFontNormal ACCEPT INFO
-- luacheck: globals LibStub IndentationLib CreateFrame UIParent BackdropTemplateMixin Spell hooksecurefunc GameFontHighlightSmall unpack GetBuildInfo CLOSE ColorPickerFrame
-- luacheck: globals OpacitySliderFrame ChatFontNormal ACCEPT INFO C_Spell

local wowBuild = select(4, GetBuildInfo());

local LIB_NAME = "LibRedDropdown-1.0";
local lib = LibStub:NewLibrary(LIB_NAME, 20);
local lib = LibStub:NewLibrary(LIB_NAME, 21);
if (not lib) then return; end -- No upgrade needed

local table_insert, string_find, string_format, max = table.insert, string.find, string.format, math.max;
local C_Spell_GetSpellTexture = C_Spell.GetSpellTexture;

local IndentationLib = IndentationLib;

Expand Down Expand Up @@ -325,7 +326,7 @@ function lib.CreateTooltip()
spell:ContinueOnSpellLoad(function()
local spellName = spell:GetSpellName();
local spellDesc = spell:GetSpellDescription();
local spellTexture = GetSpellTexture(spellID);
local spellTexture = C_Spell_GetSpellTexture(spellID);
self:SetText(string_format("%s\n\n%s\n%s", spellName, spellDesc, ColorizeText("Spell ID: " .. spellID, 91/255, 165/255, 249/255)), spellTexture);
end);
end
Expand Down
2 changes: 1 addition & 1 deletion LibRedDropdown-1.0.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 100205
## Interface: 110002
## Title: Lib: LibRedDropdown
## Notes: This library allows devs to add some standard GUI elements into their addons. Initially this library was created to replace Blizzard's UIDropDownMenu; now it contains 6 controls.

Expand Down

0 comments on commit 1eab15c

Please sign in to comment.