comparison LibFarmbuyer.lua @ 95:3546c7b55986

Move generation of the Help tab to the same file as the help text. Allow registration of arbitrary tab controls, not just text generation. Move some shared data out of the addon table into a 'gui' state table in preparation for more of the same. Clean some cruft out of the default itemfilter list.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Thu, 26 Jul 2012 03:34:56 +0000
parents 01cfbfa96dd6
children a57133ee3c9b
comparison
equal deleted inserted replaced
94:db1d5d09e5f5 95:3546c7b55986
99 lib.new, lib.del, lib.copy, lib.clear = new, del, copy, clear 99 lib.new, lib.del, lib.copy, lib.clear = new, del, copy, clear
100 100
101 101
102 ---------------------------------------------------------------------- 102 ----------------------------------------------------------------------
103 --[[ 103 --[[
104 safeprint 104 safeprint and company (primarily for on-the-fly debugging)
105 ]] 105 ]]
106 local tconcat, tostring, tonumber = table.concat, tostring, tonumber 106 local tconcat, tostring, tonumber = table.concat, tostring, tonumber
107 local function undocontrol(c) 107 local function undocontrol(c)
108 return ("\\%.3d"):format(c:byte()) 108 return ("\\%.3d"):format(c:byte())
109 end 109 end