better startup
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/etc/fstab
|
||||||
@@ -20,11 +20,6 @@ if Util.getVersion() == 1.8 then
|
|||||||
ChestAdapter = require('chestAdapter18')
|
ChestAdapter = require('chestAdapter18')
|
||||||
end
|
end
|
||||||
|
|
||||||
if not _G.device then
|
|
||||||
local Opus = require('opus')
|
|
||||||
Opus.loadExtensions()
|
|
||||||
end
|
|
||||||
|
|
||||||
local BUILDER_DIR = 'usr/builder'
|
local BUILDER_DIR = 'usr/builder'
|
||||||
|
|
||||||
local schematic = Schematic()
|
local schematic = Schematic()
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ if not controller:isValid() then
|
|||||||
end
|
end
|
||||||
|
|
||||||
---------------------------------------------------------------------- FIX ME
|
---------------------------------------------------------------------- FIX ME
|
||||||
local chestAdapter = ChestAdapter({ direction = 'north', wrapSide = 'colossalchests:colossalChest' })
|
local chestAdapter = ChestAdapter({ direction = 'north', wrapSide = 'back' })
|
||||||
local turtleChestAdapter = ChestAdapter({ direction = 'down', wrapSide = 'top' })
|
local turtleChestAdapter = ChestAdapter({ direction = 'down', wrapSide = 'top' })
|
||||||
|
|
||||||
local RESOURCE_FILE = 'usr/config/resources.db'
|
local RESOURCE_FILE = 'usr/config/resources.db'
|
||||||
@@ -620,9 +620,9 @@ function listingPage.grid:getRowTextColor(row, selected)
|
|||||||
end
|
end
|
||||||
if row.has_recipe then
|
if row.has_recipe then
|
||||||
if selected then
|
if selected then
|
||||||
return colors.blue
|
return colors.cyan
|
||||||
end
|
end
|
||||||
return colors.lightBlue
|
return colors.cyan
|
||||||
end
|
end
|
||||||
return UI.Grid:getRowTextColor(row, selected)
|
return UI.Grid:getRowTextColor(row, selected)
|
||||||
end
|
end
|
||||||
@@ -914,6 +914,8 @@ Event.onInterval(5, function()
|
|||||||
|
|
||||||
if not craftingPaused then
|
if not craftingPaused then
|
||||||
local items = chestAdapter:listItems()
|
local items = chestAdapter:listItems()
|
||||||
|
_G._adapter = chestAdapter
|
||||||
|
_G._items = items
|
||||||
if Util.size(items) == 0 then
|
if Util.size(items) == 0 then
|
||||||
jobListGrid.parent:clear()
|
jobListGrid.parent:clear()
|
||||||
jobListGrid.parent:centeredWrite(math.ceil(jobListGrid.parent.height/2), 'No items in system')
|
jobListGrid.parent:centeredWrite(math.ceil(jobListGrid.parent.height/2), 'No items in system')
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ end
|
|||||||
|
|
||||||
function Process:focus(focused)
|
function Process:focus(focused)
|
||||||
if focused then
|
if focused then
|
||||||
self.titleBar.setBackgroundColor(colors.green)
|
self.titleBar.setBackgroundColor(colors.yellow)
|
||||||
else
|
else
|
||||||
self.titleBar.setBackgroundColor(colors.gray)
|
self.titleBar.setBackgroundColor(colors.gray)
|
||||||
end
|
end
|
||||||
@@ -337,7 +337,7 @@ local function addShell()
|
|||||||
self.window.setVisible(focused)
|
self.window.setVisible(focused)
|
||||||
if focused then
|
if focused then
|
||||||
self.window.restoreCursor()
|
self.window.restoreCursor()
|
||||||
self.container.setTextColor(colors.green)
|
self.container.setTextColor(colors.yellow)
|
||||||
self.container.setBackgroundColor(colors.black)
|
self.container.setBackgroundColor(colors.black)
|
||||||
else
|
else
|
||||||
parentTerm.clear()
|
parentTerm.clear()
|
||||||
|
|||||||
Reference in New Issue
Block a user