Commit Graph

91 Commits

Author SHA1 Message Date
Brett O'Donnell
570d2cb162 peoposed update for bag recipies
when bags was first created, wool and farming were not in minetest_game, and so that people didnt have a load of dependancies I made the recipe from wood and sticks.

now that wool and cotton are available it makes a lot more sense to craft the bags from these items.

they are harder to obtain, but bags are valuable items in game, so i think the extra effort to obtain the items is justified.
2015-08-06 16:03:11 +09:30
Vanessa Ezekowitz
2d6a0ed606 split ui_crafting_form
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-08-05 08:37:25 -04:00
Vanessa Ezekowitz
f2914b3d4f only show items in crafting guide if they can be crafted or player has creative 2015-07-30 09:13:16 -04:00
Vanessa Ezekowitz
56892b8e75 Don't add a recipe to the main list if it contains any unknown items/groups 2015-07-30 08:03:29 -04:00
Prot
2355dc6fc2 require "home" privilege to use home/sethome buttons 2015-07-19 17:01:36 -04:00
Vanessa Ezekowitz
8338b406d3 fix crash in waypoints? 2015-06-28 05:17:43 -04:00
Vanessa Ezekowitz
16e40a2e22 re-arrange a few elements in the crafting guide to eliminate text overlap
Also make sure to chech if lite mode before assuming 4x2 "tab" button layout.
2015-06-28 04:54:48 -04: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
ShadowNinja
20eba2bf9b Remove unneeded and slow get_desc function 2015-04-18 15:32:22 -04:00
ShadowNinja
7d8b5f3760 Round home positions 2015-04-18 15:23:54 -04:00
MT-Modder
8bb1c8288b Add item_names support for Better "HUD" 2015-03-11 19:00:25 -04:00
Rogier
75f719507e Add buttons to give oneself items (with 'give' privilege) 2015-03-11 17:55:30 -04:00
Ardonel
d5d97e7dca Update bags.lua
changed bag recipes from default:stick to group:stick
2015-03-11 17:55:30 -04:00
Mahmut Elmas
12f14d7aff Create tr.txt 2015-03-11 17:55:30 -04:00
Rogier
2fd9e59242 Display conversion method symbolically and textually next to arrow 2015-03-11 16:00:37 +01:00
Tim
76a9efff71 reduce table lookups during initialization 2015-02-05 10:03:07 +01:00
Tim
1a1bfc3839 supress intllib check warning, this fixes #19 2015-02-05 10:00:10 +01:00
Tim
1a962542e6 supress intentional creative_inventory check warning, this fixes #18 2015-02-05 09:58:15 +01:00
Eternal Sorrow
4bae2c7fa3 Russian translation 2014-12-30 14:30:29 +01:00
jp
9672ec599e Add French locale 2014-12-30 14:30:29 +01:00
ShadowNinja
4fce317e2e Fix crash when changing waypoint name 2014-09-07 15:08:52 -04:00
ShadowNinja
527812fa96 Make waypoints optional and use external datastorage mod
This also fixes waypoints not showing up on join.
2014-07-06 17:39:20 -04:00
RealBadAngel
0d777362f3 Update tooltips usage due to core changes. 2014-06-24 12:39:12 +02:00
RealBadAngel
f800f39083 More tooltips and translations. 2014-06-22 00:34:35 +02:00
Diego Martinez
810f342458 Add spanish translation. 2014-06-21 08:25:44 -03:00
RealBadAngel
002bcbb6d8 Add intllib support.
Some polish and german translations.
Start adding tooltips.
2014-06-21 12:44:31 +02: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
c33efe8631 Cleaner display of lack of recipes (redux)
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-13 09:28:40 -03:00
Zefram
4c982dd667 Fix and enhance grid shapes in craft guide
Commit 043f608145 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-13 09:28:39 -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
dbf98cb694 Fix display of group ingredients
Commit 043f608145 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-13 06:28:38 -03:00
Zefram
7f4f0fd225 Use plain substring search in craft guide
The user input was being erroneously treated as a lua regexp.
2014-06-13 04:50:07 -03:00
RealBadAngel
833a255ad4 Some fixes to item_names and waypoints. 2014-05-26 11:43:25 +02:00
RealBadAngel
b46f4217ae Item names hud element (based on 4aiman mod) 2014-05-26 05:41:40 +02:00
RealBadAngel
3003b19322 Add sorting inventories function. 2014-05-22 21:24:24 +02:00
Vanessa Ezekowitz
44d967bbe5 did the same for sun/moon icons 2014-05-19 02:02:34 -04:00
Vanessa Ezekowitz
82d204cb7a Added a small empty border around most icons
(and shrunk them accordingly)
2014-05-19 01:58:20 -04:00
Vanessa Ezekowitz
6780ae4abd better "xyz off" image 2014-05-13 20:56:59 -04:00
Vanessa Ezekowitz
3f8a7fb816 All new imagery, redone from scratch at 128px. 2014-05-13 20:48:10 -04:00
ShadowNinja
043f608145 Move around some group code and make the craftguide render well without a recipe
This also keeps recipes aligned to the right, close to the arrow.
It also calculates the craft's height.
2014-05-11 22:00:32 -04:00
RealBadAngel
ba956d6838 Add missing textures for waypoints 2014-05-05 09:59:59 +02:00
RealBadAngel
b9b2892f28 Add waypoints support (requires current minetest from git) 2014-05-05 09:39:03 +02:00
Zefram
79320c109c Respect not_in_creative_inventory in group search 2014-05-02 12:21:10 +02:00
Zefram
12ef7f6393 Remove stray debugging print
Previous commit left this in.
2014-05-02 12:20:13 +02:00
Zefram
b492701915 Show group ingredients visually in craft guide
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-02 12:19:17 +02: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
d1e554b73d Cleaner display of lack of recipes
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-30 01:10:46 +01:00
Zefram
580a832fda Use appropriate grid shape for each craft type
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-30 00:11:10 +01:00
Zefram
48d28b1e5d Show non-identity digging results in craft guide 2014-04-29 22:14:08 +01:00