/
showStackCount = true; |
showIcon = true; |
showType = true; |
addTopTooltip = true; |
addBotTooltip = true; |
addTopLine = true; |
addBotLine = true; |
QualityIDVersion = "3.10"; |
}; |
QIDDB.showStackCount = true |
QIDDB.showIcon = true |
QIDDB.showitemType = true |
QIDDB.addTopTooltip = true |
QIDDB.addBotTooltip = true |
QIDDB.addTopLine = true |
QIDDB.addBotLine = true |
QIDDB.QualityIDVersion = "3.10" |
if (not (QIDDB.showStackCount)) then QIDDB.showStackCount = self.showStackCount end |
if (not (QIDDB.showIcon)) then QIDDB.showIcon = self.showIcon end |
if (not (QIDDB.showitemType)) then QIDDB.showitemType = self.showitemType end |
if (not (QIDDB.addTopTooltip)) then QIDDB.addTopTooltip = self.addTopTooltip end |
if (not (QIDDB.addBotTooltip)) then QIDDB.addBotTooltip = self.addBotTooltip end |
if (not (QIDDB.addTopLine)) then QIDDB.addTopLine = self.addTopLine end |
if (not (QIDDB.addBotLine)) then QIDDB.addBotLine = self.addBotLine end |
if (not (QIDDB.QualityIDVersion)) then QIDDB.QualityIDVersion = self.QualityIDVersion end |
end |
QIDDB.showitemType = not QIDDB.showitemType; |
elseif(msg:lower() == "icon") then |
QIDDB.showIcon = not QIDDB.showIcon; |
elseif(msg:lower()== "toptooltip") then |
elseif(msg:lower()== "topline") then |
QIDDB.addTopTooltip = not QIDDB.addTopTooltip; |
elseif(msg:lower()== "bottooltip") then |
elseif(msg:lower()== "botline") then |
QIDDB.addBotTooltip = not QIDDB.addBotTooltip; |
elseif(msg == "") or (msg == "help") then |
chat("QualityID options: /qid {toggle | on | off}"); |
chat("/qid stack {toggle}"); |
chat("/qid itemtype {toggle}"); |
chat("/qid icon {toggle}"); |
chat("/qid toptooltip {toggle}"); |
chat("/qid bottooltip {toggle}"); |
chat("/qid topline {toggle}"); |
chat("/qid botline {toggle}"); |
end |
end |
if link and GetItemInfo(link) and (rarity) then |
local r, g , b, hex = GetItemQualityColor(rarity) |
if not lineAdded then |
if QIDDB.addTopTooltip then |
if QIDDB.addTopLine then |
frame:AddLine(" ") |
end |
if QIDDB.showid then |
if QIDDB.showStackCount and stackCount ~= 1 then |
frame:AddLine( "Stacks in lots of "..hex..stackCount) |
end |
if QIDDB.addBotTooltip then |
if QIDDB.addBotLine then |
frame:AddLine(" ") |
end |
lineAdded = true |