Adjusting chest dimensions leads to green texture
IronPiston opened this issue ยท 4 comments
You can't have more than 6 rows as of now. Hopefully @TimGnoll can resize the GUI image, allowing for larger custom chest sizes.
Currently, it seems more than 8 rows is not supported.
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:
(granted, a 2x2 wouldn't have enough space for the name, but you could always set a minimum size requirement)