Skip to content

Commit

Permalink
Add ReforgingUI skin
Browse files Browse the repository at this point in the history
  • Loading branch information
Luckyone961 committed Apr 8, 2024
1 parent c3e097f commit c856191
Show file tree
Hide file tree
Showing 14 changed files with 69 additions and 0 deletions.
1 change: 1 addition & 0 deletions ElvUI/Cata/Modules/Skins/Load_Skins.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<Script file='PVP.lua'/>
<Script file='Quest.lua'/>
<Script file='Raid.lua'/>
<Script file='Reforge.lua'/>
<Script file='SettingsPanel.lua'/>
<Script file='Socket.lua'/>
<Script file='SpellBook.lua'/>
Expand Down
56 changes: 56 additions & 0 deletions ElvUI/Cata/Modules/Skins/Reforge.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
local E, L, V, P, G = unpack(select(2, ...))
local S = E:GetModule('Skins')

local unpack = unpack

local GetReforgeItemInfo = GetReforgeItemInfo

function S:Blizzard_ReforgingUI()
if not (E.private.skins.blizzard.enable or not E.private.skins.blizzard.reforge) then return end

_G.ReforgingFrame:StripTextures()
_G.ReforgingFrame:SetTemplate('Transparent')

_G.ReforgingFrameFinishedGlow:Kill()

_G.ReforgingFrameButtonFrame:StripTextures()

_G.ReforgingFrameRestoreMessage:SetTextColor(1, 1, 1)

S:HandleButton(_G.ReforgingFrameRestoreButton, true)

S:HandleButton(_G.ReforgingFrameReforgeButton, true)
_G.ReforgingFrameReforgeButton:Point('BOTTOMRIGHT', -3, 3)

_G.ReforgingFrameItemButton:StripTextures()
_G.ReforgingFrameItemButton:SetTemplate('Default', true)
_G.ReforgingFrameItemButton:StyleButton()

_G.ReforgingFrameItemButtonIconTexture:SetInside()
_G.ReforgingFrameItemButtonIconTexture:SetTexCoord(unpack(E.TexCoords))

_G.ReforgingFrameItemButton.missingText:SetTextColor(1, 0.80, 0.10)
_G.ReforgingFrame.missingDescription:SetTextColor(1, 1, 1)

hooksecurefunc('ReforgingFrame_Update', function(self)
local _, itemID, _, quality = C_Reforge.GetReforgeItemInfo()

if itemID then
local itemTexture = C_Item.GetItemIconByID(itemID)
_G.ReforgingFrameItemButtonIconTexture:SetTexture(itemTexture)
end

-- Blizzard bug / commented out on their end / Blizzard_ReforgingUI.lua:101
--[[
if quality then
_G.ReforgingFrameItemButton:SetBackdropBorderColor(GetItemQualityColor(quality))
else
_G.ReforgingFrameItemButton:SetBackdropBorderColor(unpack(E.media.bordercolor))
end
]]
end)

S:HandleCloseButton(_G.ReforgingFrameCloseButton)
end

