69366 Commits

Author SHA1 Message Date
Ignacio R. Morelle
f7b34ce1e8 wam: Minor moving things around for float layout coherency, also tooltip 2017-07-24 15:47:13 -04:00
Ignacio R. Morelle
acf5e3ec64 wam: Some additional content and styling tweaks
* Relabeled the "Notes" column to "Translations" since that's what it
   really is.
 * Replaced the Download label with an icon and moved it to the add-on
   names column.
 * Restyled add-on version/author a bit.
 * Add-on type is now more or less aligned to the middle of the icon
   (regardless of what the cell height actually is -- there can be extra
   empty space below the type line if the add-on title is too long, for
   instance).
2017-07-24 15:36:30 -04:00
Ignacio R. Morelle
73a2e653b7 wam: Fix invalid HTML emitted for add-on icon <img> elements
The width/height attributes are always in pixel units. This is not CSS.
2017-07-24 14:54:52 -04:00
Ignacio R. Morelle
86984f0040 wam: Update styles and markup for Wesmere
This also adds SVG icons to be used in table headers instead of GIF
images for browsers that support SVG in background-image. It makes
things scale better for high DPI screens.
2017-07-24 14:49:08 -04:00
Ignacio R. Morelle
56990b17d9 wam: Fix HTML injection attack on the add-ons.wesnoth.org web interface
This escapes all strings provided by add-ons server data to guarantee
they can't be used to get extraneous and potentially harmful HTML into
the generated web index.

However, and because I don't have time to look into the dense regex
contained in the relevant code right now, it also removes the hidden
feature of linkifying any URLs found in add-on descriptions. It's a
small price to pay for our safety, really.
2017-07-24 03:05:12 -04:00
Celtic Minstrel
2d5cb4c9ed Widescreen Theme: Use new minimap style 2017-07-24 00:14:37 -04:00
sigurdfdragon
6ebd079f20 SotA S06: When the chasm is discovered, have a bat fly out as a warning
Implents a suggestion from the forums:
https://forums.wesnoth.org/viewtopic.php?f=65&p=614789#p614629
2017-07-23 23:59:00 -04:00
Ignacio R. Morelle
57f9c3eccd wmlscope: Fix file list column layout glitches on Edge and Chrome 2017-07-23 20:21:27 -04:00
Ignacio R. Morelle
1a03a5af57 wmlscope: Update macro reference templates and emitted markup for Wesmere 2017-07-23 19:59:19 -04:00
Ignacio R. Morelle
09d5f799ac wmlscope: Make this and the template prerequisites for macro-reference.html
This makes it so changes in these three actually cause make to
regenerate the file if they are newer than it.
2017-07-23 19:59:19 -04:00
gfgtdf
75cc7e62f6 fix chat during delay is start event blocks client #1857
the `replay_->at_end()` check was added in 81b6c3ab9957b25261c2ac683b49ec1e30279fb8 and is not needed anymore after 9ca66784794fa6eed0fd74558a2368f42030087e

