technic/technic_chests/textures
Zefram 96ad67b9ef Buff chest sizes
Make the inventory sizes of all the technic chests larger, to provide
a more appreciable benefit from upgrading chests, more in keeping with
the resources spent on the upgrades.

Currently the game engine doesn't handle large forms well.  The size
of an inventory slot is fixed relative to the screen height, and a
form that exceeds either screen dimension will extend off the screen,
making parts of it inaccessible.  The tallest a form can get and remain
usable is 13 slots, and even that slightly overspills the screen height.
The maximum usable width depends on the screen aspect ratio.  For the
narrowest common ratio, 5:4, the widest a form can usably get is 15 slots,
again slightly overspilling.  Combined with the layout of the chest forms,
this implies a maximum practical chest inventory size of 15x7 (= 105),
slightly smaller than the largest Minecraft chests.

To provide roughly equal size steps in the five upgrades from wooden
chest (staying at 8x4 = 32) to mithril chest, the steps need to be of
about 15 slots instead of the former 4.  The new sizes are:

    wooden   8x4  32
    iron     9x5  45
    copper  12x5  60
    silver  12x6  72
    gold    15x6  90
    mithril 15x7 105

To make upgrading from the old chest sizes to the new sizes more
convenient, the inventory size is now set not only upon chest construction
but also when accepting form input, at the same time as rewriting
the formspec.  So after upgrading the technic mod, viewing an existing
chest upgrades it to the new size.  The first time a pre-existing chest
is viewed its form will have the old dimensions, looking broken due
to the inventory background image now having the new number of slots.
The second time it is viewed the form will have the new dimensions,
and the full new number of slots will be usable.
2014-06-27 18:48:10 +02:00
..
x32 Rewrite chests 2013-12-17 19:15:20 -05:00
technic_checkmark_icon.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_chest_overlay_black.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_chest_overlay_blue.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_chest_overlay_brown.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_chest_overlay_cyan.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_chest_overlay_dark_green.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_chest_overlay_dark_grey.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_chest_overlay_green.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_chest_overlay_grey.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_chest_overlay_magenta.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_chest_overlay_orange.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_chest_overlay_pink.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_chest_overlay_red.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_chest_overlay_violet.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_chest_overlay_white.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_chest_overlay_yellow.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_colorbutton0.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_colorbutton1.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_colorbutton2.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_colorbutton3.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_colorbutton4.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_colorbutton5.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_colorbutton6.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_colorbutton7.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_colorbutton8.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_colorbutton9.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_colorbutton10.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_colorbutton11.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_colorbutton12.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_colorbutton13.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_colorbutton14.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_colorbutton15.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_copper_chest_front.png missing chests textures 2013-04-06 14:50:46 +02:00
technic_copper_chest_inventory.png Buff chest sizes 2014-06-27 18:48:10 +02:00
technic_copper_chest_lock_overlay.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_copper_chest_side.png missing chests textures 2013-04-06 14:50:46 +02:00
technic_copper_chest_top.png missing chests textures 2013-04-06 14:50:46 +02:00
technic_gold_chest_front.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_gold_chest_inventory.png Buff chest sizes 2014-06-27 18:48:10 +02:00
technic_gold_chest_lock_overlay.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_gold_chest_side.png missing chests textures 2013-04-06 14:50:46 +02:00
technic_gold_chest_top.png missing chests textures 2013-04-06 14:50:46 +02:00
technic_iron_chest_front.png missing chests textures 2013-04-06 14:50:46 +02:00
technic_iron_chest_inventory.png Buff chest sizes 2014-06-27 18:48:10 +02:00
technic_iron_chest_lock_overlay.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_iron_chest_side.png missing chests textures 2013-04-06 14:50:46 +02:00
technic_iron_chest_top.png missing chests textures 2013-04-06 14:50:46 +02:00
technic_mithril_chest_front.png missing chests textures 2013-04-06 14:50:46 +02:00
technic_mithril_chest_inventory.png Buff chest sizes 2014-06-27 18:48:10 +02:00
technic_mithril_chest_lock_overlay.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_mithril_chest_side.png missing chests textures 2013-04-06 14:50:46 +02:00
technic_mithril_chest_top.png missing chests textures 2013-04-06 14:50:46 +02:00
technic_pencil_icon.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_silver_chest_front.png missing chests textures 2013-04-06 14:50:46 +02:00
technic_silver_chest_inventory.png Buff chest sizes 2014-06-27 18:48:10 +02:00
technic_silver_chest_lock_overlay.png Rewrite chests 2013-12-17 19:15:20 -05:00
technic_silver_chest_side.png missing chests textures 2013-04-06 14:50:46 +02:00
technic_silver_chest_top.png missing chests textures 2013-04-06 14:50:46 +02:00
technic_wooden_chest_inventory.png Buff chest sizes 2014-06-27 18:48:10 +02:00