aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-04-09 11:56:56 +1000
committerDavid Walter Seikel2014-04-09 11:56:56 +1000
commita4d735089b4e7e3ced37d2ed52222522681d3d9b (patch)
treea5e2e39c33da5bd5350d874f927719432077afe6
parentImplement skang.module(). (diff)
downloadSledjHamr-a4d735089b4e7e3ced37d2ed52222522681d3d9b.zip
SledjHamr-a4d735089b4e7e3ced37d2ed52222522681d3d9b.tar.gz
SledjHamr-a4d735089b4e7e3ced37d2ed52222522681d3d9b.tar.bz2
SledjHamr-a4d735089b4e7e3ced37d2ed52222522681d3d9b.tar.xz
More notes!
-rw-r--r--ClientHamr/GuiLua/GuiLua.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/ClientHamr/GuiLua/GuiLua.c b/ClientHamr/GuiLua/GuiLua.c
index 25625aa..47b46ca 100644
--- a/ClientHamr/GuiLua/GuiLua.c
+++ b/ClientHamr/GuiLua/GuiLua.c
@@ -34,6 +34,27 @@ scripts can have a poper GUI for a change.
34 34
35NOTES and TODOs - 35NOTES and TODOs -
36 36
37Lua scripts do -
38 require 'widget' -> loads widget.c
39 Widget.c is a library like test_c.
40 It starts up GuiLua.c app, with stdin/stdout pipe.
41 Widget.c then acts as a proxy for all the widget stuff.
42 So Lua modules via C libraries can work with Elm code that has a special main and has to be an app.
43 Seems simplest.
44
45 Also -
46 Most of what is in here becomes a library for dynamic linking to C code.
47 Pretty much just leaving main(), though most of what is in there right now should become another function.
48 Some of this gets shared with LuaSL, since it came from there anyway.
49 Perhaps GuiLua.so will work, and I don't have to think of another name. lol
50
51 Finally -
52 Add a --gui command line option, that runs foo.skang.
53 Than change the hash bang to use it.
54 And if there's a matching module, load the module first, call gimmeSkin() on it.
55 So that any with an internal default skin get that instead.
56 Same if theer's a module, but no skanf file.
57
37Making these packages all a sub package of skang seems like a great 58Making these packages all a sub package of skang seems like a great
38idea. On the other hand, looks like most things are just getting folded 59idea. On the other hand, looks like most things are just getting folded
39into skang anyway. See 60into skang anyway. See