Rename RecipeCatalog to ModPack

This commit is contained in:
Andrew Miner
2015-01-01 20:16:38 -08:00
parent f28a763b13
commit e14a4d0810
9 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -6,4 +6,4 @@ All rights reserved.
*/
@import 'crafting_table';
@import 'recipe_catalog';
@import 'mod_pack';
@@ -5,7 +5,7 @@ Copyright (c) 2014 by Redwood Labs
All rights reserved.
*/
.view__recipe_catalog {
.view__mod_pack {
button {
@include center-vertical;
position: absolute; right: 1em;
@@ -8,7 +8,7 @@
BaseController = require './base_controller'
CraftingTableController = require './crafting_table_controller'
ItemPage = require '../models/item_page'
RecipeCatalogController = require './recipe_catalog_controller'
ModPackController = require './mod_pack_controller'
########################################################################################################################
@@ -29,6 +29,6 @@ module.exports = class ItemPageController extends BaseController
# BaseController Overrides #####################################################################
onDidRender: ->
@catalogController = @addChild RecipeCatalogController, '.view__recipe_catalog', model:@model.catalog
@catalogController = @addChild ModPackController, '.view__mod_pack', model:@model.catalog
@tableController = @addChild CraftingTableController, '.view__crafting_table', model:@model.table
super
@@ -1,5 +1,5 @@
###
# Crafting Guide - recipe_catalog_controller.coffee
# Crafting Guide - mod_pack_controller.coffee
#
# Copyright (c) 2014 by Redwood Labs
# All rights reserved.
@@ -11,13 +11,13 @@ ModVersionController = require './mod_version_controller'
########################################################################################################################
module.exports = class RecipeCatalogController extends BaseController
module.exports = class ModPackController extends BaseController
constructor: (options={})->
if not options.model? then throw new Error "options.model is required"
@_bookControllers = []
options.templateName = 'recipe_catalog'
options.templateName = 'mod_pack'
super options
# BaseController Overrides #####################################################################
+2 -2
View File
@@ -7,13 +7,13 @@
BaseModel = require './base_model'
CraftingTable = require './crafting_table'
RecipeCatalog = require './recipe_catalog'
ModPack = require './mod_pack'
########################################################################################################################
module.exports = class ItemPage extends BaseModel
constructor: (attributes={}, options={})->
attributes.catalog ?= new RecipeCatalog
attributes.catalog ?= new ModPack
attributes.table ?= new CraftingTable catalog:attributes.catalog
super attributes, options
@@ -1,5 +1,5 @@
###
# Crafting Guide - recipe_catalog.coffee
# Crafting Guide - mod_pack.coffee
#
# Copyright (c) 2014 by Redwood Labs
# All rights reserved.
@@ -12,7 +12,7 @@ ModVersionParser = require './mod_version_parser'
########################################################################################################################
module.exports = class RecipeCatalog extends BaseModel
module.exports = class ModPack extends BaseModel
constructor: (attributes={}, options={})->
attributes.books ?= []
@@ -119,7 +119,7 @@ module.exports = class RecipeCatalog extends BaseModel
# Object Overrides #############################################################################
toString: ->
return "RecipeCatalog (#{@cid}) {books:#{@books.length} items}"
return "ModPack (#{@cid}) {books:#{@books.length} items}"
_sortBooks:->
@books.sort (a, b)->
+1 -1
View File
@@ -7,4 +7,4 @@
.view__landing_page
.view__crafting_table
.view__recipe_catalog
.view__mod_pack
@@ -1,11 +1,11 @@
//-
//- Crafting Guide - recipe_catalog.jade
//- Crafting Guide - mod_pack.jade
//-
//- Copyright (c) 2014 by Redwood Labs
//- All rights reserved.
//-
.view__recipe_catalog
.view__mod_pack
h2
img(src="/images/bookshelf.png")
p Recipe Catalog