Commit Graph

15 Commits

Author SHA1 Message Date
Stefan Seyfried
7f61241703 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.


Origin commit data
------------------
Branch: ni/coolstream
Commit: a61dbcee0b
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-04-07 (Sun, 07 Apr 2013)



------------------
This commit was generated by Migit
2014-01-19 20:57:37 +01:00
Stefan Seyfried
e0e54236d2 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


Origin commit data
------------------
Branch: ni/coolstream
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 commit was generated by Migit
2014-01-19 20:57:36 +01:00
Stefan Seyfried
9d1589525f luainstance: export customcolor.h colors, too
Origin commit data
------------------
Branch: ni/coolstream
Commit: 3f57d7c528
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-04-07 (Sun, 07 Apr 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-01-19 20:57:36 +01:00
Stefan Seyfried
2c7777ef68 luainstance: work around a signed/unsigned problem on ppc
Origin commit data
------------------
Branch: ni/coolstream
Commit: 8af79e1152
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-04-06 (Sat, 06 Apr 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-01-19 20:57:36 +01:00
Stefan Seyfried
5354846491 luainstance: allow any color for PaintBox, disable debug
Origin commit data
------------------
Branch: ni/coolstream
Commit: ef512f897a
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-04-06 (Sat, 06 Apr 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-01-19 20:57:36 +01:00
Stefan Seyfried
3ae75d9992 luainstance: allow rounded corners in PaintBox
Origin commit data
------------------
Branch: ni/coolstream
Commit: a73dfbb2c5
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-24 (Sun, 24 Mar 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-01-19 20:57:36 +01:00
Stefan Seyfried
ea0c70e2b1 luainstance: dynamic values are not static
Origin commit data
------------------
Branch: ni/coolstream
Commit: 56db064368
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-24 (Sun, 24 Mar 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-01-19 20:57:36 +01:00
Stefan Seyfried
fac400e38e luainstance: export FontHeight to Lua scripts
Origin commit data
------------------
Branch: ni/coolstream
Commit: f7fc13becd
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-22 (Fri, 22 Mar 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-01-19 20:57:36 +01:00
Stefan Seyfried
ea17e40183 luainstance: also export RCInput constants
Origin commit data
------------------
Branch: ni/coolstream
Commit: f43585cbe3
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-22 (Fri, 22 Mar 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-01-19 20:57:36 +01:00
Stefan Seyfried
8d62a8c553 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.


Origin commit data
------------------
Branch: ni/coolstream
Commit: fee8c10f42
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-22 (Fri, 22 Mar 2013)



------------------
This commit was generated by Migit
2014-01-19 20:57:36 +01:00
Stefan Seyfried
5276420b9b luainstance: show errors from loadfile()
Origin commit data
------------------
Branch: ni/coolstream
Commit: 9bdc0309a7
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-22 (Fri, 22 Mar 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-01-19 20:57:36 +01:00
Stefan Seyfried
729a2adf34 luainstance: add minimal error reporting
Origin commit data
------------------
Branch: ni/coolstream
Commit: 8dfa4c9bf8
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-19 (Tue, 19 Mar 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-01-19 20:57:35 +01:00
Stefan Seyfried
6d808199fc 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


Origin commit data
------------------
Branch: ni/coolstream
Commit: eefd75537e
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-18 (Mon, 18 Mar 2013)



------------------
This commit was generated by Migit
2014-01-19 20:57:35 +01:00
Stefan Seyfried
cef20d5284 luainstance: the name is "Lua", not "LUA"
Origin commit data
------------------
Branch: ni/coolstream
Commit: 4d7e07f81f
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-18 (Mon, 18 Mar 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-01-19 20:57:35 +01:00
Stefan Seyfried
88c69c92bd neutrino: add a prototype of a lua plugin interface
this is just for preliminary tests, not yet really usable
for anything useful


Origin commit data
------------------
Branch: ni/coolstream
Commit: f26357e887
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-17 (Sun, 17 Mar 2013)



------------------
This commit was generated by Migit
2014-01-19 20:57:35 +01:00