Mercurial > wow > askmrrobot
comparison 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 |
comparison
equal
deleted
inserted
replaced
50:af0dc99cbedb | 51:6f1bb8fcf64d |
---|---|
4 AskMrRobot.AmrUI = AskMrRobot.inheritsFrom(AskMrRobot.Frame) | 4 AskMrRobot.AmrUI = AskMrRobot.inheritsFrom(AskMrRobot.Frame) |
5 | 5 |
6 local _menuIds = { | 6 local _menuIds = { |
7 export = 1, | 7 export = 1, |
8 gear = 2, | 8 gear = 2, |
9 combatLog = 3, | 9 settings = 3, |
10 help = 4 | 10 combatLog = 4, |
11 help = 5 | |
11 } | 12 } |
12 | 13 |
13 function AskMrRobot.AmrUI:new() | 14 function AskMrRobot.AmrUI:new() |
14 local o = AskMrRobot.Frame:new("AskMrRobot_Dialog", nil, "BasicFrameTemplateWithInset") | 15 local o = AskMrRobot.Frame:new("AskMrRobot_Dialog", nil, "BasicFrameTemplateWithInset") |
15 | 16 |
64 o.menu[_menuIds["export"]].element = o.exportTab | 65 o.menu[_menuIds["export"]].element = o.exportTab |
65 | 66 |
66 o.gearComparisonTab = AskMrRobot.GearComparisonTab:new(tabArea) | 67 o.gearComparisonTab = AskMrRobot.GearComparisonTab:new(tabArea) |
67 o.menu[_menuIds["gear"]].element = o.gearComparisonTab | 68 o.menu[_menuIds["gear"]].element = o.gearComparisonTab |
68 | 69 |
70 o.settingsTab = AskMrRobot.SettingsTab:new(tabArea) | |
71 o.menu[_menuIds["settings"]].element = o.settingsTab | |
72 | |
69 o.combatLogTab = AskMrRobot.CombatLogTab:new(tabArea) | 73 o.combatLogTab = AskMrRobot.CombatLogTab:new(tabArea) |
70 o.menu[_menuIds["combatLog"]].element = o.combatLogTab | 74 o.menu[_menuIds["combatLog"]].element = o.combatLogTab |
71 | 75 |
72 o.helpTab = AskMrRobot.HelpTab:new(tabArea) | 76 o.helpTab = AskMrRobot.HelpTab:new(tabArea) |
73 o.menu[_menuIds["help"]].element = o.helpTab | 77 o.menu[_menuIds["help"]].element = o.helpTab |
118 tabButton:SetScript("OnClick", onTabButtonClick) | 122 tabButton:SetScript("OnClick", onTabButtonClick) |
119 end | 123 end |
120 | 124 |
121 createButton(L.AMR_UI_MENU_EXPORT, -35) | 125 createButton(L.AMR_UI_MENU_EXPORT, -35) |
122 createButton(L.AMR_UI_MENU_GEAR, -20) | 126 createButton(L.AMR_UI_MENU_GEAR, -20) |
127 createButton(L.AMR_UI_MENU_SETTINGS, 0) | |
123 createButton(L.AMR_UI_MENU_COMBAT_LOG, 0) | 128 createButton(L.AMR_UI_MENU_COMBAT_LOG, 0) |
124 createButton(L.AMR_UI_MENU_HELP, 0) | 129 createButton(L.AMR_UI_MENU_HELP, 0) |
125 | 130 |
126 return buttons | 131 return buttons |
127 end | 132 end |