Show Partyleader
pquerner opened this issue ยท 1 comments
Index: Interface/AddOns/bdGrid/core.lua
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- Interface/AddOns/bdGrid/core.lua (revision 50d06dbadaee895d87faa4700527a70e6f21d45e)
+++ Interface/AddOns/bdGrid/core.lua (revision 8e3b4297e91544b4f2d9a2faeecad037d2dc2ecc)
@@ -50,6 +50,12 @@
tooltip = "Hide tooltips when mousing over each unit",
callback = function() grid:refresh() end
}}
+defaults[#defaults+1] = {showpartyleadericon = {
+ type = "checkbox",
+ value = true,
+ label = "Show Party Leader Indicator",
+ callback = function() grid:refresh() end
+}}
defaults[#defaults+1] = {invert = {
type = "checkbox",
value = false,
@@ -454,7 +460,15 @@
self.Power:Show()
end
end
-
+
+ -- Party leader icon
+ if(config.showpartyleadericon) then
+ self.LeaderIndicator = self.Health:CreateTexture(nil, "OVERLAY")
+ self.LeaderIndicator:SetSize(12, 12)
+ self.LeaderIndicator:SetPoint("TOPLEFT", self.Health, "TOPLEFT",2,2)
+ self.LeaderIndicator:Show()
+ end
+
self.Range = {
insideAlpha = config.inrangealpha,
outsideAlpha = config.outofrangealpha,
@@ -773,7 +787,10 @@
-- when to show
frameHeader:SetAttribute("showSolo",config.showsolo)
frameHeader:SetAttribute("maxColumns", num_groups)
-
+
+ -- what to show
+ frameHeader:SetAttribute("showpartyleadericon",config.showpartyleadericon)
+
-- width/height
frameHeader:SetAttribute("initial-width",config.width)
frameHeader:SetAttribute("initial-height",config.height)