Move mod content into a separate module
This commit is contained in:
@@ -113,17 +113,17 @@ Text.title = 'The Ultimate Minecraft Crafting Guide'
|
||||
exports.Url = Url = {}
|
||||
Url.crafting = _.template "/craft/<%= inventoryText %>"
|
||||
Url.item = _.template "/browse/<%= modSlug %>/<%= itemSlug %>/"
|
||||
Url.itemData = _.template "/browse/<%= modSlug %>/<%= itemSlug %>/item.cg"
|
||||
Url.itemIcon = _.template "/browse/<%= modSlug %>/<%= itemSlug %>/icon.png"
|
||||
Url.itemData = _.template "/data/<%= modSlug %>/items/<%= itemSlug %>/item.cg"
|
||||
Url.itemIcon = _.template "/data/<%= modSlug %>/items/<%= itemSlug %>/icon.png"
|
||||
Url.login = _.template "/login"
|
||||
Url.mod = _.template "/browse/<%= modSlug %>/"
|
||||
Url.modData = _.template "/data/<%= modSlug %>/mod.cg"
|
||||
Url.modIcon = _.template "/browse/<%= modSlug %>/icon.png"
|
||||
Url.modVersionData = _.template "/data/<%= modSlug %>/<%= modVersion %>/mod-version.cg"
|
||||
Url.modIcon = _.template "/data/<%= modSlug %>/icon.png"
|
||||
Url.modVersionData = _.template "/data/<%= modSlug %>/versions/<%= modVersion %>/mod-version.cg"
|
||||
Url.root = _.template "/"
|
||||
Url.tutorial = _.template "/browse/<%= modSlug %>/tutorials/<%= tutorialSlug %>/"
|
||||
Url.tutorialData = _.template "/data/<%= modSlug %>/tutorials/<%= tutorialSlug %>.cg"
|
||||
Url.tutorialIcon = _.template "/browse/<%= modSlug %>/tutorials/<%= tutorialSlug %>/icon.png"
|
||||
Url.tutorialData = _.template "/data/<%= modSlug %>/tutorials/<%= tutorialSlug %>/tutorial.cg"
|
||||
Url.tutorialIcon = _.template "/data/<%= modSlug %>/tutorials/<%= tutorialSlug %>/icon.png"
|
||||
|
||||
exports.UrlParam = UrlParam = {}
|
||||
UrlParam.quantity = 'count'
|
||||
|
||||
@@ -42,5 +42,4 @@ module.exports = class CraftingGridController extends BaseController
|
||||
controller = @slotControllers[i]
|
||||
controller.model = @model?.getStackAtSlot(i)
|
||||
|
||||
@$el.tooltip show:{delay:Duration.snap, duration:Duration.fast}
|
||||
super
|
||||
|
||||
@@ -51,8 +51,6 @@ module.exports = class FullRecipeController extends BaseController
|
||||
refresh: ->
|
||||
@gridController.model = @model
|
||||
|
||||
@$el.tooltip show:{delay:Duration.normal, duration:Duration.normal}
|
||||
|
||||
@_refreshInputs()
|
||||
@_refreshOutputs()
|
||||
@_refreshTools()
|
||||
|
||||
@@ -47,7 +47,6 @@ module.exports = class MinimalRecipeController extends BaseController
|
||||
refresh: ->
|
||||
@gridController.model = @model
|
||||
@outputSlotController.model = @model?.output?[0]
|
||||
@$el.tooltip show:{delay:Duration.snap, duration:Duration.fast}
|
||||
|
||||
@_refreshMultiplier()
|
||||
@_refreshTools()
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
###
|
||||
Crafting Guide - index.coffee
|
||||
|
||||
Copyright (c) 2015 by Redwood Labs
|
||||
All rights reserved.
|
||||
###
|
||||
|
||||
_.mixin require './underscore_mixins'
|
||||
|
||||
module.exports =
|
||||
Mod: require './models/mod'
|
||||
ModParser: require './models/mod_parser'
|
||||
ModVersion: require './models/mod_version'
|
||||
ModVersionParser: require './models/mod_version_parser'
|
||||
Reference in New Issue
Block a user