Commit graph

1363 commits

Author SHA1 Message Date
Steve Cotton
3d354dcd92 Update changelog 2021-04-16 11:48:40 +02:00
Hejnewar
dd864d5a4a
Update changelog 2021-04-15 13:42:30 +02:00
Gunter Labes
16ff3cebd1
Update changelog 2021-04-15 08:06:27 +02:00
Nils Kneuper
ebac0830cb updated Chinese (Traditional) translation 2021-04-10 11:26:34 +02:00
Nils Kneuper
01bebdd51d updated Czech translation 2021-04-10 11:19:37 +02:00
Nils Kneuper
7a348ddfcc updated Italian translation 2021-04-10 11:17:54 +02:00
Iris Morelle
f23ef62282 font: Cleanup link formatting logic
Let's internally handle this mess in terms of tokens instead of
delimiter positions.

This alters the code so we don't add and substract ones (1) all over the
place. It also simplifies the final std::string_view::substr() call so
we don't need to count the remainder's length at all.

And more importantly, this makes the case where no delimiters had been
previously found trivial instead of causing it to break and result in no
text being output at all. We also don't start with a size_t value of -1
(actually a very large unsigned value).

Closes #5625.
2021-04-09 21:04:45 -04:00
Iris Morelle
e3432738af Update changelog
[ci skip]
2021-04-08 18:10:51 -04:00
Steve Cotton
489d364cb6 Make the debug clock look right
This is the only widget in mainline using GUI2's [draw][circle] tag. I'm
currently working on a change to the C++ text_shape class, and want to
be able to regression-test the placement of [circle]s after that change.

I'd be okay with deprecating both [circle] and [round_rectangle] as neither
seems to be used elsewhere, but this close to feature-freeze I'd prefer to keep
them in 1.16 rather than suggest removing them now.

To see the widget, start the game with `wesnoth --clock`, and then click the
button underneath "Quit" on the main menu.
2021-04-05 12:59:10 +02:00
Pentarctagon
38e7afb07f
Update changelog. 2021-04-04 01:32:01 -05:00
doofus-01
77f8112032
Update changelog.md 2021-04-03 21:18:31 -07:00
doofus-01
31bc471d39
Update changelog.md 2021-04-03 16:39:55 -07:00
Steve Cotton
b8b06d0862 Make WFL's error-reporting machinery thread_local
To report the WFL call stack in the event of errors, a static stack is used to
record that call-stack. This wasn't thread-safe, and it intermittently crashed
when the game config was movetype patching (the other WFL thread involved is
the GUI2 layout code).

