Mercurial > wow > ouroloot
comparison core.lua @ 47:1070a14cfee4
Updated lib-st widget from WRDW. Properly notice new generating tabs. Updated help text.
| author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
|---|---|
| date | Sat, 28 Jan 2012 18:24:22 +0000 |
| parents | 1001dd95dbeb |
| children | 22db12e97313 |
comparison
equal
deleted
inserted
replaced
| 46:0b1e703a6954 | 47:1070a14cfee4 |
|---|---|
| 191 local g_wafer_thin = nil -- for prompting for additional rebroadcasters | 191 local g_wafer_thin = nil -- for prompting for additional rebroadcasters |
| 192 local g_today = nil -- "today" entry in g_loot | 192 local g_today = nil -- "today" entry in g_loot |
| 193 local g_boss_signpost = nil | 193 local g_boss_signpost = nil |
| 194 local opts = nil | 194 local opts = nil |
| 195 | 195 |
| 196 local pairs, ipairs, tinsert, tremove, tonumber = pairs, ipairs, table.insert, table.remove, tonumber | 196 local pairs, ipairs, tinsert, tremove, tonumber, wipe = |
| 197 pairs, ipairs, table.insert, table.remove, tonumber, table.wipe | |
| 197 local pprint, tabledump = addon.pprint, flib.tabledump | 198 local pprint, tabledump = addon.pprint, flib.tabledump |
| 198 local GetNumRaidMembers = GetNumRaidMembers | 199 local GetNumRaidMembers = GetNumRaidMembers |
| 199 -- En masse forward decls of symbols defined inside local blocks | 200 -- En masse forward decls of symbols defined inside local blocks |
| 200 local _register_bossmod, makedate, create_new_cache, _init, _log | 201 local _register_bossmod, makedate, create_new_cache, _init, _log |
| 201 | 202 |
| 776 end | 777 end |
| 777 | 778 |
| 778 if addon.display then | 779 if addon.display then |
| 779 addon:redisplay() | 780 addon:redisplay() |
| 780 end | 781 end |
| 781 table.wipe(candidates) | 782 wipe(candidates) |
| 782 end | 783 end |
| 783 addon.recent_loot = create_new_cache ('loot', comm_cleanup_ttl+3, prefer_local_loots) | 784 addon.recent_loot = create_new_cache ('loot', comm_cleanup_ttl+3, prefer_local_loots) |
| 784 | 785 |
| 785 local GetItemInfo, GetItemIcon = GetItemInfo, GetItemIcon | 786 local GetItemInfo, GetItemIcon = GetItemInfo, GetItemIcon |
| 786 | 787 |
| 1108 local function sort (src, dest) | 1109 local function sort (src, dest) |
| 1109 for k in pairs(src) do | 1110 for k in pairs(src) do |
| 1110 temp[#temp+1] = k | 1111 temp[#temp+1] = k |
| 1111 end | 1112 end |
| 1112 table.sort(temp) | 1113 table.sort(temp) |
| 1113 table.wipe(dest) | 1114 wipe(dest) |
| 1114 for i = 1, #temp do | 1115 for i = 1, #temp do |
| 1115 dest[i] = src[temp[i]] | 1116 dest[i] = src[temp[i]] |
| 1116 end | 1117 end |
| 1117 end | 1118 end |
| 1118 | 1119 |
| 1119 function addon.sender_list.sort() | 1120 function addon.sender_list.sort() |
| 1120 sort (addon.sender_list.active, byindex) | 1121 sort (addon.sender_list.active, byindex) |
| 1121 table.wipe(temp) | 1122 wipe(temp) |
| 1122 addon.sender_list.activeI = #byindex | 1123 addon.sender_list.activeI = #byindex |
| 1123 sort (addon.sender_list.names, byindex) | 1124 sort (addon.sender_list.names, byindex) |
| 1124 table.wipe(temp) | 1125 wipe(temp) |
| 1125 end | 1126 end |
| 1126 addon.sender_list.namesI = byindex | 1127 addon.sender_list.namesI = byindex |
| 1127 end | 1128 end |
| 1128 | 1129 |
| 1129 -- Message sending. | 1130 -- Message sending. |
| 1326 addon:_mark_boss_kill (bossi) | 1327 addon:_mark_boss_kill (bossi) |
| 1327 if opts.chatty_on_kill then | 1328 if opts.chatty_on_kill then |
| 1328 addon:Print("Registered kill for '%s' in %s!", boss.bosskill, boss.instance) | 1329 addon:Print("Registered kill for '%s' in %s!", boss.bosskill, boss.instance) |
| 1329 end | 1330 end |
| 1330 end | 1331 end |
| 1331 table.wipe(candidates) | 1332 wipe(candidates) |
| 1332 end | 1333 end |
| 1333 addon.recent_boss = create_new_cache ('boss', 10, fixup_durations) | 1334 addon.recent_boss = create_new_cache ('boss', 10, fixup_durations) |
| 1334 | 1335 |
| 1335 -- Similar to _do_loot, but duration+ parms only present when locally generated. | 1336 -- Similar to _do_loot, but duration+ parms only present when locally generated. |
| 1336 local function _do_boss (self, reason, bossname, intag, duration, raiders) | 1337 local function _do_boss (self, reason, bossname, intag, duration, raiders) |
