84739 Commits

Author SHA1 Message Date
Gothyoba
29c8e730d0 TDG: Capitalize Silverback in Unit Description
https://wiki.wesnoth.org/Typography_Style_Guide

According to the Typography Style Guide, races shouldn’t be capitalized but unit types should be. Silverbacks aren’t a species, and in this case I think this refer to the Unit Type.
2025-01-24 06:59:48 +11:00
Subhraman Sarkar
1538694ee6 changelog: add new on_link_click handler. 2025-01-23 17:10:09 +05:30
Subhraman Sarkar
5c97754115 lua: expose rich_label link handling mechanism
Adds `on_link_click` setter. The function set to this will be called with the target of the clicked link.
2025-01-23 09:14:54 +05:30
Gothyoba
ebf04808d3 Update coordinates for Movrur in THoT S1
Was supposed to have been changed with the map revision, but was not saved properly.
2025-01-23 08:03:55 +11:00
pentarctagon
68ed0aeea7 update for campaigns change 2025-01-22 11:22:10 -06:00
Wedge009
6a3643926e TDG: Minor corrections/revisions.
[ci skip]
2025-01-22 22:14:36 +11:00
Subhraman Sarkar
8ec8b5e0cb help: readd HttT
And rewrite the section to be more user-friendly in that process.
2025-01-22 14:20:14 +05:30
Charles Dang
8ee2a26634 Fix width weirdness with add_overlay_text
Closes #9633
Fixes #9591

This could also have been fixed by simply adjust the clip rect origin on left alignment (such an adjustment was present for the other alignments), but honestly there's no reason to be messing with the clip rect here when we can set the width directly. The floating_label internals would set the maximum text width to clip rect if no max with was otherwise specified.
2025-01-22 03:15:33 -05:00
pentarctagon
e8da69fe63 Fix schema validation error
excluding via ifndef instead of adding a translation mark because it makes no sense for that line to be translated
2025-01-21 23:34:26 -06:00
Dalas121
7048f68303
TDG: fix minor string issue 2025-01-21 20:00:54 -06:00
Dalas121
de0dd25a52
TDG: fix minor string issue 2025-01-21 20:00:37 -06:00
Dalas121
74da2a1724
TDG: add to schema, and fix schema issues (#9786)
While adding TDG to mainline, I missed adding it to the schema. As a result, a lot of issues went unnoticed.

This PR adds TDG to the schema, and fixes the various discovered errors. This PR also updates the schema to reflect the engine supporting multiple [filter] tags in events, and to reflect the engine supporting [change_theme] without keys.
2025-01-21 19:50:18 -06:00
Dalas121
78b86777b5
Move files from data/resources to data/internal (#9787)
"resources" naming isn't correct - most of these files aren't resources.

Instead, we move the actual resources to data/internal/resources, and the other files to data/internal.
2025-01-21 19:50:00 -06:00
Wedge009
d26f2d45a3
TSG: Various small corrections and revisions (#9771)
* TSG: Various small corrections and revisions.

[ci skip]

* add "without save-loading" to sg_help

---------

Co-authored-by: Dalas121 <33790750+Dalas121@users.noreply.github.com>
2025-01-22 08:52:45 +11:00
Gothyoba
85f0148805 THoT S1 Map: Aesthetic Revision 2025-01-21 12:42:03 -06:00
Dalas121
ef666dbcf4
TDG: fix unavailable right-click spellcasting menu 2025-01-21 10:23:41 -06:00
Dalas121
74ae75186c
Changelog: create add-tdg-remove-dm.md
Changelog entry for "The Deceiver's Gambit" and "Delfador's Memoirs"
2025-01-21 09:15:55 -06:00
Wedge009
d7ffa12bc3 Encyclopaedia: corrections following #9253.
[ci skip]
2025-01-21 08:00:59 -06:00
Wedge009
c73444a12f EI Final Battle: Em-dashes instead of minus sign.
[ci skip]
2025-01-21 08:00:12 -06:00
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