aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/skang.lua
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-03-27 00:04:21 +1000
committerDavid Walter Seikel2014-03-27 00:04:21 +1000
commitc658ad8089bdd3714ef46539e49bee784cf3c840 (patch)
tree9b75cf938f6b1f80fe9260b97d170d47290fb376 /ClientHamr/GuiLua/skang.lua
parentMore notes, TODO, and default Thing pattern. (diff)
downloadSledjHamr-c658ad8089bdd3714ef46539e49bee784cf3c840.zip
SledjHamr-c658ad8089bdd3714ef46539e49bee784cf3c840.tar.gz
SledjHamr-c658ad8089bdd3714ef46539e49bee784cf3c840.tar.bz2
SledjHamr-c658ad8089bdd3714ef46539e49bee784cf3c840.tar.xz
Comment out debugging stuff for now, and that means no more need for thing.name[1] in __newindex().
Diffstat (limited to 'ClientHamr/GuiLua/skang.lua')
-rw-r--r--ClientHamr/GuiLua/skang.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua
index e89de8e..dfcb5e7 100644
--- a/ClientHamr/GuiLua/skang.lua
+++ b/ClientHamr/GuiLua/skang.lua
@@ -293,7 +293,7 @@ Thing.__newindex = function (table, key, value)
293 local thing = things[key] 293 local thing = things[key]
294 294
295 if thing then 295 if thing then
296 local name = thing.names[1] 296-- local name = thing.names[1]
297 -- This is a proxy table, the values never exist in the real table. 297 -- This is a proxy table, the values never exist in the real table.
298 thing.value = value 298 thing.value = value
299 if 'function' == type(value) then 299 if 'function' == type(value) then
@@ -302,7 +302,7 @@ Thing.__newindex = function (table, key, value)
302 for i, v in ipairs(thing.types) do 302 for i, v in ipairs(thing.types) do
303 if 1 ~= i then types = types .. v .. ', ' end 303 if 1 ~= i then types = types .. v .. ', ' end
304 end 304 end
305 print(thing.module._NAME .. '.' .. name .. '(' .. types .. ') -> ' .. thing.help) 305-- print(thing.module._NAME .. '.' .. name .. '(' .. types .. ') -> ' .. thing.help)
306 else 306 else
307 -- NOTE - invalid values are still stored, this is by design. 307 -- NOTE - invalid values are still stored, this is by design.
308 if not thing:isValid() then 308 if not thing:isValid() then