82450 Commits

Author SHA1 Message Date
Tommy
e24f60fd43 Re-enable blur for various message panels.
This was disabled a long time ago. It might be fixed now.

This reenables blur for character dialogue. I'm not 100% sure what else.
2023-10-28 12:13:33 +13:00
Tommy
766cfe8201 Implement deferred rendering for blurrables.
UI elements with blur effects (such as translucent windows) now defer
rendering for one frame, so they can snapshot the area underneath
for blurring.

In the future this should be done as multiple passes in one frame,
but for now this is fine.
2023-10-28 12:13:33 +13:00
Tommy
08144affdf Allow draw::set_render_target to switch to the main render buffer.
This is done by passing it an empty texture.
2023-10-28 12:13:33 +13:00
Tommy
0eada04f55 Offscreen rendering for windows.
Windows will now render to an offscreen buffer. They only render when
something changes, and the re-rendered area is kept to a minimum.

When the window needs to be redrawn to the screen, it simply copies
the appropriate region from the offscreen buffer.

This should greatly improve performance in cases where a window isn't
changing its contents, but needs to be redrawn frequently. For example
a pop-up dialog being drawn over animated terrain (see #7615).
2023-10-28 12:13:33 +13:00
Tommy
18c2ad3bf8 Add a negation operator for sdl::point. 2023-10-28 12:13:33 +13:00
Tommy
c6d9565ed1 Fix UI update when changing pixel scale pref.
This just brings the custom resize event that can be fired in line
with the change made in ac96df07bebbfc5d494f7325b89aa42ad4e567a9 .
2023-10-28 12:05:03 +13:00
gfgtdf
eda389b28d Fix include_file= not being able to handle cfg files generated by the editor
including scenarios generated by the editor was the main usecase for this
2023-10-27 23:41:52 +02:00
Gunter Labes
f3c963ca00
Make --threads optional 2023-10-27 22:08:36 +02:00
pentarctagon
c8b12c0902 Improve performance of the game history query by a lot.
Fixes #7988

I have no idea why this helps anything at all, since my understanding has always been that inner joins vs a big where clause are essentially two different ways of accomplishing the same thing, but changing the two inner joins to a where clause improves query performance from 6.3 to 0.012 seconds (when running the query from the website VM). As best I can tell from the explain plans, the inner joins are somehow confusing the query optimizer to use the game_content_info table as the starting point of the query instead of the game_info table, but why it's doing that or why it has such a large impact remains a mystery.
2023-10-27 14:44:06 -05:00
Pentarctagon
6b9a7627b9
Get the add-on ID from the file path if possible. (#7981)
Co-authored-by: Gunter Labes <soliton@wesnoth.org>
2023-10-27 10:22:52 -05:00
Pentarctagon
81bbcabe13
Don't treat an add-on as published if it has no version attribute. (#7986)
Fixes #7846
2023-10-26 15:39:39 -05:00
Gunter Labes
2fd85fc556
Fix attribute presence check 2023-10-26 20:54:12 +02:00
Tahsin Jahin Khalid
da53b6967f
Units: update falcon and raven races to not get names
* update falcon and raven races to not get names

To conform with other monster units

* units: remove a redundant line of code

from races falcon and raven definitions
2023-10-26 12:54:37 +06:00
Tahsin Jahin Khalid
67007768ec
[Campaigns][Eastern Invasion] fix editor group icon
[Campaigns][Eastern Invasion] fix editor group icon
2023-10-25 21:34:50 +06:00
gfgtdf
92a0885a97 add error message for #7164 2023-10-25 08:12:24 -05:00
newfrenchy83
3910817cf7
add a 'replacement_type' and 'alternative_type' attribute in [damage] special or ability who modify the type of attack used (#7865)
At the suggestion of @stevecotton, I propose a special 'replacement_type' and 'alternative_type' attribute capable of modifying the type of attack used when the conditions are met.

Also make Holy water combine arcane damage with native type of weapon

Like holy water imbued ordinary weapon, it's seem logic what arcane damage dominant what if more efficient what original type(water can't altered pierce or blading of spear or sword)
2023-10-25 08:10:52 -05:00
pentarctagon
ae4242a430 update path 2023-10-24 23:11:36 -05:00
Charles Dang
9c423bd544 Fixed FG terrains drawing in the BG (fixes #7976)
Small typo regression from c6932e813346cd0776096c2add47f6ea14d72af6
2023-10-24 23:53:07 -04:00
pentarctagon
35682922af add new saurians to changelog. 2023-10-24 19:05:49 -05:00
Tahsin Jahin Khalid
05fdb7716d EI: fix editor group icon 2023-10-24 23:26:03 +08:00
Wedge009
13353f8212 Missed typographic apostrophe.
[ci skip]
2023-10-23 09:44:50 +02:00
Wedge009
a2f3758291 Missed non-standard spacing. 2023-10-23 09:44:50 +02:00
Wedge009
99fd130a06 Missed one set of dashes.
[ci skip]
2023-10-23 09:44:50 +02:00
Wedge009
45e537505f Use 'curly' quotes as per typography standard.
[ci skip]
2023-10-23 09:44:50 +02:00
Wedge009
4037e2a138 Replace non-standard spacing.
[ci skip]
2023-10-23 09:44:50 +02:00
Wedge009
94b48615f0 Use em-dash as per typography standard.
[ci skip]
2023-10-23 09:44:50 +02:00
Wedge009
adfe5e7958 Avoid double-mention of 'pierce' as per @stevecotton's review.
[ci skip]
2023-10-23 09:44:50 +02:00
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 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