Opened 10 years ago

Closed 8 years ago

Last modified 7 years ago

#2451 closed defect (fixed)

Text-Based Options are not Automatically Saved

Reported by: fabio Owned by: mimo
Priority: Should Have Milestone: Alpha 20
Component: UI & Simulation Keywords:
Cc: Patch:

Description (last modified by Josh)

Text-entry Game Options are not saved at all unless the user presses the enter key on their keyboard after inputting the new value.

For example, the following settings are not automatically saved:

  • Audio Controls
  • Chat Backlog

Change History (10)

comment:1 by scythetwirler, 10 years ago

All fields with numbers aren't saved yet. See line 140 - TODO of /gui/options/options.js.

in reply to:  1 comment:2 by Josh, 10 years ago

Replying to scythetwirler:

All fields with numbers aren't saved yet. See line 140 - TODO of /gui/options/options.js.

That's not what that specific TODO is referring to, it more mentions a GUI engine slider element would be nice.

To save anything which uses a text field, you have to press enter after entering the new value. (counter-intuitive and non-ideal design)

Actually, the whole save settings bit is rather non-obvious. Clicking save does not actually apply the settings and cancel does not actually revert the settings. Clicking save just saves the settings to disk while cancel does nothing. All settings (unless noted otherwise) apply immediately.

Last edited 10 years ago by Josh (previous) (diff)

comment:3 by scythetwirler, 10 years ago

My mistake.

comment:4 by Josh, 10 years ago

Description: modified (diff)
Milestone: Alpha 16Alpha 17
Owner: set to Josh
Summary: Some Game Options are not savedText-Based Options are not Automatically Saved

Fixing this (unfortunately) will be non-trivial.

comment:5 by Itms, 10 years ago

Milestone: Alpha 17Alpha 18

comment:6 by Itms, 9 years ago

Milestone: Alpha 18Alpha 19
Priority: Should HaveMust Have

comment:7 by historic_bruno, 9 years ago

Component: Non-game systemsUI & Simulation
Milestone: Alpha 19Backlog
Owner: Josh removed

comment:8 by wraitii, 8 years ago

Milestone: BacklogAlpha 20
Priority: Must HaveShould Have

This sounds like the kind of annoyance we should try to get rid of, bumping back to A20.

comment:9 by mimo, 8 years ago

Owner: set to mimo
Resolution: fixed
Status: newclosed

In 17625:

allows changing options for one session without having to save them, fixes #3511
changes on text or number options are now detected without any need of typing Return, fixes #2451
graphic options (using the renderer type) are now properly saved when changed
sound options (using the function type) are still not saved

comment:10 by elexis, 7 years ago

In 20091:

Allow the GUI to subscribe to text edit events to redeem three workarounds in the options page.

Differential Revision: https://code.wildfiregames.com/D860
Refs #2451, #3511, r17645 (registerChanges), rP17625 (onMouseLeave), rP10108 (onPress)
Reviewed By: Vladislav

Note: See TracTickets for help on using tickets.