mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update skins, Battlefield, Gossip, Greeting
This commit is contained in:
@@ -1,6 +1,11 @@
|
|||||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||||
local S = E:GetModule("Skins");
|
local S = E:GetModule("Skins");
|
||||||
|
|
||||||
|
--Cache global variables
|
||||||
|
--Lua functions
|
||||||
|
|
||||||
|
--WoW API / Variables
|
||||||
|
|
||||||
local function LoadSkin()
|
local function LoadSkin()
|
||||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.battlefield ~= true then return end
|
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.battlefield ~= true then return end
|
||||||
|
|
||||||
@@ -13,6 +18,8 @@ local function LoadSkin()
|
|||||||
E:StripTextures(BattlefieldListScrollFrame)
|
E:StripTextures(BattlefieldListScrollFrame)
|
||||||
S:HandleScrollBar(BattlefieldListScrollFrameScrollBar)
|
S:HandleScrollBar(BattlefieldListScrollFrameScrollBar)
|
||||||
|
|
||||||
|
BattlefieldFrameZoneDescription:SetTextColor(1, 1, 1)
|
||||||
|
|
||||||
S:HandleButton(BattlefieldFrameCancelButton)
|
S:HandleButton(BattlefieldFrameCancelButton)
|
||||||
S:HandleButton(BattlefieldFrameJoinButton)
|
S:HandleButton(BattlefieldFrameJoinButton)
|
||||||
S:HandleButton(BattlefieldFrameGroupJoinButton)
|
S:HandleButton(BattlefieldFrameGroupJoinButton)
|
||||||
|
|||||||
@@ -5,54 +5,54 @@ local S = E:GetModule("Skins");
|
|||||||
--Lua functions
|
--Lua functions
|
||||||
local _G = _G
|
local _G = _G
|
||||||
--WoW API / Variables
|
--WoW API / Variables
|
||||||
local hooksecurefunc = hooksecurefunc
|
|
||||||
|
|
||||||
local function LoadSkin()
|
local function LoadSkin()
|
||||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.gossip ~= true then return end
|
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.gossip ~= true then return end
|
||||||
|
|
||||||
|
-- ItemTextFrame
|
||||||
E:StripTextures(ItemTextFrame, true)
|
E:StripTextures(ItemTextFrame, true)
|
||||||
E:StripTextures(ItemTextScrollFrame)
|
E:StripTextures(ItemTextScrollFrame)
|
||||||
|
|
||||||
S:HandleScrollBar(ItemTextScrollFrameScrollBar)
|
S:HandleScrollBar(ItemTextScrollFrameScrollBar)
|
||||||
|
|
||||||
E:CreateBackdrop(ItemTextFrame, "Transparent")
|
E:CreateBackdrop(ItemTextFrame, "Transparent")
|
||||||
ItemTextFrame.backdrop:SetPoint("TOPLEFT", 13, -13)
|
ItemTextFrame.backdrop:SetPoint("TOPLEFT", 13, -13)
|
||||||
ItemTextFrame.backdrop:SetPoint("BOTTOMRIGHT", -32, 74)
|
ItemTextFrame.backdrop:SetPoint("BOTTOMRIGHT", -32, 74)
|
||||||
S:HandleCloseButton(ItemTextCloseButton)
|
|
||||||
S:HandleNextPrevButton(ItemTextPrevPageButton)
|
S:HandleNextPrevButton(ItemTextPrevPageButton)
|
||||||
S:HandleNextPrevButton(ItemTextNextPageButton)
|
S:HandleNextPrevButton(ItemTextNextPageButton)
|
||||||
|
ItemTextPrevPageButton:ClearAllPoints()
|
||||||
|
ItemTextNextPageButton:ClearAllPoints()
|
||||||
|
ItemTextPrevPageButton:SetPoint("TOPLEFT", ItemTextFrame, "TOPLEFT", 30, -50)
|
||||||
|
ItemTextNextPageButton:SetPoint("TOPRIGHT", ItemTextFrame, "TOPRIGHT", -48, -50)
|
||||||
|
|
||||||
|
S:HandleCloseButton(ItemTextCloseButton)
|
||||||
|
|
||||||
ItemTextPageText:SetTextColor(1, 1, 1)
|
ItemTextPageText:SetTextColor(1, 1, 1)
|
||||||
ItemTextPageText.SetTextColor = E.noop
|
ItemTextPageText.SetTextColor = E.noop
|
||||||
|
|
||||||
S:HandleScrollBar(GossipGreetingScrollFrameScrollBar, 5)
|
-- GossipFrame
|
||||||
|
|
||||||
E:StripTextures(GossipFrameGreetingPanel)
|
E:StripTextures(GossipFrameGreetingPanel)
|
||||||
|
|
||||||
|
S:HandleScrollBar(GossipGreetingScrollFrameScrollBar, 5)
|
||||||
|
|
||||||
E:Kill(GossipFramePortrait)
|
E:Kill(GossipFramePortrait)
|
||||||
|
|
||||||
|
E:CreateBackdrop(GossipFrame, "Transparent")
|
||||||
|
GossipFrame.backdrop:SetPoint("TOPLEFT", 15, -19)
|
||||||
|
GossipFrame.backdrop:SetPoint("BOTTOMRIGHT", -30, 67)
|
||||||
|
|
||||||
S:HandleButton(GossipFrameGreetingGoodbyeButton)
|
S:HandleButton(GossipFrameGreetingGoodbyeButton)
|
||||||
GossipFrameGreetingGoodbyeButton:SetPoint("BOTTOMRIGHT", GossipFrame, -34, 71)
|
GossipFrameGreetingGoodbyeButton:SetPoint("BOTTOMRIGHT", GossipFrame, -34, 71)
|
||||||
|
|
||||||
--[[for i = 1, NUMGOSSIPBUTTONS do
|
|
||||||
local obj = select(3,_G["GossipTitleButton"..i]:GetRegions())
|
|
||||||
obj:SetTextColor(1, 1, 1)
|
|
||||||
end]]
|
|
||||||
|
|
||||||
GossipGreetingText:SetTextColor(1,1,1)
|
|
||||||
E:CreateBackdrop(GossipFrame, "Transparent")
|
|
||||||
GossipFrame.backdrop:SetPoint("TOPLEFT", 15, -19)
|
|
||||||
GossipFrame.backdrop:SetPoint("BOTTOMRIGHT", -30, 67)
|
|
||||||
S:HandleCloseButton(GossipFrameCloseButton)
|
S:HandleCloseButton(GossipFrameCloseButton)
|
||||||
|
|
||||||
hooksecurefunc("GossipFrameUpdate", function()
|
GossipGreetingText:SetTextColor(1, 1, 1)
|
||||||
for i=1, NUMGOSSIPBUTTONS do
|
|
||||||
local button = _G["GossipTitleButton"..i]
|
|
||||||
|
|
||||||
if button:GetFontString() then
|
for i = 1, NUMGOSSIPBUTTONS do
|
||||||
if button:GetFontString():GetText() and string.gfind(button:GetFontString():GetText(), "|cff000000") then
|
local button = _G["GossipTitleButton"..i]
|
||||||
button:GetFontString():SetText(string.gsub(button:GetFontString():GetText(), "|cff000000", "|cffFFFF00"))
|
button:SetTextColor(1, 1, 1)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
S:AddCallback("Gossip", LoadSkin)
|
S:AddCallback("Gossip", LoadSkin)
|
||||||
@@ -4,31 +4,27 @@ local S = E:GetModule("Skins");
|
|||||||
--Cache global variables
|
--Cache global variables
|
||||||
--Lua functions
|
--Lua functions
|
||||||
local _G = _G
|
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
|
||||||
|
|
||||||
HookScript(QuestFrameGreetingPanel, "OnShow", function()
|
E:StripTextures(QuestFrameGreetingPanel)
|
||||||
E:StripTextures(QuestFrameGreetingPanel)
|
|
||||||
S:HandleButton(QuestFrameGreetingGoodbyeButton, true)
|
E:Kill(QuestGreetingFrameHorizontalBreak)
|
||||||
GreetingText:SetTextColor(1, 1, 1)
|
|
||||||
CurrentQuestsText:SetTextColor(1, 1, 0)
|
S:HandleScrollBar(QuestGreetingScrollFrameScrollBar)
|
||||||
E:Kill(QuestGreetingFrameHorizontalBreak)
|
|
||||||
AvailableQuestsText:SetTextColor(1, 1, 0)
|
S:HandleButton(QuestFrameGreetingGoodbyeButton, true)
|
||||||
S:HandleScrollBar(QuestGreetingScrollFrameScrollBar)
|
|
||||||
for i = 1, MAX_NUM_QUESTS do
|
GreetingText:SetTextColor(1, 1, 1)
|
||||||
local button = _G["QuestTitleButton"..i]
|
CurrentQuestsText:SetTextColor(1, 1, 0)
|
||||||
button:SetTextColor(1, 1, 1)
|
AvailableQuestsText:SetTextColor(1, 1, 0)
|
||||||
if button:GetFontString() then
|
|
||||||
if button:GetFontString():GetText() and find(button:GetFontString():GetText(), "|cff000000") then
|
for i = 1, MAX_NUM_QUESTS do
|
||||||
button:GetFontString():SetText(gsub(button:GetFontString():GetText(), "|cff000000", "|cffFFFF00"))
|
local button = _G["QuestTitleButton"..i]
|
||||||
end
|
button:SetTextColor(1, 1, 0)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
S:AddCallback("Greeting", LoadSkin)
|
S:AddCallback("Greeting", LoadSkin)
|
||||||
Reference in New Issue
Block a user