Skip to content
This repository has been archived by the owner on Jun 2, 2021. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollyonn committed Jan 20, 2019
1 parent e05fc2d commit 2949226
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 28 deletions.
18 changes: 7 additions & 11 deletions ElvUI/modules/skins/blizzard/craft.lua
Original file line number Diff line number Diff line change
Expand Up @@ -238,22 +238,18 @@ local function LoadSkin()
end

local _, _, craftType = GetCraftInfo(id)
local r, g, b
if craftType == "trivial" then
CraftHighlightFrame.Left:SetGradientAlpha("Horizontal", 0.5, 0.5, 0.5, 0.40, 0.5, 0.5, 0.5, 0)
CraftHighlightFrame.Right:SetGradientAlpha("Horizontal", 0.5, 0.5, 0.5, 0, 0.5, 0.5, 0.5, 0.40)
r, g, b = 0.5, 0.5, 0.5
elseif craftType == "easy" then
CraftHighlightFrame.Left:SetGradientAlpha("Horizontal", 0, 1, 0, 0.35, 0, 1, 0, 0)
CraftHighlightFrame.Right:SetGradientAlpha("Horizontal", 0, 1, 0, 0, 0, 1, 0, 0.35)
r, g, b = 0, 1, 0
elseif craftType == "medium" then
CraftHighlightFrame.Left:SetGradientAlpha("Horizontal", 1, 1, 0, 0.35, 1, 1, 0, 0)
CraftHighlightFrame.Right:SetGradientAlpha("Horizontal", 1, 1, 0, 0, 1, 1, 0, 0.35)
r, g, b = 1, 1, 0
elseif craftType == "optimal" then
CraftHighlightFrame.Left:SetGradientAlpha("Horizontal", 1, 0.45, 0.15, 0.35, 1, 0.45, 0.15, 0)
CraftHighlightFrame.Right:SetGradientAlpha("Horizontal", 1, 0.45, 0.15, 0, 1, 0.45, 0.15, 0.35)
elseif craftType == "difficult" then
CraftHighlightFrame.Left:SetGradientAlpha("Horizontal", 1, 0, 0, 0.35, 1, 0, 0, 0)
CraftHighlightFrame.Right:SetGradientAlpha("Horizontal", 1, 0, 0, 0, 1, 0, 0, 0.35)
r, g, b = 1, 0.45, 0.15
end
CraftHighlightFrame.Left:SetGradientAlpha("Horizontal", r, g, b, 0.35, r, g, b, 0)
CraftHighlightFrame.Right:SetGradientAlpha("Horizontal", r, g, b, 0, r, g, b, 0.35)

local numReagents = GetCraftNumReagents(id)
for i = 1, numReagents, 1 do
Expand Down
18 changes: 7 additions & 11 deletions ElvUI/modules/skins/blizzard/tradeskill.lua
Original file line number Diff line number Diff line change
Expand Up @@ -250,22 +250,18 @@ local function LoadSkin()
end

local _, skillType = GetTradeSkillInfo(id)
local r, g, b
if skillType == "trivial" then
TradeSkillHighlightFrame.Left:SetGradientAlpha("Horizontal", 0.5, 0.5, 0.5, 0.40, 0.5, 0.5, 0.5, 0)
TradeSkillHighlightFrame.Right:SetGradientAlpha("Horizontal", 0.5, 0.5, 0.5, 0, 0.5, 0.5, 0.5, 0.40)
r, g, b = 0.5, 0.5, 0.5
elseif skillType == "easy" then
TradeSkillHighlightFrame.Left:SetGradientAlpha("Horizontal", 0, 1, 0, 0.35, 0, 1, 0, 0)
TradeSkillHighlightFrame.Right:SetGradientAlpha("Horizontal", 0, 1, 0, 0, 0, 1, 0, 0.35)
r, g, b = 0, 1, 0
elseif skillType == "medium" then
TradeSkillHighlightFrame.Left:SetGradientAlpha("Horizontal", 1, 1, 0, 0.35, 1, 1, 0, 0)
TradeSkillHighlightFrame.Right:SetGradientAlpha("Horizontal", 1, 1, 0, 0, 1, 1, 0, 0.35)
r, g, b = 1, 1, 0
elseif skillType == "optimal" then
TradeSkillHighlightFrame.Left:SetGradientAlpha("Horizontal", 1, 0.45, 0.15, 0.35, 1, 0.45, 0.15, 0)
TradeSkillHighlightFrame.Right:SetGradientAlpha("Horizontal", 1, 0.45, 0.15, 0, 1, 0.45, 0.15, 0.35)
elseif skillType == "difficult" then
TradeSkillHighlightFrame.Left:SetGradientAlpha("Horizontal", 1, 0, 0, 0.35, 1, 0, 0, 0)
TradeSkillHighlightFrame.Right:SetGradientAlpha("Horizontal", 1, 0, 0, 0, 1, 0, 0, 0.35)
r, g, b = 1, 0.45, 0.15
end
TradeSkillHighlightFrame.Left:SetGradientAlpha("Horizontal", r, g, b, 0.35, r, g, b, 0)
TradeSkillHighlightFrame.Right:SetGradientAlpha("Horizontal", r, g, b, 0, r, g, b, 0.35)

local numReagents = GetTradeSkillNumReagents(id)
for i = 1, numReagents, 1 do
Expand Down
12 changes: 6 additions & 6 deletions ElvUI/modules/skins/blizzard/trainer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,16 @@ local function LoadSkin()
end

local _, _, serviceType = GetTrainerServiceInfo(id)
local r, g, b
if serviceType == "available" then
ClassTrainerSkillHighlightFrame.Left:SetGradientAlpha("Horizontal", 0, 1, 0, 0.35, 0, 1, 0, 0)
ClassTrainerSkillHighlightFrame.Right:SetGradientAlpha("Horizontal", 0, 1, 0, 0, 0, 1, 0, 0.35)
r, g, b = 0, 1, 0
elseif serviceType == "used" then
ClassTrainerSkillHighlightFrame.Left:SetGradientAlpha("Horizontal", 0.5, 0.5, 0.5, 0.40, 0.5, 0.5, 0.5, 0)
ClassTrainerSkillHighlightFrame.Right:SetGradientAlpha("Horizontal", 0.5, 0.5, 0.5, 0, 0.5, 0.5, 0.5, 0.40)
r, g, b = 0.5, 0.5, 0.5
elseif serviceType == "unavailable" then
ClassTrainerSkillHighlightFrame.Left:SetGradientAlpha("Horizontal", 1, 0, 0, 0.35, 1, 0, 0, 0)
ClassTrainerSkillHighlightFrame.Right:SetGradientAlpha("Horizontal", 1, 0, 0, 0, 1, 0, 0, 0.35)
r, g, b = 1, 0, 0
end
ClassTrainerSkillHighlightFrame.Left:SetGradientAlpha("Horizontal", r, g, b, 0.35, r, g, b, 0)
ClassTrainerSkillHighlightFrame.Right:SetGradientAlpha("Horizontal", r, g, b, 0, r, g, b, 0.35)
end)

CLASS_TRAINER_SKILLS_DISPLAYED = 19
Expand Down

0 comments on commit 2949226

Please sign in to comment.