Skip to reading
Panels, Tabs & List Boxes

10. The older child-element tab method

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

Existing projects may use the fields Legacy Parent Panel ID and Legacy Panel Tab ID. This is a different way to make tabs, without separate content GUIs. It is still useful to recognize when editing older layouts.

1. Make a tabbed Panel with ID legacy_tabs. Use Tabs: one|Page one, two|Page two. Notice there is no third part linking a GUI.

2. Add a Label in the same GUI. In General, set Legacy Parent Panel ID to legacy_tabs and Legacy Panel Tab ID to one.

3. Add another Label for the second page. Set its Parent Panel ID to legacy_tabs and its Tab ID to two.

4. Set the panel’s Editor Active Tab to one, then test both tab buttons in a running game.

Figure 13. The two legacy link fields on a Label. Enter the panel element ID and the local tab ID.

These Labels still use whole-GUI coordinates. Their X and Y values do not become offsets inside the panel, and Group ID is not a substitute for either link field.

Page 17 of 50Permalink
Go to page