Commit graph

83861 commits

Author SHA1 Message Date
pentarctagon
2991c38955 change back to dot 2024-07-03 08:47:13 -05:00
Severin Glöckner
bf3cf83dfd German translation update 2024-07-03 12:38:29 +02:00
Pentarctagon
6812eac403
show a message when nothing exists to migrate (#9025) 2024-07-02 18:14:06 -05:00
pentarctagon
f1b90e91a9 fixup 2024-07-02 17:49:07 -05:00
Steve Cotton
91f59a794b wmltools3: fix regexp compatibility with Python 3.12 2024-07-02 19:42:13 +02:00
Steve Cotton
17c202d3fb GUI2/Game Load: Apply filter when changing directory
When the user types something into the filter box and then changes to
a different version, apply the filter immediately instead of showing
the full list of files.

The drop-down to switch between directories is hidden unless savegames
from other versions are detected. The button will appear at the
bottom-left in master, and at the top of the dialog in 1.18.
2024-07-02 16:02:26 +02:00
pentarctagon
b77b983319 address feedback. 2024-07-01 13:51:40 -05:00
pentarctagon
171423bb8a remove scons' use of removed relative prefs dir functionality 2024-07-01 13:51:40 -05:00
pentarctagon
c6a4d1d4da deduplicate binary paths list 2024-07-01 13:51:40 -05:00
pentarctagon
cc3a02bd32 Fix finding the current exe name on macOS 2024-07-01 13:51:40 -05:00
pentarctagon
d911a86a8f ensure the userdata is initialized before trying to use the preferences 2024-07-01 13:51:40 -05:00
pentarctagon
7895b843fa Prevent program hang when compiled with relative path PREFERENCES_DIR
Fixes #2000
Fixes #9007
2024-07-01 13:51:40 -05:00
Toom
081866af7b
Add unit_hits, unit_misses events
Added new events "unit hits/misses" to simplify creating events that use attacker+defender hits/misses (issue #7782)
2024-06-30 12:02:55 +02:00
loonycyborg
55b6010f77
appstream manifest: merge <provides> tags to placate flathub's linter 2024-06-29 22:08:32 +03:00
Subhraman Sarkar
103b80ff01
Editor enhancements (#8903)
Map/Scenario Editor

* Rename Load Map to Load Map/Scenario (since it can load both), Edit Scenario to Edit Scenario Settings, Save Map to just Save.
* Rearrange menu order
* Add icon for the preferences menu item (used the preexisting settings.png icon)
* Open folder correctly at Add-on's scenario directory instead of editor/scenarios. (#8910)
* Show Save Scenario As only for Scenarios
* Use the settings.png icon for Preferences menu item
* Add functionality to "Loyal" checkbox (Unit tool -> Place unit -> Right click menu) (#8445)
* Show warning when maps are saved in scenarios folder or vice versa (#8911)
* Unit List moved to Units menu from File menu to reduce some pressure from the latter.
* Status Table menu item disabled since it does nothing. (Should be reenabled once the functionality has been added.)
* Improve reload functionality in Editor (F5). Reload happens directly from memory and no temp files are needed. Also, the undo/redo stacks will be preserved. (#9024)

Time Schedule Editor

* Browse buttons now set wesnoth style paths instead of just pasting the absolute path returned by the file dialog
* Change text boxes from inactive to uneditable.
* Code generation improvements
* Add copyright notice to tod_new_schedule
* Confirmation messages
* Preview buttons for image and sound files and new icons for the preview button (2 sets : preview image and preview sound)

Unit Type Editor
 * Confirmation messages
 * New icons for the preview button (2 sets : preview image and preview sound)

Add-on menu
 * Two new menu entries for (1) opening the Add-on selection dialog, (2) opening the folder corresponding to the Add-on
The open add-on folder option shows a GUI2 file dialog at the add-on's folder which can be used to open any file. If it is a loadable map/scenario it will be opened in the editor, otherwise the OS's default application for that file will be opened.

File Dialog
 * Redesigned with new icons
 * New Open External button that opens selected file/folder in the platform's default application (independently of what pressing Open would do). This could be used to quickly open a folder or preview the file before actually selecting it.
 * Extension checking and filename validation. (See #8911)
2024-06-29 21:56:54 +05:30
Nils Kneuper
28a6a2a8b1 updated Chinese (Simplified) translation 2024-06-29 14:44:17 +02:00
Nils Kneuper
18af036313 updated French translation 2024-06-29 14:42:55 +02:00
Nils Kneuper
bcd370c149 updated Bengali translation 2024-06-29 14:28:43 +02:00
Nils Kneuper
d232827762 updated British English translation 2024-06-29 14:27:00 +02:00
gfgtdf
88113a738d
Handle require_modification as the client expects
Since 05d1e4b9ba, the client interprets require_modification="" as
defaulting to "yes". However, wesnothd was still defaulting it to
"no", causing an error message when trying to join games.

Fixes #8805 "Add-on version check prevents joining game".
2024-06-27 10:25:23 +02:00
Charles Dang
a1fe293b88 color_t: flip hex check logic for readability
Improves 6f32635788
2024-06-27 00:28:18 -04:00
Charles Dang
b505f8f744 Replace stray uses of std::make_optional
C++17 CTAD makes it unnecessary.
2024-06-27 00:27:15 -04:00
pentarctagon
291be986f6 Revert "GUI2/Addon Manager: make addon id more prominent, debug-only"
This reverts commit 78620c7d61.
2024-06-25 19:18:42 -05:00
pentarctagon
dc8637b08b Revert "GUI2/Addon Manager: hide addon id label earlier"
This reverts commit d1bf5dd778.
2024-06-25 19:18:35 -05:00
Gothyoba
16c4a57556
Tutorial: AToTB is a "novice" campaign 2024-06-25 18:42:32 +02:00
Steve Cotton
87b6371523 AToTB: Warn in the description how hard the challenging difficulty is 2024-06-25 14:03:26 +02:00
Charles Dang
19022f1181 color_t: make macOS happy 2024-06-24 20:00:39 -04:00
Charles Dang
1d5d964bb3 Expose color_t errors in palette ops 2024-06-24 20:00:39 -04:00
Charles Dang
675d963016 color_t: use utils::from_chars 2024-06-24 20:00:39 -04:00
Charles Dang
6f32635788 color_t: validate hex string input (resolves #9030) 2024-06-24 20:00:39 -04:00
Nils Kneuper
e67a91caf2 updated French translation 2024-06-22 23:07:25 +02:00
Nils Kneuper
fb71eac1b8 updated Ukrainian translation 2024-06-22 23:05:47 +02:00
newfrenchy83
77d023690a Generalize the use of max_value and add the min_value attribute
In the case of [leadership], the fact that the values of each ability can be added when cumulative=yes can justify the addition of limit values not to be exceeded, but this can also apply to heals and [regenerates] with the use of 'add' or 'multiply'.

As for [resistance], it already uses max_value, but if cumulative=yes, then all max_values can add up which could be problematic.
2024-06-19 09:18:54 -05:00
Charles Dang
d1bf5dd778 GUI2/Addon Manager: hide addon id label earlier
Should fix a find_widget failure on small resolutions when it's "hidden"
in the details layer of the widget stack.
2024-06-19 00:33:33 -04:00
newfrenchy83
42c72ce1f9 Fix damage_type types show in unit attack window
If [damage_type]apply_to= is applied to a unit that does not have the range attack equivalent to that of the user this type will still be shown, which should not be.
2024-06-18 22:39:57 +02:00
pentarctagon
1712b357c2 1.19.1+dev 2024-06-17 10:50:57 -05:00
pentarctagon
6189964a77 1.19.1 2024-06-17 10:49:01 -05:00
pentarctagon
d63e06d87a pot-update and regenerate doc files 2024-06-17 10:33:41 -05:00
pentarctagon
5e62283646 changelog_entries 2024-06-17 10:24:27 -05:00
Subhraman Sarkar
0a4b2d3202 use correct method to attach the signal
the signal is "on_left_click", so logically the correct method is connect_signal_mouse_left_click.
2024-06-17 08:48:13 -04:00
pentarctagon
552cfbca32 add a bit of extra logging 2024-06-16 23:19:02 -05:00
pentarctagon
7ac6a78893 Explicitly specify the type when returning pref values
Otherwise bool preferences at least seem to always just return false.
2024-06-16 21:43:45 -05:00
Gunter Labes
6d6bb8dc0c
Update generator calls since the method was removed in 2413e2f 2024-06-16 21:51:16 +02:00
Gunter Labes
11465fec86
Update added/removed header files in Xcode project
Header files added/removd in commits: c4c292fa3b, 43f5644e36, 3279973960, c5b1fa9dfd, d954d307bc, 01f28b12ae, 63d14217c9, 6d77fdc48c, 0e85fac29c, 0b646dec8a and 6c5a8e923d
2024-06-16 20:36:45 +02:00
Gunter Labes
bce74092ba Remove extra parens to avoid compiler warning 2024-06-16 19:53:04 +02:00
doofus-01
ae8556a4c6
dragoon/cavalier animations
* melee anim for Dragoon

* wounded bob for dragoon

* cavalier melee anim

* update copyrights
2024-06-16 08:07:07 -07:00
Pentarctagon
a2993884cd
Add berserk weapon special abilities tests (#8973)
Changes:
* CHECK_STRIKES macro now takes a comma-delimited list of strike counts for when units have a different number of strikes for different weapons, and updates the existing usage in the attacks tests
* Fixed a typo in the attacks_zero test
* Adds tests for berserk as a weapon special ability.

Berserk's handling differs from attacks as a weapon special ability:
* A value less than 1 is treated as effectively infinite rounds of combat (undocumented)
* The cumulative attribute is handled differently - in some cases it sums the values instead of using the highest single value whereas for attacks it always uses the highest single value

Also now exclude data/tests/ from scons pot-update since it was hitting the argument limit for number of arguments to a script.
2024-06-15 20:20:54 -05:00
Nils Kneuper
1ef24e461f updated Chinese (Simplified) translation 2024-06-15 12:49:04 +02:00
Nils Kneuper
e78e5e9ad8 updated French translation 2024-06-15 12:48:04 +02:00
Subhraman Sarkar
441b2bbfaa
network_download_file: replace spaces with tabs (#8999) 2024-06-14 09:05:12 -04:00