539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
|
table.insert(del, i)
else
local xc = (idx*48 + 400)*ofs
if l.elt and next(del) then
l.elt:update('offset', {x=xc, y=1})
else
local tex = leds[l.kind].icon:blit(hudAdjustBacklight(leds[l.kind].bg))
if tx then tex = tex:transform(tx) end
if not l.elt then
l.elt = self:attachImage {
tex = tex:render();
align = {x=ofs, y=-1};
pos = {x=.5, y=1};
scale = {x=1,y=1};
ofs = {x=xc, y=0};
|
|
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
|
table.insert(del, i)
else
local xc = (idx*48 + 400)*ofs
if l.elt and next(del) then
l.elt:update('offset', {x=xc, y=1})
else
local tex = leds[l.kind].icon:blit(hudAdjustBacklight(leds[l.kind].bg))
if tx then tex = lib.image(tex:render()):transform(tx) end
if not l.elt then
l.elt = self:attachImage {
tex = tex:render();
align = {x=ofs, y=-1};
pos = {x=.5, y=1};
scale = {x=1,y=1};
ofs = {x=xc, y=0};
|