81641 Commits

Author SHA1 Message Date
Hejnewar
6632116caa
Quenoth Rework (#7349)
Hopefully making the whole faction more interesting and enjoyable to play. 

Co-authored-by: Steve Cotton <steve@octalot.co.uk>
Co-authored-by: nemaara <nemaara@users.noreply.github.com>
2023-02-18 00:33:48 +01:00
Pentarctagon
3f63908296 Further consolidate logging functionality between Windows and non-Windows platforms.
For non-Windows platforms this adds:
* a new check for whether the logs directory exists and is writable by attempting to write a single whitespace to a dummy.log file.
* a popup shown immediately after the GUI system is initialized letting the player know if there was an issue creating the log file.

For Windows, this changes:
* instead of writing to the OS temp directory and then attempting to move that file to the logs directory, this uses the same check that was described above for non-Windows platforms.
* the alert shown when writing the dummy log file fails is now a Wesnoth alert message rather than the Windows-specific MessageBox.
* a failure to create a log file does not immediately exit wesnoth anymore.

Additionally, this makes it so that for the default state (logging to file), all platforms follow the same code path by calling `lg::set_log_to_file()`. `log_windows` now contains only the Windows-specific logic needed for handling the creation/redirection of output to a console.
2023-02-17 10:03:05 -06:00
Nils Kneuper
26400f9398 updated French translation 2023-02-17 11:01:10 +01:00
Celtic Minstrel
05d35442b6 Fix [harm_unit]alignment not accepting variables 2023-02-16 21:48:26 -05:00
Elvish_Hunter
59b6049f9f wmlxgettext: always use Unix file paths in .pot files
Fixes #7380.
2023-02-16 23:28:05 +01:00
Steve Cotton
3d13628bb8 Editor: let the help text switch between the top and bottom of the screen
If the northmost hexes of the map are visible, put the text on the bottom; if
the southmost are visible, put it on the top. Also, make the text smaller if
it's very wide.

It used to be fixed to the bottom of the screen, but this meant that it always
obscured the southmost hexes of the map, and the only way to avoid that is to
scroll east/west, or to add an extra row on the south. Similarly, having it at
the very top obscures the northmost hexes.

Moving it to any fixed location that isn't the edge of the screen makes it
possible to edit all the hexes, but also makes it more annoying when working
elsewhere on the map; that trade-off was rejected in review.

For very small maps, it will be at the bottom of the screen in the border
outside the map area. For any screen resolution there will be a specific
map-height that still has the old issue, but that's an improvement on it
happening for every map size.

Cherry-pick of 29d86d2c369483c45aa599076eb076c5792b7ef3.
2023-02-15 15:03:36 +01:00
Steve Cotton
abfb33ebf6 Move set_help_string to editor-only code
No behavior changes, this is just separating it into the editor directory.

This corresponds to 1.16's 76306d3fb61da9a046087fc862d960a6ac5d4cad, but has
additional cleanup outside the editor directory, including removing the unused
code from floating_label.cpp. Even within the editor, there are differences
because of the graphics refactor.
2023-02-15 15:03:36 +01:00
Toranks
5a3a1b69ba
UTBS: Hide Minion and Spire XP bars (#7339)
A unit with no advancements has the XP bars hidden.

Other behavior of a unit with no advancements is unit-tested in
ec8ad5f26f06dc3219ccc5c44eb24edde0386dc6's "unit_no_advancements".
2023-02-15 09:09:46 +01:00
Celtic Minstrel
3bc6a293f7
Fix the missing logs issue (closes #7310) (#7343) 2023-02-14 23:10:38 -05:00
Tahsin Jahin Khalid
354afc3758
[Units] Move the Dwarvish Miner to core
Move the Dwarvish Miner unit to core from SoF
2023-02-14 21:02:36 +08:00
Elvish_Hunter
fb32a9d68c Changelog entry for PR #7363 2023-02-13 10:03:53 +01:00
Elvish_Hunter
7cfd699e9d
Add icons for invulnerable and unhealable states (#7363) 2023-02-13 10:01:35 +01:00
inferno8
e522cf426c use progressive notation for the waterfall animation code 2023-02-12 22:22:36 -06:00
inferno8
fe4234aa8c add waterfall animations to Isar's Cross (closes #7348) 2023-02-12 22:22:36 -06:00
inferno8
ad300586ef add Art Placeholder terrain 2023-02-12 22:22:36 -06:00
Tommy
06686e22e4 UtBS: Updated many things to use FLASH macros and screen_fade
Most of these should be fine, but some need verification for
correctness using the new effect. Some of the color_adjust values
were very specific and i am not sure they give the same result now.

Several effects could probably also be significantly improved using
the new screen_fade system, with a little work.
2023-02-12 10:29:35 -06:00
Tommy
e47aa3532b SotA:17: Use screen_fade for sacrifice fade-out
There is a problem that the skeleton reverts to the base frame
during the fade. Previously the skeleton was deleted so this was
not evident.
2023-02-12 10:29:35 -06:00
Tommy
dcf65fd7b9 Liberty:04: Use FLASH for surprise events
This needs checking for timing
2023-02-12 10:29:35 -06:00
Tommy
fb3c2ee61b LoW:16: Use FLASH_WHITE for potion drinking effect 2023-02-12 10:29:35 -06:00
Tahsin Jahin Khalid
b8b402722f Units: Giant Ant advances to Soldier Ant 2023-02-12 10:21:46 -06:00
Tahsin Jahin Khalid
547aab3896
WC: fix abnormal commander mechanic (#7284)
Co-authored-by: Gunter Labes <soliton@wesnoth.org>
2023-02-12 10:21:27 -06:00
Tahsin Jahin Khalid
4d092347db unit_tree: comment out [advancefrom] 2023-02-12 10:11:45 -06:00
Tahsin Jahin Khalid
2cd0e5db03 unit_tree: add missing defines 2023-02-12 10:11:45 -06:00
Toom
02cb4a9e81 Remove hp_bar_scaling and xp_bar_scaling from [unit] schema
#2913
2023-02-12 10:11:05 -06:00
Pentarctagon
f68d8cf980 Add achievements button to titlescreen. 2023-02-12 10:10:15 -06:00
spixi
9f5d58763e Add Scamperer portrait and align Giant Scorpion's 2023-02-12 10:09:49 -06:00
Nils Kneuper
19d60e0a64 updated Polish translation 2023-02-11 11:15:05 +01:00
Nils Kneuper
ff2c7eb187 updated French translation 2023-02-11 11:14:25 +01:00
Nils Kneuper
1bbd9a6b75 updated Dutch translation 2023-02-11 11:13:14 +01:00
Nils Kneuper
6f5e71d30e updated Czech translation 2023-02-11 11:12:04 +01:00
Pentarctagon
e61fca0bf4
Small achievements cleanup (#7368)
* Move logic into lua engine code.
* Don't let use of limit decrease an achievement's progress.
2023-02-09 18:36:45 -06:00
Tahsin Jahin Khalid
f238a9e026 MP: typo fix in achievement 2023-02-10 02:51:31 +08:00
Pentarctagon
68fb0d5332 Make completed achievement name khaki colored part 2. 2023-02-09 12:42:58 -06:00
Tahsin Jahin Khalid
89361ba152
[MP] Add Survival Scenario Achievements (#7347)
1. Dark Forecast
2. Isle of Mists
3. Team Survival
4. ANL
5. ANL Mines
6. ANL Rescue
2023-02-10 02:31:33 +08:00
Tahsin Jahin Khalid
4f232c7265
Engine: make achievement title less bright gold (#7370) 2023-02-09 09:01:10 -06:00
Pentarctagon
1bbe240f82 Revert "Don't interpret markup for achievement name."
This reverts commit 971656fca0717191224c6bfaacfc5cb30ee877a3.

No idea why I thought this made sense.
2023-02-09 00:00:03 -06:00
Pentarctagon
4420ee3aae Make completed achievement name gold colored. 2023-02-08 23:41:41 -06:00
Pentarctagon
971656fca0 Don't interpret markup for achievement name. 2023-02-08 23:34:16 -06:00
Steve Cotton
80ce5e2a23 Delete an out-of-date comment in data/themes/default.cfg
The level isn't to the right of the alignment any more, the
workaround that the comment refers was removed in ca2eec45b9.
2023-02-08 09:01:52 +01:00
Steve Cotton
30525a0a2a Remove unused deprecation functions from wml_exception.cpp/hpp
Remove some unnecessary includes of wml_exception.hpp.

The last callers of these functions were removed in f545fbcbe8 and 4437691bdd,
and any potential future callers can use config::get_old_attribute instead.

Removes some translatable strings.
2023-02-07 14:18:12 +01:00
Toranks
3576817ec0
NR S07 - Arthian > Ro'Arthian typo (#7360)
* Arthian > Ro'Arthian typo
2023-02-06 09:19:22 -06:00
Pentarctagon
d3b6cf7b54 Allow playing a sound when an achievement is completed. 2023-02-05 21:29:04 -06:00
Pentarctagon
215f29541a Fix achievement progress bar still showing when completed. 2023-02-05 14:16:22 -06:00
Steve Cotton
3900419f92 Only call font::set_help_string() from the editor
Remove some dead GUI1 code, leaving the editor's palettes as the only
code that calls font::set_help_string. This function shows a tooltip-like
text at the bottom of the editor's screen, for example when the paint tool
is active it shows which terrains are assigned to the left and right mouse
buttons.

There is similar functionality in GUI2, for example when hovering over the
title screen's buttons, which is handled via event::MESSAGE_SHOW_TOOLTIP.

This cleanup is the groundwork for moving the label in the map editor so that
it doesn't always obscure the southmost hexes of the map. The implementation of
font::set_help_string() has moved during 1.17's refactoring (from CVideo
in 1.16 to floating_label in 1.17.12); the intention is to replace it with
editor-specific code in a later PR.

Checking that the code is dead
---

Nothing called widget::set_help_string, therefore the rest of the removed code
in the widget class was effectively dead.

For the menu class, nothing set item::help. I doubt it was ever used; it was
added in a commit titled "changes to wose stats" that presumably accidentally
captured some work-in-progess C++ changes too: e2597cbc83.

The menu class is now only used by the help browser. The complete set of .cpp
files that get recompiled after changing menu.hpp are:

* help/help.cpp
* help/help_browser.cpp
* help/help_menu.cpp
* video.cpp
* widgets/menu.cpp
* widgets/menu_style.cpp
2023-02-05 17:19:13 +01:00
Pentarctagon
18838ecebc Give a better warning when amount isn't a number. 2023-02-05 09:42:35 -06:00
Pentarctagon
97478c5bc0 Make last selected achievement group persistent. 2023-02-05 09:42:35 -06:00
Pentarctagon
7825de6a71 Have hidden achievements actually be hidden.
Also hidden_name and hidden_hint are no longer attributes of [achievement].
2023-02-04 21:40:02 -06:00
Steve Cotton
0a0263e54f Support [foreach]array=this_item, nested loops using the default name
Since a0ee38a49, the inner this_item was still in scope when the inner loop
writes changed data back to the outer loop's variable, which meant that
changes were silently ignored.

A lot of the changes in wml-flow.lua are just indentation because of the
extra block.
2023-02-05 04:34:23 +01:00
Steve Cotton
49ebbb9709 Make fix_whitespace complain about mixing tabs and spaces
Ensures that files either use tabs for indentation or spaces for indentation,
but don't switch between the two within the same file.

This doesn't fix the whitespace, it's a simple check to flag it up
on the assumption that it's better to use an editor or code formatter
to clean up the file.

Elsewhere in the CI we use the luacheck tool - while that can detect
mixing tabs and spaces in a single line's indent, it doesn't check for
inconsistent indentation within a file.
2023-02-05 02:22:53 +01:00
Severin Glöckner
384cb5d19a MP Thousand Stings Garrison: remove unit properties
Since the HP are at 1, remove also other properties such as attacks.
2023-02-05 00:21:26 +01:00