82703 Commits

Author SHA1 Message Date
Nils Kneuper
c67e4b4c9f updated Finnish translation 2024-01-20 14:48:04 +01:00
Nils Kneuper
8cc86e350c updated Arabic translation 2024-01-20 14:48:04 +01:00
Steve Cotton
286f14657b Handling of RTL in the left pane of the help browser
Fixes the display of topic headings, including unit names, in right to left
languages (Arabic and Hebrew).

The GUI1 menu code is only kept to support one UI feature, the help browser.
However, the code supported multiple columns and multiple things in each
column; to do the latter it handled each column as a string with embedded
separators. To support the help GUI, all that's needed is for each row to have
an indent, an icon, and a text field. Traces of the multiple-column support are
still in the code, but the drawing code is simplified.

The logic for working out whether mouse clicks are on the icon or the text has
moved from the subclass to the main menu class, as it's a subset of the logic
for drawing the UI.

In LTR languages, this looks almost identical.

In RTL languages, the book icons now appear in the right place, and the text
placement is reasonable.
2024-01-20 14:28:16 +01:00
Steve Cotton
69dae9f0a3 Remove code because menu::set_heading and menu::style::scale_images aren't called
Remove some special cases from the drawing code, because menu::draw_row
was previously also used for drawing the headings.

As scale_images was never called, adjust_image_bounds was a no-op.

This is separate from the main dead code removal commit because it touches
active code paths.
2024-01-20 14:28:16 +01:00
Steve Cotton
22c8a1581d Remove dead code from GUI1's menu class
The GUI1 menu code is only kept to support one UI feature, the help browser.
More specifically, the left-hand pane that looks like a treeview.

Remove the code for sorting the list in the UI. The help articles are ordered
by category, and there isn't a UI control for the user to sort them into a
different order.

Remove erase_item(), which wasn't called from anywhere.

