From 3cc368f33a841d554c34f605230961499578e7f8 Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Thu, 10 Jan 2019 02:22:06 -0500 Subject: [PATCH] kiosk mode --- sys/apps/Overview.lua | 3 ++- sys/boot/kiosk.boot | 9 ++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/apps/Overview.lua b/sys/apps/Overview.lua index 46d1244..73fccd8 100644 --- a/sys/apps/Overview.lua +++ b/sys/apps/Overview.lua @@ -194,7 +194,8 @@ UI.Icon.defaults = { } function UI.Icon:eventHandler(event) if event.type == 'mouse_click' then - self:setFocus(self.button) + --self:setFocus(self.button) + self:emit({ type = self.button.event, button = self.button }) return true elseif event.type == 'mouse_doubleclick' then self:emit({ type = self.button.event, button = self.button }) diff --git a/sys/boot/kiosk.boot b/sys/boot/kiosk.boot index ad4da1a..cc79101 100644 --- a/sys/boot/kiosk.boot +++ b/sys/boot/kiosk.boot @@ -1,17 +1,16 @@ local os = _G.os local parallel = _G.parallel local peripheral = _G.peripheral -local settings = _G.settings +local settings = _G.settings local term = _G.term - local mon = peripheral.find('monitor') if mon then term.redirect(mon) - if not settings.get('opus.kiosk.textscale') then - settings.set('opus.kiosk.textscale', .5) + if not settings.get('kiosk.textscale') then + settings.set('kiosk.textscale', .5) end - mon.setTextScale(settings.get('opus.kiosk.textscale') or .5) + mon.setTextScale(settings.get('kiosk.textscale') or .5) parallel.waitForAny( function()