diff options
Diffstat (limited to '')
-rw-r--r-- | ClientHamr/GuiLua/skang.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua index e3c2612..7333e54 100644 --- a/ClientHamr/GuiLua/skang.lua +++ b/ClientHamr/GuiLua/skang.lua | |||
@@ -594,6 +594,19 @@ thing = function (names, ...) | |||
594 | end | 594 | end |
595 | 595 | ||
596 | 596 | ||
597 | fixNames = function (module, name) | ||
598 | local stuff = getmetatable(module) | ||
599 | stuff.names[1] = name | ||
600 | for k, v in pairs(stuff.__stuff) do | ||
601 | if 'table' == v.types[1] then | ||
602 | local name = v.names[1] | ||
603 | print(name .. ' -> ' .. name) | ||
604 | fixNames(stuff.__values[name], name) | ||
605 | end | ||
606 | end | ||
607 | end | ||
608 | |||
609 | |||
597 | copy = function (module, name) | 610 | copy = function (module, name) |
598 | local result = {} | 611 | local result = {} |
599 | local thingy = {} | 612 | local thingy = {} |