Commit Graph

43 Commits

Author SHA1 Message Date
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
Alexander van Gessel
6737ee64cc Add an advanced option to save using bzip2 instead of gzip 2012-10-24 02:14:54 +01:00
Steven Panek
90fcda5d1a Made translation mark spacing consistent. 2012-03-07 06:11:01 +00:00
Ali El Gariani
a4fc0af7e2 Rename local ToD lighting WML key...
...in preference to reset the setting to the new default. This also
better reflects the option's name.
2012-01-07 12:52:06 +00:00
Ali El Gariani
b07e2f397e Remove the bad tooltip from the local ToD light advanced preference.
It was useless and now inaccurate. Most adv. preferences don't have
such tooltip, so I just remove it (also because we are in string
freeze)
2011-12-26 22:54:54 +00:00
Ali El Gariani
04f02d9140 Enable local ToD light option by default.
This will also enable it for 1.9 users who never touched that
settings, because they only have an empty string in their preferences
file.  Only users having toggled it twice (from 'no' to 'yes' then
'no' again) will keep the 'no' state, and I assume they really wanted
that.
2011-12-26 22:54:52 +00:00
Steven Panek
44f500c960 Fixed capitalization in a preference string. 2011-10-31 21:15:44 +00:00
Ignacio R. Morelle
7430feaf45 Advanced Preferences: Converted instances of Title Case...
...in checkbox and slider labels to Sentence case per upcoming UI
Style Guide change
2011-10-30 21:27:25 +00:00
Steven Panek
f3d11bb377 Fixed preprocessor directive. 2011-10-25 15:54:12 +00:00
Fabian Müller
679b1f9acf Guarded the joystick preferences options behind an empty #ifdef. 2011-10-25 15:44:58 +00:00
Fabian Müller
8be2e66ebf Disabled all the extra joystick options in the advanced preferences. 2011-10-25 15:39:43 +00:00
Ignacio R. Morelle
b9d2a83bdf Missing capitalization bit 2011-10-17 20:59:52 +00:00
Ignacio R. Morelle
1b7da8b49d Use Title Case wherever appropriate in Advanced Preferences 2011-10-17 20:19:12 +00:00
Ignacio R. Morelle
094b8b75da Some label style changes in Advanced Preferences
* Rewrote the Local ToD Lighting option tooltip and label

* Removed stops at the end of tooltips (see
  http://wiki.wesnoth.org/UI_Style_Guide#Tooltips)
2011-10-17 20:11:55 +00:00
Ignacio R. Morelle
b9dd12178b Apply "Setting to ignore encountered_units" (patch #2940 by negusnyul)
The preferences entry name and tooltip are not the same as the patch in
the tracker, as we discussed on IRC that this doesn't exclusively affect
mainline units nor does it need to. I also changed the tooltip wording
to fit as much as possible in my 1280x800 screen without changing the
font size (works on 800x480 with a smaller font size).
2011-10-16 20:59:09 +00:00
Steven Panek
e3a8810756 Added an option in advanced preferences
that allows the twelve-hour clock format to be used.
2011-10-03 11:56:40 +00:00
Anonymissimus
689909fb40 added option from previous revision to the UI 2011-09-24 01:01:23 +00:00
Mark de Wever
d007c9aaa3 Implement chat log again.
Applies patch #2892 and fixes bug #7254.
2011-08-11 19:37:25 +00:00
Ignacio R. Morelle
53e260ca6b Ran wmlindent in mainline except for data/gui 2011-08-02 00:01:08 +00:00
Fabian Müller
2d4d8984d5 Added many (too many) joystick related config items...
...to the advanced preferences.
2011-07-04 12:52:43 +00:00
Ignacio R. Morelle
76bf2fd23b Moved Animate Map option from Advanced Preferences to Display 2011-06-19 00:05:44 +00:00
Ignacio R. Morelle
4cb0d94763 Moved Unit Standing Animations toggle from Advanced Preferences to Display 2011-06-18 23:35:59 +00:00
Ignacio R. Morelle
bc82c3b3ee Moved and renamed option "Scroll tracking of unit actions"...
...(now in Advanced Preferences)

The new name is "Follow Unit Actions".
2011-06-18 21:47:32 +00:00
Ignacio R. Morelle
9e03262638 Resurrect Reverse Time Graphics' option tooltip 2011-06-18 21:25:22 +00:00
Ignacio R. Morelle
5cdad37b6a Move Reverse Time Graphics option to Advanced Preferences
Rationale: This option doesn't deserve to exist, but it's been removed
and restored before.
2011-06-18 21:19:34 +00:00
Ali El Gariani
037b79e36b New advanced preference to use a local ToD color-shift
Because the memory cost is now acceptable (and only there when playing
maps with big caves using special ToD)
2010-08-16 07:07:51 +00:00
Alexander van Gessel
8f2f43d3ea Add the minimum ping interval to the ping timeout.
Define this interval as a constant in network.hpp
2010-04-12 03:44:53 +01:00
Guillaume Melquiond
63a9680c6f Added advanced preference for disabling notifications. (FR #15701.) 2010-03-28 12:16:50 +00:00
Tomasz Śniatowski
2b63d586a4 rm negation in preference name 2009-08-04 00:51:08 +01:00
Tomasz Śniatowski
4e496e330d new lobby sound notifications, much like the old lobby.
plus a lobby sounds off-switch in advanced preferences.
2009-08-04 00:21:24 +01:00
Tomasz Śniatowski
63a4de5e61 add an advanced preference for disabling new lobby player grouping...
...in the player list
2009-07-24 14:06:30 +01:00
Tomasz Śniatowski
4249455378 change default value for one new lobby preference 2009-07-24 14:06:08 +01:00
Tomasz Śniatowski
a529e30c61 add advanced_preference entries for lobby friends-only whisper setting...
...and lobby auto-opening of new whisper windows
2009-07-24 14:05:33 +01:00
Alexander van Gessel
853dc96cb7 Add 'description' key to [advanced_preference] to set the help string. 2009-07-18 05:46:44 +01:00
Alexander van Gessel
d698d53ee9 Don't overwrite a changeable preference with a static value. (ping timeout) 2009-07-18 05:26:56 +01:00
Alexander van Gessel
9970eafa3b Allow [advanced_preference]s to be of 'int' type. 2009-07-18 04:41:38 +01:00
Alexander van Gessel
4ca5e565cf Move advanced_preferences to their own file. 2009-07-15 04:26:35 +01:00