loot: move client abstraction into compat files

This commit is contained in:
shagu
2018-11-04 13:11:31 +01:00
parent 338996c409
commit fb8fbbc8c4
3 changed files with 3 additions and 5 deletions
+1
View File
@@ -23,6 +23,7 @@ FRIENDS_NAME_LOCATION = "ButtonTextLocation"
COOLDOWN_FRAME_TYPE = "Cooldown"
LOOT_BUTTON_FRAME_TYPE = "Button"
LOOT_BUTTON_SLOT_FUNCTION = "SetID"
PLAYER_BUFF_START_ID = 0
+1
View File
@@ -18,6 +18,7 @@ FRIENDS_NAME_LOCATION = "ButtonTextNameLocation"
COOLDOWN_FRAME_TYPE = "Model"
LOOT_BUTTON_FRAME_TYPE = "LootButton"
LOOT_BUTTON_SLOT_FUNCTION = "SetSlot"
PLAYER_BUFF_START_ID = -1
+1 -5
View File
@@ -470,11 +470,7 @@ pfUI:RegisterModule("loot", function ()
maxrarity = math.max(maxrarity, quality)
maxwidth = math.max(maxwidth, slot.name:GetStringWidth())
if slot.SetSlot then
slot:SetSlot(id)
else
slot:SetID(id)
end
slot[LOOT_BUTTON_SLOT_FUNCTION](slot, id)
slot:Enable()
slot:Show()