Make Apply change and save the real options
Figure 31. Apply runs the options_apply wrapper, which calls the controller’s apply function.
Apply starts from the current runtime options, then replaces the keys covered by your custom controls. That preserves unrelated preferences rather than discarding them when you redesign the menu.
1. Set Apply’s Click behavior to Run Script/Run Visual Script and select options_apply.
2. On Apply, the helper reads and clamps the Sliders, reads enabled Check Boxes, and reads the language selections.
3. It calls apply_runtime_options with persistence enabled.
4. The runtime applies audio buses, display preference and its supported text/UI preferences, then saves the options file.
5. The helper reloads the controls from the applied values and reports “Options saved.”
Change Game Setting is useful for a one-off action or visual node. This menu uses the runtime-options apply method because it also needs a complete, explicit persistence step.
