adventuregamestudio / ags

AGS editor and engine source code
Other
707 stars 159 forks source link

Engine: implement "accessibility" config for speech and text skip #2514

Closed ivan-mogilko closed 2 months ago

ivan-mogilko commented 3 months ago

Per a very old users request.

This allows players to override game's speech skip style to their preference if the game does not provide such option.

Adds two config options under "[access]" group:

[access]
speechskip = <none, input, any, time>
textskip = <none, input, any, time>

Both may take following values:

These options override in-game settings for skipping speech and displayed messages respectively.

The override is done:

Note that reading a Speech.SkipStyle property in script will actually return a true overridden value. This is done in case game script uses this property as a reference when implementing custom speech, for example.

ivan-mogilko commented 2 months ago

Alright, I'll merge this, although I never got a response from a user who asked for this recently. But this works, and might work as a workaround.

Ideally these settings should be in winsetup, I think. But winsetup is badly designed (ui-wise), and should be either transformed into multi-paged window with tabs (short term), or completely rewritten into something cross-platform (long term).