This commit is contained in:
Spit
2025-01-29 19:32:38 +03:00
parent 64800f9944
commit c87b773a14
3 changed files with 1 additions and 63 deletions
+1 -29
View File
@@ -110,35 +110,6 @@ AtlasLoot_MenuList = {
"JEWELCRAFTMENU" "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: AtlasLootDefaultFrame_OnShow:
Called whenever the loot browser is shown and sets up buttons and loot tables 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] local itemID = containerTable[i][j][1]
AtlasLoot_CacheItem(itemID) AtlasLoot_CacheItem(itemID)
itemButton.extraInfo = containerTable[i][j][2] itemButton.extraInfo = containerTable[i][j][2]
itemButton.dressingroomID = itemID
local _,_,quality,_,_,_,_,_,tex = GetItemInfo(itemID) local _,_,quality,_,_,_,_,_,tex = GetItemInfo(itemID)
local icon = getglobal("AtlasLootContainerItem"..buttonIndex.."Icon") local icon = getglobal("AtlasLootContainerItem"..buttonIndex.."Icon")
local r, g, b = 1, 1, 1 local r, g, b = 1, 1, 1
-5
View File
@@ -496,11 +496,6 @@ end
AtlasLootTip.HookAddonOrVariable("Tmog", function() AtlasLootTip.HookAddonOrVariable("Tmog", function()
local tmog = CreateFrame("Frame", nil, TmogTooltip) 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() tmog:SetScript("OnShow", function()
AtlasLootTip.extendTooltip(TmogTooltip) AtlasLootTip.extendTooltip(TmogTooltip)
end) end)
-29
View File
@@ -14,35 +14,6 @@ local PURPLE = "|cff9F3FFF";
local BLUE = "|cff0070dd"; local BLUE = "|cff0070dd";
local ORANGE = "|cffFF8400"; 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() AtlasLoot_ShowWishList()
Displays the WishList Displays the WishList