Commit Graph
52 Commits
Author SHA1 Message Date
Andrew Miner 0811a868af Fix mod controller bug with fetching
Fix a bug in the ModController where it would ask the current
ModVersion to fetch itself even when there wasn't one selected.
2015-01-18 11:21:11 -08:00
Andrew Miner 28f762abe9 Make fetch a no-up if already loaded 2015-01-18 11:15:52 -08:00
Andrew Miner d1621bb9f6 Refactor ModVersion into Mod and ModVersion
* Remove V1 of the mod version parser and shift V2 up to be V1
* Add a parser for mod.cg files, and refactor the the mod-version.cg
  files to push the appropriate content up to the mod.cg
* Remove the concept of "silent" from BaseModel along with logging
  each event as they are fired (which is what really prompted the
  need for it in the first place)
* Move use of the Storage class to be completely the province of the
  controllers most closely related to models affected
* Convert the ModVersionController to the ModController and have it
  take on responsibility for choosing the mod version
* Update BaseModel to support simple accessors for the current state
* Update CraftingPlan to be able to remove uncraftable items
* Implement the Mod model
2015-01-18 10:48:12 -08:00
Andrew Miner 83868e2760 Massive refactoring to clean up models
* Tweak style of quantity label in output box to be more visible
* Move data files for all mods under a directory for the specific
  version of the mod
* Add a `silent` property to the base model to prevent models which
  shouldn't be observed from emitting events
* Change the term "itemSlug" to just "slug" across the board
* Change all models so that they don't require their parent in their
  constructors and so that they don't automatically add themselves to
  their parents lists
* Remove a bunch of unnecessary event triggering
* Tighten up access to various lists of children across all models
* Refactor the guts of the V2 parser into an abstract base class so
  it can be used for other parsers in the future
* Remove a number of unused methods
2015-01-17 11:49:07 -08:00
Andrew Miner 5f57622cf3 Several large refactorings
* Refactor location of all data files to include a subdirectory
  for the mod version
* Update the BaseModel class to allow models to load themselves from
  any text file (whether JSON or CG)
* Refactor ModPack & ModVersion to move the laoding functionality in
  one into the other (and use the new stuff in BaseModel)
* Move the parser versions into a new subdirectory which allows for
  future additional parsers
2015-01-16 20:26:54 -08:00
Andrew Miner 03b46f3958 Add local storage for certain UI state 2015-01-16 09:01:06 -08:00
Andrew Miner 33b9214386 Add a "report a problem" link in crafting plan 2015-01-15 21:59:03 -08:00
Andrew Miner d94bd39e52 Refactor the SAYT code to return better results 2015-01-15 17:12:12 -08:00
Andrew Miner a50e3d9621 Add button to suggest a new mod 2015-01-15 14:43:17 -08:00
Andrew Miner 355e98b032 Fix image loader bug which caused broken links 2015-01-15 09:35:00 -08:00
Andrew Miner 3e70c0deef Show tooltips for items in crafting grid 2015-01-12 12:56:24 -08:00
Andrew Miner 833d255dce Don't send feedback on return 2015-01-12 12:37:51 -08:00
Andrew Miner c510c5a1da Add feedback widget 2015-01-12 12:35:36 -08:00
Andrew Miner a784f275ff Add back the "include tools" option
* Rewrite the crafting algorithm to recursively find all the steps
  involved and then resolve how many times each needs to be run.
* Update the base controller to debounce calls to refresh
* Fix a few erroneous recipes for IC2-Classic
2015-01-11 16:01:51 -08:00
Andrew Miner 26a5e028a6 Hide/show inventory toolbar when editable 2015-01-10 12:40:28 -08:00
Andrew Miner 1b2552a20a Remove ability to upload recipe books 2015-01-10 12:31:12 -08:00
Andrew Miner a442ff3245 Prevent quantity field from accepting huge numbers 2015-01-10 12:23:53 -08:00
Andrew Miner 9756f1f045 Allow "have" inventory to include non-craftables 2015-01-10 11:55:07 -08:00
Andrew Miner 634dec0ee8 Fix autocomplete to dismiss after selecting 2015-01-10 10:52:46 -08:00
Andrew Miner cbe836086a Change crafting table name to show step count 2015-01-10 10:52:23 -08:00
Andrew Miner e4e6e68c52 Fix bug with selecting an item from inventory list
When selecting an item, it would formerly just update the text of the
name field without adding the item. The fix is to make it add the
item automatically.
2015-01-10 10:23:12 -08:00
Andrew Miner fa29b77746 Update URL param handling for new site 2015-01-10 09:40:50 -08:00
Andrew Miner b8a0918541 Complete the Crafting Table view/controller
* Add output box to the crafting table view
* Add remaining crafting patterns to all MC 1.7.10 recipes
* Add all crafting patterns to Buildcraft 6.2.6
* Disable mods which don't have patterns yet
* Add the Url constants for computing urls from templates
* Add the `findItemDisplay` to ModPack (along with tests) and remove
  all replace all uses of `getPathSlugs` with it
