better startup

This commit is contained in:
kepler155c
2017-09-26 01:37:27 -04:00
parent 08acd126c8
commit 8078a1cfdb
4 changed files with 8 additions and 10 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/etc/fstab

View File

@@ -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()

View File

@@ -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')

View File

@@ -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()