Also a Rule of Three fix for the call_stack_manager class. While this wasn't
the cause of the crash, it could also have lead to a call_stack.pop_back() on
an empty stack.
2021-03-29 14:33:21 +02:00
Steve Cotton
884fa9ca6f Fix units that should have zero max mp being given one mp
Corrects a cut & paste typo in 66a282a96b.
2021-03-28 17:40:07 +02:00
Iris Morelle
c81c77aecc Update changelog
[ci skip]
2021-03-28 04:29:18 -03:00
Iris Morelle
00fbce5872 gui2/game_version: Add logs dir to the Game Version dialog on Windows 2021-03-25 21:21:59 -03:00
Steve Cotton
41fa00de2a Update changelog for EI changes 2021-03-23 01:37:48 +01:00
Pentarctagon
76e6ec39a7
1.15.11+dev. 2021-03-20 20:22:18 -05:00
Pentarctagon
fa5592eb05
1.15.11. 2021-03-20 20:20:24 -05:00
Iris Morelle
23693a513f Fix changelog
[ci skip]
2021-03-20 03:06:46 -03:00
Iris Morelle
a455aa9ce9 tutorial: Disable end credits
Closes #5543.
2021-03-20 02:42:33 -03:00
Iris Morelle
e20f2b86af Fix [campaign] end_credits= having no effect 2021-03-20 02:42:32 -03:00
Iris Morelle
36f1fa2af1 Don't display the end screen at all with end_credits=no
Left the logic in the dialog mostly intact so that if the dialog is
somehow invoked it doesn't display the title card, only the "The End"
text.
2021-03-20 02:42:16 -03:00
Iris Morelle
220c3f5752 gui2: Restyle comboboxes to look like buttons rather than textboxes 2021-03-20 01:55:45 -03:00
Iris Morelle
605fe2eb6b gui2/preferences_dialog: Fix breakage of display ratios listing
Regression from 0c2134a645 / 1.15.10.
2021-03-20 01:33:57 -03:00
Iris Morelle
2fac56c21f gui2/drop_down_menu: Make display of entry details more orderly
The primary target of this change is hotkey labels in game menus. This
aligns them all to the right of the menu and increases the space between
them and the menu item label proper to attain a cleaner appearance.
2021-03-20 01:33:43 -03:00
Iris Morelle
d3de899186 Use a smaller font size for theme UI buttons
The impact of increasing button sizes on the top bar and replay UI
is a bit worse than expected and I can't be bothered to deal with the
consequences at this time.
2021-03-19 13:37:31 -03:00
Iris Morelle
1fe3468a92 Update changelog
[ci skip]
2021-03-19 12:41:23 -03:00
Iris Morelle
b2069dccaf Update changelog
[ci skip]
2021-03-18 20:58:02 -03:00
mattsc
ab8a392f1d Update changelog 2021-03-18 07:49:04 -07:00
Iris Morelle
3b912c6efa Update changelog
[ci skip]
2021-03-18 02:44:24 -03:00
newfrenchy83
e3b737cfd6
Add [teaching_anim] for abilities used like weapon specials given by an adjacent unit
When a unit gives adjacent units abilities used like weapon specials, and is not already showing an animation from giving a resistance or leadership effect, a [teaching_anim] can be played instead.
2021-03-15 10:30:30 -05:00
nemaara
fa51d6d266 Add Liberty balance patch to changelog 2021-03-13 23:05:39 -05:00
nemaara
3223ec4dd7 Add TSG balance patch to changelog 2021-03-13 22:55:26 -05:00
nemaara
570c112a02 Add UtBS balance patch to changelog 2021-03-13 22:24:33 -05:00
Iris Morelle
f5d30e5c70 gui1: Bring scrollbar design in line with GUI2 2021-03-13 18:35:50 -03:00
Iris Morelle
45ca791387 ui: Fix ThemeWML [label] text_rgb= being horribly broken
First cause of breakage seems to be that the introduction of color_t
changed the size of the colour components from something longer than 8
bits to 8 bits, resulting in stringstream outputting invalid UTF-8. The
second cause is the dropping of GUI1 markup along with SDL_ttf.
2021-03-13 15:01:08 -03:00
Iris Morelle
2435a0908e Update changelog
[ci skip]
2021-03-13 14:03:56 -03:00
Nils Kneuper
39d75333c0 updated Czech translation 2021-03-13 16:26:00 +01:00
Steve Cotton
31cdf16319 Unsubtly warn about subtle problems loading saved games from old versions
This connects to issue #2710, although the main reasoning about it is in #5517.
The difficulty balance isn't the only problem with loading old saved games, but
it's a simple example to explain.

This warning is intended for the change between 1.14 and 1.16, but will be shown
to anyone loading 1.15.x saves into 1.15.y - that's something that they should
expect in a dev branch.
2021-03-13 03:45:41 +01:00
nemaara
790bd029fc Add Liberty update to changelog 2021-03-11 02:01:41 -05:00
Iris Morelle
c40232d504 font: Fix double resource leak in font::pango_text
The impacted code path is only executed as part of the implementation of
the characters_per_line constraint.

According to the Pango documentation, PangoFontMetrics should be
released using pango_font_metrics_unref(), and PangoFont should be
released using *something* not specified. Existing code, and the
documentation for pango_fontset_get_font(), suggests the answer for the
latter is g_object_unref().
2021-03-09 01:55:16 -03:00
Nils Kneuper
9c85dd2de3 updated Chinese (Traditional) translation 2021-03-06 12:56:47 +01:00
nemaara
2845d34097 Add SotA balance to changelog 2021-03-02 02:36:45 -05:00
nemaara
d1461370aa Add SotBE balance to changelog 2021-03-02 00:36:03 -05:00
Steve Cotton
3522eb2c2a Support [terrain_defaults]'s original subtag names
This is preparation for backporting 0ba433203e, with the idea that both sets
of names will be supported in both branches.

No deprecation messages are added. While config::get_attribute_value() has a
config::get_old_attribute_value(), there isn't currently a similar utility for
config::child(); maybe I should add one now, but it feels too large a change
for a backport.
2021-03-02 00:22:32 +01:00
doofus-01
69ad6cac51
Update changelog.md 2021-02-28 20:15:58 -08:00
Nils Kneuper
2191911cc1 updated British English translation 2021-02-27 13:19:36 +01:00
Nils Kneuper
bb035ea19d updated Italian translation 2021-02-27 13:18:26 +01:00
nemaara
3d49124c1d Add SoF balance to changelog 2021-02-27 05:26:24 -05:00