Some Signal level monitoring plugin, originally from Coolstream HD box, where it works OK:
Code: Alles auswählen
local n = neutrino();
dx = 600;
dy = 200;
sx = ((SCREEN['END_X'] - SCREEN['OFF_X']) - dx + 50) / 2;
sy = ((SCREEN['END_Y'] - SCREEN['OFF_Y']) - dy + 0) / 2;
sx = math.floor(sx + 0.5);
sy = math.floor(sy + 0.5);
local m = neutrino(sx, sy, dx, dy);
local w = cwindow.new{x=sx, y=sy, dx=dx, dy=dy, name="Signal Level", icon="satfinder"};
w:paint();
local s = signalbox.new{x=sx+50, y=sy+50, dx=dx-100, dy=dy-100};
s:paint();
repeat
msg, data = m:GetInput(100);
n:PaintBox(1, 1, 1, 1, COL['MENUCONTENT']); -- draw fake paintbox, not a part of original code
s:paint();
until msg == RC['home'] or msg == RC['setup'];
w:hide();
Something wrong with original lua script, or with lua client in Neutrino-MP?