Allow recipe comp. to show I/O inventories

This commit is contained in:
Andrew Miner
2017-07-19 19:35:16 -07:00
parent 0e6d75ec9b
commit 8b0cd71bb5
8 changed files with 99 additions and 28 deletions
@@ -12,7 +12,6 @@ InventoryController = require "../../common/inventory/inventory_controller"
RecipeController = require "../../common/recipe/recipe_controller"
RecipeDisplay = require "../../../models/site/recipe_display"
########################################################################################################################
module.exports = class StepController extends BaseController
@@ -75,7 +74,11 @@ module.exports = class StepController extends BaseController
refresh: ->
@$header.html "#{@model.number}. #{@model.recipe.output.item.displayName}"
@recipeController.model = new RecipeDisplay recipe:@model.recipe, multiplier:@model.count
@recipeController.model = new RecipeDisplay
multiplier: @model.count
recipe: @model.recipe
showInputInventory: true
showOutputSlot: true
@_refreshCompleteButton()
@_refreshToolButton()