diff 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
line wrap: on
line diff
--- a/core.lua	Tue Aug 14 20:37:12 2012 -0400
+++ b/core.lua	Thu Aug 16 17:11:57 2012 -0400
@@ -27,7 +27,6 @@
 - hour          0-23, on the *physical instance server*, not the realm server
 - minute        0-59, ditto
 - stamp         time_t on the local computer
-- cols          graphical display data; cleared when logging out
 
 Time specific g_loot indices:
 - startday      table with month/day/year/text fields from makedate()
@@ -1240,9 +1239,6 @@
 	if worth_saving then
 		opts.autoshard = self.sharder
 		opts.threshold = self.threshold
-		for i,e in ipairs(g_loot) do
-			e.cols = nil
-		end
 		_G.OuroLootSV = g_loot
 	else
 		_G.OuroLootSV = nil
@@ -2237,7 +2233,7 @@
 	end
 
 	self.threshold = opts.threshold or self.threshold -- in the case of restoring but not tracking
-	self:gui_init (g_loot, g_uniques)
+	local g_loot_wrapper = self:gui_init (g_loot, g_uniques)
 	opts.autoshard = nil
 	opts.threshold = nil
 
@@ -2247,7 +2243,7 @@
 		self:zero_printed_fenceposts(0)  -- g_loot.printed.* = 0
 	end
 	if possible_st then
-		possible_st:SetData(g_loot)
+		possible_st:SetData(g_loot_wrapper)
 	end
 
 	self.status_text = ("%s(r%s) communicating as ident %s commrev %s"):
@@ -2256,7 +2252,8 @@
 	self:RegisterComm(self.identTg, "OnCommReceivedNocache")
 
 	if self.author_debug then
-		_G.Oloot = g_loot
+		_G.Ogloot = g_loot
+		_G.Odloot = g_loot_wrapper
 	end
 end