Metal Chests

Metal Chests

3M Downloads

Adjusting chest dimensions leads to green texture

IronPiston opened this issue ยท 4 comments

commented

Problem Details

Changing the dimensions of chests leads to a green texture. The actual size is correct, but the GUI is rendering incorrectly

Environment

  • OS: Fedora 30
  • Full Forge version: 1.12.2 - 14.23.5.2838
  • Mod version: 5.5.3

2019-07-06_17 26 00

commented

You can't have more than 6 rows as of now. Hopefully @TimGnoll can resize the GUI image, allowing for larger custom chest sizes.

commented

Currently, it seems more than 8 rows is not supported.
image

While it may be difficult and require some funky UI positional work, it may be worth it to cut the whole UI texture into modular segments that are loaded in a specific order based on the config size setting (assuming this is possible)
I'd do it like this:
TopLeft, Top, TopRight
Left, Slot, Right
BottomLeft, Bottom, BottomRight
then just duplicate as needed.
want a 9 rows x 12 columns chest?
Render in order, positionally:
1x: TL, Tx12, TR
9x: L, Sx12, R
1x: BL, Bx12, BR

A simple 2 rows x 2 rows chest?
1x: TL, Tx2, TR
2x: L, Sx2, R
1x: BL, Bx2, BR
EG:
cutup
(granted, a 2x2 wouldn't have enough space for the name, but you could always set a minimum size requirement)

commented

I... I know.
I did see the comments.
I just don't understand the seemingly-arbitrary limit and was reccommending a way to get around it (although my modding knowledge is limited).