crafter bug fixes
This commit is contained in:
@@ -595,6 +595,7 @@ end
|
||||
|
||||
function itemPage.form.info:draw()
|
||||
local recipe = recipes[uniqueKey(itemPage.item)]
|
||||
self.value = ''
|
||||
if recipe and itemPage.item.machine then
|
||||
self.value = string.format('Crafts %d using the %s machine',
|
||||
recipe.count,
|
||||
@@ -603,6 +604,13 @@ function itemPage.form.info:draw()
|
||||
UI.TextArea.draw(self)
|
||||
end
|
||||
|
||||
function itemPage.machines.grid:getRowTextColor(row, selected)
|
||||
if itemPage.item.machine and self.item.machine.order == row.order then
|
||||
return colors.yellow
|
||||
end
|
||||
return UI.Grid:getRowTextColor(row, selected)
|
||||
end
|
||||
|
||||
--[[
|
||||
function itemPage.machines:eventHandler(event)
|
||||
if event.type == 'grid_focus_row' then
|
||||
@@ -637,6 +645,8 @@ function itemPage:eventHandler(event)
|
||||
if index then
|
||||
self.machines.grid:setIndex(index)
|
||||
end
|
||||
else
|
||||
self.machines.grid:setIndex(1)
|
||||
end
|
||||
self.machines:show()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user