diff options
author | David Walter Seikel | 2014-05-16 19:00:15 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-05-16 19:00:15 +1000 |
commit | 2073fbca6ae3fb1f202df32d4f14771f8866660d (patch) | |
tree | 68bfd83064ced600210ea52c39ecd2b00f7ec884 /lib | |
parent | Stick the connection to the love server in the GuiLua structure, and related ... (diff) | |
download | SledjHamr-2073fbca6ae3fb1f202df32d4f14771f8866660d.zip SledjHamr-2073fbca6ae3fb1f202df32d4f14771f8866660d.tar.gz SledjHamr-2073fbca6ae3fb1f202df32d4f14771f8866660d.tar.bz2 SledjHamr-2073fbca6ae3fb1f202df32d4f14771f8866660d.tar.xz |
Put module name in winFang and winFang in Widget, plus related tweakage and use.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/skang.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/skang.lua b/lib/skang.lua index 5c4aec7..d4a9fec 100644 --- a/lib/skang.lua +++ b/lib/skang.lua | |||
@@ -1089,12 +1089,13 @@ Store the winFang a widget is in in Widget. | |||
1089 | ]] | 1089 | ]] |
1090 | 1090 | ||
1091 | window = function(w, h, title, name) | 1091 | window = function(w, h, title, name) |
1092 | local caller = getfenv(2)._NAME | ||
1092 | name = name or 'myWindow' | 1093 | name = name or 'myWindow' |
1093 | local win = {} | 1094 | local win = {} |
1094 | win = copy(widgets, name) | 1095 | win = copy(widgets, name) |
1095 | local wMum, wThingy = getStuffed(win.W, 'a') | 1096 | local wMum, wThingy = getStuffed(win.W, 'a') |
1096 | wThingy.isValid = aIsValid | 1097 | wThingy.isValid = aIsValid |
1097 | win.window = Cwindow(w, h, title, name) | 1098 | win.window = Cwindow(caller, w, h, title, name) |
1098 | return win | 1099 | return win |
1099 | end | 1100 | end |
1100 | 1101 | ||