Images, Carousels & Choice Controls
29. Fix slider and choice problems
Source table from 29. Fix slider and choice problems, page 50 Problem Check this first The slider moves but nothing changes in the game. Read or bind its value, then apply it to an actual system. A descriptive caption is not a connection. A bound variable changes but the handle does not move back. The binding writes out. Restore the Slider value explicitly from the stored variable. The imported handle ignores its color/glow fields. Those settings generate the fallback handle. They do not automatically modify imported artwork. The Check Box looks on but its variable begins false. Match Checked and the variable’s default, or restore the controls from saved data. My Click script reads the old check state. Click can run before the toggle completes. Read from a separate Apply Button. Reading checked gives the wrong answer. Read live button_pressed. Set constructed state with checked. Radio options in separate screens affect each other. Use distinct Radio Group names. Groups are shared by the running GUI manager. All radio bindings seem to fight over one variable. Use one Boolean per radio binding, or store one String mode after confirmation. A restored variable leaves the old GUI highlight. Run the explicit control restoration, then reapply display effects. Nothing runs in designer Preview. Use a running game for events, scripts, inventory and real variable writes. The GUI stops working after a style change. Some property changes rebuild controls. Recheck transient values, keyboard focus and carousel runtime entries.
Previous 28. Fix image and carousel problems Next 30. A compact reference for scripts
Page 50 of 52 Permalink Go to page
Related guides 6