aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--ClientHamr/GuiLua/skang.lua2
-rw-r--r--ClientHamr/GuiLua/test.lua6
2 files changed, 7 insertions, 1 deletions
diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua
index 327dc38..c0c63dc 100644
--- a/ClientHamr/GuiLua/skang.lua
+++ b/ClientHamr/GuiLua/skang.lua
@@ -184,7 +184,7 @@ Thing =
184 print(thing.module._NAME .. '.' .. name .. '(' .. types .. ') -> ' .. thing.help) 184 print(thing.module._NAME .. '.' .. name .. '(' .. types .. ') -> ' .. thing.help)
185 else 185 else
186 thing:isValid() 186 thing:isValid()
187 print(thing.types[1] .. ' ' .. thing.module._NAME .. '.' .. name .. ' = ' .. value .. ' -> ' .. thing.help) 187 print(thing.types[1] .. ' ' .. thing.module._NAME .. '.' .. name .. ' = ' .. (value or 'nil') .. ' -> ' .. thing.help)
188 -- TODO - Go through it's linked things and set them to. 188 -- TODO - Go through it's linked things and set them to.
189 end 189 end
190 rawset(table, name, value) 190 rawset(table, name, value)
diff --git a/ClientHamr/GuiLua/test.lua b/ClientHamr/GuiLua/test.lua
index 6c48ca6..c1aeb7c 100644
--- a/ClientHamr/GuiLua/test.lua
+++ b/ClientHamr/GuiLua/test.lua
@@ -52,3 +52,9 @@ test.ffunc('one', 2)
52--skang.things.ffunc('seven', 'aight') 52--skang.things.ffunc('seven', 'aight')
53test.f = 42 53test.f = 42
54print('f is now ' .. test.fooble .. ' ' .. test.f .. ' ' .. skang.things.f.help .. ' ' .. skang.things.fooble.help) 54print('f is now ' .. test.fooble .. ' ' .. test.f .. ' ' .. skang.things.f.help .. ' ' .. skang.things.fooble.help)
55test.f = nil
56print('f is now ' .. test.fooble .. ' ' .. test.f .. ' ' .. skang.things.f.help .. ' ' .. skang.things.fooble.help)
57test.fooble = 42
58print('f is now ' .. test.fooble .. ' ' .. test.f .. ' ' .. skang.things.f.help .. ' ' .. skang.things.fooble.help)
59test.fooble = nil
60print('f is now ' .. test.fooble .. ' ' .. test.f .. ' ' .. skang.things.f.help .. ' ' .. skang.things.fooble.help)