81990 Commits

Author SHA1 Message Date
Iris Morelle
0fa13e9894
gui: Use true labelless checkboxes in the dropdown menu implementation
Using checkboxes with an empty label doesn't quite do the trick and it
results in some (minimal) wasted horizontal space.
2023-05-22 03:45:23 -04:00
Pentarctagon
b1f632b85d cwesnoth.cmd cleanup 2023-05-21 11:52:16 -05:00
Pentarctagon
00171d6cb9 1.17.17+dev 2023-05-20 22:09:27 -05:00
Pentarctagon
1c8f405838 1.17.17 1.17.17 2023-05-20 22:08:32 -05:00
Pentarctagon
b2133d4093 pot-update and regenerate doc files 2023-05-20 22:05:36 -05:00
Pentarctagon
eb2147cd5d changelog_entries 2023-05-20 22:00:30 -05:00
newfrenchy83
337a9435ed
Make strings translatable in unit_attack.cpp and abilities.cpp (#7642)
Gettext doesn't detect strings to extract to the .pot file when dsgettext is used
directly instead of the _(string) macro.
2023-05-21 03:59:23 +02:00
Severin Glöckner
ba93decfcb Init sides correctly when side 1 is empty
closes #7633
2023-05-21 03:05:15 +02:00
Severin Glöckner
872111879a German translation update 2023-05-21 03:00:45 +02:00
TheShadowOfHassen
9671508e78
Nr: Dialog/ Story Rewrite : Scenario One (Fix) and herodeaths (#7628) 2023-05-20 14:39:12 -07:00
Iris Morelle
48d18b5012
bi: Drop libpng enumeration item
It hasn't been used since version 1.15.0 (orphaned in revision
dfc42e8a8dd550ca04ae16e2d2d7ebffbba0bc21).
2023-05-20 14:57:35 -04:00
Iris Morelle
af81e52d55
Merge branch 'bugfix/version-label-translation-refresh'
Closes #7640.
2023-05-20 14:50:07 -04:00
Iris Morelle
657d3d7968
Merge branch 'feature/bi-libcurl-version'
Closes #7641.
2023-05-20 14:49:27 -04:00
Nils Kneuper
ba5c90aeff updated French translation 2023-05-20 17:37:26 +02:00
Iris Morelle
63876485a4
bi: Add libcurl to library version reports 2023-05-20 04:51:14 -04:00
Iris Morelle
3de7d84db0
gui2/title_screen: Fix Version label translation not updating
This unifies both the Version and the Language menu labels into a
single method for both that is called both during construction and
after switching languages. Both have this issue where they aren't
t_string instances, so changing languages has no effect on them for
that reason and they need to be manually re-translated.
2023-05-20 01:23:50 -04:00
Iris Morelle
a124571b2a
Merge branch 'bugfix/7436'
Closes #7639.
2023-05-19 22:11:23 -04:00
Dalas121
dd42e4d4e4
Improve TRoW's Clearwater and Southbay ally AI (#7525) 2023-05-19 09:11:07 -07:00
Pentarctagon
c4bc4237cd Add script for starting wesnoth on macos+steam with the right arch. 2023-05-19 11:08:45 -05:00
Pentarctagon
f627ec25ac sub-achievements fixups. 2023-05-19 10:13:05 -05:00
Iris Morelle
ac96df07be
gui: Handle SDL_WINDOWEVENT_SIZE_CHANGED
Instead of SDL_WINDOWEVENT_RESIZED.

The documentation is a bit unclear, but SDL_WINDOWEVENT_RESIZED seems
not to trigger under certain circumstances, specifically when changing
resolution via SDL_SetWindowSize(); SDL_WINDOWEVENT_SIZE_CHANGED
meanwhile is implied to trigger any time the window size changes
whether it's from an API call, or the operating system, or a user
action.

<https://wiki.libsdl.org/SDL2/SDL_WindowEventID>

We need to translate at least one of these events into a GUI2 event in
order for dialogs to be properly re-laid out after the window size
changes, but we should not handle both because that could result in
unnecessary work recalculating all dialog layouts.

Closes #7436.
2023-05-19 02:48:21 -04:00
Iris Morelle
a1f9b6a59a
Update copyright on macOS About dialog 2023-05-19 01:50:38 -04:00
Iris Morelle
89a20fd4ae
Merge branch 'bugfix/7437'
Closes #7637.
2023-05-19 01:31:04 -04:00
Iris Morelle
75bb77f11f
gui/title_screen: Refresh Language button after changing languages
Closes #7437.
2023-05-18 22:54:16 -04:00
Pentarctagon
454d816c86 changelong update. 2023-05-17 23:56:55 -05:00
Pentarctagon
ad3f1c95b0 Add support for distinct sub-achievements.
This adds support for having up to 28 distinct sub-achievements within a single achievement. This limit exists since wesnoth's layout isn't smart enough to tell a horizontal listbox to actually use its scrollbar instead of forcing a horizontal scrollbar on the whole window.

Additionally this adds the [set_sub_achievement] and [has_sub_achievement] WML tags and their respective lua functions. [has_sub_achievement] is unsafe for use in MP, for the same reasons that [has_achievement] is.
2023-05-17 23:54:16 -05:00
Iris Morelle
8fc34a9534
Merge branch 'bugfix/macos-version-report'
Closes #7623.
2023-05-18 00:23:48 -04:00
Slayer95
20d443bfcb
wmlunits: Refactor HTML postprocess step (#7609)
Cleaner and faster.
2023-05-18 00:21:06 +02:00
Slayer95
0620822ab2
wmlxgettext: Improve parser resiliency for malformed files (#7625)
* wmlxgettext: Improve parser resiliency for malformed files

- WML files with no translatable strings will no longer
crash the script on unbalanced tags (but translatable will).
- .cfg files belonging to man(1) will no longer crash the script.

* Remove stray quotes from textdomain declarations

These are not recognized by the wmlxgettext parser.
2023-05-17 21:40:36 +02:00
Pentarctagon
594f5b3d89 Fix MP lobby tab selection. 2023-05-14 23:55:16 -05:00
Pentarctagon
0f550369b3
Simplify logging options (#7620)
This removes --wconsole, --wnoconsole, and --wnoredirect. Instead these are now handled by --no-log-to-file and --log-to-file.

If logging to file is enabled, then output will be written to the log file. If logging to file is not enabled, then output is written to the terminal. On Windows, a terminal will be created for the output to be written to if wesnoth is not launched from a terminal.
2023-05-14 12:47:43 -05:00
Nils Kneuper
729dcb842e updated French translation 2023-05-14 11:06:44 +02:00
Pentarctagon
30449e11f4 Fixup copy/paste error. 2023-05-13 15:56:08 -05:00
Nils Kneuper
c23af9a8e5 updated Spanish translation 2023-05-13 10:18:09 +02:00
Nils Kneuper
06b4271f88 updated Czech translation 2023-05-13 10:17:14 +02:00
Pentarctagon
f6be887a91
Let wesnothd and campaignd build without SDL. (#7621) 2023-05-12 19:30:38 -05:00
Iris Morelle
dfbd3c7375
Rewrite macOS version report again
This version doesn't rely on custom parsing of the version number from
the (notably *not meant to be parsed*) operatingSystemVersionString
property, and explicitly appends the version number components to the
reported string instead so we don't get weirdness like "Apple macOS
13.3.1 ((Build" from an operatingSystemVersionString value like
"Version 13.3.1 (a) (Build 22E772610a)" (found after the early May
2023 rapid response patch to Ventura).

Additionally, this replaces the clunky version comparison to decide
whether to use the macOS or OS X branding with the @available syntax.

<https://developer.apple.com/library/archive/releasenotes/AppKit/RN-AppKit/index.html>
(Under "Runtime Version Check")
2023-05-12 03:58:26 -04:00
Iris Morelle
68a123df01
campaignd: Fix Xcode warning about prototype-less function 2023-05-11 01:15:27 -04:00
Celtic Minstrel
c53e91ef82 fixup e4b4b1c 2023-05-09 23:14:25 -04:00
Celtic Minstrel
986fb4b471 The whitespace fixer wants to add blank lines there so whatever 2023-05-09 23:11:16 -04:00
Celtic Minstrel
d4adbdcf91 Fix [clear_variable] not working on a variable name that happens to be a number 2023-05-09 23:10:26 -04:00
Celtic Minstrel
e4b4b1c6ce Make sure Lua GUI2 dialogs are properly cleaned up in the event of an exception 2023-05-09 23:10:00 -04:00
newfrenchy83
f9a94e1312 [1.17] add [filter_ability] in [filter] events and [effect]remove_ability and [filter_ability_active] in [filter] events
see https://forums.wesnoth.org/viewtopic.php?p=681371#p681371 in forum

the type of ability used is also filtered.
2023-05-09 19:26:10 +02:00
gfgtdf
e9c9bb62d5 small update_viewing_player refactor
gui_->show_everything() also depends on the blindfold
feature somehow, that's why the previous implementation
avoided using it and just disabled show_everything in
play_controllers constructor. However i now think
it's safe to use it here.
2023-05-09 16:50:53 +02:00
gfgtdf
9530ad1bc7 add test for no [side]s in [scenario] 2023-05-09 16:50:50 +02:00
gfgtdf
dd9fcccbd3 skip_empty_sides fixes
- We now don't show an error message in the log when no
  [side]s are defined, (this broke the unit test).
- We avoid calling `gui_->set_playing_team` when no [side]s
  are defined.
- skip_empty_sides now doesn't throw, previously the behaviour
  was inconsistent when there were no non-null sides. (it didn't
  throw when there were no sides at all)
- skip_empty_sides now returns two values instead of changing
  the parameter. (this was mostly to make the implementation
  easier)
2023-05-09 16:50:46 +02:00
Steve Cotton
a9ed25e694 Reorder WML includes so manual tests can use the unit-test macros
Move the line that includes data/test/scenarios/manual_tests/ below the
line that includes data/test/macros/. This allows a manual test to use
the setup in COMMON_KEEP_A_B_C_D_UNIT_TEST, putting units in the right position
to test combat and leadership abilities.

Also improve comments in data/test/_main.cfg.
2023-05-08 10:58:22 +02:00
doofus-01
de29611474
New wall terrain type 'Xuf'
1.17 - more overgrown walls (#7602)
2023-05-07 20:20:20 -07:00
Slayer95
36ed4641cd
wmlxgettext: Error out on unused #po, #po-override directives (#7573)
* wmlxgettext: Error out on unused #po, #po-override directives

* wmlxgettext: Ignore out of domain #po, #po-override comments

* wmlxgettext: Properly clear pending #po, #po-override on textdomain switch

* Fix misplaced #po comments in DiD, SoF, TSG, Editor

Some of these ugly relocations can be reverted in or after #7570.
2023-05-08 00:08:21 +02:00
Slayer95
03ab458ce0
wmlunits: Include nested dependencies in -L for -B to process (#7603) 2023-05-07 23:57:10 +02:00