mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-14 17:20:50 +00:00
add pfUI settings to esc-menu
This commit is contained in:
+15
-3
@@ -8,6 +8,7 @@ pfUI:RegisterModule("skin", function ()
|
|||||||
local cr, cg, cb = color.r , color.g, color.b
|
local cr, cg, cb = color.r , color.g, color.b
|
||||||
|
|
||||||
local buttons = {
|
local buttons = {
|
||||||
|
"GameMenuButtonPFUI",
|
||||||
"GameMenuButtonOptions",
|
"GameMenuButtonOptions",
|
||||||
"GameMenuButtonSoundOptions",
|
"GameMenuButtonSoundOptions",
|
||||||
"GameMenuButtonUIOptions",
|
"GameMenuButtonUIOptions",
|
||||||
@@ -33,6 +34,17 @@ pfUI:RegisterModule("skin", function ()
|
|||||||
"DropDownList2Backdrop",
|
"DropDownList2Backdrop",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local pfUIButton = CreateFrame("Button", "GameMenuButtonPFUI", GameMenuFrame, "GameMenuButtonTemplate")
|
||||||
|
pfUIButton:SetPoint("TOP", 0, -10)
|
||||||
|
pfUIButton:SetText("\"pfUI\" Settings")
|
||||||
|
pfUIButton:SetScript("OnClick", function()
|
||||||
|
pfUI.gui:Show()
|
||||||
|
HideUIPanel(GameMenuFrame)
|
||||||
|
end)
|
||||||
|
GameMenuButtonOptions:SetPoint("TOP", 0, -35)
|
||||||
|
GameMenuButtonContinue:ClearAllPoints()
|
||||||
|
GameMenuButtonContinue:SetPoint("BOTTOM", 0, 10)
|
||||||
|
|
||||||
for _, button in pairs(buttons) do
|
for _, button in pairs(buttons) do
|
||||||
local b = getglobal(button)
|
local b = getglobal(button)
|
||||||
b:SetBackdrop(pfUI.backdrop)
|
b:SetBackdrop(pfUI.backdrop)
|
||||||
@@ -59,9 +71,9 @@ pfUI:RegisterModule("skin", function ()
|
|||||||
|
|
||||||
for i,v in ipairs({GameMenuFrame:GetRegions()}) do
|
for i,v in ipairs({GameMenuFrame:GetRegions()}) do
|
||||||
if v.SetTextColor then
|
if v.SetTextColor then
|
||||||
v:SetTextColor(1,1,1,.5)
|
v:SetTextColor(1,1,1,1)
|
||||||
v:SetPoint("TOP", GameMenuFrame, "TOP", 0, -6)
|
v:SetPoint("TOP", GameMenuFrame, "TOP", 0, 16)
|
||||||
v:SetFont("Interface\\AddOns\\pfUI\\fonts\\arial.ttf", pfUI_config.global.font_size, "OUTLINE")
|
v:SetFont("Interface\\AddOns\\pfUI\\fonts\\arial.ttf", pfUI_config.global.font_size + 2, "OUTLINE")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user