2015-01-09 10:08:02 -08:00
Andrew Miner b8d60ac245 Add shaped crafing and recipes for MC 1.7.10 2015-01-08 22:01:02 -08:00
Andrew Miner 7954b86140 Add label showing tool names 2015-01-08 14:57:43 -08:00
Andrew Miner fb3db0f393 Add in next/prev buttons for crafting table 2015-01-08 12:34:33 -08:00
Andrew Miner 9424af9d84 Initial version of the new crafting table 2015-01-08 11:03:43 -08:00
Andrew Miner 9f79722378 Refactor image loading code into ImageLoader class 2015-01-07 11:20:49 -08:00
Andrew Miner f51082a1cb Add ability to craft multipl items at once
* Remove the old crafting table view
* Complete UI/UX of the inventory view
2015-01-07 08:31:53 -08:00
Andrew Miner a1a7ee5dc9 Initial implementation of the InventoryController 2015-01-06 10:25:05 -08:00
Andrew Miner 206973e304 Update header comments 2015-01-05 06:42:05 -08:00
Andrew Miner 5c5ea861cc Show list to make in order to be made 2015-01-04 15:18:00 -08:00
Andrew Miner 549abc1224 Improve layout of stacks in crafting table 2015-01-04 11:35:43 -08:00
Andrew Miner 150e85bb49 Display images for each item referenced 2015-01-04 01:01:00 -08:00
Andrew Miner 0d25ac723d Complete refactoring to move Recipes into Items
* Changed "version" to "dataVersion" in data format
* Changed the "modName" and "modVersion" fields on the ModVersion
  class to remove the "mod" prefix and changed the data format to
  match
* Change the Stack class to use the itemSlug instead of the item
  itself
* Update the ModVersion and ModPack classes to include methods for
  recording a correspondence between slugs and names. Update code
  which displays items from stacks to use these methods to determine
  display names.
* Add a reference from Recipe back to the item it creates
2015-01-03 20:08:11 -08:00
Andrew Miner b642c51486 wip 2015-01-02 23:03:06 -08:00
Andrew Miner f16c01ca3d Clear recipeName field on focus 2015-01-01 21:38:58 -08:00
Andrew Miner 3493c41b39 Fix bug where deep links don't compute 2015-01-01 20:54:16 -08:00
Andrew Miner e14a4d0810 Rename RecipeCatalog to ModPack 2015-01-01 20:16:38 -08:00
Andrew Miner f28a763b13 Rename RecipeBook to ModVersion 2015-01-01 20:12:27 -08:00
Andrew Miner a265383630 Update Minecraft recipebook with more recipes 2015-01-01 11:06:25 -08:00
Andrew Miner c46bb8860c Add better support for turning mods on/off
* Make the Minecraft "mod" enabled at all times
* Sort the list of mods to move required mods to the top
* Automatically enable a mod which has a recipe selected (e.g., from
  a query param)
2014-12-29 14:07:57 -08:00
Andrew Miner 004320d052 Fix bug with recipe books table 2014-12-29 09:07:39 -08:00
Andrew Miner a453712409 Fix bug causing /item/null URLs 2014-12-28 17:39:56 -08:00
Andrew Miner bf113d26ab Update URL scheme to include /item/*
* Update the router to understand /item/:name routes in addition to
  v1.0-style parameterized routes
* Add support for updating the current URL based upon the item being
  viewed
* Change LandingPage* to ItemPage*
2014-12-28 12:59:29 -08:00
Andrew Miner a3723dd667 Recognize CraftingGuide 1.0 query parameters 2014-12-27 19:15:20 -08:00
Andrew Miner 03d8f84a0d Add auto-complete drop-down for crafting selection 2014-12-26 14:02:27 -08:00
Andrew Miner 1a84ce2e28 Complete basic crafting functionality 2014-12-24 19:17:37 -08:00
Andrew Miner 3ea6a845c7 Fix bug where tools status was not in recalculate 2014-12-23 20:32:50 -08:00
Andrew Miner 95c15abe10 Added CraftingTable* components and UI 2014-12-23 20:26:36 -08:00