from retail

This commit is contained in:
NoM0Re
2025-02-18 17:13:03 +01:00
parent 03e9b0f102
commit 6714432be6
8 changed files with 31 additions and 6 deletions
+14
View File
@@ -0,0 +1,14 @@
# These are supported funding model platforms
github: [NoM0Re] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: https://streamelements.com/noom0re/tip
+1 -1
View File
@@ -161,7 +161,7 @@ local blockedTables = {
MailFrameTab2 = true,
DEFAULT_CHAT_FRAME = true,
ChatFrame1 = true,
--WeakAurasSaved = true,
WeakAurasSaved = true,
WeakAurasOptions = true,
WeakAurasOptionsSaved = true
}
+1 -1
View File
@@ -1020,7 +1020,7 @@ local funcs = {
end
iconPath = iconPath or self.displayIcon or "Interface\\Icons\\INV_Misc_QuestionMark"
self.icon:SetTexture(iconPath)
Private.SetTextureOrSpellTexture(self.icon, iconPath)
end,
SetOverlayColor = function(self, id, r, g, b, a)
self.bar:SetAdditionalBarColor(id, { r, g, b, a});
+1 -1
View File
@@ -557,7 +557,7 @@ local function modify(parent, region, data)
end
iconPath = iconPath or self.displayIcon or "Interface\\Icons\\INV_Misc_QuestionMark"
icon:SetTexture(iconPath)
Private.SetTextureOrSpellTexture(icon, iconPath)
end
function region:Scale(scalex, scaley)
@@ -1151,6 +1151,15 @@ function Private.regionPrototype.AddExpandFunction(data, region, cloneId, parent
end
end
function Private.SetTextureOrSpellTexture(texture, path)
local spellID = tonumber(path)
if spellID then
return texture:SetTexture(select(3, GetSpellInfo(spellID)) or spellID)
else
return texture:SetTexture(path)
end
end
do
local function move_condition_subregions(data, offset, afterPos)
if data.conditions then
+2 -1
View File
@@ -663,7 +663,8 @@ local function modifyThumbnail(parent, borderframe, data, fullModify, width, hei
iconPath = path or data.displayIcon
end
icon:SetTexture(iconPath and iconPath ~= "" and iconPath or "Interface\\Icons\\INV_Misc_QuestionMark")
OptionsPrivate.Private.SetTextureOrSpellTexture(icon,
iconPath and iconPath ~= "" and iconPath or "Interface\\Icons\\INV_Misc_QuestionMark")
end
if data then
+1 -1
View File
@@ -74,7 +74,7 @@ local function createThumbnail()
end
local function modifyThumbnail(parent, frame, data)
frame.icon:SetTexture(data.thumbnailIcon)
OptionsPrivate.Private.SetTextureOrSpellTexture(frame.icon, data.thumbnailIcon)
if frame.icon:GetTexture() then
frame.icon:Show()
else
+2 -1
View File
@@ -300,7 +300,8 @@ local function modifyThumbnail(parent, frame, data)
iconPath = path or data.displayIcon
end
self.icon:SetTexture(iconPath and iconPath ~= "" and iconPath or "Interface\\Icons\\INV_Misc_QuestionMark")
OptionsPrivate.Private.SetTextureOrSpellTexture(self.icon,
iconPath and iconPath ~= "" and iconPath or "Interface\\Icons\\INV_Misc_QuestionMark")
end
if data then