Mercurial > wow > ouroloot
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 87:9fea75b0927b | 88:c9f955f9a285 |
|---|---|
| 85 local tabs_OnGroupSelected = {} | 85 local tabs_OnGroupSelected = {} |
| 86 local mkbutton | 86 local mkbutton |
| 87 local tabs_OnGroupSelected_func, tabs_generated_text_OGS | 87 local tabs_OnGroupSelected_func, tabs_generated_text_OGS |
| 88 -- Similarly for the popup tips on the right side of the window. | 88 -- Similarly for the popup tips on the right side of the window. |
| 89 local noob_tips = {} | 89 local noob_tips = {} |
| 90 -- And any special handling for additional CLI arguments. | |
| 91 local tabs_CLI_special = {} | |
| 90 | 92 |
| 91 do | 93 do |
| 92 local replacement_colors = { | 94 local replacement_colors = { |
| 93 ["+"]="|cffffffff", -- white | 95 ["+"]="|cffffffff", -- white |
| 94 ["<"]="|cff00ff00", -- light green | 96 ["<"]="|cff00ff00", -- light green |
| 1414 <Shift-Left> while over an item link to paste it into chat. | 1416 <Shift-Left> while over an item link to paste it into chat. |
| 1415 | 1417 |
| 1416 <Right>-click any row to display a dropdown menu. The menu is different for | 1418 <Right>-click any row to display a dropdown menu. The menu is different for |
| 1417 the Player column than it is for the Item/Notes columns, and different for | 1419 the Player column than it is for the Item/Notes columns, and different for |
| 1418 loot entries than it is for other rows.]] | 1420 loot entries than it is for other rows.]] |
| 1421 tabs_CLI_special["eoi"] = function (name) | |
| 1422 -- try and scroll to a specific boss/player | |
| 1423 end | |
| 1419 | 1424 |
| 1420 | 1425 |
| 1421 -- Tab 2/3 (generated text) | 1426 -- Tab 2/3 (generated text) |
| 1422 function tabs_generated_text_OGS (container, specials, text_kind) | 1427 function tabs_generated_text_OGS (container, specials, text_kind) |
| 1423 container:SetLayout("Fill") | 1428 container:SetLayout("Fill") |
| 1805 <Left>-click a row to see all history for that player. <Right>-click any row | 1810 <Left>-click a row to see all history for that player. <Right>-click any row |
| 1806 to return to showing all players. | 1811 to return to showing all players. |
| 1807 | 1812 |
| 1808 <Shift-Left> while over an item link to paste it into chat. <Shift-Right> | 1813 <Shift-Left> while over an item link to paste it into chat. <Shift-Right> |
| 1809 any row to display a dropdown menu.]] | 1814 any row to display a dropdown menu.]] |
| 1815 -- '/loot hi pla' -> set filter on Playername | |
| 1816 tabs_CLI_special["hist"] = function (name) | |
| 1817 name = '^'..name -- already tolower'd by onslash | |
| 1818 for _,player in ipairs(addon.history) do | |
| 1819 if player.name:lower():find(name) then | |
| 1820 history_filter_who = player.name | |
| 1821 --_d:GetUserData("histST"):SetFilter(history_filter_by_name) | |
| 1822 histST:SetFilter(history_filter_by_name) | |
| 1823 setstatus(hist_name_status) | |
| 1824 break | |
| 1825 end | |
| 1826 end | |
| 1827 -- If nothing found, reset to normal or just leave alone? | |
| 1828 end | |
| 1810 | 1829 |
| 1811 | 1830 |
| 1812 -- Tab 5: Help (content in verbage.lua) | 1831 -- Tab 5: Help (content in verbage.lua) |
| 1813 do | 1832 do |
| 1814 local tabs_help_OnGroupSelected_func = function (treeg,event,category) | 1833 local tabs_help_OnGroupSelected_func = function (treeg,event,category) |
| 2692 | 2711 |
| 2693 display:Show() -- without this, only appears every *other* function call | 2712 display:Show() -- without this, only appears every *other* function call |
| 2694 return display | 2713 return display |
| 2695 end | 2714 end |
| 2696 | 2715 |
| 2697 function addon:OpenMainDisplayToTab (text) | 2716 function addon:OpenMainDisplayToTab (text, opt_arg) |
| 2698 text = '^'..text:lower() | 2717 text = '^'..text:lower() |
| 2699 for tab,v in pairs(_tabtexts) do | 2718 for tab,v in pairs(_tabtexts) do |
| 2700 if v.title:lower():find(text) then | 2719 if v.title:lower():find(text) then |
| 2701 self:BuildMainDisplay(tab) | 2720 self:BuildMainDisplay(tab) |
| 2721 if opt_arg and tabs_CLI_special[tab] then | |
| 2722 tabs_CLI_special[tab](opt_arg) | |
| 2723 end | |
| 2702 return true | 2724 return true |
| 2703 end | 2725 end |
| 2704 end | 2726 end |
| 2705 end | 2727 end |
| 2706 | 2728 |
