86 Commits

Author SHA1 Message Date
Pentarctagon
03598585c1 Add keepalive advanced preference. 2022-10-12 07:58:07 -05:00
Steve Cotton
f2ef939352 Fix whitespace 2022-07-16 18:32:03 +02:00
Pentarctagon
265d3972da
Well clearly this doesn't do anything... 2022-07-16 09:59:55 -05:00
Celtic Minstrel
2de3246915 Add font scaling back as an advanced preference for now.
This gives an opportunity for people to try it out and maybe improve it. It can be removed again before 1.18 if deemed unsuitable at that time.
2022-06-19 14:38:45 -04:00
Pentarctagon
dc813ac693 Remove the 'group players' lobby UI preference. 2021-06-18 19:12:05 -05:00
Iris Morelle
4b5eabdfb0 engine: Control experimental PRNG option via game classification
This removes the use_prng Advanced Preferences option and replaces it
with a new possible value for randomness in the game classification
class, "biased". It also changes the enumeration label for it in the
GUI2 campaign dialog.

It also makes it so the synced RNG is automatically used with this
option as well as the existing deterministic randomness option ("save
random seed").
2020-12-19 03:47:54 -03:00
Charles Dang
15bf3bb256 Removed scaling algorithm customization
We're going to be using NN scaling for the map, and that's already handled automatically
by SDL (and in the future, OGL). We don't need these settings for surface SCALED_TO_ZOOM
and SCALED_TO_HEX scaling. In any case, if we want to scale a surface to zoom or hex, it
will almost certainly be for map rendering (such scaling methods don't make sense in the
UI, for example), so just defaulting to NN is simplest.

This change drops the option to use Linear or xBRZ scaling for map zooming. This was already
the practical case due to me converting map rendering to use textures. NN was used for all
zoom levels, and it's fast and looks good.
2019-11-05 22:55:05 +11:00
Charles Dang
8587a14cde Removed preference to disable halos
There's really no reason to have this anymore. It was (AFAIK) introduced years ago
as a performance-saving measure, then was moved to Advanced Preferences in 1.13 since
modern PCs mostly have no issues.
2019-10-19 18:44:04 +11:00
Charles Dang
e643d2dce7 Removed joystick code
This was never fully implemented and has been essentially abandoned. If we want to
add this again, we should look to adding full game controller support (Steam controller,
for example), though I don't know how suited this game is for controller support. As for
as I can tell, the only working part was ever map scrolling.

Includes a sqrt -> std::sqrt conversion I forgot in this file awhile back.
2019-10-19 18:21:14 +11:00
josteph
55b04875a6 Clarify advanced preference description
Players aren't expected to know what "the list of encountered unit" is.
2019-09-29 18:22:27 +00:00
Wedge009
63c37b389a Add missing full-stop.
[ci skip]
2019-04-17 13:53:07 +10:00
Iris Morelle
34545ba9e4 gui2/preferences: Use curly quotes in quoted text in tooltips
[ci skip]

(cherry-picked from commit b8b403185eb81a239b5ab130fcf32698ac3de1d1)
2018-10-07 03:23:15 +00:00
Charles Dang
3f9137f7e8 Added an advanced preference for the PRNG combat option
[ci skip]

(cherry-picked from commit 8baeb8457d96e2048ebdac9188bb95fcfbffd340)
2018-10-07 03:22:31 +00:00
Charles Dang
eadb3c68c3 Removed unused Ping Timeout preference
It no longer had any effect. The selective_ping flag is set was ignored by the
server since it now utilizes TCP keepalive.

(cherry-picked from commit b81a702cfa1465802b0bf299473d9c4559190122)
2018-10-07 03:19:33 +00:00
Celtic Minstrel
d849dfcf89 Add the advanced prefs entry for the deprecation setting
(cherry-picked from commit 9902a2df31aaa0755c10d2dbf8ea2954087e6a43)
2018-10-07 03:17:58 +00:00
Celtic Minstrel
32b6a3de45 Add hidden preference to show deprecation messages in chat area
In 1.15 the preference will be added to the advanced preferences pane.
2018-03-04 21:21:33 -05:00
Charles Dang
39cd63f55c Removed Experimental MP UI preference (finally!) 2016-11-12 08:36:36 +11:00
Charles Dang
231cb1a4a4 Preferences: demote Show Halos to Advanced 2016-10-24 16:46:42 +11:00
Charles Dang
524b4aaeea Point preferences::new_lobby at a new key that defaults to true
This makes the new MP UI opt-out for users from this point
2016-10-13 00:14:06 +11:00
Charles Dang
d64842930e Changed Color Cursors default to Yes, to match the program behavior 2016-09-01 05:38:23 +11:00
Charles Dang
507d00d9d9 Refactored out wmi_pager
This is no longer needed after switching right-click menus to GUI2, since they have built-in
scrolling capability. This also removes the max_wml_menu_items preference.
2016-08-29 15:38:52 +11:00
Jyrki Vesterinen
0e7305017e Enabled Monte Carlo simulation mode by default 2016-07-21 20:41:04 +03:00
Jyrki Vesterinen
6766e05747 Put the Monte Carlo mode behind an advanced preference and update changelog 2016-07-21 20:13:24 +03:00
Jonathan Combs
7d8a032589 gui2: new logging dialog
New dialog added to advanced preferences. It contains toggles to
activate and deactivate logging (log messages print to console). Also
added a getter method to the base log methods so that the dialog can
'remember' previous choices.
2016-05-27 13:11:53 -07:00
Celtic Minstrel
38ddbb98f2 Preferences: Reimplement orb color options 2016-02-18 01:13:10 -05:00
Charles Dang
20350715ea Don't display Orb Color option for now 2016-02-12 01:13:33 +11:00
Charles Dang
fda94c8148 Removed unused [option] name_short keys from combobox-type advanced prefs 2016-02-10 19:51:07 +11:00
Charles Dang
28acb89a77 Added advanced preferences for Adv. Graphics and Orb Colors 2016-02-10 19:51:02 +11:00
Charles Dang
9eecc28ef9 Moved 'Accept whispers from friends only' pref from Advanced to Multiplayer 2016-02-10 19:51:02 +11:00
Charles Dang
352bd1cae2 Removed Titlescreen Animation option and related code 2016-02-06 20:19:42 +11:00
Charles Dang
db8c65aad8 Remove Reverse Time Graphics option 2016-02-06 20:19:41 +11:00
Charles Dang
d131f1d58c Removed the option to turn off Local ToD lighting. It is now always on. 2016-02-06 20:19:41 +11:00
Andreas Löf
ae1d364318 Merge branch 'master' into sdl2 2015-10-15 09:57:15 +13:00
Ignacio R. Morelle
e186057336 editor: Make Recent Files limit customizable and increase default to 10 2015-10-09 19:47:52 -03:00
Celtic Minstrel
a4a8936972 Use native colour cursors
This fixes bug #18112 and re-enables colour cursors on OSX
2015-09-24 01:07:12 -04:00
Charles Dang
9fb687bb93 Set Titlescreen Animation preference to false by default
This option has been broken for awhile, so better to have it turned off
2015-07-23 14:25:06 +11:00
Chris Beck
4e7149f893 remove "desktop notifications" adv. preference
We move the tooltips to the "mp_alerts_options" window which has
subsumed this preference.
2014-10-18 20:00:52 -04:00
Chris Beck
6bc34b03ef remove "lobby sounds" advanced preference
It is defunct now, having been replaced by the lobby sounds options
dialogs.
2014-10-11 23:50:34 -04:00
Ignacio R. Morelle
6620d60d70 preferences: Give the Desktop notifications option a tooltip 2014-07-15 19:55:44 -04:00
Ignacio R. Morelle
2fac031356 preferences: Replace "Disable notifications" with "Desktop notifications"
Because inverse-logic options are evil and this was the only one in the
entire Preferences dialog anyway.
2014-07-15 19:55:44 -04:00
Ignacio R. Morelle
cc6674bca8 Improve WML menu items count option name and description 2014-07-07 16:46:30 -04:00
Chris Beck
b1b493bb57 add TODO notes about improving the wmi pager 2014-07-01 17:11:37 -04:00
Chris Beck
fe3b5f4576 add adv. preference for number of menu items displayed at once
See earlier commit: f24f6adee142c088595647d5506737c48892bf38

Forum discussion: http://forums.wesnoth.org/viewtopic.php?f=6&t=40668
2014-06-28 22:47:56 -04:00
Ignacio R. Morelle
152aa0b3f8 Shorten label for the savegame version prompt advanced preferences entry 2014-01-12 20:35:03 -03:00
Ignacio R. Morelle
553c56b2bd preferences: Merge compress_saves and bzip2_savegame_compression options
Now that we have combo box options in Preferences -> Advanced, we can
finally present the saved game compression options in a user-friendly
fashion instead of having two separate options with an unclear
relationship.

However, in order to achieve this I had to move far more code than I am
normally comfortable with:

 * Moved the config_writer::compressor enum type to a separate header
   file, serialization/compression.hpp, in order to make it available to
   more units without pulling a bunch of heavy crap (such as the boost
   iostreams headers) that's normally unneeded. The new type is
   compression::format.

 * Added a compression::format_extension() function to determine a file
   extension string according to a compression type. This is needed more
   often than one would think, see below.

 * Changed all savegame-related classes to use the compression::format
   type instead of a single boolean flag and bzip2_savegame_compression
   queries. This is a code-heavy task by design.

 * Changed all code scattered around deciding whether to use ".gz" or
   ".bz2" for a save extension to use compression::format_extension()
   instead. This affects both saved game implementation and interface
   code for some reason (read: poor design).

 * Removed the bzip2_savegame_compression preferences option, reusing
   the previous compress_saves option for this feature, turning it from
   a boolean option to a string option ("none", "gzip", "bzip2",
   defaults to "gzip" per advanced_preferences.cfg).

 * preferences::compress_saves() became
   preferences::save_compression_format().

 * Without bzip2_savegame_compression, people who previously enabled
   bzip2 compression will revert to gzip compression. This seems to be a
   rare enough case to me to bother with providing backwards
   compatibility with a feature that only existed for [1.11.0, 1.11.8).

 * For preferences files from previous versions where compress_saves was
   set to either "yes" or "no", there will be a conspicuous value in the
   second column of the advanced preferences list, especially if they
   are using a translation; it'll be either "yes" or "no" as an
   untranslatable string. A value of "yes" is equivalent to "gzip", and
   a value of "no" is equivalent to "none". Any other unrecognized value
   is equivalent to "gzip". As soon as the user chooses a compression
   format again, one of the three supported values ("none", "gzip", or
   "bzip2") will be written to the compressed_saves attribute in the
   preferences file.

All in all, a ridiculously messy commit that's not particularly feasible
to break down into separate pieces because all of the involved code is
very closely related to the overarching feature that's being
implemented in it.

Note that the save_index currently only uses gzip regardless of whether
bzip2 is the current compression format choice. This was the case even
before this commit, and I'm not sure it's worth it to change it given
the potential CPU usage and the fact that save_index tends to be broken
most of the time anyway.
2013-12-20 23:36:46 -03:00
Ignacio R. Morelle
d15745ea25 Hide and disable color cursors option on Mac OS X (bug #18112)
It is known to cause severe lags that may render the cursor completely
unusable at times. This probably won't be solved until Wesnoth can run
on SDL 2.0.
2013-12-17 20:31:38 -03:00
Ignacio R. Morelle
e512b72fc8 Revert accidental change resulting in color cursors being enabled by default again 2013-12-17 20:16:40 -03:00
Ignacio R. Morelle
a2422a8f15 Move color cursors option to Advanced Preferences
It is known to break under a variety of situations, including
(apparently) running on OS X, so it's not really fit for the Display
preferences page. This is probably going to remain the case until
Wesnoth is ported to SDL 2.

Also added a more discouraging tooltip to the option.
2013-12-17 20:11:08 -03:00
Ignacio R. Morelle
bafdbfad40 preferences: Better tooltip replacement for the new lobby option...
...from 2013-01-01T19:56:28Z!shadowm@wesnoth.org
2013-01-01 22:34:15 +00:00
Ignacio R. Morelle
0a06043a79 preferences: Demote new lobby option to Advanced Preferences...
...and improve/replace related UI strings to avoid misleading players
2013-01-01 19:56:28 +00:00