S:AddCallbackForAddon('Blizzard_ReforgingUI')
1 change: 1 addition & 0 deletions ElvUI_Options/Core/Skins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ if E.Retail then
elseif E.Cata then
toggles.arena = L["Arena"]
toggles.arenaRegistrar = L["Arena Registrar"]
toggles.reforge = L["Reforge"]
elseif E.Classic then
toggles.engraving = L["Engraving"]
toggles.battlefield = L["Battlefield"]
Expand Down
1 change: 1 addition & 0 deletions ElvUI_Options/Locales/deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1343,6 +1343,7 @@ L["Reaction"] = "Reaktion"
L["Reactions"] = "Reaktionen"
L["Ready Check Icon"] = "Bereitschaftssymbol"
L["Reagent"] = "Reagenz"
L["Reforge"] = "Umschmieden"
L["Remaining / Max"] = "Verbleibend / Max"
L["Remaining"] = "Verbleibend"
L["Remove a Item Name or ID from the list."] = "Entferne einen Gegenstandsnamen oder eine ID aus der Liste."
Expand Down
1 change: 1 addition & 0 deletions ElvUI_Options/Locales/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1344,6 +1344,7 @@ L["Reaction"] = true
L["Reactions"] = true
L["Ready Check Icon"] = true
L["Reagent"] = true
L["Reforge"] = true
L["Remaining / Max"] = true
L["Remaining"] = true
L["Remove a Item Name or ID from the list."] = true
Expand Down
1 change: 1 addition & 0 deletions ElvUI_Options/Locales/esMX.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1344,6 +1344,7 @@ L["Reaction"] = true
L["Reactions"] = "Reacciones"
L["Ready Check Icon"] = true
L["Reagent"] = true
L["Reforge"] = "Reforjar"
L["Remaining / Max"] = true
L["Remaining"] = "Restante"
L["Remove a Item Name or ID from the list."] = true
Expand Down
1 change: 1 addition & 0 deletions ElvUI_Options/Locales/frFR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1341,6 +1341,7 @@ L["Reaction"] = "Réaction"
L["Reactions"] = "Réactions"
L["Ready Check Icon"] = "Icône de vérification prêt"
L["Reagent"] = "Composant"
L["Reforge"] = "Retouche"
L["Remaining / Max"] = "Restant / Max"
L["Remaining"] = "Restant"
L["Remove a Item Name or ID from the list."] = "Retirer un nom ou un ID d'objet de la liste."
Expand Down
1 change: 1 addition & 0 deletions ElvUI_Options/Locales/itIT.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1344,6 +1344,7 @@ L["Reaction"] = true
L["Reactions"] = true
L["Ready Check Icon"] = true
L["Reagent"] = true
L["Reforge"] = true
L["Remaining / Max"] = true
L["Remaining"] = true
L["Remove a Item Name or ID from the list."] = true
Expand Down
1 change: 1 addition & 0 deletions ElvUI_Options/Locales/koKR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1369,6 +1369,7 @@ L["Reaction"] = "관계"
L["Reactions"] = "관계"
L["Ready Check Icon"] = "전투준비 아이콘"
L["Reagent"] = "시약"
L["Reforge"] = "재연마"
L["Remaining / Max"] = "남은시간/최대"
L["Remaining"] = "남은 시간"
L["Remove a Item Name or ID from the list."] = "목록에서 아이템 이름 또는 ID를 제거합니다."
Expand Down
1 change: 1 addition & 0 deletions ElvUI_Options/Locales/ptBR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1345,6 +1345,7 @@ L["Reaction"] = true
L["Reactions"] = "Reações"
L["Ready Check Icon"] = true
L["Reagent"] = true
L["Reforge"] = "Reforjar"
L["Remaining / Max"] = "Restante / Máximo"
L["Remaining"] = "Restante"
L["Remove a Item Name or ID from the list."] = true
Expand Down
1 change: 1 addition & 0 deletions ElvUI_Options/Locales/ruRU.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1354,6 +1354,7 @@ L["Reaction"] = "Реакция"
L["Reactions"] = "Отношение"
L["Ready Check Icon"] = "Иконка готовности"
L["Reagent"] = "Реагенты"
L["Reforge"] = "Перековать"
L["Remaining / Max"] = "Оставшееся / Максимальное"
L["Remaining"] = "Оставшееся"
L["Remove a Item Name or ID from the list."] = "Удалить имя или ID предмета из списка."
Expand Down
1 change: 1 addition & 0 deletions ElvUI_Options/Locales/trTR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1345,6 +1345,7 @@ L["Reaction"] = true
L["Reactions"] = "Reaksiyonlar"
L["Ready Check Icon"] = "Hazirlik Kontrol Ikonu"
L["Reagent"] = true
L["Reforge"] = true
L["Remaining / Max"] = "Kalan / Maks"
L["Remaining"] = "Geriye kalan"
L["Remove a Item Name or ID from the list."] = "Listeden bir Oge Ismi veya Kimligi kaldirin."
Expand Down
1 change: 1 addition & 0 deletions ElvUI_Options/Locales/zhCN.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1345,6 +1345,7 @@ L["Reaction"] = true
L["Reactions"] = "声望"
L["Ready Check Icon"] = "就位确认图标"
L["Reagent"] = true
L["Reforge"] = "重铸"
L["Remaining / Max"] = "剩余值 / 最大值"
L["Remaining"] = "剩余值"
L["Remove a Item Name or ID from the list."] = "从列表中移除物品名称或ID"
Expand Down
1 change: 1 addition & 0 deletions ElvUI_Options/Locales/zhTW.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1344,6 +1344,7 @@ L["Reaction"] = "聲望"
L["Reactions"] = "陣營聲望"
L["Ready Check Icon"] = "準備確認圖示"
L["Reagent"] = true
L["Reforge"] = "重鑄"
L["Remaining / Max"] = "剩餘時間 / 最大時間"
L["Remaining"] = "剩餘數值"
L["Remove a Item Name or ID from the list."] = "從列表中移除物品名稱或ID"
Expand Down

0 comments on commit c856191

Please sign in to comment.