mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update Greeting skin
This commit is contained in:
@@ -3,8 +3,10 @@ local S = E:GetModule("Skins");
|
|||||||
|
|
||||||
--Cache global variables
|
--Cache global variables
|
||||||
--Lua functions
|
--Lua functions
|
||||||
local _G = getfenv()
|
local _G = _G
|
||||||
|
local find, gsub = string.find, string.gsub
|
||||||
--WoW API / Variables
|
--WoW API / Variables
|
||||||
|
local HookScript = HookScript
|
||||||
|
|
||||||
local function LoadSkin()
|
local function LoadSkin()
|
||||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.greeting ~= true then return end
|
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.greeting ~= true then return end
|
||||||
@@ -17,11 +19,12 @@ local function LoadSkin()
|
|||||||
E:Kill(QuestGreetingFrameHorizontalBreak)
|
E:Kill(QuestGreetingFrameHorizontalBreak)
|
||||||
AvailableQuestsText:SetTextColor(1, 1, 0)
|
AvailableQuestsText:SetTextColor(1, 1, 0)
|
||||||
S:HandleScrollBar(QuestGreetingScrollFrameScrollBar)
|
S:HandleScrollBar(QuestGreetingScrollFrameScrollBar)
|
||||||
for i=1, MAX_NUM_QUESTS do
|
for i = 1, MAX_NUM_QUESTS do
|
||||||
local button = _G["QuestTitleButton"..i]
|
local button = _G["QuestTitleButton"..i]
|
||||||
|
button:SetTextColor(1, 1, 1)
|
||||||
if button:GetFontString() then
|
if button:GetFontString() then
|
||||||
if button:GetFontString():GetText() and string.gfind(button:GetFontString():GetText(), "|cff000000") then
|
if button:GetFontString():GetText() and find(button:GetFontString():GetText(), "|cff000000") then
|
||||||
button:GetFontString():SetText(string.gsub(button:GetFontString():GetText(), "|cff000000", "|cffFFFF00"))
|
button:GetFontString():SetText(gsub(button:GetFontString():GetText(), "|cff000000", "|cffFFFF00"))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user