3.0.9
This commit is contained in:
+1
-29
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user