Commit graph

7360 commits

Author SHA1 Message Date
sigurdfdragon
a593e9753f Update changelogs 2017-11-27 20:28:36 -05:00
Severin Glöckner
e0cebdd402 desktop_entry: include high resolution icons
wesnoth-optipng has been applied to the new images
2017-11-27 01:52:36 +01:00
Jyrki Vesterinen
4d0c46164e Miscellaneous optimizations in display::get_terrain_images()
* The vector of surfaces is now a class member variable instead of a local
variable. This saves a memory allocation every time the function is called
- which is worth it in this case, as the function is a major performance
bottleneck.

* The surfaces are now being moved instead of copied where possible. Turns
out that freeing a SDL surface is fairly expensive in performance-critical
code.

* Pointers to ToDs are now cached, reducing the number of calls to
get_time_of_day() from 37 to 7.

In a stress-test in Aetheryn's Mod at 50 % zoom, the FPS I was getting on
my PC (Intel Core i5-4430) increased from 16 to 23.
2017-11-26 20:07:34 +02:00
Nils Kneuper
21eb31b757 updated Spanish translation 2017-11-24 00:18:27 +01:00
sigurdfdragon
ec7b536c7c update changelog 2017-11-22 20:27:34 -05:00
sigurdfdragon
7c276059ea Update changelogs 2017-11-18 13:58:12 -05:00
David Seifert
509aa5a1ea Update changelog
* Detail the `GNUInstallDirs` changes
* Non-Windows builds now use the absolute path for all
  data paths. This is less brittle, as relative path
  lookup in Unix always depends on the current value of
  the PWD environmental variable.
2017-11-17 13:41:32 -06:00
Jyrki Vesterinen
506ee85d2d Revert "GUI2: implemented fixed_width and fixed_height keys for all widgets"
This reverts commit 556331ac3f.

