The issue is that it's not really possible to disable/enable menu items on
runtime with an existant menu widget instance eg with personalized menu items.
Here we need a dynamic solution to disable items depends on stb-mode (mode_ts, mode_tv etc)
This should be solved here with an additional parameter for personalized items.
New paramter is named: disable_condition
Possible alvailable values at the moment are:
DCOND_MODE_NONE as default
DCOND_MODE_TV
DCOND_MODE_RADIO
DCOND_MODE_TS
includes some improvements by Sven
- menue: remove old_iconName handling
... icons should be painted on deactivated items too
- menue: try to fix position <-> selection missmatch
- Functions: enableMuteIcon, isMuted, AudioMute, setVolume, getVolume
- This allows to save volume/mute status at plugin start
and restore it on exit.
- Set Lua api version to 1.35
- code ported from lua-llthreads2
(https://github.com/moteus/lua-llthreads2)
- code in neutrino integrated for use of lua neutrino api in threads
- add thread::cancel() function
- Set Lua api version to 1.34
- By pages parameter the number of pages can be specified
to be scrolled
- Set Lua api version to 1.30
Example:
ct = ctext.new{...}
...
ct:scroll{dir="down", pages=2};
- When setSinglePlay() Neutrino returns after playing a movie
immediately in the tv/radio modus back
- Set Lua api version to 1.29
Example:
video = video.new()
video.setSinglePlay()
video.PlayFile(...)
- Set Lua api version to 1.28
Example:
video = video.new()
if video.getNeutrinoMode() == NMODE.TS then
messagebox.exec{title="Attention!", text="Movie player is busy.", buttons={ "ok" } }
end
- Add simple download function
- Set Lua api version to 1.24
parameter typ default
----------------------------------------
url string required
o, outputfile string when empty then save to string
as secund return value
A, userAgent string empty
v, verbose bool false
s, silent bool false
connectTimeout number 20
ipv4 bool false
ipv6 bool false
useProxy bool true (default)
followRedir bool true
maxRedirs number 20
Example:
-- simplest program call:
-- ----------------------
local curl = curl.new()
local ret, data = curl:download{url="http://example.com", o="/tmp/test.txt"}
if ret ~= CURL.OK then
print("Error: " .. data)
end
-- or --
local curl = curl.new()
local ret, data = curl:download{url="http://example.com"}
if ret == CURL.OK then
-- downloaded data
print(data)
..
else
print("Error: " .. data)
end