Commit Graph

33 Commits

Author SHA1 Message Date
SmallJoker b2cc3d1532 Fix search not working after page flip 2023-01-27 15:57:28 +01:00
SmallJoker 1b074828a6 Document and replace sounds
A few sounds were replaced because I could not find them on freesound.org
2023-01-10 21:27:56 +01:00
SmallJoker c1fef26c87 Fix error caused by slow starts and mod dependencies 2022-04-11 19:42:06 +02:00
SmallJoker 3074d625e2 Version 4: Feature checks and deprecate internal functions 2022-02-26 11:38:45 +01:00
SmallJoker 25c40fea6c Fix filter reset for empty search boxes 2022-01-24 15:20:57 +01:00
SmallJoker 23a45b8131 Only update formspec on search filter changes 2022-01-23 18:15:17 +01:00
OgelGames 28a5d4db49
Show wear and description in crafting guide (#189) 2021-11-21 19:42:54 +01:00
SmallJoker b1c85a2cb8 Fix waypoint initialization order 2021-08-29 07:47:32 +02:00
Oversword 6e6383f082
Add filter-by-category functionality (#171)
- Added API for configuring categories
- Added display for categories above page
- Reduced height of page by 1 row to make room for categories
- Added L/R scroll through when there are more categories than columns
- Added pre-filter methods for categories and uncategorised items
- Added categories for (most) items in the default game


Co-authored-by: Oversword <bionc:oversword.co.uk>
2021-04-05 20:07:14 +02:00
David Leal 606ba6a1a3
Add GitHub workflow (#149) 2020-03-25 18:46:35 +01:00
SmallJoker 04b1cb9e7d Fix error on invalid item_button_ fields
Also reduce the player inventory sending by one. If a formspec is sent, it'll also take the newest known search text
2019-08-02 16:39:43 +02:00
Diego Martínez 2ea417fad0 Search when ENTER is pressed on the search field. 2016-11-29 17:35:40 -03:00
Vanessa Ezekowitz 029d5c4c6a avoid "leaking" detached inventories to other players (see also, 2ff48b22a9 ) 2016-11-27 04:10:10 -05:00
Wuzzy 40f8b4d9cf Update search field when clicking on group item 2016-08-14 23:35:12 +02:00
Wuzzy 2a516ac22b Add seperate button for resetting search 2016-08-14 23:35:12 +02:00
Wuzzy a1e7b650ab Guide: Allow to move back and forth in alternates 2016-08-14 10:56:24 +02:00
HybridDog 310ec1da81 Stop flooding connected clients by all detached inventories if freeminer is used, fixes #7 2016-07-15 09:25:23 +02:00
Vanessa Ezekowitz 9fe84789ba Allow per-user "full" mode when "lite" mode is set as global
default (give the user "ui_full" priv to turn it on).

Also, a few whitespace fixes.
2015-10-05 04:24:01 -04:00
HybridDog babe4380ac disallow repairing tools using the 'to craft grid', allow it to put items of 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-08-16 16:40:49 +02:00
Vanessa Ezekowitz 0a70d8edef Add "lite" mode
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)
2015-06-28 04:15:55 -04:00
Zefram 87f502a259 Show item usages in craft guide
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-13 11:30:09 -03:00
Zefram a8c8ef0890 Correctly display multi-group ingredients
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-13 09:28:37 -03:00
Zefram 5d34b235dd Handle ingredient quantities in craft guide
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-05-02 12:14:48 +02:00
Zefram b3d83bc953 Support item-dependent refill behaviour
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-30 10:45:45 +01:00
Zefram 37d87d6afc Only do paperflip sound when really changing page 2014-04-29 20:40:48 +01:00
Zefram 01297996a6 Preserve player's search string
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-29 19:36:52 +01:00
ShadowNinja 26473a8346 Remove trailing whitespace 2014-01-19 13:27:52 -05:00
kaeza d560bcd6f0 Allow searching for groups.
Also make "group buttons" apply the filter to that group.
2014-01-19 14:35:44 -02:00
ShadowNinja d5f60ed136 Check formname in on_receive_fields 2013-12-04 10:43:49 -05:00
ShadowNinja 3db5f629f2 Give a stack's maximum, not 99 2013-11-28 01:20:21 -05:00
ShadowNinja ec328d8270 Change craft guide input slots to buttons 2013-10-02 22:23:35 -04:00
ShadowNinja 88a740c840 Use ItemStack:set_count() 2013-09-28 18:36:45 -04:00
ShadowNinja f974fd8c2c Update 2013-09-28 18:15:37 -04:00