Mercurial > wow > ouroloot
diff gui.lua @ 88:c9f955f9a285
Update the TODO text. Handle additional slash arg to the tab-opening routine and dispatch accordingly (History done, EOI remains).
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Fri, 22 Jun 2012 02:39:22 +0000 |
parents | 9fea75b0927b |
children | 939569ded66f |
line wrap: on
line diff
--- a/gui.lua Fri Jun 22 00:58:59 2012 +0000 +++ b/gui.lua Fri Jun 22 02:39:22 2012 +0000 @@ -87,6 +87,8 @@ local tabs_OnGroupSelected_func, tabs_generated_text_OGS -- Similarly for the popup tips on the right side of the window. local noob_tips = {} +-- And any special handling for additional CLI arguments. +local tabs_CLI_special = {} do local replacement_colors = { @@ -1416,6 +1418,9 @@ <Right>-click any row to display a dropdown menu. The menu is different for the Player column than it is for the Item/Notes columns, and different for loot entries than it is for other rows.]] +tabs_CLI_special["eoi"] = function (name) + -- try and scroll to a specific boss/player +end -- Tab 2/3 (generated text) @@ -1807,6 +1812,20 @@ <Shift-Left> while over an item link to paste it into chat. <Shift-Right> any row to display a dropdown menu.]] +-- '/loot hi pla' -> set filter on Playername +tabs_CLI_special["hist"] = function (name) + name = '^'..name -- already tolower'd by onslash + for _,player in ipairs(addon.history) do + if player.name:lower():find(name) then + history_filter_who = player.name + --_d:GetUserData("histST"):SetFilter(history_filter_by_name) + histST:SetFilter(history_filter_by_name) + setstatus(hist_name_status) + break + end + end + -- If nothing found, reset to normal or just leave alone? +end -- Tab 5: Help (content in verbage.lua) @@ -2694,11 +2713,14 @@ return display end -function addon:OpenMainDisplayToTab (text) +function addon:OpenMainDisplayToTab (text, opt_arg) text = '^'..text:lower() for tab,v in pairs(_tabtexts) do if v.title:lower():find(text) then self:BuildMainDisplay(tab) + if opt_arg and tabs_CLI_special[tab] then + tabs_CLI_special[tab](opt_arg) + end return true end end