summaryrefslogtreecommitdiff
path: root/callbacks.lua
AgeCommit message (Collapse)Author
2015-10-05Allow per-user "full" mode when "lite" mode is set as globalVanessa Ezekowitz
default (give the user "ui_full" priv to turn it on). Also, a few whitespace fixes.
2015-08-16disallow repairing tools using the 'to craft grid', allow it to put items of ↵HybridDog
specific groups and (maybe) make it keep the meta of items, remove unused elseif, change a bit translation and use table.concat at one place because I read somewhere that it's faster than ..
2015-06-28Add "lite" modeVanessa Ezekowitz
Set unified_inventory_lite = true in minetest.conf to enable. This mode reduces the feature-set of the mod as follows: * no bags * no waypoints, * no home/go-home buttons, * no set-day/-night buttons, * smaller creative/craft guide inventory pages (4x6 instead of 8x10) * fewer paging buttons * smaller search field * move "Result: foo" to below the crafting guide grid. * Move main "tab" buttons to the right, below the search and paging buttons. * Made "tab" buttons able to use to 2 rows if necessary (max 8 buttons)
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-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-29Only do paperflip sound when really changing pageZefram
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-01-19Remove trailing whitespaceShadowNinja
2014-01-19Allow searching for groups.kaeza
Also make "group buttons" apply the filter to that group.
2013-12-04Check formname in on_receive_fieldsShadowNinja
2013-11-28Give a stack's maximum, not 99ShadowNinja
2013-10-02Change craft guide input slots to buttonsShadowNinja
2013-09-28Use ItemStack:set_count()ShadowNinja
2013-09-28UpdateShadowNinja