diff --git a/mods/equip-compare.lua b/mods/equip-compare.lua index 97d0317..c9704d7 100644 --- a/mods/equip-compare.lua +++ b/mods/equip-compare.lua @@ -64,9 +64,9 @@ module.enable = function(self) -- set globals for all inventory types for key, value in pairs(itemtypes[GetLocale()]) do setglobal(key, value) end - INVTYPE_WEAPON_OTHER = INVTYPE_WEAPON.."_other"; - INVTYPE_FINGER_OTHER = INVTYPE_FINGER.."_other"; - INVTYPE_TRINKET_OTHER = INVTYPE_TRINKET.."_other"; + INVTYPE_WEAPON_OTHER = INVTYPE_WEAPON.."_other" + INVTYPE_FINGER_OTHER = INVTYPE_FINGER.."_other" + INVTYPE_TRINKET_OTHER = INVTYPE_TRINKET.."_other" local slots = { [INVTYPE_2HWEAPON] = "MainHandSlot", @@ -130,20 +130,20 @@ module.enable = function(self) end -- first tooltip - ShoppingTooltip1:SetOwner(tooltip, "ANCHOR_NONE"); - ShoppingTooltip1:ClearAllPoints(); - ShoppingTooltip1:SetPoint(anchor, tooltip, relative, 0, 0); + ShoppingTooltip1:SetOwner(tooltip, "ANCHOR_NONE") + ShoppingTooltip1:ClearAllPoints() + ShoppingTooltip1:SetPoint(anchor, tooltip, relative, 0, 0) ShoppingTooltip1:SetInventoryItem("player", slotID) ShoppingTooltip1:Show() -- second tooltip if slots[slotType .. "_other"] then local slotID_other = GetInventorySlotInfo(slots[slotType .. "_other"]) - ShoppingTooltip2:SetOwner(tooltip, "ANCHOR_NONE"); - ShoppingTooltip2:ClearAllPoints(); - ShoppingTooltip2:SetPoint(anchor, ShoppingTooltip1, relative, 0, 0); + ShoppingTooltip2:SetOwner(tooltip, "ANCHOR_NONE") + ShoppingTooltip2:ClearAllPoints() + ShoppingTooltip2:SetPoint(anchor, ShoppingTooltip1, relative, 0, 0) ShoppingTooltip2:SetInventoryItem("player", slotID_other) - ShoppingTooltip2:Show(); + ShoppingTooltip2:Show() end end end