Skip to reading
Eight Adventure Interface Workshops

Add the next spread without rebuilding slots

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 35. The second authored spread covers slots 7-12.

1. Clone the complete spread into curse_save2. Give every cloned element a new unique ID.

2. Set the left widget to slots 7-9 and the right widget to 10-12.

3. Set Next page on curse_save to hide curse_save and show curse_save2.

4. Set Previous page on curse_save2 to hide it and show curse_save.

5. Before each page change, clear selected_save to -1 so a Save/Load press cannot act on an unseen row selected on the previous spread.

6. Keep the same shared Save/Load dispatcher. Test a slot in the left column and one in the right column of each spread.

This fixed twelve-slot implementation uses authored pages. It avoids changing a live widget’s source range repeatedly. Add more authored spreads or a carefully tested general paging controller if your game needs many more slots.

Page 74 of 119Permalink
Go to page