diff AskMrRobotUi.lua @ 51:6f1bb8fcf64d v18

AskMrRobot.toc - Added line for new SettingsTab file AskMrRobotUi.lua - Added code for new Settings menu amr-constants.lua - Added instance IDs for all WoD 6.0 5-mans and Raids. - Removed legacy SoO IDs. config.lua - Removed "Interface/Addons" options area, migrated all settings to main addon window. localization/localization.en.lua - Added new strings for new Settings tab and new Raid auto-logging ui/CombatLogTab.lua - Removed legacy SoO code - Added auto-logging settings for Highmaul and Blackrock Foundry. ui/SettingsTab.lua - new main window tab for Minimap and Auction House settings options
author TuhMuffinMan <TuhMuffinMan>
date Fri, 28 Nov 2014 13:09:52 -0600
parents e77e01abce98
children be5dc6c02f77
line wrap: on
line diff
--- a/AskMrRobotUi.lua	Sun Nov 09 11:48:42 2014 -0800
+++ b/AskMrRobotUi.lua	Fri Nov 28 13:09:52 2014 -0600
@@ -6,8 +6,9 @@
 local _menuIds = {
 	export = 1,
 	gear = 2,
-	combatLog = 3,
-	help = 4    
+	settings = 3,
+	combatLog = 4,
+	help = 5    
 }
 
 function AskMrRobot.AmrUI:new()
@@ -66,6 +67,9 @@
     o.gearComparisonTab = AskMrRobot.GearComparisonTab:new(tabArea)
     o.menu[_menuIds["gear"]].element = o.gearComparisonTab
     
+	o.settingsTab = AskMrRobot.SettingsTab:new(tabArea)
+    o.menu[_menuIds["settings"]].element = o.settingsTab	
+	
     o.combatLogTab = AskMrRobot.CombatLogTab:new(tabArea)
     o.menu[_menuIds["combatLog"]].element = o.combatLogTab
 
@@ -120,6 +124,7 @@
 
 	createButton(L.AMR_UI_MENU_EXPORT, -35)
 	createButton(L.AMR_UI_MENU_GEAR, -20)
+	createButton(L.AMR_UI_MENU_SETTINGS, 0)
 	createButton(L.AMR_UI_MENU_COMBAT_LOG, 0)
 	createButton(L.AMR_UI_MENU_HELP, 0)