Skip to reading
Panels, Tabs & List Boxes

Let the player choose a language

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
PANELS, TABS AND LIST BOXES                                                                     0.86.4.1  /  HOTFIX 1

EDITION UPDATE

A player sees “Italiano” in the list. The option stores a stable locale code such as it. Display names can change without breaking the saved choice.

A single-selection List Box edits selectedId. The option.draft source supplies the player’s language preference.

01. Set up the project languages

In Game Translations, define your available languages with their codes and display names. Add at least one translated line so you can verify the switch during play.

02. Bind the selected row

Select the Options GUI’s List Box. Leave Allow Multiple Selection off. Click the link beside Selected Item Variable. Choose option.draft language two_way and Convert none. Apply. The language-bound list uses the project’s language names and codes.

03. Test Cancel and Apply

Give the screen an Apply and a Cancel button through General Edit layout and navigation… Preferences button. Select the other language and cancel first. Repeat and apply. Reopen the menu and check the selected row and your translated line.

IF A CHOICE WILL NOT STICK

Check that the option is language, the list is single-select, and the stored value is a configured locale code. A translated caption or numeric row index cannot stand in for that code.

PCA 3D ADVENTURE STUDIO                                                                Panels, tabs and list boxes   /   50
Page 50 of 50Permalink
Go to page