Mercurial > wow > ouroloot
diff core.lua @ 65:69fd720f853e
Add display_bcast_from option.
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Fri, 27 Apr 2012 09:12:45 +0000 |
parents | 359d0159d6ca |
children | 43913e02a1ef |
line wrap: on
line diff
--- a/core.lua Fri Apr 20 04:41:10 2012 +0000 +++ b/core.lua Fri Apr 27 09:12:45 2012 +0000 @@ -58,7 +58,9 @@ dropped double axes today" - is_heroic true if item is heroic; missing otherwise - cache_miss if GetItemInfo failed; SHOULD be missing (changes other fields) -- bcast_from if rebroadcast from another player; missing otherwise +- bcast_from player's name if received rebroadcast from that player; + missing otherwise; can be deleted as a result of in-game + fiddling of loot data - extratext text in Note column, including disposition and rebroadcasting - extratext_byhand true if text edited by player directly; missing otherwise @@ -124,6 +126,7 @@ }, ['forum_current'] = '[item] by name', ['display_disabled_LODs'] = false, + ['display_bcast_from'] = true, } local virgin = "First time loaded? Hi! Use the /ouroloot or /loot command" .." to show the main display. You should probably browse the instructions" @@ -273,7 +276,7 @@ r = 1000*r + d end -- If it's a big enough number to obviously be a release, then make - -- sure it's big enough to overcome many small point releases. + -- sure it's big enough to overcome many small previous point releases. while r > 2000 and r < 2000000 do r = 1000*r end @@ -463,6 +466,8 @@ s:Print(virgin, s.format_hypertext('help',"click here",ITEM_QUALITY_UNCOMMON)) virgin = nil end,10,self) + else + virgin = nil end opts = OuroLootSV_opts local stored_datarev = opts.datarev @@ -1083,7 +1088,8 @@ end end - self.dprint('loot', "CHAT_MSG_LOOT, person is", person, ", itemstring is", itemstring, ", count is", count) + self.dprint('loot', "CHAT_MSG_LOOT, person is", person, + ", itemstring is", itemstring, ", count is", count) if not itemstring then return end -- "So-and-So selected Greed", etc, not actual looting -- Name might be colorized, remove the highlighting @@ -1128,7 +1134,7 @@ if cmd == "" then if InCombatLockdown() then - return self:Print("Can't display window in combat.") + return self:Print("Shouldn't display window in combat.") else return self:BuildMainDisplay() end @@ -1660,7 +1666,6 @@ end if self.bossmods[x].r (self, _do_boss) then - --self.bossmod_registered = x self.bossmod_registered = self.bossmods[x].n else self:Print("|cffff1010Boss mod registration failed|r") @@ -1684,7 +1689,7 @@ -- Given a loot index, searches backwards for a timestamp. Returns that -- index and the time entry, or nil if it falls off the beginning. Pass an - -- optional second index to search no earlier than it. + -- optional second index to search no earlier than that. -- May also be able to make good use of this in forum-generation routine. function addon:find_previous_time_entry(i,stop) stop = stop or 0