1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-21 18:57:41 +00:00

canvas use in UI overhaul

This commit is contained in:
kepler155c@gmail.com
2019-01-30 15:11:41 -05:00
parent 02629e266b
commit 3574d26caa
12 changed files with 137 additions and 147 deletions

View File

@@ -1,7 +1,7 @@
local Config = require('config')
local UI = require('ui')
local aliasTab = UI.Window {
local aliasTab = UI.Tab {
tabTitle = 'Aliases',
description = 'Shell aliases',
alias = UI.TextEntry {

View File

@@ -4,7 +4,7 @@ local Util = require('util')
local fs = _G.fs
local os = _G.os
local labelTab = UI.Window {
local labelTab = UI.Tab {
tabTitle = 'Label',
description = 'Set the computer label',
labelText = UI.Text {

View File

@@ -3,7 +3,7 @@ local UI = require('ui')
local device = _G.device
local tab = UI.Window {
local tab = UI.Tab {
tabTitle = 'Network',
description = 'Networking options',
form = UI.Form {
@@ -40,7 +40,7 @@ function tab:enable()
local config = Config.load('os')
self.form.modem.value = config.wirelessModem or 'auto'
UI.Window.enable(self)
UI.Tab.enable(self)
end
function tab:eventHandler(event)

View File

@@ -2,7 +2,7 @@ local Security = require('security')
local SHA1 = require('sha1')
local UI = require('ui')
local passwordTab = UI.Window {
local passwordTab = UI.Tab {
tabTitle = 'Password',
description = 'Wireless network password',
oldPass = UI.TextEntry {

View File

@@ -2,7 +2,7 @@ local Config = require('config')
local UI = require('ui')
local Util = require('util')
local pathTab = UI.Window {
local pathTab = UI.Tab {
tabTitle = 'Path',
description = 'Set the shell path',
tabClose = true,

View File

@@ -3,7 +3,6 @@ local UI = require('ui')
local settings = _G.settings
if settings then
local values = { }
for _,v in pairs(settings.getNames()) do
local value = settings.get(v)
@@ -16,11 +15,11 @@ if settings then
})
end
local settingsTab = UI.Window {
local settingsTab = UI.Tab {
tabTitle = 'Settings',
description = 'Computercraft configurable settings',
grid = UI.Grid {
y = 1,
y = 2,
values = values,
autospace = true,
sortColumn = 'name',

View File

@@ -9,7 +9,7 @@ if turtle then
local values = { }
Config.load('gps', values.home and { values.home } or { })
local gpsTab = UI.Window {
local gpsTab = UI.Tab {
tabTitle = 'GPS',
labelText = UI.Text {
x = 3, y = 2,