summaryrefslogtreecommitdiff
path: root/technic_chests/register.lua
AgeCommit message (Collapse)Author
2018-01-07chests: fix sort_inventory functionDS-Minetest
2017-04-11fix wrong toggle switch "on" img in chestsVanessa Ezekowitz
2017-04-11pipeworks has button on/off, button label, and button "base" cachedVanessa Ezekowitz
used them wherever possible
2017-04-11add pipeworks tube connection overlays to all chestsVanessa Ezekowitz
(only applies if pipeworks is installed, if not, nothing is added)
2017-04-11allow per-chest stack splittingVanessa Ezekowitz
(default off)
2017-03-06Update chests protection to current minetest_gameThomas--S
2017-03-06Fix chest bugThomas--S
2017-01-15Update chest definitions to current minetest_game definitionsThomas--S
2015-06-18Add listring functionalityest31
Add shift-click functionality
2015-06-17Make chests usable if pipeworks is not installedRogier
2015-05-03allow form backgrounds for chests to be textured separatelyVanessa Ezekowitz
2015-02-07fix crash placing chests re: tubesVanessa Ezekowitz
2015-02-07fix chests connecting to tubesVanessa Ezekowitz
2015-02-05reduce intllib codeTim
2015-02-05supress undeclared variable access warnings in cases of intentional ↵Tim
declaration checks
2015-02-03Update chests formspec to not be deprecatedest31
2015-02-03Make technic chests independent from unified inventoryest31
Copy the textures made by RealBadAngel (under WTFPL) from unified inventory to technic to avoid minetest not finding them when unified inventory is not installed.
2014-07-26Reduce dependencies of technic_chestsZefram
technic_chests was depending on the technic mod, for the top-level "technic" table and the technic.swap_node function. Resolve that by sharing the top-level table and inlining the one use of the function. It was also depending on technic_worldgen, for the definitions of cast iron and wrought iron. Make the use of cast iron conditional on technic_worldgen, falling back to default "steel". Change the use of wrought iron to directly use default "steel", to which it is aliased anyway.
2014-07-23Better chest color button layoutZefram
Where possible (which it currently is for the gold chest), don't break the centering of the player inventory in the chest formspec because of the color buttons. Where the color buttons don't fit next to a perfectly centered player inventory (which doesn't currently occur for any technic chest), move the player inventory only as much as necessary to accommodate the color buttons.
2014-07-23Bring wooden chest fully into the chest systemZefram
Re-register most aspects of default:chest and default:chest_locked, using the technic chests code, so that the wooden chests fit properly into the sequence of chest types. This mainly affects the formspec, which now uses the style of the other chests, rather than the bare style used by the default mod.
2014-06-27Buff chest sizesZefram
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-05-01Chests sorting by Zefram_FyshRealBadAngel
2014-04-24Save chest label when exiting formspecZefram
When using the form to edit a chest label, apply the edited label whenever the form is submitted with the text field included, rather than only if the form's specific "finished editing" button is used. This supports the natural use of <ret> to indicate that text editing is complete, which works with other text editing forms such as that for signs.
2014-04-22Add german translations for all modsXanthin
2014-03-30Add translation support to technic_chestsShadowNinja
2013-12-17Rewrite chestsShadowNinja