This also removes the `gamestate().gamedata_.phase() != game_data::PLAY` check which was previously there to fix the case when a [change_controller] was received while waiting for a serversided random seed during a start event. But that's not needed anymore after 11daa5113a since now the client doesn't anymore call maybe_do_init_side whenever he reveives a [change_controller]
2017-07-23 23:34:34 +02:00
Celtic Minstrel
e85b429b0b Update font sizes of widescreen theme to match default theme 2017-07-23 16:38:50 -04:00
Celtic Minstrel
40319fe849 Fix not showing selected unit profile image in widescreen theme 2017-07-23 16:38:49 -04:00
Celtic Minstrel
7df0da5659 Fix missing images in the widescreen theme.
The theme still has numerous other issues, such as misplaced elements.
2017-07-23 16:38:47 -04:00
Celtic Minstrel
b4990801ef Fixed some issues with the resolution list (fixes #1772)
Awhile back I added some code to remove any resolutions from the list that exceeded the current DPI.
I seem to have misunderstood some of the functionality.

First, off, GetCurrentDisplayMode doesn't seem to return current resolution. From my tests, it seems
to return a "maximum maximized size" of some sort equal to GetUsableDisplayBounds - 1 (see below):

* Render output size: 800, 600
* Display mode size: 1536, 864
* Window size: 800, 600
* Display Bounds: x: 0, y: 0, w: 1537, h: 865
* Usable display bounds: x: 0, y: 0, w: 1537, h: 865

The actual
window size, which @celticminstrel informs me is what we should be measuring here, is actually returned
by either GetWindowSize or GetRenderOutputSize. According to SDL, the latter should return pixel size
and the former screen coordinates. In my tests, though, the results are the same. This might be different
on macOS or iOS. Either way, I've changed current_resolution(), getx(), and gety() to use the results of
GetWindowSize().

Additionally, it seems I don't need to multiply any display modes by the DPI scale factor if I check the
sizes against the aforementioned "max maximized area" w/h. For that I use GetDisplayBounds however...
though again, I'm not sure that's the best way to do this. It does seem to work correctly to fix the
aforementioned bug, anyway. I'll need to figure out more about the handling of DPI on Windows vs macOS
or iOS. There's an implication that the measurements some of these functions return is different.
2017-07-23 16:38:46 -04:00
gfgtdf
82829b0011 debug info & asserts to investigate #1857 2017-07-23 22:15:32 +02:00
Jyrki Vesterinen
a3d884ef74 Fix SCons build on Windows
Found by @sigurdfdragon.
2017-07-23 21:35:24 +03:00
gfgtdf
708096a84e fix map beeing black for player 2 in a online multiplayer game
if 'enter bindfolded' is enabled
fixes #1852
2017-07-23 20:29:48 +02:00
Sofartin
dd5983b176 Updated Xcode project. (#1859)
I added missing function_gamestate.*pp files inside Xcode project.
2017-07-23 13:02:05 -04:00
Sofartin
4d41c8aa08 Removed duplicates inside project file. (#1854) 2017-07-23 10:56:03 -04:00
ln-zookeeper
87fb6e2ad9 Added an attack icon for rodent fangs and used it for the Giant Rat
The icon has been used in UMC for a long time, and I think the original artist is probably Dibs.
2017-07-23 11:37:03 +03:00
Celtic Minstrel
c2c65dc714 Add descriptive tooltips for all text elements in the top status bar 2017-07-23 02:18:48 -04:00
Celtic Minstrel
cd787b4b53 Fix up a use of the removed ~BRIGHTEN() and ~DARKEN() IPFs
This was only used by the UnitBox theme.
2017-07-23 01:45:01 -04:00
Celtic Minstrel
1eaa766444 Remove a translation mark, as suggested by @gunchleoc 2017-07-23 00:57:49 -04:00
gfgtdf
8a7a3a41ff attempt to fix map beeing black in mp games #1852 2017-07-22 23:41:28 +02:00
Jyrki Vesterinen
dc5e8b36ea Restore --max-fps
@gfgtdf explained in IRC that it's often used to slow Wesnoth down (instead
of speeding it up, as I had assumed).

This should also allow unit tests to compile again.
2017-07-22 23:35:53 +03:00
Jyrki Vesterinen
4e4d7b5277 Rewrite the FPS cap implementation
The FPS cap, originally implemented in 2007, is very poorly done. It
doesn't take frame time variance into account, and is therefore almost
guaranteed to cause missed frames all the time. It doesn't increase timer
granularity on Windows, which causes SDL_Delay() to often take much longer
than intended. And it's hardcoded for 50 FPS, which fits poorly with 60 Hz
displays.

This new implementation fixes all those issues.

My experience is that the game feels much, much smoother with the new
implementation, perfectly competitive with 1.12. In my opinion, performance
is now at an acceptable level for a stable release.
2017-07-22 15:48:46 +03:00
David Mikos
e1e336a46c Add new princess attack animation to tutorial from HttT 2017-07-20 08:25:31 +09:30
gfgtdf
4c1976db28 remove unused 'assert_existence' function 2017-07-19 13:06:46 +02:00
David Mikos
ecb51029d7 Fix for jumpy movements in bug #1565
Add a new max_animation_time_ variable that checks whether the time
for the movement animation exceeds the potential time. This will
restrict the time interval to match the offset 0~1:200,0~1:200,etc.
as the unit is moving.
2017-07-19 20:06:33 +09:30
gfgtdf
62860ac433 fixup 5f40636fa9041f 2017-07-18 20:54:33 +02:00
gfgtdf
5f40636fa9 [scenario] allow_new_game= now defaults to false
also [campaign] first_scenario= is no longer ignores for mp campaigns.
2017-07-18 19:51:09 +02:00
gfgtdf
7ff5c4d743 don't save default values of unit attributes in editor generated scenarios. 2017-07-17 17:15:47 +02:00
ln-zookeeper
d02be2a7c0 EI S11: Fixed unusual values in the side 1's definition 2017-07-16 17:49:03 +03:00
gfgtdf
5a55899b83 use modification id in lobby if the modification is not instealled.
fixes partly #1794

This isn't a perfect solution: It migth be better if the host just sends the name of the addons along with their ids so the clients could just use that.
2017-07-16 12:47:54 +02:00
ln-zookeeper
0d905db5bc DiD S10: Hide Dela's and the paladins' sides until their appearance 2017-07-16 11:55:49 +03:00
sigurdfdragon
61fed391eb SotA: Changelog entries
For commit 36175c46cdc8af27e58b4466a32d803bd9dc994c
2017-07-14 22:59:44 -04:00
sigurdfdragon
98dd409314 Add Dan Gerhards (beetlenaut) to Campaign Design credits
Confirmed with beetlenaut
2017-07-14 22:49:53 -04:00
sigurdfdragon
d0b4250c36 Adjust appearance of my name in the credits 2017-07-14 22:40:34 -04:00
Lari Nieminen
1aa1ce642b Added support for a facing= key in [recall] (#1819)
This is necessary, as it is otherwise impossible to specify the facing of the recalled unit.
2017-07-12 22:02:15 +03:00
Jyrki Vesterinen
986b19011f Merge pull request #1832 from donovanamitchell/bug#1829
Fixed Bug#1829 Name filters are applied with type and status filters
2017-07-12 13:36:11 +03:00
RatArmy
0a3f125af2 Fix insert index of the text edited by IME (#1833) 2017-07-11 21:09:04 -04:00
Celtic Minstrel
00f01278c5 Update changelog
[ci skip]
2017-07-11 00:10:59 -04:00
Celtic Minstrel
c2a53a7fb3 fixup 658bb10
(Based on the comments on that commit)

Basically, this ensures it will work even if the compiler (for whatever reason) decides plain char is unsigned.
2017-07-10 20:43:27 -04:00
gfgtdf
b68a23c480 attempt to fix issue #1820
`iter->get("description")` might return nullptr so. Also contains some small cleanups.
2017-07-11 00:51:07 +02:00
Richard Kettering
003508d5ef Animation frames for a ne attack of the dwarven guard. 2017-07-09 23:45:08 -05:00
Richard Kettering
5a5ea98b80 Animation frames for a se run of the dwarven stalwart. 2017-07-09 23:40:26 -05:00
ln-zookeeper
cd82d9a713 UtBS: New sprite and animations for Flesh Golem, by doofus-01 2017-07-09 19:46:54 +03:00
ln-zookeeper
36573bc323 HttT: Added Princess melee attack animation by doofus-01 2017-07-09 19:08:20 +03:00
ln-zookeeper
126d435748 Made [item]s get drawn behind village flags (fixes issue #1400) 2017-07-09 13:30:31 +03:00