82693 Commits

Author SHA1 Message Date
Nils Kneuper
cd8d065a4b updated French translation 2023-11-11 15:06:16 +01:00
Nils Kneuper
3d4ed65c0c updated Slovak translation 2023-11-11 15:05:39 +01:00
Dalas121
2630b5bb63
EI - Sentinel Shield Bugfix (#8033)
* Update items.cfg

* Update items.cfg
2023-11-10 19:16:05 -08:00
pentarctagon
5789246605 Not a relevant statement.
Local unpublished add-ons could be missing their title attribute.
2023-11-10 20:31:21 -06:00
newfrenchy83
9474525612
check alternative_type and replacement_type when filtering on type
Also move them from being attributes of [damage] to [damage_type], to avoid infinite recursion when determining what the damage type should be.
2023-11-10 16:35:57 -06:00
Elvish_Hunter
47fec1e90f GUI.pyw: increased starting window size to 1024x600 2023-11-10 21:02:52 +01:00
Wedge009
559aacbf65
wmltools GUI review (#7971)
* Run auto-format

* Avoid broad exception handling.

* Remove unnecessary reference to self.

* Tidy imports.

* Remove redundant brackets.

* Narrow exception handling on unrecognised locale.

* Simplify command construction.

* Simplify command construction.

* Avoid shadowing.

* Spelling corrections.

* Reviewed argument parsing:
* Average user probably won't know that ISO 15897 refers to POSIX locale names.
* 'default' probably isn't an accurate description of the entered locale so change to 'user'.
* Remove the hard-coded usage text - the default usage string from the arguments list is sufficient.

* Use title case for menus as per UI style guide.

* Avoid abbreviation for UI text and add translation notes.

* Reviewed text for the tabs representing options for each tool.

Also removed forced new-lines, which I think are unnecessary.

* Consolidate strings to allow for translation sharing.

* Add translation note

* Use title case for titles.

* End sentences with full-stop.

* Title case for titles, translation note, full-stop.

* Abbreviated error message sufficient - consistent with other error messages.

* Clarify file vs file name.

* The translations directory is referenced regardless of whether the user has specified a locale or not, so put the check for the translation directory outside the user-input condition.

* The function isn't just for the user-specified locale, it steps back to the system locale if no user-input is given for the language.

* Clarified the reason for the code duplication in the set-up for system locale.

* Use en_US for commentary.

* Treat 'normal mode' as just one string.

* Replace empty place-holder with numbered indexes to work around gettext limitation.

* Correct typography.
2023-11-10 11:55:22 -06:00
Elvish_Hunter
cdd05db833 GUI.pyw: added basic support for the ttkthemes library 2023-11-10 16:59:28 +01:00
pentarctagon
82408b2131 change sorting. 2023-11-08 18:22:24 -06:00
pentarctagon
37d37b6337 Quick hack to get the gamestate inspector working again.
This doesn't fix the underlying issue with labels trying to show text too long to be rendered, but it does at least make the text show up now.

Fixes #7565, not sure about the other inspector related issues.
2023-11-08 09:50:19 -06:00
Steve Cotton
bf89dfb818 Help Browser: only show one image if male and female are the same
If a unit type has male and female versions, then two images of the unit are
displayed at the top-left of the help page. However, it did this even if the
two images were the same, which made the duplication look like a bug.

The Naga Fighter is one of the affected unit types.
2023-11-08 00:44:46 +01:00
Gunter Labes
60f58c9694
Allow any key in dummy ability tags
super="units/unit_type/abilities/~generic~" isn't quite accurate since there are a lot of keys/tags in there that may not mean anything for dummy abilities. Probably doesn't hurt to expect they work like in mainline though.
2023-11-05 19:08:31 +01:00
Tommy
a8dc847d35 Warn when forcing a bad zoom level
Nothing does this currently, but just in case something does in
the future.
2023-11-06 00:34:44 +13:00
Tommy
1dfbaacf68 Additional commentary on zoom_levels
Levels have been normalized a little to scale smoothly. This combines
the old 1.25x and 1.5x zoom levels into a new ~1.41x zoom level.
Others are more-or-less unchanged, other than modification for the
requirement that scales are divisible by 4.
2023-11-06 00:34:44 +13:00
Tommy
278ba34071 Ensure zoom levels are always multiples of 4.
Also changed zoom level specification to direct integer sizes rather
than multiplication factors, so they can be specified accurately.

It has always been the case that they were required to be multiples
of four. This was just violated at some point.

This fixes problems with overlapping fog textures at some zoom
levels, and may also prevent some other rendering glitches.
2023-11-06 00:34:44 +13:00
Nils Kneuper
2f8cfbb08c updated French translation 2023-11-05 10:57:33 +01:00
Nils Kneuper
36649fd899 updated Polish translation 2023-11-05 10:56:24 +01:00
Celtic Minstrel
e3b3d08c3f Make wesnoth.allow_undo still work, even though it was explicitly internal and not meant to be used.
Fixes #8018
2023-11-04 22:40:18 -04:00
doofus-01
b046d93350
touchup wall-rough-chasm to fix #8001 (#8022) 2023-11-04 15:10:02 -07:00
Gunter Labes
2e191db2e7
Ignore implicit conversion warnings 2023-11-04 22:48:45 +01:00
doofus-01
ef25dbea7c
adjust base y of diagonal bridges terrain graphics macro (#8020)
1.17/1.18 - adjust bridge layering, fixes #8010
2023-11-04 12:57:11 -07:00
doofus-01
bec1afd9f5 adjust bridge layering, fixes #8010 2023-11-04 10:31:49 -07:00
doofus-01
f5fce3437b
touchup to direwolf defense frames (#8017)
* touch-up to direwolf defense frames fixes #8003 

* copyrights.csv
2023-11-04 08:28:37 -07:00
Nils Kneuper
307677a98e updated Slovak translation 2023-11-04 11:10:53 +01:00
Nils Kneuper
cd6fd23202 updated French translation 2023-11-04 11:10:00 +01:00
Nils Kneuper
291ad1c26a updated British English translation 2023-11-04 11:09:27 +01:00
irregularBismuth
b8adf0cd5e
Credits Crash Bug fix (#7931)
Co-authored-by: pentarctagon <pentarctagon@tutamail.com>
2023-11-03 12:10:59 -05:00
Gunter Labes
6cc717042d
Kill wesnothd when script is killed with INT 2023-11-02 18:41:37 +01:00
pentarctagon
60a11f2420 why is this even allowed to build... 2023-11-02 12:05:17 -05:00
Gunter Labes
8788c55874
Run trunk server with SQL debug logging 2023-11-02 18:00:49 +01:00
Pentarctagon
080dc3f003
add some logging to game history query (#7998) 2023-11-02 11:04:07 -05:00
Tommy
3f95df8fdc Fix the --screenshot commandline arg.
A new fake video mode video::fake::hide_window was added,
as screenshots need a rendering context and thus a window.
It draws everything as normal, just with the window hidden.

The other fake modes were also renamed to increase clarity a bit.
2023-11-01 11:33:30 +13:00
doofus-01
50a21a2c6c
1.18 - Some loyalist animation updates (#7999)
* some Swordsman anim updates

* simple breeze anim for Cavalier

* breeze anim for paladin

* dragoon xbow anim

* fixes #7257

* update copyrights.csv
2023-10-29 17:45:09 -07:00
Tommy
ca5edd5336 Regenerate story screen message panel blur when background changes. 2023-10-30 12:28:14 +13:00
Tommy
7695ee7159 Enable multi-pass rendering.
An extra rendering pass can be requested during render or expose
by calling draw_manager::request_extra_render_pass().
This is used for blur effects.
2023-10-30 12:28:14 +13:00
Tommy
8d4deeef02 Start game with theme buttons hidden.
Fixes #6922.
2023-10-30 12:24:27 +13:00
pentarctagon
1c51bd3388 pot-update and regenerate doc files 2023-10-28 09:05:39 -05:00
Nils Kneuper
829b74cf5c fix missing closing " in Welsh credits 2023-10-28 11:21:43 +02:00
Nils Kneuper
5acd4ac11c updated French translation 2023-10-28 10:11:52 +02:00
Nils Kneuper
db8b06c0b7 updated Italian translation 2023-10-28 09:59:18 +02:00
Nils Kneuper
20636a8701 updated Slovak translation 2023-10-28 09:58:23 +02:00
Nils Kneuper
b64166d49f updated Welsh translation credits 2023-10-28 09:55:30 +02:00
pentarctagon
47eef10a32 update msys2 image. 2023-10-28 01:17:32 -05:00
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