6. Replace the game-options menu
Figure 27. The replacement Options Screen has real audio, text, language and accessibility controls.
An options menu has two jobs. It must show the player’s current settings when it opens, and it must apply the chosen values to the real runtime options. A Slider linked only to an ordinary variable does neither automatically.
1. Create a GUI with ID options_custom. Start hidden, use trigger-only activation, and make it modal.
2. Assign it as Options Screen in Global Settings.
3. Build the Sliders, Check Boxes, language List Boxes and three command Buttons described in this chapter.
4. Install options_tools as a Global Script, plus the small normal-script wrappers in Chapter 10.
5. Open it through open_main_options or open_pause_options, according to the Button’s location.
The controller is part of this tutorial, not an engine modification. It reads the actual runtime options and the actual live GUI controls.
