Commit graph

84495 commits

Author SHA1 Message Date
Charles Dang
2bbcd5f814 Clean up and expand ranges compat layer 2024-12-26 22:11:34 -05:00
Charles Dang
6d97ac494e GUI2/Dispatcher: remove connect_signal_on_draw
We no longer use the GUI2 draw events. We should implement the appropriate interface provided by top_level_drawable instead. DRAW is still a valid event for now, but would probably be removed in the future.
2024-12-26 16:27:11 -05:00
gfgtdf
5b63155a23
Update changelog.md 2024-12-26 20:25:48 +01:00
gfgtdf
392b8dc9fb
Use [leader] in the c++ code (#9660)
Added code to convert all  `[side]type=` to `[side][leader]` when the `[scenario]` is read, and the rest of the engine code to only work with [leader], this should fix all possible problems with `[leader]` and also simplify the code a bit

Fixes #7985
Fixes #3742
2024-12-26 20:22:09 +01:00
Subhraman Sarkar
ec0e0992b6 help topic generator: fix typo
also make the help browser a bit wider, otherwise images overlap with text
2024-12-26 12:21:09 +05:30
Wedge009
f360e781c7 Replace non-standard spacing.
[ci skip]
2024-12-26 17:02:14 +11:00
gfgtdf
78e6bdaa29 remove variable that was always false 2024-12-26 03:31:47 +01:00
gfgtdf
4593921b67 fix error in invalid [side]ai_config= 2024-12-26 03:31:47 +01:00
doofus-01
fafa0e7b13
1.19 - Coastal Raider (new ship) (#9616)
* add new ship 'coastal raider', sprite and standing/moving animations mostly by Vilaliy Bakal

* fix raider portrait

* add WEAPON_SPECIAL_NAVAL_RAM

* Iron Raider variant

* better halo glow for fireship

* change race=transport to race=ship
2024-12-25 17:53:26 -08:00
Thewodoros
96a2ff69c9
EI S05: Reduce code duplication when Owaec's side joins (#9678)
Move the code for Owaec's side joining you into a custom event. This code doesn't contain any dialogue, which stays in the enemy leaders' die events.
2024-12-25 12:25:27 -06:00
Thewodoros
507e84e8cb
EI S04c: Fix warning message by Dacyn (#9677)
Avoid the case when Dacyn says the warning after Ravanal already noticed him.
2024-12-25 08:56:49 -06:00
Dalas121
e586f2bcf5
Dwarvish Explorer: reduce resistances from 20% to 10% (#9666)
* Dwarvish Explorer: physical resists reduced from 20% to 10%, melee damage increased from 10 to 11.
2024-12-24 11:35:02 -06:00
Pentarctagon
d9ef464b1e
add validation for icons that are too large (#9667) 2024-12-23 23:12:52 -06:00
Charles Dang
0badadaffe GUI2/Text Box Base: remove manual callback handling
Instead, register a NOTIFY_MODIFIED handler. Note I need to fix said event not firing when cutting text from the box.
2024-12-23 14:30:25 -05:00
Discontinuum
4475260e68
Nerf of Orcish Crossbowman (#9509)
* Orcish Crossbowman: melee 6-3 -> 4-3, experience to level 43 -> 57
2024-12-23 12:30:24 -06:00
Thewodoros
868cb845f0
EI S04c: Improve unit filters in scenario end dialogue (#9671)
Use the survivor trait instead of the type in case the unit has advanced a level.
Also remove unit type filter for side 8 because it's redundant.
2024-12-23 11:53:57 -06:00
Gothyoba
a74b39da25
Buff Dune Warmaster (#9534)
* Dune Warmaster: HP 59 -> 61, scimitar damage 9 -> 10
2024-12-23 08:38:10 -06:00
Charles Dang
f73e2b641b Game Board: remove non-const overload of get_visible_unit
This was unique to this class, since the base class only implemented the const version. It was only needed for the whiteboard, and on closer inspection none of of the mutable references therein actually needed to be mutable. Marked them all const and removed the offending getter from game_board.

Note that the non-const overload had the same functionality as the const overload in the base class, only implemented via `find_visible_unit`.
2024-12-22 09:45:10 -05:00
Charles Dang
001c90c1fc GUI2/Listbox: add header/footer size only if visible
Little hacky, since this supports the case of manually hiding the grids instead of simply not populating them (see #9499), but it prevents needing to change widget::get_best_size while I figure out a more comprehensive solution.
2024-12-22 08:18:36 -05:00
Nils Kneuper
11eaca1277 updated Hungarian translation 2024-12-22 00:34:36 +01:00
Nils Kneuper
c9da910fb8 updated Bengali translation 2024-12-22 00:33:14 +01:00
Subhraman Sarkar
920e155ef6 game_version_dialog: use boost::filesystem::path for path calculations 2024-12-21 17:42:07 +05:30
Nils Kneuper
36fa52fc1a updated British English translation 2024-12-21 09:37:08 +01:00
ZombieKnight
9b0430e1f7 Update message.lua 2024-12-20 20:57:48 -05:00
Thewodoros
19be417a05
EI: forbid dunefolk from taking the Plague Staff and add custom rejection messages (#9654)
Fixes #9627
2024-12-20 07:56:53 -06:00
Wedge009
6d10d919d5 Correct manual directory broken in #9664. 2024-12-20 18:26:51 +11:00
Wedge009
e8a3e3fcef View Manual: Avoid crash from indexing an empty vector. Resolves #9661.
Empty vector occurs when using System Language.
2024-12-20 08:34:21 +05:30
pentarctagon
8210f33a7b add preference to not get addon icons
also skip if DataURI is too large
2024-12-19 11:54:14 -06:00
pentarctagon
352157d593 remove inaccurate changelog entry 2024-12-19 09:31:35 -06:00
Gothyoba
10364b169b
Increase Fire Resistances of the Fire Guardian Line (#9438)
* Fire Wisps and Guardian - Fire Resistance changed from 50% to 70%
  * Fire Wraith - Fire Resistance changed from 50% to 80%
2024-12-19 09:24:41 -06:00
Charles Dang
a6954bd56e Prefs: reduce excessive indent (no content changes) 2024-12-19 00:35:18 -05:00
Charles Dang
6a18a37afe Prefs: advance preference access should not be mutable 2024-12-19 00:18:32 -05:00
Severin Glöckner
d191109bb4 German translation edits 2024-12-19 03:49:23 +01:00
Wuzzy
0c1357b594 German translation update
merges #9625
2024-12-19 02:19:20 +01:00
pentarctagon
f7dc6ebaeb 1.19.7+dev 2024-12-18 16:58:02 -06:00
pentarctagon
4a689a687d 1.19.7 2024-12-18 16:57:02 -06:00
pentarctagon
144fa9c71a pot-update and regenerate doc files 2024-12-18 16:55:39 -06:00
pentarctagon
f5ab5620e2 changelog_entries 2024-12-18 16:49:30 -06:00
gfgtdf
5e5fc1db5d remove [side] leader=
previously the leader= attribute in [side] could be used to
make the engine choose a faction by its leader, similar to how
[side]faction_from_recruit worked.

However this was not documented in the wiki, and the name clash
with the [side][leader] subtag could also cause problems
and is also a litte confusing.

So it was decided to remove it. an alternative approach to fix the
name clash would be to rename it, but i can't think of
real usecases of this feature currently.
2024-12-18 18:48:41 +01:00
Charles Dang
2be41a4f85 GUI2/Listbox: remove any_rows_shown
Instead, return the number of rows shown from filter_rows_by. We might re-add any_rows_shown in the future, but for now this covers the intended usecase.
2024-12-18 02:45:26 -05:00
Charles Dang
edb4331d56 GUI2: use more nested namespaces 2024-12-18 02:44:28 -05:00
Charles Dang
e037694945
GUI2: simplify various dialog's filter handling (#9650)
Closes #7868. This implements a farther-reaching cleanup without the regex, though I might revisit the regex method again later.
2024-12-18 02:01:05 -05:00
gfgtdf
f113b2b7a7 Fix #9651 Error in u:extract()
This logic seems inverted, this probably happened while the lua attributes were converted to use the LATTR_SETTER macros.
2024-12-16 19:10:53 -05:00
gfgtdf
e64283534f wesnothd: update current turn in init_side instead of end_turn
This matches the behavior on the client where the events that
happen after end_turn (the "turn end" wml events) happen during
the last sides turn not the next sides turn. In particular this
fixes #2563. It also fixes #3899 because the new logic
automaticially skips empty sides already in init_side and not on
end_turn.

It also changes how description is updated, since carrying that
return value arround specifying whether it was updated was becoming
annoying.

With a few code improvements from soliton.
2024-12-16 00:20:40 +01:00
gfgtdf
f2bcc997b8 add simple_wml child_or_add() 2024-12-16 00:20:40 +01:00
Bernhard Rosenkränzer
782ab2df3e Fix build with boost >= 1.87.0
Boost 1.87.0 removes some functions that have been deprecated for a few
releases, but are still used in wesnoth.
2024-12-15 16:29:11 +11:00
gfgtdf
79798b9f2b remove unused cpp file 2024-12-15 05:24:12 +01:00
gfgtdf
c1c0111d3c WC: New carryover implementation.
We now use a modified default carryover calculation,
the main advantage is it now uses the normal carryover
message on endlevel, and shows how it is calculated.
2024-12-15 05:17:57 +01:00
gfgtdf
06d1fade32 split gold_carryover into smaller functions
this way the functions can easily be reused for alternative
carryover implementations.
2024-12-15 05:17:57 +01:00
gfgtdf
f29f8fb368 move the carryover gold handling and dialog to lua
The idea is to make it easier for umc devs to implement
their own carryover / early finish bonus mechanics. Maybe
we can also make use of it in Worls Conquest.
2024-12-15 05:17:57 +01:00