Mercurial > wow > ouroloot
comparison gui.lua @ 100:a57133ee3c9b
- Allow event callbacks using the standard CallbackHandler scheme. Add
a debug.callback flag with usual semantics.
- Fire an initial set of events. This will take experimentation.
- If restoring g_loot, set metatables on previous entries also.
| author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
|---|---|
| date | Mon, 30 Jul 2012 19:25:46 +0000 |
| parents | 966d06c8d9c9 |
| children | dc8a23a47b03 |
comparison
equal
deleted
inserted
replaced
| 99:966d06c8d9c9 | 100:a57133ee3c9b |
|---|---|
| 897 dialog.data = {rowindex=rowi, display=_d, kind=text} | 897 dialog.data = {rowindex=rowi, display=_d, kind=text} |
| 898 end, | 898 end, |
| 899 | 899 |
| 900 df_DELETE = function(rowi) | 900 df_DELETE = function(rowi) |
| 901 local gone = tremove (g_loot, rowi) | 901 local gone = tremove (g_loot, rowi) |
| 902 addon:Fire ('DelEOIEntry', gone) | |
| 902 addon:Print("Removed %s.", | 903 addon:Print("Removed %s.", |
| 903 gone.itemlink or gone.bossname or gone.startday.text) | 904 gone.itemlink or gone.bossname or gone.startday.text) |
| 904 if gone.kind == 'loot' and IsShiftKeyDown() then | 905 if gone.kind == 'loot' then |
| 905 local okay,err = addon:_delHistoryEntry (gone) | 906 addon:Fire ('DelLootEntry', gone) |
| 906 if okay then | 907 if IsShiftKeyDown() then |
| 907 addon:Print("Removed history entry %s from %s.", | 908 local okay,err = addon:_delHistoryEntry (gone) |
| 908 gone.itemlink, addon:colorize(gone.person,gone.person_class)) | 909 if okay then |
| 909 else | 910 addon:Print("Removed history entry %s from %s.", |
| 910 addon:Print(err) | 911 gone.itemlink, addon:colorize(gone.person,gone.person_class)) |
| 912 else | |
| 913 addon:Print(err) | |
| 914 end | |
| 911 end | 915 end |
| 912 end | 916 end |
| 913 end, | 917 end, |
| 914 | 918 |
| 915 ["Delete remaining entries for this day"] = function(rowi,kind) | 919 ["Delete remaining entries for this day"] = function(rowi,kind) |
