mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-12 00:20:01 +00:00
profiles: add modern profile
This commit is contained in:
+19
-19
@@ -131,36 +131,36 @@ pfUI:RegisterModule("firstrun", "vanilla:tbc", function ()
|
||||
local f = CreateFirstRunPage()
|
||||
f.text:SetText(T["A new installation of |cff33ffccpf|rUI ships with 4 prebuilt design profiles. Click below if you wish to load one of these profiles."])
|
||||
|
||||
f.pfUI = CreateFrame("Button", nil, f, "UIPanelButtonTemplate")
|
||||
f.pfUI:SetWidth(120)
|
||||
f.pfUI:SetHeight(20)
|
||||
f.pfUI:SetPoint("BOTTOM", -65, 80)
|
||||
f.pfUI:SetTextColor(1,1,1)
|
||||
f.pfUI:SetText("pfUI")
|
||||
f.pfUI:SetScript("OnClick", function()
|
||||
_G["pfUI_config"] = CopyTable(pfUI_profiles["pfUI"])
|
||||
f.Modern = CreateFrame("Button", nil, f, "UIPanelButtonTemplate")
|
||||
f.Modern:SetWidth(120)
|
||||
f.Modern:SetHeight(20)
|
||||
f.Modern:SetPoint("BOTTOM", -65, 80)
|
||||
f.Modern:SetTextColor(1,1,1)
|
||||
f.Modern:SetText("Modern")
|
||||
f.Modern:SetScript("OnClick", function()
|
||||
_G["pfUI_config"] = CopyTable(pfUI_profiles["Modern"])
|
||||
pfUI:LoadConfig()
|
||||
ReloadUI()
|
||||
end)
|
||||
SkinButton(f.pfUI)
|
||||
SkinButton(f.Modern)
|
||||
|
||||
f.pfUIDark = CreateFrame("Button", nil, f, "UIPanelButtonTemplate")
|
||||
f.pfUIDark:SetWidth(120)
|
||||
f.pfUIDark:SetHeight(20)
|
||||
f.pfUIDark:SetPoint("BOTTOM", -65, 55)
|
||||
f.pfUIDark:SetTextColor(1,1,1)
|
||||
f.pfUIDark:SetText("Dark")
|
||||
f.pfUIDark:SetScript("OnClick", function()
|
||||
_G["pfUI_config"] = CopyTable(pfUI_profiles["pfUI Dark"])
|
||||
f.Legacy = CreateFrame("Button", nil, f, "UIPanelButtonTemplate")
|
||||
f.Legacy:SetWidth(120)
|
||||
f.Legacy:SetHeight(20)
|
||||
f.Legacy:SetPoint("BOTTOM", 65, 80)
|
||||
f.Legacy:SetTextColor(1,1,1)
|
||||
f.Legacy:SetText("Legacy")
|
||||
f.Legacy:SetScript("OnClick", function()
|
||||
_G["pfUI_config"] = CopyTable(pfUI_profiles["Legacy"])
|
||||
pfUI:LoadConfig()
|
||||
ReloadUI()
|
||||
end)
|
||||
SkinButton(f.pfUIDark)
|
||||
SkinButton(f.Legacy)
|
||||
|
||||
f.Slim = CreateFrame("Button", nil, f, "UIPanelButtonTemplate")
|
||||
f.Slim:SetWidth(120)
|
||||
f.Slim:SetHeight(20)
|
||||
f.Slim:SetPoint("BOTTOM", 65, 80)
|
||||
f.Slim:SetPoint("BOTTOM", -65, 55)
|
||||
f.Slim:SetTextColor(1,1,1)
|
||||
f.Slim:SetText("Slim")
|
||||
f.Slim:SetScript("OnClick", function()
|
||||
|
||||
Reference in New Issue
Block a user