Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetItemButtonIconTexture Calls a Missing Function #709

Open
StormFX opened this issue Feb 26, 2025 · 1 comment
Open

GetItemButtonIconTexture Calls a Missing Function #709

StormFX opened this issue Feb 26, 2025 · 1 comment
Labels
Bug Something isn't working Mainline This issue affects the current live Retail client

Comments

@StormFX
Copy link

StormFX commented Feb 26, 2025

With 11.1, the ItemButtonMixin code was moved to Interface\AddOns\Blizzard_ItemButton\Shared\ItemButtonTemplate.lua. In the process of moving the code over, a local function, GetItemButtonIconTexture, was not moved over so the button method by the same name that calls that local function throws an error when that method is called. Relevant code:

Interface\AddOns\Blizzard_ItemButton\Shared\ItemButtonTemplate.lua 255-257

function ItemButtonMixin:GetItemButtonIconTexture()
	return GetItemButtonIconTexture(self);
end

Interface\AddOns\Blizzard_ItemButton\Mainline\ItemButtonTemplate.lua 10-12

local function GetItemButtonIconTexture(button)
	return button.Icon or button.icon or _G[button:GetName().."IconTexture"];
end
@SpareSimian
Copy link

This shows up in bag addons that use the Masque addon. A workaround is offered here: SFX-WoW/Masque#406

@Meorawr Meorawr added Bug Something isn't working Mainline This issue affects the current live Retail client labels Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Mainline This issue affects the current live Retail client
Projects
None yet
Development

No branches or pull requests

3 participants