martii
1bdd23676a
lua menues: add directkey forwarder
2014-01-19 20:57:39 +01:00
martii
d2e5a703c3
lua: update menue callback api to include an id parameter
...
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com >
2014-01-19 20:57:39 +01:00
martii
82be6f8e66
lua: msgbox fix
2014-01-19 20:57:39 +01:00
martii
7b9adbe65b
lua: msgbox fix
2014-01-19 20:57:39 +01:00
martii
c6912180ee
lua related fixes
...
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com >
2014-01-19 20:57:39 +01:00
martii
a568f3004e
lua: remove debugging output
2014-01-19 20:57:39 +01:00
martii
df1ec23980
LUA fixes
...
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com >
2014-01-19 20:57:38 +01:00
martii
920e475526
LUA: change stringinput valid chars
2014-01-19 20:57:38 +01:00
martii
098c205b57
LUA: messagebox support
...
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com >
2014-01-19 20:57:38 +01:00
martii
0b38475439
LUA: add hintbox; bugfixes
...
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com >
2014-01-19 20:57:38 +01:00
martii
2a41749eb5
LUA: experimental support for native neutrino menues
...
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com >
2014-01-19 20:57:38 +01:00
martii
c0a720bd8b
luainstance: support new text coloring scheme
...
Signed-off-by: Stefan Seyfried <seife@tuxbox-git.slipkontur.de >
2014-01-19 20:57:37 +01:00
Christian Ege
53ed75f66d
handling of luaposix for dynamic environment
2014-01-19 20:57:37 +01:00
Stefan Seyfried
a61dbcee0b
luainstance: return render width from RenderString
...
Return the string's renderwidth from RenderString. If boxh is < 0
then the string is not rendered and only the width is determined.
2014-01-19 20:57:37 +01:00
Stefan Seyfried
7c7c7e55a4
luainstance: remove utf8 parameter from RenderString, add center
...
Everybody should always be using utf8 anyway, so remove the "utf8"
parameter from RenderString and replace it with a "center" parameter
which centers the string horizontally in its box.
new usage:
RenderString(font, text, x, y, color, boxwidth, boxheight, center)
defaults:
color = COL_MENUCONTENT, boxwidth = window's width minus x
boxheight = 0, center = 0
2014-01-19 20:57:36 +01:00
Stefan Seyfried
3f57d7c528
luainstance: export customcolor.h colors, too
2014-01-19 20:57:36 +01:00
Stefan Seyfried
8af79e1152
luainstance: work around a signed/unsigned problem on ppc
2014-01-19 20:57:36 +01:00
Stefan Seyfried
ef512f897a
luainstance: allow any color for PaintBox, disable debug
2014-01-19 20:57:36 +01:00
Stefan Seyfried
a73dfbb2c5
luainstance: allow rounded corners in PaintBox
2014-01-19 20:57:36 +01:00
Stefan Seyfried
56db064368
luainstance: dynamic values are not static
2014-01-19 20:57:36 +01:00
Stefan Seyfried
f7fc13becd
luainstance: export FontHeight to Lua scripts
2014-01-19 20:57:36 +01:00
Stefan Seyfried
f43585cbe3
luainstance: also export RCInput constants
2014-01-19 20:57:36 +01:00
Stefan Seyfried
fee8c10f42
luainstance: export variables as tables
...
This exports arrays FONT_TYPE_foo as FONT['foo'], COL_bar als COL['bar']
and SCREEN_OFF_a as SCREEN['OFF_a'] instead of lots of single variables.
Later these could also be made dynamic if the need arises.
2014-01-19 20:57:36 +01:00
Stefan Seyfried
9bdc0309a7
luainstance: show errors from loadfile()
2014-01-19 20:57:36 +01:00
Stefan Seyfried
8dfa4c9bf8
luainstance: add minimal error reporting
2014-01-19 20:57:35 +01:00
Stefan Seyfried
eefd75537e
luainstance: add simple GetInput() method
...
use like this in the lua script:
--
RC_home = 174
local n = neutrino()
repeat msg, data = m:GetInput(1000) until msg == RC_home
2014-01-19 20:57:35 +01:00
Stefan Seyfried
4d7e07f81f
luainstance: the name is "Lua", not "LUA"
2014-01-19 20:57:35 +01:00
Stefan Seyfried
f26357e887
neutrino: add a prototype of a lua plugin interface
...
this is just for preliminary tests, not yet really usable
for anything useful
2014-01-19 20:57:35 +01:00
martii
45028b116c
luainstance: support new text coloring scheme
...
Signed-off-by: Stefan Seyfried <seife@tuxbox-git.slipkontur.de >
2013-12-08 21:28:38 +01:00
Christian Ege
e92afd2b42
handling of luaposix for dynamic environment
2013-04-30 13:41:20 +02:00
Stefan Seyfried
8c88dfdc20
Revert "handling of luaposix for dynamic environments"
...
This reverts commit 8381f1a8cf
.
sorry, it breaks the build (the trivial #endif -> #else and
additional "error: 'report' was not declared in this scope)"
2013-04-27 22:22:54 +02:00
Christian Ege
8381f1a8cf
handling of luaposix for dynamic environments
...
added loading of luaposix in case of none static linking of lua
2013-04-27 21:56:50 +02:00
Stefan Seyfried
ee3580214f
auto-enumerate FONT_TYPE_COUNT instead of defining it
2013-04-13 17:27:21 +02:00
Stefan Seyfried
d2463705f4
luainstance: return render width from RenderString
...
Return the string's renderwidth from RenderString. If boxh is < 0
then the string is not rendered and only the width is determined.
2013-04-07 18:54:57 +02:00
Stefan Seyfried
53c6e48d40
luainstance: remove utf8 parameter from RenderString, add center
...
Everybody should always be using utf8 anyway, so remove the "utf8"
parameter from RenderString and replace it with a "center" parameter
which centers the string horizontally in its box.
new usage:
RenderString(font, text, x, y, color, boxwidth, boxheight, center)
defaults:
color = COL_MENUCONTENT, boxwidth = window's width minus x
boxheight = 0, center = 0
2013-04-07 18:18:38 +02:00
Stefan Seyfried
e2061907da
luainstance: export customcolor.h colors, too
2013-04-07 18:18:02 +02:00
Stefan Seyfried
28890886fc
luainstance: work around a signed/unsigned problem on ppc
2013-04-06 19:06:46 +02:00
Stefan Seyfried
a6cf7313d5
luainstance: allow any color for PaintBox, disable debug
2013-04-06 12:26:24 +02:00
Stefan Seyfried
fa1b81ccf3
luainstance: allow rounded corners in PaintBox
2013-03-24 19:26:10 +01:00
Stefan Seyfried
1f3efc987f
luainstance: dynamic values are not static
2013-03-24 13:15:13 +01:00
Stefan Seyfried
bba85ee912
luainstance: export FontHeight to Lua scripts
2013-03-22 22:22:21 +01:00
Stefan Seyfried
6e80277e5c
luainstance: also export RCInput constants
2013-03-22 13:46:45 +01:00
Stefan Seyfried
8ef5040d47
luainstance: export variables as tables
...
This exports arrays FONT_TYPE_foo as FONT['foo'], COL_bar als COL['bar']
and SCREEN_OFF_a as SCREEN['OFF_a'] instead of lots of single variables.
Later these could also be made dynamic if the need arises.
2013-03-22 13:44:32 +01:00
Stefan Seyfried
e5a29f3a75
luainstance: show errors from loadfile()
2013-03-22 09:20:09 +01:00
Stefan Seyfried
c9c89ad503
luainstance: add minimal error reporting
2013-03-19 10:23:11 +01:00
Stefan Seyfried
7343286a1d
luainstance: add simple GetInput() method
...
use like this in the lua script:
--
RC_home = 174
local n = neutrino()
repeat msg, data = m:GetInput(1000) until msg == RC_home
2013-03-18 17:38:37 +01:00
Stefan Seyfried
6593e3b991
luainstance: the name is "Lua", not "LUA"
2013-03-18 16:10:01 +01:00
Stefan Seyfried
da358e7502
neutrino: add a prototype of a lua plugin interface
...
this is just for preliminary tests, not yet really usable
for anything useful
2013-03-17 23:24:45 +01:00