Skip to content

Commit c856191

Browse files
committed
Add ReforgingUI skin
1 parent c3e097f commit c856191

File tree

14 files changed

+69
-0
lines changed

14 files changed

+69
-0
lines changed

ElvUI/Cata/Modules/Skins/Load_Skins.xml

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
<Script file='PVP.lua'/>
3939
<Script file='Quest.lua'/>
4040
<Script file='Raid.lua'/>
41+
<Script file='Reforge.lua'/>
4142
<Script file='SettingsPanel.lua'/>
4243
<Script file='Socket.lua'/>
4344
<Script file='SpellBook.lua'/>

ElvUI/Cata/Modules/Skins/Reforge.lua

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
local E, L, V, P, G = unpack(select(2, ...))
2+
local S = E:GetModule('Skins')
3+
4+
local unpack = unpack
5+
6+
local GetReforgeItemInfo = GetReforgeItemInfo
7+
8+
function S:Blizzard_ReforgingUI()
9+
if not (E.private.skins.blizzard.enable or not E.private.skins.blizzard.reforge) then return end
10+
11+
_G.ReforgingFrame:StripTextures()
12+
_G.ReforgingFrame:SetTemplate('Transparent')
13+
14+
_G.ReforgingFrameFinishedGlow:Kill()
15+
16+
_G.ReforgingFrameButtonFrame:StripTextures()
17+
18+
_G.ReforgingFrameRestoreMessage:SetTextColor(1, 1, 1)
19+
20+
S:HandleButton(_G.ReforgingFrameRestoreButton, true)
21+
22+
S:HandleButton(_G.ReforgingFrameReforgeButton, true)
23+
_G.ReforgingFrameReforgeButton:Point('BOTTOMRIGHT', -3, 3)
24+
25+
_G.ReforgingFrameItemButton:StripTextures()
26+
_G.ReforgingFrameItemButton:SetTemplate('Default', true)
27+
_G.ReforgingFrameItemButton:StyleButton()
28+
29+
_G.ReforgingFrameItemButtonIconTexture:SetInside()
30+
_G.ReforgingFrameItemButtonIconTexture:SetTexCoord(unpack(E.TexCoords))
31+
32+
_G.ReforgingFrameItemButton.missingText:SetTextColor(1, 0.80, 0.10)
33+
_G.ReforgingFrame.missingDescription:SetTextColor(1, 1, 1)
34+
35+
hooksecurefunc('ReforgingFrame_Update', function(self)
36+
local _, itemID, _, quality = C_Reforge.GetReforgeItemInfo()
37+
38+
if itemID then
39+
local itemTexture = C_Item.GetItemIconByID(itemID)
40+
_G.ReforgingFrameItemButtonIconTexture:SetTexture(itemTexture)
41+
end
42+
43+
-- Blizzard bug / commented out on their end / Blizzard_ReforgingUI.lua:101
44+
--[[
45+
if quality then
46+
_G.ReforgingFrameItemButton:SetBackdropBorderColor(GetItemQualityColor(quality))
47+
else
48+
_G.ReforgingFrameItemButton:SetBackdropBorderColor(unpack(E.media.bordercolor))
49+
end
50+
]]
51+
end)
52+
53+
S:HandleCloseButton(_G.ReforgingFrameCloseButton)
54+
end
55+
56+
S:AddCallbackForAddon('Blizzard_ReforgingUI')

ElvUI_Options/Core/Skins.lua

+1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ if E.Retail then
111111
elseif E.Cata then
112112
toggles.arena = L["Arena"]
113113
toggles.arenaRegistrar = L["Arena Registrar"]
114+
toggles.reforge = L["Reforge"]
114115
elseif E.Classic then
115116
toggles.engraving = L["Engraving"]
116117
toggles.battlefield = L["Battlefield"]

ElvUI_Options/Locales/deDE.lua

+1
Original file line numberDiff line numberDiff line change
@@ -1343,6 +1343,7 @@ L["Reaction"] = "Reaktion"
13431343
L["Reactions"] = "Reaktionen"
13441344
L["Ready Check Icon"] = "Bereitschaftssymbol"
13451345
L["Reagent"] = "Reagenz"
1346+
L["Reforge"] = "Umschmieden"
13461347
L["Remaining / Max"] = "Verbleibend / Max"
13471348
L["Remaining"] = "Verbleibend"
13481349
L["Remove a Item Name or ID from the list."] = "Entferne einen Gegenstandsnamen oder eine ID aus der Liste."

ElvUI_Options/Locales/enUS.lua

+1
Original file line numberDiff line numberDiff line change
@@ -1344,6 +1344,7 @@ L["Reaction"] = true
13441344
L["Reactions"] = true
13451345
L["Ready Check Icon"] = true
13461346
L["Reagent"] = true
1347+
L["Reforge"] = true
13471348
L["Remaining / Max"] = true
13481349
L["Remaining"] = true
13491350
L["Remove a Item Name or ID from the list."] = true

ElvUI_Options/Locales/esMX.lua

