summaryrefslogtreecommitdiff
path: root/register.lua
AgeCommit message (Collapse)Author
2016-08-14Craftguide: Use better tooltips for group buttonsWuzzy
2016-08-14Fix horizontally flipped crafting recipes in guideWuzzy
2016-08-14Hide “To crafting grid:” for crafts with size > 3Wuzzy
2016-08-14Apply size optimizations for large craftingsWuzzy
Also prevent huge crafting recipes from being displayed for stability reasons.
2016-08-14Fix horizontal craft guide offset for large craftsWuzzy
2016-08-14Fix crafting guide grid button sizes for size>4Wuzzy
2016-08-14Attempt to make large crafting recipes displayableWuzzy
2016-08-14Guide: Allow to move back and forth in alternatesWuzzy
2016-08-13Revert "Show real item name in craft guide"Vanessa Ezekowitz
Players don't really like this, neither do I. See the comments attached to the original commit. Sorry, Wuzzy. :-( This reverts commit fe00059eeade4bf0714df9369ba57e2bc60ad3bf.
2016-08-08Show real item name in craft guideWuzzy
2016-08-06Ensure formspec escaping for translated stringsWuzzy
2016-08-06Fix translation strings for recipe alternationsWuzzy
2016-08-05Collect missing strings for translationWuzzy
2016-02-09Remove count from item_image_button label,RealBadAngel
item_image_buttons can now display properly item stacks
2015-10-09Added listring/shift click to craft gridDonBatman
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-08-05split ui_crafting_formVanessa Ezekowitz
into craft grid/trash image and a single slot image. The latter is now used for a refill slot if user has creative priv or server is in creative mode.
2015-07-19require "home" privilege to use home/sethome buttonsProt
2015-06-28re-arrange a few elements in the crafting guide to eliminate text overlapVanessa Ezekowitz
Also make sure to chech if lite mode before assuming 4x2 "tab" button layout.
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)
2015-03-11Add buttons to give oneself items (with 'give' privilege)Rogier
2015-03-11Display conversion method symbolically and textually next to arrowRogier
2015-02-05reduce table lookups during initializationTim
2015-02-05supress intllib check warning, this fixes #19Tim
2014-06-22More tooltips and translations.RealBadAngel
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-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-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-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-29Fix formspec injection issuesZefram
2014-01-19Remove trailing whitespaceShadowNinja
2014-01-19Allow searching for groups.kaeza
Also make "group buttons" apply the filter to that group.
2013-12-20Combine some concatenationsShadowNinja
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-05Remove trailing spaceShadowNinja
2013-10-05Fix textures aligment problems.RealBadAngel
Some other tweaks.
2013-10-02API tweaksShadowNinja
2013-10-02Change craft guide input slots to buttonsShadowNinja
2013-09-28UpdateShadowNinja