Skip to reading
Images, Carousels & Choice Controls

Keep unrelated radio groups separate

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 32. The Icons option uses prefs_hint_style, a different group from difficulty.

Add two more Radio Buttons for a hint style: Icons and Text. Give both Radio Group prefs_hint_style. Set Icons checked initially. Changing this group should leave the chosen difficulty alone.

Figure 33. Standard difficulty and Text hint style can both be selected because they belong to different groups.

Group names are shared by the running GUI manager in this build. Reusing the same Radio Group name in another GUI can connect choices that you intended to keep separate. Use meaningful names such as prefs_difficulty, shop_sort_order and map_travel_mode.

Avoid leaving every Radio Button in the default group. A hidden GUI with the same group name can make another screen’s choice appear to change mysteriously.

Page 38 of 52Permalink
Go to page