+1
Original file line numberDiff line numberDiff line change
@@ -1344,6 +1344,7 @@ L["Reaction"] = true
13441344
L["Reactions"] = "Reacciones"
13451345
L["Ready Check Icon"] = true
13461346
L["Reagent"] = true
1347+
L["Reforge"] = "Reforjar"
13471348
L["Remaining / Max"] = true
13481349
L["Remaining"] = "Restante"
13491350
L["Remove a Item Name or ID from the list."] = true

ElvUI_Options/Locales/frFR.lua

+1
Original file line numberDiff line numberDiff line change
@@ -1341,6 +1341,7 @@ L["Reaction"] = "Réaction"
13411341
L["Reactions"] = "Réactions"
13421342
L["Ready Check Icon"] = "Icône de vérification prêt"
13431343
L["Reagent"] = "Composant"
1344+
L["Reforge"] = "Retouche"
13441345
L["Remaining / Max"] = "Restant / Max"
13451346
L["Remaining"] = "Restant"
13461347
L["Remove a Item Name or ID from the list."] = "Retirer un nom ou un ID d'objet de la liste."

ElvUI_Options/Locales/itIT.lua

+1
Original file line numberDiff line numberDiff line change
@@ -1344,6 +1344,7 @@ L["Reaction"] = true
13441344
L["Reactions"] = true
13451345
L["Ready Check Icon"] = true
13461346
L["Reagent"] = true
1347+
L["Reforge"] = true
13471348
L["Remaining / Max"] = true
13481349
L["Remaining"] = true
13491350
L["Remove a Item Name or ID from the list."] = true

ElvUI_Options/Locales/koKR.lua

+1
Original file line numberDiff line numberDiff line change
@@ -1369,6 +1369,7 @@ L["Reaction"] = "관계"
13691369
L["Reactions"] = "관계"
13701370
L["Ready Check Icon"] = "전투준비 아이콘"
13711371
L["Reagent"] = "시약"
1372+
L["Reforge"] = "재연마"
13721373
L["Remaining / Max"] = "남은시간/최대"
13731374
L["Remaining"] = "남은 시간"
13741375
L["Remove a Item Name or ID from the list."] = "목록에서 아이템 이름 또는 ID를 제거합니다."

ElvUI_Options/Locales/ptBR.lua

+1
Original file line numberDiff line numberDiff line change
@@ -1345,6 +1345,7 @@ L["Reaction"] = true
13451345
L["Reactions"] = "Reações"
13461346
L["Ready Check Icon"] = true
13471347
L["Reagent"] = true
1348+
L["Reforge"] = "Reforjar"
13481349
L["Remaining / Max"] = "Restante / Máximo"
13491350
L["Remaining"] = "Restante"
13501351
L["Remove a Item Name or ID from the list."] = true

ElvUI_Options/Locales/ruRU.lua

+1
Original file line numberDiff line numberDiff line change
@@ -1354,6 +1354,7 @@ L["Reaction"] = "Реакция"
13541354
L["Reactions"] = "Отношение"
13551355
L["Ready Check Icon"] = "Иконка готовности"
13561356
L["Reagent"] = "Реагенты"
1357+
L["Reforge"] = "Перековать"
13571358
L["Remaining / Max"] = "Оставшееся / Максимальное"
13581359
L["Remaining"] = "Оставшееся"
13591360
L["Remove a Item Name or ID from the list."] = "Удалить имя или ID предмета из списка."

ElvUI_Options/Locales/trTR.lua

+1
Original file line numberDiff line numberDiff line change
@@ -1345,6 +1345,7 @@ L["Reaction"] = true
13451345
L["Reactions"] = "Reaksiyonlar"
13461346
L["Ready Check Icon"] = "Hazirlik Kontrol Ikonu"
13471347
L["Reagent"] = true
1348+
L["Reforge"] = true
13481349
L["Remaining / Max"] = "Kalan / Maks"
13491350
L["Remaining"] = "Geriye kalan"
13501351
L["Remove a Item Name or ID from the list."] = "Listeden bir Oge Ismi veya Kimligi kaldirin."

ElvUI_Options/Locales/zhCN.lua

+1
Original file line numberDiff line numberDiff line change
@@ -1345,6 +1345,7 @@ L["Reaction"] = true
13451345
L["Reactions"] = "声望"
13461346
L["Ready Check Icon"] = "就位确认图标"
13471347
L["Reagent"] = true
1348+
L["Reforge"] = "重铸"
13481349
L["Remaining / Max"] = "剩余值 / 最大值"
13491350
L["Remaining"] = "剩余值"
13501351
L["Remove a Item Name or ID from the list."] = "从列表中移除物品名称或ID"

ElvUI_Options/Locales/zhTW.lua

+1
Original file line numberDiff line numberDiff line change
@@ -1344,6 +1344,7 @@ L["Reaction"] = "聲望"
13441344
L["Reactions"] = "陣營聲望"
13451345
L["Ready Check Icon"] = "準備確認圖示"
13461346
L["Reagent"] = true
1347+
L["Reforge"] = "重鑄"
13471348
L["Remaining / Max"] = "剩餘時間 / 最大時間"
13481349
L["Remaining"] = "剩餘數值"
13491350
L["Remove a Item Name or ID from the list."] = "從列表中移除物品名稱或ID"

0 commit comments

Comments
 (0)