summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-06-21Add intllib support.RealBadAngel
Some polish and german translations. Start adding tooltips.
2014-06-13Show item usages in craft guideZefram
When the craft guide is showing a craft, the output slot is now a button, which causes the craft guide to show ways in which that output can be used. This mirrors the way input slots are buttons that show recipes for the selected ingredient. Usages of an item can be iterated through in the same way as recipes for the item. This incidentally offers some ability to retrace one's steps through a crafting chain, without storing actual history.
2014-06-13Cleaner display of lack of recipes (redux)Zefram
When the current craft guide item has no recipes, show a "no" symbol instead of an ingredient grid, alongside the "No recipes" message. When no item is selected in the craft guide, leave the recipe space empty.
2014-06-13Fix and enhance grid shapes in craft guideZefram
Commit 043f6081452365daaa033c58e0738527ccb64c3d made shaped crafting recipes display in a grid of the recipe's minimum bounding box, but broke the use of a fixed 1x1 grid shape for cooking recipes. This commit generalises the dynamic-grid-shape facility, putting the craft type registration in charge. This restores the correct shape for cooking recipes. Also change the logic for dynamic grid sizes for regular shaped and shapeless crafting. We'd like to always use a grid shape that is reminiscent of a regular crafting grid, as a visual cue to the crafting method. But it's also nice to show smaller recipes in a smaller grid. In the expectation that crafting grids will always be square, show the recipe in the smallest square grid that will accommodate it.
2014-06-13Correctly display multi-group ingredientsZefram
Extend the representative-item logic to handle ingredients specified as the intersection of multiple groups. Also add mangling of item button content, because comma for a multi-group ingredient is getting formspec-escaped and then not de-escaped.
2014-06-13Fix display of group ingredientsZefram
Commit 043f6081452365daaa033c58e0738527ccb64c3d broke a couple of things in the course of its refactoring. This patch restores the "G" flag that signals group ingredients, the preference for "default:" items as group representatives (where a representative isn't specifically registered), and the built-in registration of default:cobble as representative for group:stone (because it's the most commonly-used item in that group).
2014-06-13Use plain substring search in craft guideZefram
The user input was being erroneously treated as a lua regexp.
2014-05-26Some fixes to item_names and waypoints.RealBadAngel
2014-05-26Item names hud element (based on 4aiman mod)RealBadAngel
2014-05-22Add sorting inventories function.RealBadAngel
2014-05-19did the same for sun/moon iconsVanessa Ezekowitz
2014-05-19Added a small empty border around most iconsVanessa Ezekowitz
(and shrunk them accordingly)
2014-05-13better "xyz off" imageVanessa Ezekowitz
2014-05-13All new imagery, redone from scratch at 128px.Vanessa Ezekowitz
2014-05-11Move around some group code and make the craftguide render well without a recipeShadowNinja
This also keeps recipes aligned to the right, close to the arrow. It also calculates the craft's height.
2014-05-05Add missing textures for waypointsRealBadAngel
2014-05-05Add waypoints support (requires current minetest from git)RealBadAngel
2014-05-02Respect not_in_creative_inventory in group searchZefram
2014-05-02Remove stray debugging printZefram
Previous commit left this in.
2014-05-02Show group ingredients visually in craft guideZefram
Where a recipe specifies an ingredient by group, show a typical group item pictorially, with a label flag to indicate that it's a group rather than the single item. This is the inverse of the previous arrangement, which identified the group by label and dipicted groupiness pictorially. The new arrangement is easier to interpret, and if the labels are ignored it actually shows a correct input to the crafting grid.
2014-05-02Handle ingredient quantities in craft guideZefram
Alloy cooking recipes have quantities for the ingredients, which need to be shown. The buttons on which the ingredients are shown don't natively support showing an item count, so hack it up with the label facility. Also, the button names, supporting clicking to see recipes recursively, need to be based only on the item name part of the ingredient, dropping the quantity part.
2014-04-30Support item-dependent refill behaviourZefram
The refill slot was only putting as many items as possible in a stack, which does nothing for tools. Tools could benefit from repair, recharging, or other behaviour depending on the type of tool. Change the default refill behaviour to repair mechanical wear as well as fully stacking. Because other kinds of refill will require knowledge of the metadata format, they can't be directly handled here. So add an on_refill hook, that tool definitions can supply to plug in appropriate behaviour.
2014-04-30Cleaner display of lack of recipesZefram
When the current craft guide item has no recipes, show the item and a "No recipes" message, but suppress all other recipe UI elements.
2014-04-30Use appropriate grid shape for each craft typeZefram
New system of registration of craft types, recording for each a display description and the appropriate grid shape. Recipes of a registered type are shown in the correct grid. Recipes of unregistered craft types are still displayed as before, using the default 3x3 grid.
2014-04-29Show non-identity digging results in craft guideZefram
2014-04-29Don't overwrite registered craftsZefram
The crafts_table was being initialised to contain only core-registered crafts, but this would overwrite any non-core craft types that had already been registered via unified_inventory.register_craft(). This was especially likely because the crafts_table initialisation runs on a delay, following all normal initialisation. Instead, feed the core-registered crafts into unified_inventory.register_craft().
2014-04-29Only do paperflip sound when really changing pageZefram
2014-04-29Tweak display of searching statusZefram
When the current search produces no results, give a specific message rather than "Page 1 of 0". Don't display the "Filter:" label if no filtering is currently applied.
2014-04-29Preserve player's search stringZefram
Keep the current inventory search string when performing inventory form actions other than searching. This means the player's input is not lost if the player breaks off from entering it to switch pages, or if the player absent-mindedly ends text input with <return>.
2014-04-29Fix formspec injection issuesZefram
2014-04-29Show bag number when displaying bag contentsZefram
2014-04-22Add .gitignoreShadowNinja
2014-04-22Update READMEShadowNinja
2014-04-22Look for recipes under an item's aliasesZefram
get_all_craft_recipes() returns the recipes that were registered under the specified name, so asking about an item's canonical name won't see recipes registered under an alias, and vice versa. Several mods register recipes under aliases, so the craft guide was missing that handful of recipes. To work around it, invert the aliases table and ask explicitly about each alias.
2014-01-22Remove text from on/off switch iconsRealBadAngel
2014-01-22Icons for on/off switch and waypoints button.RealBadAngel
2014-01-19Remove unnecessary recipe table copyingShadowNinja
2014-01-19Remove trailing whitespaceShadowNinja
2014-01-19Allow searching for groups.kaeza
Also make "group buttons" apply the filter to that group.
2013-12-21Allow Lua regexs in search, and check for bad onesShadowNinja
2013-12-20Combine some concatenationsShadowNinja
2013-12-18Localize a variableShadowNinja
2013-12-17Remove technic texturesShadowNinja
2013-12-04Check formname in on_receive_fieldsShadowNinja
2013-11-28Give a stack's maximum, not 99ShadowNinja
2013-11-05Fix incorrect background colors over inventory slotsVanessa Ezekowitz
caused by BlockMen's/kahrl's inventory #hexcolor patch ( https://github.com/minetest/minetest/commit/25edae00ea1d5a9af4a6599fc7c200bb810fbd49 )
2013-10-21Allow crafting from the craft guide.kaeza
2013-10-07Fix the bug clearing other than default crafting methods.RealBadAngel
2013-10-05Remove trailing spaceShadowNinja
2013-10-05Fix textures aligment problems.RealBadAngel
Some other tweaks.