Quantcast

Addon estension version

Alar of Daggerspine [06-19-15 - 15:55]
Addon estension version

Signed-off-by: Alar of Daggerspine <alar@aspide.it>
Filename
MissionControl.lua
diff --git a/MissionControl.lua b/MissionControl.lua
index ca65ec9..9941d18 100644
--- a/MissionControl.lua
+++ b/MissionControl.lua
@@ -559,61 +559,6 @@ function addon:GMCBuildRewards()
 	return GMC.aif
 end

-local addPriorityRule,prioRefresh,removePriorityRule,prioMenu,prioTitles,prioCheck,prioVoices
-do
--- 1 = item, 2 = folitem, 3 = exp, 4 = money, 5 = resource
-	prioTitles={
-		itemLevel=L["Equipment"],
-		followerUpgrade=L["Follower Upgrade"],
-		xp=L["Xp gain"],
-		gold=L["Gold Reward"],
-		resources=L["Resource Rewards"],
-		oil=L["Oil"],
-		generic=L["Other Rewards"]
-	}
-	prioVoices=0
-	for _ in pairs(prioTitles) do prioVoices=prioVoices+1 end
-	prioMenu={}
-
-	---@function [parent=#GMC] prioRefresh
-	function prioRefresh()
-		for i=1,prioVoices do
-			local group=GMC.prioFrames[i]
-			local code=GMC.settings.itemPrio[i]
-			if (not code) then
-				group.text:Hide()
-				group.xbutton:Hide()
-				group.nr:Hide()
-			else
-				group.text:Show()
-				group.text:SetText(prioTitles[code])
-				group.xbutton:Show()
-				group.nr:Show()
-			end
-		end
-		GMC.abutton:Hide()
-		for i=1,prioVoices do
-			local group=GMC.prioFrames[i]
-			if (not group.text:IsShown()) then
-				group.nr:Show()
-				GMC.abutton:SetPoint("TOPLEFT",group.text)
-				GMC.abutton:Show()
-				break
-			end
-		end
-	end
-	---@function [parent=#GMC] addPriorityRule
-	function addPriorityRule(this,key)
-		tinsert(GMC.settings.itemPrio,key)
-		prioRefresh()
-	end
-	---@function [parent=#GMC] removePriorityRule
-	function removePriorityRule(index)
-		tremove(GMC.settings.itemPrio,index)
-		prioRefresh()
-	end
-
-end
 function addon:GMCBuildMissionList()
 		-- Mission list on follower panels
 --		local ml=CreateFrame("Frame",nil,GMC)