Since the keys aren't working, the implementation shouldn't be in the
Git repository. Otherwise some poor soul will attempt to use them and
face additional work afterwards.
2017-11-15 19:04:47 +02:00
ln-zookeeper
34c6fcd0fd Dark Forecast: Fix broken leader/faction/color selection, fixes #2147 2017-11-13 21:09:52 +02:00
Charles Dang
556331ac3f GUI2: implemented fixed_width and fixed_height keys for all widgets
This is meant to be a cleaner replacement to the [size_lock] widget. Both keys are optional,
in which case the layout engine will assume dynamic sizing for that dimension. Dynamic sizing
will also occur if either the fixed with or height evaluates to 0 or less.
2017-11-11 23:11:24 +11:00
Nils Kneuper
2c5a2ea20d updated Italian translation 2017-11-09 20:05:35 +01:00
Charles Dang
21395a7925 Fixed the opacity IPF resetting to 0 if the value given was 100% or greater (fixes #2185)
This also restores the 1.12 behavior of bumping the opacity values of semi-transparent pixels
if the opacity is past 100%.
2017-11-10 00:42:13 +11:00
Gregory A Lundberg
d091391899 Renamed the target and binary for the Boost unit tests from test to boost_unit_tests
This quells warnings from CMake about reserved target names, and reduces confusion about which `test` is intended: the wesnoth executable or the standard shell command.
2017-11-06 20:32:27 +02:00
josteph
a43792f278 Lua API: Add advances_from and advances_to to unit type getter
Fixes #2169.
2017-11-06 11:32:19 +11:00
Charles Dang
3b9e73f7d2 Create Engine: exclude campaigns from the has-sides check
This allows campaigns to be started from MP again. Should have remembered to commit this before 1.13.10 :(
2017-11-06 00:23:14 +11:00
Charles Dang
c4a182dc0e Updated changelog
[ci skip]
2017-11-03 11:51:09 +11:00
sigurdfdragon
54d7f6154c Update changelogs 2017-11-01 22:17:39 -04:00
Jyrki Vesterinen
c6d8692ac6 Stop paranoid redraws of entire GUI2 windows
Partial revert of commit 010edbe1b9.

The commit caused every GUI2 window to be fully invalidated and redrawn 50
times per second, with massive CPU usage cost. No wonder that some players
have been complaining about too high CPU usage while idling in fullscreen
GUI dialogs.

I couldn't find any obvious regressions with this change. It looks like the
underlying issue has disappeared at some point.

In my tests, CPU usage while idling in the addon manager dropped from 17 %
to 2.5 % (across all cores).
2017-10-31 22:48:52 +02:00
Charles Dang
eb3ed6f3f9 Updated changelog
[ci skip]
2017-10-31 10:02:48 +11:00
Jyrki Vesterinen
8d397aa356 Changelog entry for commit b43194ba2e 2017-10-30 19:51:22 +02:00
Charles Dang
0737736d3c MP Lobby: completely redesigned game entry layout
I did one of these about a year ago, but in the time since I realize it was honestly really crowded
and had some fundamental problems (for example, the listbox would get a horizontal scrollbar if a game
with a lot of mods was started).

This time around, I've focused on simplicity. The main changes:
* The minimap has been made 10 px larger. This was to accommodate the 5 px borders, so now the actual
  map image is 72x72.
* Game name and scenario name have swapped places, and the latter is now larger.
* Game names are no longer colorized based on the number of vacant slots or whether you can observe
  the game or not.
* The Turns/Slots label coloring has been toned down and been made larger. It is now either white
  (game has started), green (vacant slots available), or yellow (vacant slots available for reloaded game).
* The Turns limit  no longer displays "/-" for games with unlimited turns. Now you just get "Turn n".
* Due to 1bfa170856, proper names of all missing content is displayed. I also got rid of those
  "Unknown Scenario"/"Unknown Campaign" labels in favor of a simple red-color game type token (S or C),
  respectively.
* All game setting icons have been moved to a tooltip attached to an info icon, except those for
  Password Required and Observes Allowed.
* The info icon will also change color (and its tooltip display a message) if the player need to download
  additional content to join that game.
2017-10-29 16:55:42 +11:00
Jyrki Vesterinen
c57b9a8f90 Revert "Revert "Disallow specifying file paths with backslashes""
This reverts commit 02de08338c.

Mainline does *not* contain paths with backslashes. If it did, the game
would be broken on GNU/Linux and macOS (and we'd need to fix it anyway).
Instead, it's more likely that we have code somewhere that generates
paths dynamically using backslashes on Windows, and the correct fix is
to change that code to use forward slashes instead.
2017-10-28 19:25:30 +03:00
galegosimpatico
d98d7aa80c Fix visual bug in the announces system.
Follow up 'ceba081542a4'. It is nice to remove the previously
announced message when announces are being delivered very quickly, but
maybe movement feedback announces should be exempt of that. Before
this rev, Whenever an 'Enemy unit sighted' message was being ordered
coupled with a subsequent 'press $HOTKEY to keep moving', the 'Enemy
unit sighted' message was getting discarded.

src/actions/move.cpp: Movement feedback is important, do not remove
previous messaging when announcing.

src/display.cpp: Do not remove previously announced label when so
requested.

src/display.hpp: Add a `struct` device meant to pass optional
arguments to `void announce(const std::string&, const color_t&, ...)`
instead of primitive typed optional arguments (one, `int`, was being
in use, I would have needed to add a second one, `bool`, but when
trying to do that, the `bool` value would be received by the function
as the `int` argument when not providing an explicit value for the
`int` argument (see `src/actions/move.cpp`). Given C++11, for optional
arguments, does not (to the extent of my understanding) allow
specifying the argument name on the calling place, I was forced into
adding this struct in order to jail all primitive typed optional
arguments.

src/synced_commands.cpp: Adapt to new public API in `class display`.
2017-10-27 19:39:26 +11:00
Charles Dang
02de08338c Revert "Disallow specifying file paths with backslashes"
This reverts commit 1b9c07eb40.

I'm reverting this (at least temporarily) since it seems mainline contains *numerous* paths with
backslashes. This change basically spams console with warnings just from mainline/core content,
in addition to having other negative side effects such as leader image generation failing when
populating a save_index file. Plus, if backslashes really broke things on Linux, I think we'd have
had a multitude of people complaining about half their images not showing up on that platform, which
(AFAIK) has not been the case.
2017-10-26 09:15:19 +11:00
Charles Dang
c74f1b356f Updated changelog for 5c7f58c
[ci skip]
2017-10-23 17:35:07 +11:00
Nils Kneuper
7813636e6b updated Chinese (Simplified) translation 2017-10-21 11:01:42 +02:00
Jyrki Vesterinen
1b9c07eb40 Disallow specifying file paths with backslashes
Backslashes only work on Windows. A UMC author may accidentally use them in
their add-on that won't then work properly on GNU/Linux and macOS.
Just disallow them on all platforms to avoid problems.
2017-10-15 10:40:59 +03:00
Jyrki Vesterinen
37225d24ea Case sensitive file paths on Windows
The intent is to avoid UMC authors accidentally mistyping a file name
and making an addon that doesn't work correctly on GNU/Linux.

Thanks to @Arcanister for suggesting the GetFinalPathNameByHandle function.
2017-10-12 20:46:10 +03:00
Charles Dang
ac5592cd10 Post-release version bump 2017-10-12 12:17:53 +11:00
sigurdfdragon
27bd77b655 Update changelogs 2017-10-11 17:34:22 -04:00
mattsc
3c0e873e84 Update changelog 2017-10-10 14:09:05 -07:00
Charles Dang
8cb78ecf12 Updated changelog for Lua upgrade 2017-10-10 18:04:10 +11:00
Charles Dang
b0a510981a Updated changelog for 6f952a0dae
[ci skip]
2017-10-09 12:50:30 +11:00
Ignacio R. Morelle
2d836ddcd9 campaignd: Use base64-encoded hashes for add-on passphrases again
Fixes #2068.

As pointed out in the ticket, commit
98648ddf63 changed the implementation of
hex_digest() to use hexadecimal numbers instead of base64, causing new
calculated hashes during [upload] and other authenticated operations to
not match what campaignd already had on record.

This commit fixes that by using utils::md5::base64_digest() as
recommended by celticminstrel (which had already been done for wesnothd
but not campaignd, of course). It also matches the 1.12 version of the
campaignd hashing code this way.

Additionally, new uploads/passphrases since the deployment of that change
will need to be re-set by hand to get their base64 versions into the
server config.
2017-10-08 19:55:18 -03:00
Ignacio R. Morelle
ffa581d88b Update changelog to account for add-ons server/client changes
[ci skip]
2017-10-04 21:49:34 -03:00
Nils Kneuper
5e15cdbbc6 updated British English translation 2017-09-25 21:25:22 +02:00
Charles Dang
bc86ce762d Pre-release version bump
[ci skip]

A serious issue was discovered in the 1.13.9 release, so we're releasing 1.13.10 now.
2017-09-22 14:22:20 -04:00
gfgtdf
9ba7bfae3a Update changelog 2017-09-22 20:18:32 +02:00
Charles Dang
8870f7d277 Post-release version bump 2017-09-21 23:47:55 -04:00
Charles Dang
e47ea7fded Pre-release version bump
[ci skip]
2017-09-21 23:05:30 -04:00
Charles Dang
95afd707c3 Updated changelog
[ci skip]
2017-09-21 23:02:49 -04:00
sigurdfdragon
0ab2b74a81 Changelog: Move new terrain to the terrain section 2017-09-20 17:39:25 -04:00
sigurdfdragon
cee61b8515 Update changelogs 2017-09-18 14:08:38 -04:00
ln-zookeeper
f25e642257 Updated changelog 2017-09-17 23:30:48 +03:00
ln-zookeeper
5027d54600 UtBS: Changed lvl1 Quenoth Scout's bolas to a sling (no slows)
Also reformatted the UtBS changelog section a bit.
2017-09-17 14:32:25 +03:00
Celtic Minstrel
15302a54e8 One more changelog entry
(Is this really the right section for it?)
2017-09-16 23:21:24 -04:00
Celtic Minstrel
a4f3f687d1 Fix spelling in changelog 2017-09-16 22:46:50 -04:00
Celtic Minstrel
703b597275 Update changelog on behalf of @Vultraz and @doofus-01 2017-09-16 22:29:55 -04:00
gfgtdf
260a57f07e Update changelog 2017-09-17 02:31:52 +02:00
Celtic Minstrel
5e1d06a064 Rewrap changelog to 80 columns 2017-09-16 11:42:27 -04:00