84670 Commits

Author SHA1 Message Date
Steve Cotton
2a82041812 Labeler: recognise the files of the TDG campaign 2025-01-21 12:05:07 +01:00
Steve Cotton
307b2cff95 Add the PO files for wesnoth-tdg
Many of the CI builds expect the .po files to already exist, and
fail without them.

For SCons builds, the .pot file needs to exist, because po/SConscript
uses the existing files to find out which textdomains it needs to
update.

It was already added for CMake, but keeping the list in alphabetical
order makes maintenance easier.
2025-01-21 12:04:25 +01:00
Charles Dang
3f746900fe
Refactor unit bar drawing (#9763)
This fixes an issue where the bar borders would always be one pixel wide, regardless of the zoom level or game render scaling which made the bars stand out badly amongst the pixel art. This brings us closer to the old look from the surface-drawn days.

This is also an experiment with using normalized, fractional coordinates for rendering instead of absolute screen coordinates. I'd like to take this approach in more places, so this is a good proof of concept.
2025-01-21 01:04:50 -05:00
Gothyoba
10d8c54c7c Keep gameplay help page up to date with new tutorial
Replaces mentions of the old tutorial with TSG in the help page and changes the recommended begginer campaigns to TDG or AToTB. There’s also some slight wording changes.
2025-01-21 13:02:54 +11:00
Dalas121
8133cd56d9
The Deceiver's Gambit: add TDG to mainline, replacing DM (#9726)
Around two years ago Yumi asked me to create TDG as a replacement for Delfador's Memoirs, and gave me a rough script - the campaign covers Delfador's youth and Eldred's betrayal of Garard. Its gameplay includes a spellcasting mechanic for Delfador.
2025-01-20 11:22:46 -06:00
Thewodoros
a08d8f458a Make nested frostbite event "side 1 refresh"
That way it's clearer that it's not created for all sides.
2025-01-19 13:31:13 -06:00
Thewodoros
0070e81438 Make the main frostbite event "turn end"
That way it doesn't depend on the number of sides.
2025-01-19 13:31:13 -06:00
Thewodoros
729034988b Improve frostbite explanation event
Make the speaker either Gweddry or Owaec, whoever doesn't have the
elixir effect.
2025-01-19 13:31:13 -06:00
Gunter Labes
b784157f68
Fix query parameter handling 2025-01-19 19:22:43 +01:00
pentarctagon
29d949ba4b 1.19.8+dev 2025-01-19 11:55:40 -06:00
pentarctagon
11523799e8 1.19.8 1.19.8 2025-01-19 11:53:14 -06:00
pentarctagon
1c34429027 pot-update and regenerate doc files 2025-01-19 11:51:22 -06:00
pentarctagon
a59074b498 changelog_entries 2025-01-19 11:46:48 -06:00
pentarctagon
8920489f54 Revert "remove unused handler"
I'm not sure how it's possibly useful, but apparently this can be sent by the python client

This reverts commit fdc8d92fe6c38c995e0ef02c7fd219841da41ad8.
2025-01-19 09:48:05 -06:00
pentarctagon
fdc8d92fe6 remove unused handler 2025-01-19 09:36:31 -06:00
pentarctagon
cd8e88db7b add manpage documentation
rename some lambdas

fix the admin delete checking against the add-on's username/password information
2025-01-19 09:31:28 -06:00
Gothyoba
a35291dc1c Change display name of Tutorial Achievement Group
Changed from Tutorial to Old Tutorial given the TSG Rework.
2025-01-19 09:18:20 -06:00
Gunter Labes
19d957e925
Avoid logging sensitive data 2025-01-19 12:59:54 +01:00
Gunter Labes
f3383e1f0f
German translation update 2025-01-19 11:46:09 +01:00
Charles Dang
7bd6896261 MP/Method Selection: reduce excess borders 2025-01-18 21:40:50 -05:00
Charles Dang
0c8d528dce Rect: replace subrect with precise_subrect
Turns out the loss of precision over subsequent uses of subrect results in incorrect rendering, even if you round in point_at.

This makes it a non-member function so it can work with both rect and SDL_FRect as input.
2025-01-18 21:39:52 -05:00
Thewodoros
5e3392572b Improve message readability
Strikethrough text reads easier when it's more than on word.
2025-01-18 16:08:40 -06:00
Thewodoros
8869a68c60 Fix elixir description message
It seems to have full effect on cavalry.
2025-01-18 16:08:40 -06:00
Thewodoros
4655085c9a Improve Soradoc and outposts location descriptions
Make Soradoc the easternmost town, and the outposts even further east,
which seems more natural description according to the current maps.
2025-01-18 12:35:46 -06:00
Charles Dang
5dabb53088 GUI2/Units Dialog: simplify header handling
Any column with a sorter will automatically be shown. Also removes the show_header config option from the Lua wrapper.
2025-01-17 22:55:42 -05:00
Charles Dang
2371b8cc0d GUI2/Listbox: explicitly show header toggle when setting sorter
This is mainly for the units dialog code, which hides all the sorters beforehand. I decided to put it here, but in future we might want it to be more targeted, in case it becomes an unexpected side effect.
2025-01-17 22:53:35 -05:00
Charles Dang
a6afd31632 Don't bind lambdas 2025-01-17 21:02:15 -05:00
Charles Dang
3aaa93a65a Clear window backbuffer before rendering
Even though we direct all intermediate rendering to our own backbuffer, SDL recommends clearing the window backbuffer before drawing to it. I don't know if this changes anything with our usecase, but best to follow their recommendations, since SDL interacts with the underlying display driver.
2025-01-17 21:00:47 -05:00
Severin Glöckner
071da35a6a wmllint: more precise rule
More precise rule to not match units in Ageless.
2025-01-18 02:07:22 +01:00
Gothyoba
f1b5f271cc Fix typo 2025-01-18 10:18:33 +11:00
Gothyoba
b8f2af62d0 Warn against old tutorial in description 2025-01-18 10:18:33 +11:00
Dalas121
5b5e29ffcb
TSG: use data/resources (#9757)
When TSG was created (and when TSG's PR was created), data/resources did not exist. Now that it does, replace TSG's campaign-specific weather with data/resources.

To fix CI errors, replace the old resource "extra_defines" system with manual includes instead (including in EI).
2025-01-17 16:49:37 -06:00
Subhraman Sarkar
939ba4f7b4
texture: use size instead of w/h pair and reduce direct SDL calls (#9754)
Co-authored-by: Charles Dang <exodia339@gmail.com>
2025-01-17 13:58:02 -05:00
Nils Kneuper
ae9bd4167a updated British English translation 2025-01-17 19:48:49 +01:00
Nils Kneuper
a6a3510283 updated Dutch translation 2025-01-17 19:47:30 +01:00
Gothyoba
257215a689 Fix typo in TSG Comment
becuase -> because
2025-01-17 13:33:35 -05:00
Thewodoros
5b04e523b9 Allow undo move if not picking item or elixir
If we select the option to leave the item on the ground, we should be
able to undo and move another unit to take it.
2025-01-17 11:09:12 -06:00
Gothyoba
063670cd38
Encyclopedia Revision for TSG: Re-Revised (#9253)
An encyclopedia revision partially for TSG: Re-Revised:

    Explain BF (Before the Fall) in the calendar page. This is not used in mainline, but appears in the game’s code and can be be used by UMC or future mainline content.

    Made spacing throughout the encyclopedia consistent.

    Added a detail on Mount Morogor being the highest active volcano in Morogor, not just a random volcano. This makes it appear more sensible that it is included.

    Added the Island of Gaall and Isle of Omarath to Morogor, shown WoF. IIRC no other islands in Morogor are named in WoF.

    Mentioned Kerlath and the Far South at the end of the Wesnoth description.

    Removed reference to Blackmore being Wesfolk to prevent contradicting certain add-ons

    Clarified Kerlath is the southernmost province in the Westin description, not just a southern province.

    Added Southport to the Wesnoth section from the TSG Re-Revision.

    Mentioned farmland in the periphery of Elensefar, mostly to fix a minor nagging lore inconsistency where Elensefar is always shown on the island in the Great River in scenario maps, but is shown south of it in the large map of Wesnoth. Since there are usually some village around Elensefar, some farmland made sense.

    Removed the Southwood due to its removal from the TSG Re-Revision.

    Added the Vale of Blossoming Trees and Lake Aelin to the section on Southwestern Elves.

    Replaced "men" with "humans" in the Northlands description, which I accidentally copied from the old description. I see no reason for this not being gender-neutral. (Actually, these small changes could be merged separately earlier)

    Mentioned Saurgrath in the Northlands.

    Replaced Bay fo Jotha in Jotha’s descriotion with “South of Bitok”

    Added a description of the Mourned Hills which mentions Lmarig, as suggested by CelticMinstrel

    Added the Acanclave Citadel in the Far North from the MP Map

    Remove explicit mention of Dunefolk in the Far South and mainline Isanbar and the Ashland Desert.
2025-01-17 10:35:57 -06:00
Gunter Labes
b5e92f6418
Fix determination of changed files in PRs 2025-01-17 17:12:45 +01:00
Dalas121
e4c35031f7
The South Guard: add Dalas's tutorial revision to mainline (#9682)
This PR replaces the current TSG with Dalas's TSG tutorial revision from the addon server.
2025-01-17 08:26:44 -06:00
Charles Dang
5962f6b755 Bump vcpkg baseline 2025-01-16 17:51:33 -05:00
Thewodoros
072392d16b Remove unused BRAZIER_ILLUMINATION schedule
Instead of it, other more specific schedules
(BRAZIER_ILLUMINATION_LONG_NIGHT, BRAZIER_ILLUMINATION_SECOND_WATCH,
BRAZIER_ILLUMINATION_MORNING) are used in the scenarios.
2025-01-16 07:30:14 -06:00
Thewodoros
cada5ce359 Remove unused time of day
It was used by removed NORTHERN_WINTER_SCHEDULE.
2025-01-16 07:30:14 -06:00
Dalas121
d498ea2182
amlas resource; add comment explaining [allow_undo] 2025-01-16 07:17:51 -06:00
Gunter Labes
99e5abcf19 Add missing keys to the schema 2025-01-16 14:03:23 +01:00
Subhraman Sarkar
1c460f17a1 celes theme: fix infinite preprocessor loop 2025-01-16 14:47:12 +05:30
Subhraman Sarkar
1be5ec32c2 celes theme: various adjustments
1. make the gold color less bright
2. add hover states to radio and checkbox and update disabled state
3. make hover states of language and about button consistent with other buttons (white -> yellow)
2025-01-16 11:26:12 +05:30
Pentarctagon
d8abcff103
wesnothd: use lambdas instead of rs_base (#9747) 2025-01-15 21:14:00 -05:00
Iris Morelle
5a7bd7c51f
gui: Better positioning of submenus in the main UI (#8517)
This makes it possible to fetch the on-screen coordinates of a drop
down menu item as the menu is dismissed by clicking on it so the
caller can use these coordinates to make a more informed decision as
to where to spawn a submenu, improving the previous mechanism wherein
the submenu would have its top left corner set at the mouse's location
which would produce different results depending on where exactly in
the menu item's box the mouse was at the time the parent menu was
dismissed.
2025-01-15 21:02:02 -05:00
Subhraman Sarkar
20c95a472c advanced preferences: simplify name
removed redundant information.
2025-01-16 06:38:38 +05:30