Skip to content

Commit

Permalink
new enchanting border
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoizame committed Aug 11, 2019
1 parent 29e4eff commit 241819b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions AtlasLootClassic/Button/Button.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ function Button.Init()
LOOT_BORDER_BY_QUALITY_AL[k] = v
end
LOOT_BORDER_BY_QUALITY_AL[1] = ALPrivate.IMAGE_PATH.."loottoast-itemborder-white"
LOOT_BORDER_BY_QUALITY_AL["gold"] = "loottoast-itemborder-gold"
end
AtlasLoot:AddInitFunc(Button.Init)

Expand Down
4 changes: 4 additions & 0 deletions AtlasLootClassic/Button/Profession_type.lua
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ function Prof.Refresh(button)
itemQuality = itemQuality or 0

button.overlay:Show()
-- enchanting border
if not button.ItemID then
itemQuality = "gold"
end
button.overlay:SetQualityBorder(itemQuality)

if button.type == "secButton" then
Expand Down
4 changes: 4 additions & 0 deletions AtlasLootClassic/Data/Profession.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1461,4 +1461,8 @@ function Profession.GetPhaseTextureForSpellID(spellID)
local phase = ContentPhaseCache[spellID] or Profession.GetSpellIDPhase(spellID)
if not phase then return end
return ContentPhase:GetPhaseTexture(phase)
end

function Profession.GetProfessionID(spellID)
return PROFESSION[spellID or 0] and PROFESSION[spellID][2] or nil
end
Binary file modified AtlasLootClassic/Images/PSD/loottoast-itemborder-white.xcf
Binary file not shown.
Binary file modified AtlasLootClassic/Images/loottoast-itemborder-white.blp
Binary file not shown.

0 comments on commit 241819b

Please sign in to comment.