Commit graph

83373 commits

Author SHA1 Message Date
Wedge009
6313ccfcde Remove the 'no matter what' phrase as per @nemaara's review.
[ci skip]
2023-10-23 09:44:50 +02:00
Wedge009
1091fa924f Replace contraction 'it's' with possessive 'its'.
[ci skip]
2023-10-23 09:44:50 +02:00
Wedge009
080a591eca Spelling and punctuation corrections.
[ci skip]
2023-10-23 09:44:50 +02:00
Severin Glöckner
900fdd34ea scons: edit comment
[ci skip]
2023-10-23 03:18:31 +02:00
gfgtdf
9c84c07497 also invalidate previous location when resizing a widget
Fixes #7617

widget::set_origin should probably also call queue_redraw(), not fully sure yet though.
2023-10-22 23:34:44 +02:00
doofus-01
9fffd88242
Various terrain fixes and additions (#7972)
* fix Xor/Xo* south corner transition

* old/ruined wood floor borders

* better Xoc/Xo* south-facing corner

* wooden windows (Xom^Exw)

* fix missed Ior->Iwo transition rule

* fix Isa/U* transition rule

* update copyrights.csv
2023-10-22 11:42:25 -07:00
pentarctagon
c2ecb74a65 Change editor event from start to prestart.
fixes #7969
2023-10-22 12:03:09 -05:00
Steve Cotton
f5f76ade9a Avoid an assert in replay::add_start_if_not_there_yet with corrupt files
With this it puts the player back to the title screen after showing
an error dialog, so it's not much better, but at least it's not a
crash.

Fixes issue 7164. We weren't able to work out what caused the file corruption
reported, but I believe it's a race condition about saving while the AI is
recruiting. The file in the bug report has a `[snapshot]` tag with
`init_side_done=yes` but without a `playing_team` attribute, which must be the
result of `game_state::write()` when not in the `PLAY` phase. Loading such a
file causes `game_state::start_event_fired_ == false`, and triggers
`play_controller::start_game` to call `replay::add_start_if_not_there_yet`.

The i18n'd string is reused from `game_launcher.cpp`.
2023-10-21 20:31:21 +02:00
gfgtdf
c5cfebb5cc
Fix #7886: leaders type set to null in campaigns. (#7887) 2023-10-21 18:24:49 +02:00
gfgtdf
cde57bca9d
WC: fix to in 6A_Rural mapgen (#7834) 2023-10-21 18:24:12 +02:00
Nils Kneuper
c707f3c97f updated French translation 2023-10-21 12:20:41 +02:00
Nils Kneuper
9d9c5ca873 updated British English translation 2023-10-21 12:19:21 +02:00
Nils Kneuper
8c826f767a updated Welsh translation 2023-10-21 12:08:27 +02:00
Nils Kneuper
208b67692c updated Slovak translation 2023-10-21 11:59:48 +02:00
Hejnewar
2efa45801a
Update changelog.md 2023-10-21 01:36:45 +02:00
Hejnewar
d8abc5f43f
Fix RiPLB for Saurian Seer
...
2023-10-21 01:34:06 +02:00
Wedge009
93df584adb po hints
[ci skip]
2023-10-21 09:35:25 +11:00
gfgtdf
6882adbcb2
fix [store_reachable_locations] #7891 (#7970) 2023-10-20 22:39:11 +02:00
gfgtdf
0945c30efd
improve error message
Fixes #1507
2023-10-18 20:04:47 +02:00
pentarctagon
00f70f2c54 1.17.22+dev 2023-10-16 23:31:31 -05:00
pentarctagon
fec4f1771d 1.17.22 2023-10-16 23:29:23 -05:00
pentarctagon
3bfb54dd14 pot-update and regenerate doc files 2023-10-16 23:28:17 -05:00
pentarctagon
75c4aeb65a changelog_entries 2023-10-16 23:13:10 -05:00
Celtic Minstrel
f1b7d14f2a Add @daniel-santos to the credits 2023-10-17 00:10:03 -04:00
Celtic Minstrel
60998692a2 Update changelog 2023-10-17 00:09:04 -04:00
Daniel Santos
2578e9e2ef
Add lua mouse button event handler (#7952)
* Add lua mouse button event handler that can be consumed.
* Fix middle-mouse down/click not getting sent to lua

This is a flexible event handler mechanism to allow for more advanced
add-on features. It does not allow the add-on to consume the value
however, so there's no mechanism for the add-on to requrest the default
action not be executed.

We would normally deal separately with mouse down, up and click, with
the later being an event where the mouse has gone both down and up on
the same UI component. However, Wesnoth's code seems to allow a mouse up
on many UI components to serve as a click, so this implementation
follows that behavior.

This addresses issue #7949

The mouse handling code needs an overhaul, so this patch works with it
in it's current state in the best possible way. The revised code
attempts to restrict clicks to those events where a mouse went both down
and up on the same map tile. It is able to do this with the right mouse
button as well as X1 and X2, but must work as existing click events are
treated for now.

This means that "left click" is managed via the `left_click()` function
which occurrs at mouse down, "right click" via `right_mouse_up()` when
the right mouse button comes up, and the middle button's click behavior
is coded directly into mouse_handler_base::mouse_press() (so no function
is called) and "clicks" when the button comes down. The new
`on_mouse_button()` code will allow the mod developer to consume any
click event, preventing the default behavior, and also receive event
callbacks for up and down events, although the return value is ignored
for these calls and left and middle click occur on mouse down.
2023-10-17 00:08:00 -04:00
gfgtdf
c9e8a166aa
WC: Fix objects increasing hp not working.
The code keeps record of the previous hp to prevent unit:transform form changing it. But it reads it before the object was added which prevented the object from increasing the units hp.
2023-10-17 00:44:16 +02:00
gfgtdf
d5b7972c6f
WC: Fix error when too few artifacts are defined
Previously the lua could stop working when there were less than 9 artifacts defined in [world_conquest_data]
2023-10-17 00:34:25 +02:00
gfgtdf
8bbaba898d
WC: fix #7921 Random training per scenario
a free random training on easier difficulties should only be given in the first scenario. (Otherwise they'll accumulate to 5 free trainings at scenario 5.)
2023-10-16 23:25:13 +02:00
Steve Cotton
b13406c63e EI: Move the Horse Barrow Wight to the right dir, and fix a missing word 2023-10-16 20:48:07 +02:00
Steve Cotton
d16ad04830 Fix crash when mousing over a village in the terrain editor 2023-10-16 05:33:08 +02:00
Severin Glöckner
58e59ccb8c UtBS: run wmlindent 2023-10-16 03:09:23 +02:00
Severin Glöckner
98bea4637a EI: reuse strings for weapon names
[ci skip]
2023-10-16 02:24:01 +02:00
Severin Glöckner
81d65f62ed EI: inherit the already translated names
(which are identical, but in another textdomain)
2023-10-16 01:56:20 +02:00
Severin Glöckner
b2bf0d18e2 UtBS: ability names and descriptions
do explicitly not list verses as abilities
reformation of text
explain the mechanism as part of the 2nd/3rd attack

[ci skip]
2023-10-16 01:52:44 +02:00
doofus-01
c9182b952b
1.17 - Last-minute string cleanups (#7950)
* fix some Raven-related fluff

* small revision to fire ant egg fluff

* replace double-spaces after sentence with single-spaces
2023-10-15 16:08:21 -07:00
Celtic Minstrel
9183ee6791 Move the other game_events deprecations into the game_events file 2023-10-15 17:43:22 -04:00
AugustVesterbacka
3127629f59
Mousing over a village shows the owner side in the UI (#7920)
Added village owner flag and side icon to terrain info field
2023-10-15 14:51:48 +02:00
Steve Cotton
d80e4a3b03 Update the changelog, merge changelog_entries files
I haven't merged all the details about the new tags, as that can
go in the documentation on the Wiki instead.
2023-10-15 14:07:14 +02:00
newfrenchy83
532d17f958 repair detects non-existent default attribute value
Fix https://github.com/wesnoth/wesnoth/issues/7923 .when we want to detect an ability with value=0-20 and an ability with add=15 is present, this is detected because the system assigns a value of 0 when 'value' is not present, and so the system matches abilities that do not use 'value' or even no numerical value at all. it is therefore necessary to decide that the absence of an attribute is a non-correspondence to the criteria.
2023-10-14 20:14:51 -05:00
Celtic Minstrel
857d7e120a Undeprecate on_event() for now 2023-10-14 19:26:36 -04:00
Celtic Minstrel
38ae304725 Move Lua undo API into experimental 2023-10-14 19:26:36 -04:00
Celtic Minstrel
10d67aa82a Implement a new Lua API to the undo system 2023-10-14 19:26:36 -04:00
Nils Kneuper
1b0394fc72 updated Slovak translation 2023-10-14 10:43:11 +02:00
Nils Kneuper
163b2cccde updated French translation 2023-10-14 10:42:54 +02:00
Nils Kneuper
d5e42c13e9 updated Czech translation 2023-10-13 22:28:14 +02:00
Nils Kneuper
778e7ad6b8 updated Slovak translation 2023-10-13 22:26:46 +02:00
Hejnewar
6b2588fd7f
Update UtBS difficulty 2023-10-13 21:26:03 +02:00
Hejnewar
28d6618aa4
Final Balance Patch for 1.18 2023-10-13 21:14:08 +02:00
Jonathan-Kelly
ec5483be87
WoF: new campaign description (#7927)
* WoF: new campaign description

* Tweak
2023-10-14 04:15:48 +11:00