Go to file
Vanessa Dannenberg ea4151dfa7 Use 9-slicing to build inventory-type backgrounds
This way the slots are all nice and crisp regardless of GUI scale or
image size, and we only need the single slot and its bright version.

This also makes the standard crafting grid into a style table entry that
can be referenced to insert the crafting grid at its proper
style-specific position in any formspec.

And it also makes the craft grid arrow, its X position, and the crafting
grid's result slot X position into style table entries.

Includes a few public helper functions to do most of the work:

`ui.single_slot(xpos, ypos, bright)`

    Does just what it sounds like: it returns a single slot image.
    `xpos` and `ypos` are normal coordinates in slots, as you'd use in
    `image[]` element.  `bright` is a flag that switches to the brighter
    version of the slot image.

`ui.make_trash_slot(xpos, ypos)`

    Creates a single slot, with a one-item `list[]` and a trash can icon
    overlay.

`ui.make_inv_img_grid(xpos, ypos, width, height, bright)`

    Generates a `width` by `height` grid of slot images, using the
    single_slot function above, starting at (`xpos`,`ypos`) for the
    top-left.  Position is as in any `image[]` element, and dimensions
    are in integer numbers of slots (so 8,4 would be a standard inventory).
    `bright` is as above.

All three return a string that can be directly inserted into a formspec.
2021-03-08 12:32:13 -05:00
.github/workflows Add GitHub workflow (#149) 2020-03-25 18:46:35 +01:00
doc Add no_prepend[] by default 2019-03-31 12:19:08 +02:00
locale Update translation for zh_CN and zh_TW (#161) 2020-12-15 19:17:10 +01:00
sounds Update mod 2013-09-21 21:40:20 +02:00
textures Use 9-slicing to build inventory-type backgrounds 2021-03-08 12:32:13 -05:00
.gitignore Add .gitignore 2014-04-22 16:52:04 -04:00
.luacheckrc LuaCheck: Add hb as a global (#154) 2020-06-06 13:09:08 +02:00
api.lua Use 9-slicing to build inventory-type backgrounds 2021-03-08 12:32:13 -05:00
bags.lua Use 9-slicing to build inventory-type backgrounds 2021-03-08 12:32:13 -05:00
callbacks.lua Add GitHub workflow (#149) 2020-03-25 18:46:35 +01:00
group.lua Move to MT 5.0.0 translation system 2019-10-17 21:05:08 +02:00
image_credits.txt Fix unclear licenses for the images. 2018-01-02 22:39:13 +01:00
init.lua Use 9-slicing to build inventory-type backgrounds 2021-03-08 12:32:13 -05:00
internal.lua don't display the refill slot image if no creative priv/mode 2021-03-08 09:14:21 -05:00
item_names.lua Fix item name position, also for hudbars 2020-06-05 21:30:53 +02:00
LICENSE.txt README: Add features and link to mod contents 2019-06-16 11:14:08 +02:00
match_craft.lua Implement new crafting algorithm (#132) 2019-10-26 17:22:33 +02:00
mod.conf bump minimum version to 5.4.0 2021-03-06 13:35:34 -05:00
README.md Add GitHub workflow (#149) 2020-03-25 18:46:35 +01:00
register.lua Use 9-slicing to build inventory-type backgrounds 2021-03-08 12:32:13 -05:00
screenshot.png adv- and optipng textures 2016-07-15 09:53:27 +02:00
settingtypes.txt Make trash configurable but preserve default functionality 2017-03-01 16:28:40 -06:00
unified inventory single slot 256px with trash.xcf Convert over to formspec version 4 2021-03-06 13:22:20 -05:00
waypoints.lua move S() calls into waypoints' button table 2021-03-08 05:10:00 -05:00

Unified Inventory

Screenshot

Unified Inventory replaces the default survival and creative inventory.

Features

  • Node, item and tool browser
  • Crafting guide
    • Can copy the recipe to the crafting grid
    • Recipe search function by ingredients
  • Up to four bags with up to 24 slots each
  • Home function to teleport
  • Trash slot
  • Lite mode: reduces the item browser width
    • minetest.conf setting unified_inventory_lite = true
  • Mod API for modders: see mod_api.txt
  • Setting-determinated features: see settingtypes.txt

Requirements

  • Minetest 5.0.0+

Licenses

Copyright (C) 2012-2014 Maciej Kasatkin (RealBadAngel)

Copyright (C) 2012-? Various minetest-mods contributors

Code

GNU LGPLv2+, see license notice

Textures

VanessaE: (CC-BY-4.0)

  • ui_group.png

Tango Project: (Public Domain, CC-BY-4.0)

From http://www.clker.com (Public Domain, CC-BY-4.0):

Everaldo Coelho (YellowIcon) (LGPL v2.1+):

Gregory H. Revera: (CC-BY-SA 3.0)

Thomas Bresson: (CC-BY 3.0)

Fibonacci: (Public domain, CC-BY 4.0)

Gregory Maxwell: (Public domain, CC-BY 4.0)

Adrien Facélina: (LGPL v2.1+)

Other files from Wikimedia Commons:

RealBadAngel: (CC-BY-4.0)

  • Everything else.