Remove clear_item(), recalculate_pos() and assert_pos(). These three were
only called by the sorting code and erase_item().
2024-01-20 14:28:16 +01:00
Pentarctagon
d9aa71ac86
Add missing names to about.cfg (#8260)
Fixes #6475
2024-01-19 16:16:31 -06:00
Toom
8da8b96b07 Set filelist parameter in CrossRefLister constructor call, fixes #7841 2024-01-19 14:20:08 +01:00
Steve Cotton
162c65bedb WoF S01: Improve po hints 2024-01-19 11:41:09 +01:00
Steve Cotton
6ffc6051a6 WoF S12: Leave the epilogue much more open-ended
The replaced first line added facts into canon that didn't need to be there.
Also, that text felt too similar to some real-world racism, which is why I'm
pushing this change during the string freeze.

In discussion during review, the last two lines felt more like the start of
another story than part of WoF itself.
2024-01-19 11:41:09 +01:00
Gunter Labes
f8d8b1b161
Allow overriding tmpout 2024-01-18 22:29:16 +01:00
Toom
c3bc1f3bbe
Show accuracy/parry as weapon specials in html, fixes #7895 (#8259) 2024-01-18 22:01:53 +01:00
Gunter Labes
df359880e4
Double check executables were produced 2024-01-18 11:47:34 +01:00
Toom
2056be55a3
Support [harm_unit]experience values kill/attack/defend/fight/yes/no (#8231) 2024-01-18 11:32:18 +01:00
pentarctagon
1f50e0f2d2 fixup again 2024-01-17 21:02:42 -06:00
Toom
815af53a75 Add warning when [modification]type is not set, re #3415 2024-01-17 19:48:44 -06:00
pentarctagon
0052d26e54 fixup CI's strict usage
it should only be disabled for wesnothd/campaignd, not for everything
2024-01-17 19:38:12 -06:00
Severin Glöckner
d6d2a4f996 systemd: drop _ prefix from username
man 5 sysuses.d recommends:
It is strongly recommended to pick user and group names that are unlikely to clash with normal users created by the administrator.
A good scheme to guarantee this is by prefixing all system and group names with the underscore, and avoiding too generic names.

Looks better without underscore. wesnoth is unique enough to not clash, most daemons on Arch don't have an underscore either.

The group is created implicitely when the user is created.
2024-01-18 01:27:01 +01:00
gfgtdf
8039781676 fix unit:to_map(loc) #8229
lua_unit::put_map already removes the unit previously on that tile, and doing it here causes an error when the unit was on that tile already.
2024-01-18 00:58:57 +01:00
pentarctagon
34c8753878 forgot to remove this too 2024-01-17 08:56:46 -06:00
pentarctagon
e521b6414f deprecated method in mariadbpp 2024-01-17 00:38:11 -06:00
pentarctagon
453dbc685f Enable stricter checks for debug builds.
Use _GLIBCXX_DEBUG, _GLIBCXX_DEBUG_PEDANTIC, and _GLIBCXX_ASSERTIONS for the debug Ubuntu build.
2024-01-17 00:38:11 -06:00
doofus-01
a0aef5550d
Update changelog.md 2024-01-15 15:49:51 -08:00
Gunter Labes
1a47a9943f
Remove confusing lowercase comparison
If case insensitive handling is wanted here then it needs to show all matches not just an arbitrary first one.

Since this forwards to searchlog which properly matches case insensitively anyway that does not seem particularly useful though.
2024-01-15 22:28:29 +01:00
P. J. McDermott
fc4d11b2cb systemd: Run as _wesnoth:_wesnoth
systemd 246+ logs a warning message, because running as "nobody" is
unsafe:
https://github.com/systemd/systemd/blob/v246/NEWS#L106-L113

Prefix names with underscore, as recommended by systemd documentation:
https://www.freedesktop.org/software/systemd/man/latest/sysusers.d.html
2024-01-15 21:33:26 +01:00
doofus-01
1ecd4f4d59
1.18 - various minor monster updates (#8195)
* various minor monster sprite updates

* small fixes to wolf portraits, jumping spider portraits

* NE anims for jumping spider

* adding zombie fish, zombie bug
2024-01-15 12:25:38 -08:00
Wedge009
991d9a353f
EI S12: Ran-Lar appears to be renamed Rakkha in #7815. Resolves #8242. (#8244) 2024-01-14 18:25:26 -08:00
Toom
27e5dd50d2 Update all units of type and side after selection with is_game_override 2024-01-14 10:04:31 -06:00
pentarctagon
0c0f9ba997 Fix attempting to erase end() in the boost unit tests.
In that test current_addon_ is "", so when run locally with add-ons installed it results in it attempting to erase dirs_.end().
2024-01-13 13:44:56 -06:00
Pentarctagon
987827b475
Prevent wesnoth from crashing after campaign credits (#8235)
Fixes #7395
2024-01-13 11:15:50 -06:00
Nils Kneuper
7c4ac03be2 updated Slovak translation 2024-01-13 14:33:22 +01:00
Nils Kneuper
14afe85822 updated French translation 2024-01-13 14:32:53 +01:00
Nils Kneuper
92a6f85ed0 updated Czech translation 2024-01-13 14:20:23 +01:00
Nils Kneuper
015e6acad3 updated Arabic translation 2024-01-13 14:15:28 +01:00
Wedge009
f700b251ba EI S4: Safyam is supposed to be female (resolves #8233). 2024-01-12 19:52:19 +11:00
Wedge009
76034387ce UtBS S6a: Avoid Dust Devil speaking (resolves #8192). 2024-01-12 19:52:02 +11:00
TheFlamelet
1c30866f37
TRoW S08: Fix enemy starting locations for Clearwater Port
Commit dd42e4d4e4 changed the enemy side numbers in the scenario file. However the map file starting locations were not updated accordingly.
2024-01-08 19:27:16 +01:00
pentarctagon
26de1195e3 add a bunch of attacks tests 2024-01-08 12:04:45 -06:00
Gunter Labes
1930008332 Make "faction" and "faction_name" inputs work 2024-01-08 08:31:01 +01:00
Gunter Labes
bd2c250386 Remove "name" input of removed attribute 2024-01-08 08:31:01 +01:00
Gunter Labes
ceadb1aafd Make "undead" input work again 2024-01-08 08:31:01 +01:00
doofus-01
937d5cbd9e
1.18 Peasant animations (#8194)
* add peasant death anim

* N/S directional peasant attack frames

* update copyrights
2024-01-07 12:10:57 -08:00
Steve Cotton
441a2cf5e4 Check that every file in copyrights.csv has a license and author
Improve the error messages about the input file needing sorting,
to avoid confusion when successfully creating a sorted output
from an unsorted input.
2024-01-07 15:22:37 +01:00
Celtic Minstrel
b9ff0c51fe Schema: Fix declaring guard_x/y/loc as required keys in stationed_guard MicroAI (they are optional) 2024-01-06 21:35:40 -05:00
Severin Glöckner
932dca3982 show_narration: use label column if only given a string
This matches behaviour in 1.14
2024-01-07 00:00:00 +01:00
Celtic Minstrel
219be073a3 Lua: Fix error when calling wesnoth.print_attributes on a GUI2 widget
This not only fixes the error in the GUI2 widget __dir metamethod,
but also makes the system swallow any errors in said metamethod.
A Lua warning is output if such an error arises.
2024-01-06 12:03:03 -05:00
Steve Cotton
3e3913da82 updated German translation
Thanks Aurelix.
2024-01-06 15:24:02 +01:00
Nils Kneuper
c255620b76 updated Finnish translation 2024-01-06 14:09:29 +01:00
Nils Kneuper
a2a9cdfab1 updated French translation 2024-01-06 14:07:25 +01:00
Nils Kneuper
919ff3cb5a updated Italian translation 2024-01-06 14:05:44 +01:00
Nils Kneuper
cc00a827af updated Arabic translation 2024-01-06 14:03:30 +01:00