From 3129ab2db585e6c097dc93cad8405f6f42ef223b Mon Sep 17 00:00:00 2001 From: Alar of Daggerspine Date: Sat, 25 Jul 2015 00:22:17 +0200 Subject: [PATCH] Fixed duplicated draw od trait selector in follower tab Signed-off-by: Alar of Daggerspine --- FollowerPage.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/FollowerPage.lua b/FollowerPage.lua index 4434c73..71e4690 100644 --- a/FollowerPage.lua +++ b/FollowerPage.lua @@ -92,7 +92,6 @@ local colors={ } function addon:ShowUpgradeButtons(force) if InCombatLockdown() then - print("SUB") self:ScheduleLeaveCombatAction("ShowUpgradeButtons",force) return end @@ -219,12 +218,14 @@ print("Load") --@end-debug@ this:ClearAllPoints() this:SetParent(GarrisonThreatCountersFrame:GetParent()) - this:SetPoint("BOTTOMLEFT",185,6) + this:SetPoint("BOTTOMLEFT",185,0) this:Show() this.tooltipString = tooltipString; - this.choice=CreateFrame('Frame',this:GetName()..tostring(GetTime()*1000),this,"UIDropDownMenuTemplate") - this.choice.button=_G[this.choice:GetName()..'Button'] - this.choice:SetPoint("TOPLEFT",-192,0) + if not this.choice then + this.choice=CreateFrame('Frame',this:GetName()..tostring(GetTime()*1000),this,"UIDropDownMenuTemplate") + this.choice.button=_G[this.choice:GetName()..'Button'] + this.choice:SetPoint("TOPLEFT",-192,0) + end addon:FillCounters(this,1) this.TraitsList[1]:SetScript("OnEnter",_G.GarrisonTraitCounter_OnEnter) --this.TraitsList[1]:SetScript("OnEnter",pp) -- 1.7.9.5