aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/GuiLua
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-16 18:54:14 +1000
committerDavid Walter Seikel2014-05-16 18:54:14 +1000
commitdf8680b4acdf1dc9b52768ac5d88309e8f52868c (patch)
treed341eb469393ec2bf10060de407973d7f644d891 /src/GuiLua
parentBig TODO++ (diff)
downloadSledjHamr-df8680b4acdf1dc9b52768ac5d88309e8f52868c.zip
SledjHamr-df8680b4acdf1dc9b52768ac5d88309e8f52868c.tar.gz
SledjHamr-df8680b4acdf1dc9b52768ac5d88309e8f52868c.tar.bz2
SledjHamr-df8680b4acdf1dc9b52768ac5d88309e8f52868c.tar.xz
Bring back the dangerous push_lua() calls. Trying to debug this.
Diffstat (limited to '')
-rw-r--r--src/GuiLua/GuiLua.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/GuiLua/GuiLua.c b/src/GuiLua/GuiLua.c
index d960da9..65e0d79 100644
--- a/src/GuiLua/GuiLua.c
+++ b/src/GuiLua/GuiLua.c
@@ -351,14 +351,14 @@ printf("**********************require GuiLua\n");
351 push_lua(L, "@ ( = $ $ & )", skang, THINGASM, skang, "clear", "The current skin is cleared of all widgets.", clear, 0); 351 push_lua(L, "@ ( = $ $ & )", skang, THINGASM, skang, "clear", "The current skin is cleared of all widgets.", clear, 0);
352PD("GuiLua 2"); 352PD("GuiLua 2");
353// TODO - This one crashes sometimes. Figure out why later. 353// TODO - This one crashes sometimes. Figure out why later.
354// push_lua(L, "@ ( { = $ $ & $ } )", skang, THINGASM, skang, "widget", "Create a widget.", widget, "userdata,string,string,number,number,number,number"); 354 push_lua(L, "@ ( = $ $ & $ )", skang, THINGASM, skang, "widget", "Create a widget.", widget, "userdata,string,string,number,number,number,number");
355 push_lua(L, "@ ( = $ $ & )", skang, THINGASM, skang, "widget", "Create a widget.", widget, 0); 355/// push_lua(L, "@ ( = $ $ & )", skang, THINGASM, skang, "widget", "Create a widget.", widget, 0);
356PD("GuiLua 3"); 356PD("GuiLua 3");
357 push_lua(L, "@ ( = $ $ & )", skang, THINGASM, skang, "action", "Add an action to a widget.", action, 0); 357 push_lua(L, "@ ( = $ $ & )", skang, THINGASM, skang, "action", "Add an action to a widget.", action, 0);
358 push_lua(L, "@ ( = $ $ & )", skang, THINGASM, skang, "Colour", "Change widget colours.", colour, 0); 358 push_lua(L, "@ ( = $ $ & )", skang, THINGASM, skang, "Colour", "Change widget colours.", colour, 0);
359 push_lua(L, "@ ( = $ $ & )", skang, THINGASM, skang, "loopWindow", "Run our windows main loop.", loopWindow, 0); 359 push_lua(L, "@ ( = $ $ & )", skang, THINGASM, skang, "loopWindow", "Run our windows main loop.", loopWindow, 0);
360 push_lua(L, "@ ( = $ $ & )", skang, THINGASM, skang, "quit", "Quit, exit, remove thyself.", quit, 0); 360 push_lua(L, "@ ( = $ $ & )", skang, THINGASM, skang, "quit", "Quit, exit, remove thyself.", quit, 0);
361 push_lua(L, "@ ( = $ $ & )", skang, THINGASM, skang, "closeWindow", "Closes a window.", closeWindow, 0); // TODO - closeWindow, "userdata"); 361 push_lua(L, "@ ( = $ $ & $ )", skang, THINGASM, skang, "closeWindow", "Closes a window.", closeWindow, "userdata", 0); // TODO - closeWindow, "userdata");
362 362
363 // A test of the array building stuff. 363 // A test of the array building stuff.
364 push_lua(L, "@ ( { = $ $ % $widget !required } )", skang, THINGASM, skang, "wibble", "It's wibbly!", 1, "'edit', 'The wibblinator:', 1, 1, 10, 50", 1, 0); 364 push_lua(L, "@ ( { = $ $ % $widget !required } )", skang, THINGASM, skang, "wibble", "It's wibbly!", 1, "'edit', 'The wibblinator:', 1, 1, 10, 50", 1, 0);