Mercurial > wow > ouroloot
comparison core.lua @ 116:fc2ff128835a
- Reset the 'clean' markers on all default-function option toggles.
- Fix a long-standing FIXME: Move all lib-scrollingtable and other
"display-only" data out of g_loot entries and into their own subclass-
style table; feed that to ST's SetData instead. No more 'cols'.
| author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
|---|---|
| date | Thu, 16 Aug 2012 17:11:57 -0400 |
| parents | 289c7667adab |
| children | ec5174529e0f |
comparison
equal
deleted
inserted
replaced
| 115:289c7667adab | 116:fc2ff128835a |
|---|---|
| 25 Common g_loot entry indices: | 25 Common g_loot entry indices: |
| 26 - kind time/boss/loot | 26 - kind time/boss/loot |
| 27 - hour 0-23, on the *physical instance server*, not the realm server | 27 - hour 0-23, on the *physical instance server*, not the realm server |
| 28 - minute 0-59, ditto | 28 - minute 0-59, ditto |
| 29 - stamp time_t on the local computer | 29 - stamp time_t on the local computer |
| 30 - cols graphical display data; cleared when logging out | |
| 31 | 30 |
| 32 Time specific g_loot indices: | 31 Time specific g_loot indices: |
| 33 - startday table with month/day/year/text fields from makedate() | 32 - startday table with month/day/year/text fields from makedate() |
| 34 text is always "dd Month yyyy" | 33 text is always "dd Month yyyy" |
| 35 | 34 |
| 1238 worth_saving = worth_saving or g_loot.printed[text] > 0 | 1237 worth_saving = worth_saving or g_loot.printed[text] > 0 |
| 1239 end end | 1238 end end |
| 1240 if worth_saving then | 1239 if worth_saving then |
| 1241 opts.autoshard = self.sharder | 1240 opts.autoshard = self.sharder |
| 1242 opts.threshold = self.threshold | 1241 opts.threshold = self.threshold |
| 1243 for i,e in ipairs(g_loot) do | |
| 1244 e.cols = nil | |
| 1245 end | |
| 1246 _G.OuroLootSV = g_loot | 1242 _G.OuroLootSV = g_loot |
| 1247 else | 1243 else |
| 1248 _G.OuroLootSV = nil | 1244 _G.OuroLootSV = nil |
| 1249 end | 1245 end |
| 1250 | 1246 |
| 2235 if type(g_loot.printed) ~= 'table' then | 2231 if type(g_loot.printed) ~= 'table' then |
| 2236 g_loot.printed = {} | 2232 g_loot.printed = {} |
| 2237 end | 2233 end |
| 2238 | 2234 |
| 2239 self.threshold = opts.threshold or self.threshold -- in the case of restoring but not tracking | 2235 self.threshold = opts.threshold or self.threshold -- in the case of restoring but not tracking |
| 2240 self:gui_init (g_loot, g_uniques) | 2236 local g_loot_wrapper = self:gui_init (g_loot, g_uniques) |
| 2241 opts.autoshard = nil | 2237 opts.autoshard = nil |
| 2242 opts.threshold = nil | 2238 opts.threshold = nil |
| 2243 | 2239 |
| 2244 if g_restore_p then | 2240 if g_restore_p then |
| 2245 self:zero_printed_fenceposts() -- g_loot.printed.* = previous/safe values | 2241 self:zero_printed_fenceposts() -- g_loot.printed.* = previous/safe values |
| 2246 else | 2242 else |
| 2247 self:zero_printed_fenceposts(0) -- g_loot.printed.* = 0 | 2243 self:zero_printed_fenceposts(0) -- g_loot.printed.* = 0 |
| 2248 end | 2244 end |
| 2249 if possible_st then | 2245 if possible_st then |
| 2250 possible_st:SetData(g_loot) | 2246 possible_st:SetData(g_loot_wrapper) |
| 2251 end | 2247 end |
| 2252 | 2248 |
| 2253 self.status_text = ("%s(r%s) communicating as ident %s commrev %s"): | 2249 self.status_text = ("%s(r%s) communicating as ident %s commrev %s"): |
| 2254 format (self.version, self.revision, self.ident, self.commrev) | 2250 format (self.version, self.revision, self.ident, self.commrev) |
| 2255 self:RegisterComm(self.ident) | 2251 self:RegisterComm(self.ident) |
| 2256 self:RegisterComm(self.identTg, "OnCommReceivedNocache") | 2252 self:RegisterComm(self.identTg, "OnCommReceivedNocache") |
| 2257 | 2253 |
| 2258 if self.author_debug then | 2254 if self.author_debug then |
| 2259 _G.Oloot = g_loot | 2255 _G.Ogloot = g_loot |
| 2256 _G.Odloot = g_loot_wrapper | |
| 2260 end | 2257 end |
| 2261 end | 2258 end |
| 2262 | 2259 |
| 2263 -- Raid roster snapshots | 2260 -- Raid roster snapshots |
| 2264 do | 2261 do |
