unified_inventory/textures
Vanessa Dannenberg 76c9bb9517 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-09 15:04:11 -05:00
..
bags_large.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
bags_medium.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
bags_small.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_1_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_2_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_3_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_4_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_5_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_bags_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_blank_image.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_blue_icon_background.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_circular_arrows_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_craft_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_craftgrid_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_craftguide_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_crafting_arrow.png Convert over to formspec version 4 2021-03-09 15:04:11 -05:00
ui_doubleleft_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_doubleright_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_formbg_9_sliced.png 9-slice the background image 2021-03-09 15:04:11 -05:00
ui_gohome_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_green_icon_background.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_group.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_home_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_left_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_moon_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_no.png adv- and optipng textures 2016-07-15 09:53:27 +02:00
ui_off_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_ok_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_on_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_pencil_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_red_icon_background.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_reset_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_right_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_search_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_sethome_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_single_slot_bright.png Convert over to formspec version 4 2021-03-09 15:04:11 -05:00
ui_single_slot.png Convert over to formspec version 4 2021-03-09 15:04:11 -05:00
ui_skip_backward_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_skip_forward_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_sun_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_trash_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_trash_slot_icon.png Draw the trash slot by overlaying the bare trash can icon 2021-03-09 15:04:11 -05:00
ui_waypoint_set_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_waypoints_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_xyz_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00
ui_xyz_off_icon.png adv- and optipng textures 2016-07-15 09:53:27 +02:00
ui_xyz_on_icon.png Compress textures (-61 KB!) 2019-05-31 17:30:24 +02:00