profiles: add modern profile

This commit is contained in:
shagu
2022-04-17 18:51:58 +02:00
parent ece76e710a
commit 0576a49854
2 changed files with 208 additions and 29 deletions
+189 -10
View File
@@ -1,23 +1,202 @@
local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_ENTERING_WORLD")
f:SetScript("OnEvent", function()
-- pfUI
pfUI_profiles["pfUI"] = {
-- Modern
pfUI_profiles["Modern"] = {
["chat"] = {
["global"] = {
["custombg"] = "1",
["border"] = "0.1,0.1,0.1,0.5",
["background"] = "0.1,0.1,0.1,0.2",
},
["right"] = {
["enable"] = "1",
["alwaysshow"] = "1",
},
},
["global"] = {
["font_unit"] = "Interface\\AddOns\\pfUI\\fonts\\Myriad-Pro.ttf",
["font_size"] = "11",
["font_unit_size"] = "11",
},
["panel"] = {
["left"] = {
["left"] = "exp",
},
["xp"] = {
["dont_overlap"] = "1",
["xp_always"] = "1",
["xp_mode"] = "HORIZONTAL",
["xp_position"] = "TOP",
["xp_anchor"] = "pfActionBarLeft",
["xp_color"] = "0.6,0.6,0.6,1",
["rest_color"] = "0.4,0.4,0.4,0.5",
["xp_height"] = "4",
["rep_always"] = "1",
["rep_mode"] = "HORIZONTAL",
["rep_position"] = "TOP",
["rep_anchor"] = "pfActionBarRight",
["rep_height"] = "4",
["rep_display"] = "FLEX",
},
},
["unitframes"] = {
["custom"] = "2",
["custompbgcolor"] = "0.3,0.1,0.1,1",
["custombgcolor"] = "0.3,0.1,0.1,1",
["ragecolor"] = "0.6,0.2,0.2,1",
["energycolor"] = "0.6,0.4,0.2,1",
["manacolor"] = "0.2,0.2,0.4,1",
["focuscolor"] = "0.6,0.4,0.2,1",
["customcolor"] = "0.1,0.1,0.1,1",
["grouptarget"] = {
["bartexture"] = "Interface\\AddOns\\pfUI\\img\\bar_gradient",
},
["ptarget"] = {
["bartexture"] = "Interface\\AddOns\\pfUI\\img\\bar_gradient",
},
["target"] = {
["bartexture"] = "Interface\\AddOns\\pfUI\\img\\bar_gradient",
["txthpleft"] = "healthdyn",
["pspace"] = "1",
["txtpowerleft"] = "powerdyn",
["height"] = "22",
["buffs"] = "TOPRIGHT",
["txthpright"] = "unitrev",
["buffsize"] = "16",
["portrait"] = "right",
["width"] = "160",
},
["ttarget"] = {
["bartexture"] = "Interface\\AddOns\\pfUI\\img\\bar_gradient",
["pspace"] = "1",
["height"] = "7",
["portrait"] = "off",
},
["pet"] = {
["bartexture"] = "Interface\\AddOns\\pfUI\\img\\bar_gradient",
["pspace"] = "1",
["pheight"] = "3",
["txtpowercenter"] = "healthdyn",
["height"] = "7",
["buffs"] = "BOTTOMLEFT",
["portrait"] = "off",
["debuffs"] = "BOTTOMRIGHT",
},
["player"] = {
["txtpowerright"] = "powerdyn",
["bartexture"] = "Interface\\AddOns\\pfUI\\img\\bar_gradient",
["pspace"] = "1",
["debuffs"] = "TOPRIGHT",
["portrait"] = "left",
["buffsize"] = "16",
["width"] = "160",
["height"] = "22",
["showPVP"] = "1",
},
["customfullhp"] = "1",
["focustarget"] = {
["bartexture"] = "Interface\\AddOns\\pfUI\\img\\bar_gradient",
},
["customfade"] = "1",
["group"] = {
["bartexture"] = "Interface\\AddOns\\pfUI\\img\\bar_gradient",
},
["raid"] = {
["indicator_pos"] = "TOPRIGHT",
["verticalbar"] = "1",
["txthpleft"] = "none",
["defcolor"] = "0",
["customfade"] = "1",
["focuscolor"] = "0.6,0.4,0.2,1",
["raidpadding"] = "5",
["txthpcenter"] = "namehealthbreak",
["ragecolor"] = "0.6,0.2,0.2,1",
["bartexture"] = "Interface\\AddOns\\pfUI\\img\\bar_gradient",
["glowaggro"] = "0",
["height"] = "35",
["txthpright"] = "none",
["customcolor"] = "0.1,0.1,0.1,1",
["width"] = "40.7",
["manacolor"] = "0.2,0.2,0.4,1",
["energycolor"] = "0.6,0.4,0.2,1",
["customfullhp"] = "1",
["custom"] = "2",
},
["focus"] = {
["bartexture"] = "Interface\\AddOns\\pfUI\\img\\bar_gradient",
},
["tttarget"] = {
["bartexture"] = "Interface\\AddOns\\pfUI\\img\\bar_gradient",
},
["grouppet"] = {
["bartexture"] = "Interface\\AddOns\\pfUI\\img\\bar_gradient",
},
},
["appearance"] = {
["castbar"] = {
["texture"] = "Interface\\AddOns\\pfUI\\img\\bar_gradient",
},
["minimap"] = {
["coordsloc"] = "topleft",
},
["border"] = {
["color"] = "0.1,0.1,0.1,1",
["bags"] = "3",
["chat"] = "3",
["default"] = "2",
},
},
["tooltip"] = {
["statusbar"] = {
["texture"] = "Interface\\AddOns\\pfUI\\img\\bar_gradient",
},
},
["castbar"] = {
["player"] = {
["showrank"] = "1",
["height"] = "12",
["showlag"] = "1",
["showicon"] = "1",
},
["target"] = {
["height"] = "12",
["showicon"] = "1",
},
},
["abuttons"] = {
["enable"] = "1",
["hideincombat"] = "0",
},
["nameplates"] = {
["heighthealth"] = "10",
["healthtexture"] = "Interface\\AddOns\\pfUI\\img\\bar_gradient",
["health"] = {
["offset"] = "10",
},
},
["bars"] = {
["bar4"] = {
["enable"] = "0",
},
["bar11"] = {
["background"] = "0",
["spacing"] = "3",
},
["bar5"] = {
["formfactor"] = "12 x 1",
["buttons"] = "6",
},
["bar3"] = {
["formfactor"] = "12 x 1",
["buttons"] = "6",
},
}
}
-- pfUI Dark
pfUI_profiles["pfUI Dark"] = {
["appearance"] = {
["border"] = {
["color"] = "0.0,0.0,0.0,1",
["background"] = "0.02,0.02,0.02,0.75",
},
},
-- Legacy
pfUI_profiles["Legacy"] = {
["chat"] = {
["right"] = {
["enable"] = "1",
+19 -19
View File
@@ -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()