shop monitor selection
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
title = 'Shell utilities',
|
title = 'Shell utilities',
|
||||||
repository = 'kepler155c/opus-apps/{{OPUS_BRANCH}}/shellex',
|
repository = 'kepler155c/opus-apps/{{OPUS_BRANCH}}/shellex',
|
||||||
description = [[Experimental!
|
description = [[Experimental!
|
||||||
|
A port of openos shell tools.
|
||||||
|
|
||||||
Linux style shell commands:
|
Linux style shell commands:
|
||||||
grep, cat, touch, df, etc.
|
grep, cat, touch, df, etc.
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
local UI = require('ui')
|
local UI = require('ui')
|
||||||
|
|
||||||
local colors = _G.colors
|
local colors = _G.colors
|
||||||
local os = _G.os
|
local device = _G.device
|
||||||
local peripheral = _G.peripheral
|
local os = _G.os
|
||||||
|
|
||||||
--[[ Configuration Page ]]--
|
--[[ Configuration Page ]]--
|
||||||
local wizardPage = UI.WizardPage {
|
local wizardPage = UI.WizardPage {
|
||||||
@@ -64,8 +64,8 @@ function wizardPage:saveNode(node)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function wizardPage:isValidType(node)
|
function wizardPage:isValidType(node)
|
||||||
local m = peripheral.getType(node.name)
|
local m = device[node.name]
|
||||||
return m == 'monitor' and {
|
return m and m.type == 'monitor' and {
|
||||||
name = 'Store Front',
|
name = 'Store Front',
|
||||||
value = 'shop',
|
value = 'shop',
|
||||||
category = 'display',
|
category = 'display',
|
||||||
|
|||||||
Reference in New Issue
Block a user