Add API call to open crafting guide (#59)

This commit is contained in:
Jean-Patrick Guerrero
2019-02-11 00:01:32 +01:00
parent fc2d2e585c
commit aac3e3f693
2 changed files with 60 additions and 25 deletions

View File

@ -80,3 +80,14 @@ Removes all recipe filters and adds a new one.
#### `craftguide.get_recipe_filters()`
Returns a map of recipe filters, indexed by name.
### Miscellaneous
#### `craftguide.show(player_name, item, show_usages)`
Opens the craft guide with the current filter applied.
* `player_name`: string param.
* `item`: optional, string param. If set, this item is pre-selected. If the item does not exist or has no recipe, use the player's previous selection. By default, player's previous selection is used
* `show_usages`: optional, boolean param. If true, show item usages.