mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-24 21:10:49 +00:00
skin: move gamemenu aligment into skin
This commit is contained in:
@@ -63,18 +63,6 @@ pfUI:RegisterModule("skin", function ()
|
|||||||
"DropDownList2Backdrop",
|
"DropDownList2Backdrop",
|
||||||
}
|
}
|
||||||
|
|
||||||
local pfUIButton = CreateFrame("Button", "GameMenuButtonPFUI", GameMenuFrame, "GameMenuButtonTemplate")
|
|
||||||
pfUIButton:SetPoint("TOP", 0, -10)
|
|
||||||
pfUIButton:SetText(T["|cff33ffccpf|cffffffffUI|cffcccccc Config"])
|
|
||||||
pfUIButton:SetScript("OnClick", function()
|
|
||||||
pfUI.gui:Show()
|
|
||||||
HideUIPanel(GameMenuFrame)
|
|
||||||
end)
|
|
||||||
SkinButton(pfUIButton)
|
|
||||||
|
|
||||||
local point, relativeTo, relativePoint, xOffset, yOffset = GameMenuButtonOptions:GetPoint()
|
|
||||||
GameMenuButtonOptions:SetPoint(point, relativeTo, relativePoint, xOffset, yOffset - 22)
|
|
||||||
|
|
||||||
for _, box in pairs(boxes) do
|
for _, box in pairs(boxes) do
|
||||||
local b = _G[box]
|
local b = _G[box]
|
||||||
CreateBackdrop(b, nil, true, .8)
|
CreateBackdrop(b, nil, true, .8)
|
||||||
|
|||||||
@@ -10,6 +10,18 @@ pfUI:RegisterSkin("Game Menu", function ()
|
|||||||
title:SetPoint("TOP", GameMenuFrame, "TOP", 0, 16)
|
title:SetPoint("TOP", GameMenuFrame, "TOP", 0, 16)
|
||||||
title:SetFont(pfUI.font_default, C.global.font_size + 2, "OUTLINE")
|
title:SetFont(pfUI.font_default, C.global.font_size + 2, "OUTLINE")
|
||||||
|
|
||||||
|
local pfUIButton = CreateFrame("Button", "GameMenuButtonPFUI", GameMenuFrame, "GameMenuButtonTemplate")
|
||||||
|
pfUIButton:SetPoint("TOP", 0, -10)
|
||||||
|
pfUIButton:SetText(T["|cff33ffccpf|cffffffffUI|cffcccccc Config"])
|
||||||
|
pfUIButton:SetScript("OnClick", function()
|
||||||
|
pfUI.gui:Show()
|
||||||
|
HideUIPanel(GameMenuFrame)
|
||||||
|
end)
|
||||||
|
SkinButton(pfUIButton)
|
||||||
|
|
||||||
|
local point, relativeTo, relativePoint, xOffset, yOffset = GameMenuButtonOptions:GetPoint()
|
||||||
|
GameMenuButtonOptions:SetPoint(point, relativeTo, relativePoint, xOffset, yOffset - 22)
|
||||||
|
|
||||||
local buttons = {
|
local buttons = {
|
||||||
GameMenuButtonOptions,
|
GameMenuButtonOptions,
|
||||||
GameMenuButtonSoundOptions,
|
GameMenuButtonSoundOptions,
|
||||||
|
|||||||
Reference in New Issue
Block a user