summaryrefslogtreecommitdiff
path: root/group.lua
AgeCommit message (Collapse)Author
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-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-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.