Files
pfUI/skins/blizzard/game_menu.lua
T
Artur91425 a75fd5dca4 skins: add a bunch of tbc compatible skins
* add skin for: auction, character, game_menu
  guild_registrar, inspect, macro, mail,
  merchant, options-interface, options-sound,
  options-video, popup_dialogs, professions,
  questlog, talents, tracking, guildbank,
  socket, readycheck, arena_registrar,
  arena, time_manager, LFG
* add mail highlighting the quality of items
* add quality borders of guildbank items
2019-06-16 15:03:35 +02:00

46 lines
1.5 KiB
Lua

pfUI:RegisterSkin("Game Menu", "vanilla:tbc", function ()
StripTextures(GameMenuFrame)
CreateBackdrop(GameMenuFrame, nil, true, .75)
CreateBackdropShadow(GameMenuFrame)
GameMenuFrame:SetWidth(GameMenuFrame:GetWidth() - 30)
if pfUI.expansion == 'tbc' then
GameMenuFrame:SetHeight(GameMenuFrame:GetHeight() + 10)
elseif pfUI.expansion == 'vanilla' then
GameMenuFrame:SetHeight(GameMenuFrame:GetHeight() + 6)
end
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 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 = {
GameMenuButtonOptions,
GameMenuButtonSoundOptions,
GameMenuButtonUIOptions,
GameMenuButtonKeybindings,
GameMenuButtonMacros,
GameMenuButtonLogout,
GameMenuButtonQuit,
GameMenuButtonContinue
}
for _, button in pairs(buttons) do
SkinButton(button)
end
end)