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')
|
||||
end
|
||||
|
||||
if not _G.device then
|
||||
local Opus = require('opus')
|
||||
Opus.loadExtensions()
|
||||
end
|
||||
|
||||
local BUILDER_DIR = 'usr/builder'
|
||||
|
||||
local schematic = Schematic()
|
||||
|
||||
@@ -32,7 +32,7 @@ if not controller:isValid() then
|
||||
end
|
||||
|
||||
---------------------------------------------------------------------- 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 RESOURCE_FILE = 'usr/config/resources.db'
|
||||
@@ -620,9 +620,9 @@ function listingPage.grid:getRowTextColor(row, selected)
|
||||
end
|
||||
if row.has_recipe then
|
||||
if selected then
|
||||
return colors.blue
|
||||
return colors.cyan
|
||||
end
|
||||
return colors.lightBlue
|
||||
return colors.cyan
|
||||
end
|
||||
return UI.Grid:getRowTextColor(row, selected)
|
||||
end
|
||||
@@ -914,6 +914,8 @@ Event.onInterval(5, function()
|
||||
|
||||
if not craftingPaused then
|
||||
local items = chestAdapter:listItems()
|
||||
_G._adapter = chestAdapter
|
||||
_G._items = items
|
||||
if Util.size(items) == 0 then
|
||||
jobListGrid.parent:clear()
|
||||
jobListGrid.parent:centeredWrite(math.ceil(jobListGrid.parent.height/2), 'No items in system')
|
||||
|
||||
@@ -153,7 +153,7 @@ end
|
||||
|
||||
function Process:focus(focused)
|
||||
if focused then
|
||||
self.titleBar.setBackgroundColor(colors.green)
|
||||
self.titleBar.setBackgroundColor(colors.yellow)
|
||||
else
|
||||
self.titleBar.setBackgroundColor(colors.gray)
|
||||
end
|
||||
@@ -337,7 +337,7 @@ local function addShell()
|
||||
self.window.setVisible(focused)
|
||||
if focused then
|
||||
self.window.restoreCursor()
|
||||
self.container.setTextColor(colors.green)
|
||||
self.container.setTextColor(colors.yellow)
|
||||
self.container.setBackgroundColor(colors.black)
|
||||
else
|
||||
parentTerm.clear()
|
||||
|
||||
Reference in New Issue
Block a user