From c87b773a14f7422932bb93d18a556bff95dbd5e1 Mon Sep 17 00:00:00 2001 From: Spit <19otari98@gmail.com> Date: Wed, 29 Jan 2025 19:32:38 +0300 Subject: [PATCH] 3.0.9 --- Core/AtlasLoot.lua | 30 +----------------------------- Core/Tooltip.lua | 5 ----- Core/WishList.lua | 29 ----------------------------- 3 files changed, 1 insertion(+), 63 deletions(-) diff --git a/Core/AtlasLoot.lua b/Core/AtlasLoot.lua index d2d36cd..8cb4e8b 100644 --- a/Core/AtlasLoot.lua +++ b/Core/AtlasLoot.lua @@ -110,35 +110,6 @@ AtlasLoot_MenuList = { "JEWELCRAFTMENU" }; -local function strsplit(delim, str, maxNb, onlyLast) - -- Eliminate bad cases... - if string.find(str, delim) == nil then - return { str } - end - if maxNb == nil or maxNb < 1 then - maxNb = 0 - end - local result = {} - local pat = "(.-)" .. delim .. "()" - local nb = 0 - local lastPos - for part, pos in string.gfind(str, pat) do - nb = nb + 1 - result[nb] = part - lastPos = pos - if nb == maxNb then break end - end - -- Handle the last field - if nb ~= maxNb then - result[nb+1] = string.sub(str, lastPos) - end - if onlyLast then - return result[nb+1] - else - return result[1], result[2] - end -end - --[[ AtlasLootDefaultFrame_OnShow: Called whenever the loot browser is shown and sets up buttons and loot tables @@ -3649,6 +3620,7 @@ function AtlasLoot_ShowContainerFrame() local itemID = containerTable[i][j][1] AtlasLoot_CacheItem(itemID) itemButton.extraInfo = containerTable[i][j][2] + itemButton.dressingroomID = itemID local _,_,quality,_,_,_,_,_,tex = GetItemInfo(itemID) local icon = getglobal("AtlasLootContainerItem"..buttonIndex.."Icon") local r, g, b = 1, 1, 1 diff --git a/Core/Tooltip.lua b/Core/Tooltip.lua index 49f2e70..3c77304 100644 --- a/Core/Tooltip.lua +++ b/Core/Tooltip.lua @@ -496,11 +496,6 @@ end AtlasLootTip.HookAddonOrVariable("Tmog", function() local tmog = CreateFrame("Frame", nil, TmogTooltip) - tmog:SetScript("OnHide", function() - for row=1, 30 do - getglobal("TmogTooltipTextRight" .. row):SetText("") - end - end) tmog:SetScript("OnShow", function() AtlasLootTip.extendTooltip(TmogTooltip) end) diff --git a/Core/WishList.lua b/Core/WishList.lua index 54eb9f2..7a34302 100644 --- a/Core/WishList.lua +++ b/Core/WishList.lua @@ -14,35 +14,6 @@ local PURPLE = "|cff9F3FFF"; local BLUE = "|cff0070dd"; local ORANGE = "|cffFF8400"; -local function strsplit(delim, str, maxNb, onlyLast) - -- Eliminate bad cases... - if string.find(str, delim) == nil then - return { str } - end - if maxNb == nil or maxNb < 1 then - maxNb = 0 - end - local result = {} - local pat = "(.-)" .. delim .. "()" - local nb = 0 - local lastPos - for part, pos in string.gfind(str, pat) do - nb = nb + 1 - result[nb] = part - lastPos = pos - if nb == maxNb then break end - end - -- Handle the last field - if nb ~= maxNb then - result[nb+1] = string.sub(str, lastPos) - end - if onlyLast then - return result[nb+1] - else - return result[1], result[2] - end -end - --[[ AtlasLoot_ShowWishList() Displays the WishList