Skip to reading
Save Games & Inventory

Padding, grid offsets and slot offsets

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

Figure 11. Offsets move different parts of the widget. Keep them at zero until the basic layout fits.

Source table from Padding, grid offsets and slot offsets, page 17
ControlWhat it moves or spaces
Widget PaddingSpace inside the outer frame, around the widget’s content.
Grid Horizontal/Vertical GapSpace between neighboring cells.
Grid Offset X/YThe whole grid holder, including its background and scroller.
Slot Offset X/YThe cells relative to the grid panel.
slotPadding, advanced JSONSpace inside an individual cell, around its icon and text.

Use grid offsets to align the cell panel with a decorative frame. Use slot offsets when the panel itself is in the right place but the cells need to sit differently inside it. These are layout adjustments, not extra invisible storage cells.

Large positive slot offsets add content space. Negative offsets can push cells beyond the clipped area. If an item seems cut in half, reset both sets of offsets to zero before changing its image.

Page 17 of 96Permalink
Go to page