This reverts commit 84577152ea.
It broke static linked lua+luaposix completely, which is useful
for debugging and thus should be kept working.
Origin commit data
------------------
Commit: f10057118f
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2014-01-26 (Sun, 26 Jan 2014)
* depend pkg checks on enable-lua switch
* define STATIC_LUAPOSIX in case of static lua build to exclude unwanted
code in neutrino
* remove DYNAMIC_LUAPOSIX code as it's not needed in case of dynamic lua
build
Origin commit data
------------------
Commit: 4b6d2d310c
Author: gixxpunk <thomas.harfmann@gmail.com>
Date: 2014-01-25 (Sat, 25 Jan 2014)
Origin message was:
------------------
- rewrite Lua handling
* depend pkg checks on enable-lua switch
* define STATIC_LUAPOSIX in case of static lua build to exclude unwanted
code in neutrino
* remove DYNAMIC_LUAPOSIX code as it's not needed in case of dynamic lua
build
It's an exported API, so it should be somewhat useful/stable,
not change for every machine...
Origin commit data
------------------
Commit: 116065f7ac
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2014-01-23 (Thu, 23 Jan 2014)
This reverts commit 5afb1db6da.
This is wrong in so many aspects... just look up the definition
of lua_integer...
Origin commit data
------------------
Commit: 4da2a33b29
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2014-01-23 (Thu, 23 Jan 2014)
Return the string's renderwidth from RenderString. If boxh is < 0
then the string is not rendered and only the width is determined.
Origin commit data
------------------
Commit: a61dbcee0b
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-04-07 (Sun, 07 Apr 2013)
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
Origin commit data
------------------
Commit: 7c7c7e55a4
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-04-07 (Sun, 07 Apr 2013)
Origin message was:
------------------
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
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.
Origin commit data
------------------
Commit: fee8c10f42
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-22 (Fri, 22 Mar 2013)
use like this in the lua script:
--
RC_home = 174
local n = neutrino()
repeat msg, data = m:GetInput(1000) until msg == RC_home
Origin commit data
------------------
Commit: eefd75537e
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-18 (Mon, 18 Mar 2013)
this is just for preliminary tests, not yet really usable
for anything useful
Origin commit data
------------------
Commit: f26357e887
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-17 (Sun, 17 Mar 2013)