From be735712333af728c4ebe77eacedd7043d0b4415 Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 20 May 2020 02:10:12 +0200 Subject: [PATCH] gui: sort nameplate settings --- modules/gui.lua | 59 +++++++++++++++++++++++++++---------------------- 1 file changed, 32 insertions(+), 27 deletions(-) diff --git a/modules/gui.lua b/modules/gui.lua index 50055363..a2e32cbc 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -2028,41 +2028,46 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function () CreateGUIEntry(T["Nameplates"], nil, function() CreateConfig(U["nameplates"], T["Show On Hostile Units"], C.nameplates, "showhostile", "checkbox") CreateConfig(U["nameplates"], T["Show On Friendly Units"], C.nameplates, "showfriendly", "checkbox") - CreateConfig(U["nameplates"], T["Use Unit Fonts"], C.nameplates, "use_unitfonts", "checkbox") - CreateConfig(U["nameplates"], T["Enable Castbars"], C.nameplates, "showcastbar", "checkbox") - CreateConfig(U["nameplates"], T["Enable Spellname"], C.nameplates, "spellname", "checkbox") - CreateConfig(U["nameplates"], T["Enable Debuffs"], C.nameplates, "showdebuffs", "checkbox") - CreateConfig(U["nameplates"], T["Estimate Debuffs"], C.nameplates, "guessdebuffs", "checkbox") - CreateConfig(U["nameplates"], T["Enable Class Colors On Enemies"], C.nameplates, "enemyclassc", "checkbox") - CreateConfig(U["nameplates"], T["Enable Class Colors On Friends"], C.nameplates, "friendclassc", "checkbox") - CreateConfig(U["nameplates"], T["Raid Icon Size"], C.nameplates, "raidiconsize") - CreateConfig(U["nameplates"], T["Always Show Units With Missing HP"], C.nameplates, "fullhealth", "checkbox") - CreateConfig(U["nameplates"], T["Always Show Target Units"], C.nameplates, "target", "checkbox") - CreateConfig(U["nameplates"], T["Hide Enemy NPCs"], C.nameplates, "enemynpc", "checkbox") - CreateConfig(U["nameplates"], T["Hide Enemy Players"], C.nameplates, "enemyplayer", "checkbox") - CreateConfig(U["nameplates"], T["Hide Neutral NPCs"], C.nameplates, "neutralnpc", "checkbox") - CreateConfig(U["nameplates"], T["Hide Friendly NPCs"], C.nameplates, "friendlynpc", "checkbox") - CreateConfig(U["nameplates"], T["Hide Friendly Players"], C.nameplates, "friendlyplayer", "checkbox") - CreateConfig(U["nameplates"], T["Hide Critters"], C.nameplates, "critters", "checkbox") - CreateConfig(U["nameplates"], T["Hide Totems"], C.nameplates, "totems", "checkbox") - CreateConfig(U["nameplates"], T["Show Health Points"], C.nameplates, "showhp", "checkbox") - CreateConfig(U["nameplates"], T["Always Show Health In Percent"], C.nameplates, "alwaysperc", "checkbox") - CreateConfig(U["nameplates"], T["Nameplate Width"], C.nameplates, "width") - CreateConfig(U["nameplates"], T["Healthbar Height"], C.nameplates, "heighthealth") - CreateConfig(U["nameplates"], T["Castbar Height"], C.nameplates, "heightcast") - CreateConfig(U["nameplates"], T["Debuff Icon Size"], C.nameplates, "debuffsize") - CreateConfig(U["nameplates"], T["Enable Combo Point Display"], C.nameplates, "cpdisplay", "checkbox") - CreateConfig(U["nameplates"], T["Highlight Target Nameplate"], C.nameplates, "targethighlight", "checkbox") + CreateConfig(U["nameplates"], T["Draw Border Around Target Nameplate"], C.nameplates, "targethighlight", "checkbox") CreateConfig(U["nameplates"], T["Draw Glow Around Target Nameplate"], C.nameplates, "targetglow", "checkbox") CreateConfig(U["nameplates"], T["Glow Color Around Target Nameplate"], C.nameplates, "glowcolor", "color") CreateConfig(U["nameplates"], T["Zoom Target Nameplate"], C.nameplates, "targetzoom", "checkbox") CreateConfig(U["nameplates"], T["Inactive Nameplate Alpha"], C.nameplates, "notargalpha") - CreateConfig(U["nameplates"], T["Healthbar Texture"], C.nameplates, "healthtexture", "dropdown", pfUI.gui.dropdowns.uf_bartexture) - + CreateConfig(U["nameplates"], T["Nameplate Width"], C.nameplates, "width") + CreateConfig(U["nameplates"], T["Enable Class Colors On Enemies"], C.nameplates, "enemyclassc", "checkbox") + CreateConfig(U["nameplates"], T["Enable Class Colors On Friends"], C.nameplates, "friendclassc", "checkbox") + CreateConfig(U["nameplates"], T["Enable Combo Point Display"], C.nameplates, "cpdisplay", "checkbox") + CreateConfig(U["nameplates"], T["Raid Icon Size"], C.nameplates, "raidiconsize") CreateConfig(U["nameplates"], T["Enable Clickthrough"], C.nameplates, "clickthrough", "checkbox", nil, nil, nil, nil, "vanilla") CreateConfig(U["nameplates"], T["Enable Overlap"], C.nameplates, "overlap", "checkbox", nil, nil, nil, nil, "vanilla") CreateConfig(U["nameplates"], T["Enable Mouselook With Right Click"], C.nameplates, "rightclick", "checkbox", nil, nil, nil, nil, "vanilla") CreateConfig(U["nameplates"], T["Right Click Auto Attack Threshold"], C.nameplates, "clickthreshold", nil, nil, nil, nil, nil, "vanilla") + CreateConfig(U["nameplates"], T["Use Unit Fonts"], C.nameplates, "use_unitfonts", "checkbox") + + CreateConfig(nil, T["Castbar"], nil, nil, "header") + CreateConfig(U["nameplates"], T["Enable Castbars"], C.nameplates, "showcastbar", "checkbox") + CreateConfig(U["nameplates"], T["Enable Spellname"], C.nameplates, "spellname", "checkbox") + CreateConfig(U["nameplates"], T["Castbar Height"], C.nameplates, "heightcast") + + CreateConfig(nil, T["Debuffs"], nil, nil, "header") + CreateConfig(U["nameplates"], T["Enable Debuffs"], C.nameplates, "showdebuffs", "checkbox") + CreateConfig(U["nameplates"], T["Estimate Debuffs"], C.nameplates, "guessdebuffs", "checkbox") + CreateConfig(U["nameplates"], T["Debuff Icon Size"], C.nameplates, "debuffsize") + + CreateConfig(nil, T["Healthbar"], nil, nil, "header") + CreateConfig(U["nameplates"], T["Healthbar Height"], C.nameplates, "heighthealth") + CreateConfig(U["nameplates"], T["Healthbar Texture"], C.nameplates, "healthtexture", "dropdown", pfUI.gui.dropdowns.uf_bartexture) + CreateConfig(U["nameplates"], T["Show Health Points"], C.nameplates, "showhp", "checkbox") + CreateConfig(U["nameplates"], T["Always Show Health In Percent"], C.nameplates, "alwaysperc", "checkbox") + CreateConfig(U["nameplates"], T["Hide Healthbar On Enemy NPCs"], C.nameplates, "enemynpc", "checkbox") + CreateConfig(U["nameplates"], T["Hide Healthbar On Enemy Players"], C.nameplates, "enemyplayer", "checkbox") + CreateConfig(U["nameplates"], T["Hide Healthbar On Neutral NPCs"], C.nameplates, "neutralnpc", "checkbox") + CreateConfig(U["nameplates"], T["Hide Healthbar On Friendly NPCs"], C.nameplates, "friendlynpc", "checkbox") + CreateConfig(U["nameplates"], T["Hide Healthbar On Friendly Players"], C.nameplates, "friendlyplayer", "checkbox") + CreateConfig(U["nameplates"], T["Hide Healthbar On Critters"], C.nameplates, "critters", "checkbox") + CreateConfig(U["nameplates"], T["Hide Healthbar On Totems"], C.nameplates, "totems", "checkbox") + CreateConfig(U["nameplates"], T["Always Show On Units With Missing HP"], C.nameplates, "fullhealth", "checkbox") + CreateConfig(U["nameplates"], T["Always Show On Target Units"], C.nameplates, "target", "checkbox") end) CreateGUIEntry(T["Thirdparty"], T["Integrations"], function()