mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-15 09:40:49 +00:00
skin: add GameMenuFrame
This commit is contained in:
@@ -32,29 +32,13 @@ pfUI:RegisterModule("skin", function ()
|
|||||||
local color = RAID_CLASS_COLORS[class]
|
local color = RAID_CLASS_COLORS[class]
|
||||||
local cr, cg, cb = color.r , color.g, color.b
|
local cr, cg, cb = color.r , color.g, color.b
|
||||||
|
|
||||||
local buttons = {
|
|
||||||
"GameMenuButtonOptions",
|
|
||||||
"GameMenuButtonSoundOptions",
|
|
||||||
"GameMenuButtonUIOptions",
|
|
||||||
"GameMenuButtonKeybindings",
|
|
||||||
"GameMenuButtonMacros",
|
|
||||||
"GameMenuButtonLogout",
|
|
||||||
"GameMenuButtonQuit",
|
|
||||||
"GameMenuButtonContinue",
|
|
||||||
}
|
|
||||||
|
|
||||||
local boxes = {
|
local boxes = {
|
||||||
"GameMenuFrame",
|
|
||||||
"DropDownList1MenuBackdrop",
|
"DropDownList1MenuBackdrop",
|
||||||
"DropDownList2MenuBackdrop",
|
"DropDownList2MenuBackdrop",
|
||||||
"DropDownList1Backdrop",
|
"DropDownList1Backdrop",
|
||||||
"DropDownList2Backdrop",
|
"DropDownList2Backdrop",
|
||||||
}
|
}
|
||||||
|
|
||||||
GameMenuFrameHeader:SetTexture(nil)
|
|
||||||
GameMenuFrame:SetHeight(GameMenuFrame:GetHeight()+2)
|
|
||||||
GameMenuFrame:SetWidth(GameMenuFrame:GetWidth()-30)
|
|
||||||
|
|
||||||
local pfUIButton = CreateFrame("Button", "GameMenuButtonPFUI", GameMenuFrame, "GameMenuButtonTemplate")
|
local pfUIButton = CreateFrame("Button", "GameMenuButtonPFUI", GameMenuFrame, "GameMenuButtonTemplate")
|
||||||
pfUIButton:SetPoint("TOP", 0, -10)
|
pfUIButton:SetPoint("TOP", 0, -10)
|
||||||
pfUIButton:SetText(T["|cff33ffccpf|cffffffffUI|cffcccccc Config"])
|
pfUIButton:SetText(T["|cff33ffccpf|cffffffffUI|cffcccccc Config"])
|
||||||
@@ -67,23 +51,11 @@ pfUI:RegisterModule("skin", function ()
|
|||||||
local point, relativeTo, relativePoint, xOffset, yOffset = GameMenuButtonOptions:GetPoint()
|
local point, relativeTo, relativePoint, xOffset, yOffset = GameMenuButtonOptions:GetPoint()
|
||||||
GameMenuButtonOptions:SetPoint(point, relativeTo, relativePoint, xOffset, yOffset - 22)
|
GameMenuButtonOptions:SetPoint(point, relativeTo, relativePoint, xOffset, yOffset - 22)
|
||||||
|
|
||||||
for _, button in pairs(buttons) do
|
|
||||||
SkinButton(button)
|
|
||||||
end
|
|
||||||
|
|
||||||
for _, box in pairs(boxes) do
|
for _, box in pairs(boxes) do
|
||||||
local b = getglobal(box)
|
local b = getglobal(box)
|
||||||
CreateBackdrop(b, nil, true, .8)
|
CreateBackdrop(b, nil, true, .8)
|
||||||
end
|
end
|
||||||
|
|
||||||
for i,v in ipairs({GameMenuFrame:GetRegions()}) do
|
|
||||||
if v.SetTextColor then
|
|
||||||
v:SetTextColor(1,1,1,1)
|
|
||||||
v:SetPoint("TOP", GameMenuFrame, "TOP", 0, 16)
|
|
||||||
v:SetFont(pfUI.font_default, C.global.font_size + 2, "OUTLINE")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
local alpha = tonumber(C.tooltip.alpha)
|
local alpha = tonumber(C.tooltip.alpha)
|
||||||
|
|
||||||
-- skin worldmap tooltips
|
-- skin worldmap tooltips
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ skins\blizzard\trade.lua
|
|||||||
skins\blizzard\trainer.lua
|
skins\blizzard\trainer.lua
|
||||||
skins\blizzard\battlefield.lua
|
skins\blizzard\battlefield.lua
|
||||||
skins\blizzard\dressup.lua
|
skins\blizzard\dressup.lua
|
||||||
|
skins\blizzard\game_menu.lua
|
||||||
|
|
||||||
# modules
|
# modules
|
||||||
modules\gui.lua
|
modules\gui.lua
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
pfUI:RegisterSkin("GameMenuFrame", function ()
|
||||||
|
StripTextures(GameMenuFrame)
|
||||||
|
CreateBackdrop(GameMenuFrame, nil, true, .75)
|
||||||
|
GameMenuFrame:SetHeight(GameMenuFrame:GetHeight() + 2)
|
||||||
|
GameMenuFrame:SetWidth(GameMenuFrame:GetWidth() - 30)
|
||||||
|
|
||||||
|
local title = GetNoNameObject(GameMenuFrame, "FontString", "ARTWORK", MAIN_MENU)
|
||||||
|
title:SetTextColor(1,1,1,1)
|
||||||
|
title:ClearAllPoints()
|
||||||
|
title:SetPoint("TOP", GameMenuFrame, "TOP", 0, 16)
|
||||||
|
title:SetFont(pfUI.font_default, C.global.font_size + 2, "OUTLINE")
|
||||||
|
|
||||||
|
local buttons = {
|
||||||
|
GameMenuButtonOptions,
|
||||||
|
GameMenuButtonSoundOptions,
|
||||||
|
GameMenuButtonUIOptions,
|
||||||
|
GameMenuButtonKeybindings,
|
||||||
|
GameMenuButtonMacros,
|
||||||
|
GameMenuButtonLogout,
|
||||||
|
GameMenuButtonQuit,
|
||||||
|
GameMenuButtonContinue
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, button in pairs(buttons) do
|
||||||
|
SkinButton(button)
|
||||||
|
end
|
||||||
|
end)
|
||||||
Reference in New Issue
Block a user