Commit Graph

30204 Commits

Author SHA1 Message Date
Elvish_Hunter
8dc12cfea2 GUI.pyw: use the Windows API to detect the user's language
Fixes #9972.
2025-03-15 16:53:34 +01:00
Dalas121
4b84de63f3
Revert "Use troll-hero-alt.webp portrait for Great Troll (#10025)" (#10028)
This reverts commit 9737595d95, following comments by Soliton in #10025.
2025-03-14 07:52:01 -05:00
Dalas121
ddb0e83c2b
EI S14: undefine GOLD_PICKUP macro 2025-03-13 09:19:25 -05:00
GreenScarab
9737595d95
Use troll-hero-alt.webp portrait for Great Troll (#10025) 2025-03-13 09:18:54 -05:00
OrekOrek
6184817458
HttT S19c: Fix and improve drake spawn algorithm (#10014)
Drake spawn algorithm is fixed and improved. A drake nest is added to the map. Drake nests are separated into 2 types.
2025-03-13 09:16:59 -05:00
Subhraman Sarkar
9850b49b81 help: fix unknown unit page 2025-03-13 18:54:56 +05:30
Charles Dang
5377ed7d9f GUI2/Label: set default width for title screen tip label
This seems to mitigate #9885, but I could not tell you why...
2025-03-13 01:24:28 -04:00
AlexanderLu98
df718c2ef5 Fix shadow inconsistencies in Lancer/Horseman breeze and peasant attack frames 2025-03-12 19:49:21 +01:00
Charles Dang
1f4e164e41 GUI2/Help Browser: set a default width for topic labels
Prevents them from reducing in width when searching topics
2025-03-12 01:06:12 -04:00
Charles Dang
987004d09c Font: remove old workaround for light weight fonts
Testing now, pango weight markup correctly works with the Lato weight variant files present and breaks with them missing. Seems the issue I documented back in 2018 is noo longer the case, and thus we don't need this workaround.
2025-03-11 21:45:51 -04:00
rodolphecombe
f68c4e8163
Add [have_side] tag 2025-03-11 20:11:40 +01:00
Subhraman Sarkar
bd6f250c12
canvas: draw circle using cairo (#10007)
the circle is now antialiased using cairo.
2025-03-10 16:04:49 -04:00
Dalas121
55c228fcbb
TDG S06: clarify scenario objectives (#10017)
TDG S06 requires the player to both rescue Asheviere and also survive until turns run out.

With this commit, re-show objectives after rescuing Asheviere, and strikethrough the completed ones.
2025-03-10 11:36:43 -05:00
Gothyoba
14fbe59049 AToTB S3 Map: Aesthetic Revision 2025-03-09 09:22:00 -04:00
Gunter Labes
49564ed86c
Fix some indentation and make CI abort if wmlindent errors
Indentation was fixed by adding a newline to constructs with excessive density
and running wmlindent again. While the constructs were not particularly
readable it wouldn't hurt if wmlindent would cope a bit better.
2025-03-08 09:48:53 +01:00
Subhraman Sarkar
feb9bdac45 help browser: add search functionality 2025-03-07 20:43:23 +05:30
Subhraman Sarkar
24d3ba375a help: use heavy font weight for emphasis instead of serif 2025-03-07 11:45:24 +05:30
Tahsin Jahin Khalid
cf3eaff74c TSG: sg_help.cfg: use correct variable call
closes #10003
2025-03-06 14:01:21 -05:00
Charles Dang
0d407eacd0 GUI2/Label: remove title_script definition
The help browser now uses the standard title definition. This makes its appearance consistent with other title elements in that theme. Before, it had the wrong color in the celes theme and was the only title in the parchment theme using the script font.
2025-03-06 13:12:49 -05:00
Charles Dang
b655186ec4 GUI2/Story Screen: bump title size 2025-03-06 11:47:27 -05:00
Charles Dang
46be4a2bcc Fix duplicate file suffixes 2025-03-06 11:35:17 -05:00
Charles Dang
ebffc334ee GUI2: remove GUI_WINDOW_PERC_FIXED_SIZE_CENTERED 2025-03-05 13:13:09 -05:00
Subhraman Sarkar
0d43a49c71 unit: add dismissable and block_dismiss_message
Used in conjunction with `Dismiss` button on Unit Recall Dialog.
2025-03-05 21:55:53 +05:30
Tahsin Jahin Khalid
96e32d8dae
THoT-S3: make AI sides smarter (#9992)
- Side 2 will be less reckless and more defensive
- Side 3 will avoid making stupid moves, like placing units on water for easy kills

Co-authored-by: Tahsin Jahin Khalid <5283677+knyghtmare@users.noreply.github.com>
2025-03-05 22:22:39 +06:00
Charles Dang
3fa8f38a9c GUI2/Help: bump text area width 2025-03-02 23:12:27 -05:00
Charles Dang
da414d75e3 GUI2/Help: set max width for topic names (resolves #9886)
Not a perfect fix by any means (I really don't like having to add new label definitions just to set max_width), but this is currently the canonical way to do so that doesn't involve characters_per_line.
2025-03-02 21:47:28 -05:00
Charles Dang
4c6bbe1342 MP/Lobby: alow profile and match history buttons to grow
Was fine on the old theme (in English, at least), but there was weird empty space on the new modern theme.
2025-03-02 16:01:17 -05:00
Subhraman Sarkar
ec765138ac
Editor Adjustments (#9957)
Map/Scenario Editor: Adds a "Convert to Scenario" option to File menu. Adds enough sides based on starting positions on map.
Update help: Save As Scenario -> Convert to Scenario
2025-03-02 21:01:07 +05:30
Charles Dang
55dc0a8215
GUI2: harden theme definition parsing (#9974)
- Ensure current_gui is a valid iterator after calling init(). It should match default_gui
- Ensure current_gui is always set to guis.end() if the requested theme isn't found in switch_theme().
  It's initialized as such in gui_definition.cpp, but we shouldn't rely on that always being the case,
  especially in a function that changes it.
- Only create one schema validator for all themes. Previously, it would have been created anew for
   each addon with a custom theme.
- Add explicit exception handling for an invalid schema path or invalid gui2 entry point
- Add explicit warning for addon themes with the id "default"
- Catch `wml_exception` when creating gui_definition objects for all themes (previously, this was only
   caught for add-on themes)
- Adjust error messages
- Fix duplicate theme errors when reloading cache (addresses one part of #9781). GUI2 definition
  changes now take effect without the need to restart the entire game. A cache reload is sufficient.
- Use `_main.cfg` for core theme entry points
- Include macros at global core GUI2 score instead of only in the default theme (they were always
  available to both themes, this just makes that clearer)
2025-03-02 00:12:32 -05:00
Charles Dang
e8c164d377 Fix schema whitespace 2025-03-01 11:41:21 -05:00
Gunter Labes
3db91fc0d2
Typo fix 2025-03-01 11:18:59 +01:00
Wedge009
b8ec44a77e EI S11: Improvement upon 7e461ae2f5.
[ci_skip]
2025-03-01 10:39:21 +11:00
Dalas121
6234ef1453
Update Firebomb Ant and Grand Dragonfly XP (#9963)
Increase XP from 80 to 100, which is more standard for L2 units with no L3 advancement.
2025-02-27 08:30:26 -06:00
Gunter Labes
7e461ae2f5
Typo fix 2025-02-26 23:56:43 +01:00
Refumee
63409f7492
TDG: update Saurian Juvenile sprites (#9945)
Updating the sprites for the saurian juvenile in TDG, and added a bobbing standing animation. Colorset of the Saurians respects the ColorMap of the Saurians with some exceptions in the clothing.
2025-02-26 12:27:10 -06:00
Dalas121
cfed9ef69e
TDG: remove silent raven speed reduction, and use TRAIT_SLOW instead
TDG gives Delfador access to a loyal raven/dire raven/war harbinger. Currently, the speed for this unit is capped at 6, to prevent it from being overly-powerful when compared with other options.

revolting_peasant pointed out that this speed cap makes the raven's stats inconsistent with the numbers in "view unit type". To resolve that, this PR replaces the speed cap with {TRAIT_SLOW}.
2025-02-24 16:24:59 -06:00
newfrenchy83
43c751971a add 'invulnerable' status for prevent unit die during tests 2025-02-24 10:44:41 -05:00
Aardvark
fbe2166c33
World Conquest: Remove hard coded trainer indices (#9408)
---------

Co-authored-by: Richard <93877353+richardalbee@users.noreply.github.com>
2025-02-23 15:37:26 -06:00
Charles Dang
1975ffdadc GUI2/Achievements: set max_width for title in label definition
Also some border tweaks
2025-02-23 15:04:20 -05:00
Dalas121
58030bde84
TDG: some S00 onboarding improvements (#9941)
Based on: https://forums.wesnoth.org/viewtopic.php?p=696551#p696551

Makes the "Delfador does not use XP to level-up" message less likely to appear in the first scenario, and elaborates on how Delfador does level-up.
2025-02-23 08:28:14 -06:00
Gothyoba
d4e50f3718
Improve Galleon Unit Description (#9939)
* Improve Galleon Unit Description

* Add Wedge/Vultraz suggestions

* Update Galleon.cfg
2025-02-23 08:46:27 +11:00
Gothyoba
1aa2ee0e84
Use orcs instead of goblins in Sea Orc unit description (#9934)
* Use orcs instead of goblins in Sea Orc unit description

"a great leap for all orcs" makes more sense since they are supposed to be orcs.

* Update Sea_Orc.cfg
2025-02-23 08:04:54 +11:00
Gothyoba
ed731e739c
TDG: Improve Custom Saurian Unit Descriptions (#9935)
* Improve Saurian Juvenile Unit Description

* Improve Suarian Devotee Unit Description

* Improve Saurian Spike Unit Description
2025-02-23 08:04:22 +11:00
newfrenchy83
140d0a6ea4 Integrate special ability events into these abilities.
This had not yet been done in the mainline.
2025-02-22 14:04:29 -06:00
newfrenchy83
cee370683d
Fix “filter_adjacent_location” not working in ability (#9079) 2025-02-22 14:04:09 -06:00
Gothyoba
8a8fe5b0a8 Remove instance of 4 repeated exclamation marks 2025-02-21 12:20:51 -05:00
Gothyoba
ad9d81b52a Capitalize Kingdom in TRoW Campaign Deacription 2025-02-20 17:01:34 -05:00
Tahsin Jahin Khalid
3a30dc6f78
SotBE-S16: tweak start event (#9931)
Make Orga the Orc Warlord move to his keep and then face the player, Kapou'e

Co-authored-by: Tahsin Jahin Khalid <5283677+knyghtmare@users.noreply.github.com>
2025-02-19 20:48:13 +06:00
Gothyoba
add9c3d529
Update Unit Description Capitalization (#9923) 2025-02-18 16:24:04 -05:00
Gothyoba
de1c52a190 AToTB S2: Aesthetic Revision 2025-02-18 15:44:27 -05:00