canvas use in UI overhaul

This commit is contained in:
kepler155c@gmail.com
2019-01-30 15:11:21 -05:00
parent 328df55a19
commit c180387438
9 changed files with 124 additions and 124 deletions

View File

@@ -3,7 +3,7 @@ local UI = require('ui')
local colors = _G.colors
local infoTab = UI.Window {
local infoTab = UI.Tab {
tabTitle = 'Info',
index = 4,
backgroundColor = colors.cyan,
@@ -40,7 +40,7 @@ function infoTab:draw()
end
self.textArea.value = value
UI.Window.draw(self)
UI.Tab.draw(self)
end
return { itemTab = infoTab }

View File

@@ -6,7 +6,7 @@ local Util = require('util')
local colors = _G.colors
local context = Milo:getContext()
local machinesTab = UI.Window {
local machinesTab = UI.Tab {
tabTitle = 'Machine',
index = 3,
backgroundColor = colors.cyan,

View File

@@ -5,7 +5,7 @@ local Util = require('util')
local context = Milo:getContext()
local manageTab = UI.Window {
local manageTab = UI.Tab {
tabTitle = 'Manage',
index = 1,
form = UI.Form {

View File

@@ -5,7 +5,7 @@ local UI = require('ui')
local colors = _G.colors
local recipeTab = UI.Window {
local recipeTab = UI.Tab {
tabTitle = 'Recipe',
index = 2,
backgroundColor = colors.cyan,

View File

@@ -6,7 +6,7 @@ local Util = require('util')
local colors = _G.colors
local context = Milo:getContext()
local resetTab = UI.Window {
local resetTab = UI.Tab {
tabTitle = 'Reset',
index = 5,
backgroundColor = colors.cyan,