Mercurial > wow > ouroloot
comparison gui.lua @ 36:f62d582c5c52
Use new Frame widget method EnableResize. Allow deleting loot item's history entry along with the main loot entry.
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Fri, 09 Dec 2011 03:16:59 +0000 |
parents | a7376e6de73c |
children | cd745a18d7c7 |
comparison
equal
deleted
inserted
replaced
35:f75329fe5758 | 36:f62d582c5c52 |
---|---|
427 | 427 |
428 df_DELETE = function(rowi) | 428 df_DELETE = function(rowi) |
429 local gone = tremove(g_loot,rowi) | 429 local gone = tremove(g_loot,rowi) |
430 addon:Print("Removed %s.", | 430 addon:Print("Removed %s.", |
431 gone.itemlink or gone.bosskill or gone.startday.text) | 431 gone.itemlink or gone.bosskill or gone.startday.text) |
432 if gone.kind == 'loot' and IsShiftKeyDown() then | |
433 addon:_delHistoryEntry (rowi, gone) | |
434 end | |
432 end, | 435 end, |
433 | 436 |
434 ["Delete this history event"] = function(rowi) | 437 ["Delete this history event"] = function(rowi) |
435 --local gone = tremove(g_loot,rowi) | 438 --local gone = tremove(g_loot,rowi) |
436 --addon:Print("Removed %s.", | 439 --addon:Print("Removed %s.", |
543 "Mark as offspec%offspec", | 546 "Mark as offspec%offspec", |
544 "Mark as guild vault%gvault", | 547 "Mark as guild vault%gvault", |
545 "Mark as normal|This is the default. Selecting any 'Mark as <x>' action blanks out extra notes about who broadcast this entry, etc.", | 548 "Mark as normal|This is the default. Selecting any 'Mark as <x>' action blanks out extra notes about who broadcast this entry, etc.", |
546 "--", | 549 "--", |
547 "Rebroadcast this loot entry|Sends this loot event, including special notes, as if it just happened.", | 550 "Rebroadcast this loot entry|Sends this loot event, including special notes, as if it just happened.", |
548 "Delete this loot event|Permanent, no going back!", | 551 "Delete this loot event|Permanent, no going back!\n\nHold down the Shift key to also delete the player's corresponding History entry.", |
549 "Delete remaining entries for this boss%boss|Erases everything from here down until a new boss/day.", | 552 "Delete remaining entries for this boss%boss|Erases everything from here down until a new boss/day.", |
550 "Insert new loot entry%loot|Inserts new loot above this one, prompting you for information.", | 553 "Insert new loot entry%loot|Inserts new loot above this one, prompting you for information.", |
551 "Insert new boss kill event%boss|Inserts new event above this one, prompting you for information.", | 554 "Insert new boss kill event%boss|Inserts new event above this one, prompting you for information.", |
552 "Edit note|Same as double-clicking in the notes column.", | 555 "Edit note|Same as double-clicking in the notes column.", |
553 "--", | 556 "--", |
1777 self.display = display | 1780 self.display = display |
1778 display:SetTitle(window_title) | 1781 display:SetTitle(window_title) |
1779 display:SetStatusText(self.status_text) | 1782 display:SetStatusText(self.status_text) |
1780 display:SetLayout("Flow") | 1783 display:SetLayout("Flow") |
1781 display:SetStatusTable{width=900,height=550} -- default height is 500 | 1784 display:SetStatusTable{width=900,height=550} -- default height is 500 |
1782 -- prevent resizing, also see ace3 tickets 80 and 214 | 1785 if display.EnableResize then -- FIXME after next Ace3 release, this can be assumed |
1783 -- grrrr, no longer works after frame rewrite | 1786 display:EnableResize(false) |
1784 --[[ | 1787 end |
1785 display.sizer_se:SetScript("OnMouseDown",nil) | |
1786 display.sizer_se:SetScript("OnMouseUp",nil) | |
1787 display.sizer_s:SetScript("OnMouseDown",nil) | |
1788 display.sizer_s:SetScript("OnMouseUp",nil) | |
1789 display.sizer_e:SetScript("OnMouseDown",nil) | |
1790 display.sizer_e:SetScript("OnMouseUp",nil) | |
1791 ]] | |
1792 display:SetCallback("OnClose", function(_display) | 1788 display:SetCallback("OnClose", function(_display) |
1793 UIDROPDOWNMENU_SHOW_TIME = prev_fade_time | 1789 UIDROPDOWNMENU_SHOW_TIME = prev_fade_time |
1794 _d = _display:GetUserData("eoiST") | 1790 _d = _display:GetUserData("eoiST") |
1795 self.display = nil | 1791 self.display = nil |
1796 GUI:Release(_display) | 1792 GUI:Release(_display) |