mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 16:34:45 +00:00
loot
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user