Skip to reading
Replace the Built-in Screens

Load the current settings when Options opens

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 PDF page
Source table from Load the current settings when Options opens, page 45
StepWhat options_tools does
OpenUses the optionsMenu system route and remembers the parent menu.
ReadGets a copy of the current runtime options.
FillSets each live Slider, Check Box and language selection.
EditLeaves changes in the controls until Apply is chosen.
ReopenReads the actual options again, discarding an older uncommitted edit.

This is why the sample has an opening wrapper for both Main Menu and Pause Menu. The helper’s default Back destination is Pause Menu; an explicit main-menu opener supplies Main Menu instead.

The global controller also fills the controls when it notices Options becoming visible through another route. That protects against stale Slider positions. It cannot infer an arbitrary Back history for a shortcut that bypassed your navigation wrapper.

1. Set music to 0.35 and Apply.

2. Leave Options and reopen it. Music should still read 0.35.

3. Change it to 0.10 and press Back without applying.

4. Reopen Options. It should read 0.35 again.

Page 45 of 88Permalink
Go to page