I'm looking around
Transmogrification_Functions for a replacement API for GetTransmogrifySlotInfo().
I think that C_Transmog.GetSlotVisualInfo() will get me the name or itemID of the selected item, but when I
try to get the info by using print(C_Transmog.GetSlotInfo(1)) i get the following error
Code:
3x SX_WallpaperKit_v.2\setup.lua:135: Usage: GetSlotInfo(slot, type)
[C]: in function `GetSlotInfo'
SX_WallpaperKit_v.2\setup.lua:135: in function <SX_WallpaperKit_v.2\setup.lua:132>
Locals:
(*temporary) = 1
(*temporary) = nil
now I have no idea what to put in as type
my plan was to do this until I found out that GetTransmogrifySlotInfo() was removed:
Lua Code:
*** CREATING MAINFRAME AND OTHER STUFF HERE ***
local gearEditBox = CreateFrame("EditBox",nil,mainFrame,"InputBoxTemplate")
gearEditBox:SetSize(128,32)
gearEditBox:SetPoint("BOTTOM")
gearEditBox:IsNumeric()
gearEditBox:SetText("|cffff0000 NO GEAR LIST ")
gearEditBox:SetJustifyH("CENTER")
gearEditBox:SetAutoFocus(false)
local copyGearList = CreateFrame("BUTTON", nil, gearEditBox)
copyGearList:SetSize(16, 16)
copyGearList:SetPoint("BOTTOM", gearEditBox, "TOP")
copyGearList:SetNormalTexture("Interface\\Buttons\\UI-SpellbookIcon-NextPage-Up")
copyGearList:SetPushedTexture("Interface\\Buttons\\UI-SpellbookIcon-NextPage-Down")
local gearList = {}
copyGearList:SetScript("OnMouseUp", function(self, button)
gearList = table.wipe(gearList)
for slotId = 1,19 do
local canTransmogrify = select(2, GetTransmogrifySlotInfo(slotId))
local visibleItemID = select(6, GetTransmogrifySlotInfo(slotId))
if canTransmogrify then
if slotId == 19 then
table.insert(gearList, "[ "..slotId.."] = ".. visibleItemID)
else
table.insert(gearList, "[ "..slotId.."] = ".. visibleItemID..", ")
end
end
end
gearEditBox:SetText(gearList)
print("|cff6699FFSX |cffffff00WallpaperKit|r: Gear list copied")
end)