This commit is contained in:
Bunny67
2018-01-05 12:39:02 +03:00
parent 94d790246d
commit 5ad8915004
3 changed files with 14 additions and 13 deletions
+2 -2
View File
@@ -796,13 +796,13 @@ local function SendRecieve(_, event, prefix, message, _, sender)
E.SendMSGTimer = E:ScheduleTimer("SendMessage", 12)
end
end
--[[
local f = CreateFrame("Frame")
f:RegisterEvent("RAID_ROSTER_UPDATE")
f:RegisterEvent("PARTY_MEMBERS_CHANGED")
f:RegisterEvent("CHAT_MSG_ADDON")
f:SetScript("OnEvent", SendRecieve)
]]
function E:UpdateAll(ignoreInstall)
self.private = self.charSettings.profile
self.db = self.data.profile
@@ -73,10 +73,10 @@ function lib:RegisterPlugin(name,callback, isLib)
if not lib.vcframe then
local f = CreateFrame('Frame')
f:RegisterEvent("RAID_ROSTER_UPDATE");
f:RegisterEvent("PARTY_MEMBERS_CHANGED");
f:RegisterEvent("CHAT_MSG_ADDON")
f:SetScript("OnEvent", lib.VersionCheck)
--f:RegisterEvent("RAID_ROSTER_UPDATE");
--f:RegisterEvent("PARTY_MEMBERS_CHANGED");
--f:RegisterEvent("CHAT_MSG_ADDON")
--f:SetScript("OnEvent", lib.VersionCheck)
lib.vcframe = f
end
+8 -7
View File
@@ -66,7 +66,7 @@ local OnClick = function()
ss = this:GetID()
sq = this.quality
sn = this.name:GetText()
LootSlot(ss)
--LootSlot(ss)
end
local OnShow = function()
@@ -92,14 +92,12 @@ local function anchorSlots(self)
end
local function createSlot(id)
local frame = CreateFrame("Button", "ElvLootSlot"..id, lootFrame)
local frame = CreateFrame("LootButton", "ElvLootSlot"..id, lootFrame)
frame:SetPoint("LEFT", 8, 0)
frame:SetPoint("RIGHT", -8, 0)
frame:SetHeight(iconSize - 2)
frame:SetID(id)
frame:RegisterForClicks("LeftButtonUp", "RightButtonUp")
frame:SetScript("OnEnter", OnEnter)
frame:SetScript("OnLeave", OnLeave)
frame:SetScript("OnClick", OnClick)
@@ -145,10 +143,10 @@ local function createSlot(id)
return frame
end
function M:LOOT_SLOT_CLEARED(_, slot)
if(not lootFrame:IsShown()) then return end
function M:LOOT_SLOT_CLEARED()
if not lootFrame:IsShown() then return end
lootFrame.slots[slot]:Hide()
lootFrame.slots[arg1]:Hide()
anchorSlots(lootFrame)
end
@@ -238,6 +236,9 @@ function M:LOOT_OPENED(_, autoLoot)
end
w = max(w, slot.name:GetStringWidth())
slot:SetID(i)
slot:SetSlot(i)
slot:Enable()
slot:Show()
end