80209 Commits

Author SHA1 Message Date
Wedge009
dbf50b01be THoT: Move unused images to attic.
Resolves #6602.
2022-04-05 10:34:19 +10:00
Descacharrado
d4bddb5496 changelog 2022-04-05 10:27:07 +10:00
Descacharrado
eb123ed8bb Fix units stuck in spider wall and filter 2022-04-05 10:27:07 +10:00
Pentarctagon
25e763f29b Add script to mass convert images to webp. 2022-04-03 14:56:39 -05:00
doofus-01
504abb8ea6
Update changelog.md 2022-04-02 04:16:15 -07:00
doofus-01
9f98081cb5
1.17 terrain graphics transitions update (#6588)
* small improvements to wooden walls

* intra-pile rubble terrain transition

* fixing some bad perspective in desert mountain transition images
2022-04-02 04:13:20 -07:00
Nils Kneuper
b710b7e146 updated French translation 2022-04-02 12:06:29 +02:00
Pentarctagon
43d82ae8cb
Update vcpkg. 2022-04-01 21:43:46 -05:00
Pentarctagon
205690c3a8
Get vcpkg caching working again. 2022-04-01 20:26:26 -05:00
Elvish_Hunter
c2ece934bd wmlindent: refactored indentation level handling code 2022-04-01 22:53:44 +02:00
Charles Dang
b3b6d7b781
Merge pull request #6604 from wesnoth/scale-map-labels
Scale map labels by zoom
2022-04-01 15:06:05 -04:00
Charles Dang
1b339fa2d2 Scale map labels by zoom 2022-04-01 15:05:38 -04:00
Charles Dang
72de93850f
Merge pull request #6605 from wesnoth/compile-time-check
Attempt to actually make this a compile-time check
2022-04-01 14:18:39 -04:00
Charles Dang
aadb6b4aaa Actually make this a compile-time check 2022-04-01 14:18:19 -04:00
Charles Dang
87605e745e
Merge pull request #5456 from wesnoth/gui2-constexpr-dispatcher
GUI2/Dispatcher: refactored [dis]connect_signal to use constexpr-if
2022-04-01 05:30:17 -04:00
Charles Dang
22e1597e24 GUI2/Dispatcher: refactored [dis]connect_signal to use constexpr-if rather than SFINAE 2022-04-01 05:26:35 -04:00
Charles Dang
3301023b8c Removed invalidate_all call from floating_textbox::close
It works perfectly fine without it.
2022-04-01 02:47:28 -04:00
Charles Dang
2f3927733d Display: formatting, minor code cleanup 2022-04-01 02:23:28 -04:00
Charles Dang
0f8ffad0cd Bug form: mark steps as placeholder 2022-03-31 18:05:26 -04:00
Charles Dang
7108d218fd Address misc recent feedback 2022-03-31 18:02:51 -04:00
Charles Dang
9ff098f2a9
Merge pull request #6601 from wesnoth/theme-init-refactor
Refactored display-class theme initialization
2022-03-31 16:56:29 -04:00
Charles Dang
dfc19676bb Refactored display-class theme initialization
* controller_base::get_theme was removed and replaced with theme::get_theme_config. There was already a static map
  of theme configs in the theme class, so no need to reinvent the wheel.
* Renamed theme::get_known_themes to theme::get_basic_theme_info
* Hidden themes will be included in the known_themes map. Filtering now happens in get_basic_theme_info, which now
  has an additional `include_hidden` (false by default) argument.
* display::set_theme now takes the theme id instead of config
* editor_display no longer takes a theme_config/id argument and instead simply initializes its base class with the
  "editor" theme directly.
* display now takes the theme id instead of config. game_display was adjusted accordingly
2022-03-31 13:55:11 -04:00
Steve Cotton
071ba9d7d6 Add a unit test for [move_unit]location_id with an occupied hex
(cherry picked from commit ba1767f8b90a4ca34cf8ef2abbc03cf98fd488f8)
2022-03-31 09:33:13 +02:00
Steve Cotton
f1cdcd8367 Simplify math.hpp's count_leading_zeros
The old count_ones had undefined behavior in the case of arithmetic underflow,
so replace count_leading_zeros with a simpler implementation. A couple of extra
tests are added, for both signed and unsigned numbers.

Note: `std::numeric_limits<signed char>::digits` excludes the sign bit from the
size - so the `for` loop gets an off-by-one error unless 'std::make_unsigned_t`
is used somewhere.
2022-03-31 03:11:10 +02:00
Steve Cotton
c52c784522 Does not build: Revert "Refactored display-class theme initialization"
This reverts commit 4551e281667072e2d4b91d376992b5b1d37e83ed. That commit
broke the Ubuntu builds, but the Windows builds were already broken by
commit 4551e281667072e2d4b91d376992b5b1d37e83ed. I need a working CI to
check that my next commit fixes the earlier problem.
2022-03-30 08:09:47 +02:00
Charles Dang
4551e28166 Refactored display-class theme initialization
* controller_base::get_theme was removed and replaced with theme::get_theme_config. There was already a static map
  of theme configs in the theme class, so no need to reinvent the wheel.
* Renamed theme::get_known_themes to theme::get_basic_theme_info
* Hidden themes will be included in the known_themes map. Filtering now happens in get_basic_theme_info, which now
  has an additional `include_hidden` (false by default) argument.
* display::set_theme now takes the theme id instead of config
* editor_display no longer takes a theme_config/id argument and instead simply initializes its base class with the
  "editor" theme directly.
* display now takes the theme id instead of config. game_display was adjusted accordingly
2022-03-30 01:16:49 -04:00
Charles Dang
51e0c554b7 Attempt to fix tests 2022-03-30 00:34:27 -04:00
Pentarctagon
d04917bb3a
Revert "Revert this to inline."
This reverts commit f721e824f478b7443528dc801bbe14e534c3c6f7.
2022-03-29 23:23:34 -05:00
Pentarctagon
f721e824f4
Revert this to inline.
Apparently otherwise this triggers C4307 on MSVC.
2022-03-29 23:20:18 -05:00
Pentarctagon
4c127ed4f1
Fix whitespace. 2022-03-29 23:18:51 -05:00
Pentarctagon
d8fcda4960
Give better names. 2022-03-29 22:22:39 -05:00
Pentarctagon
f355e6c5c9
Replace fxptoi with right_shift. 2022-03-29 21:17:12 -05:00
Pentarctagon
70023e69d4
Replace fxpdiv with left_shift_and_divide. 2022-03-29 20:54:21 -05:00
Pentarctagon
a715965437
Replace fxpmult with multiply_and_right_shift. 2022-03-29 20:36:19 -05:00
Pentarctagon
d6db82c518
Replace ftofxp with multiply_by_256. 2022-03-29 20:07:27 -05:00
Pentarctagon
09c9b9abf8
Remove unused float variant of code.
It also didn't even compile anymore anyway.
2022-03-29 19:34:36 -05:00
Wedge009
79c3bfce37 Update attic read-me.
[ci skip]
2022-03-30 09:05:41 +11:00
Charles Dang
098c3342d5 Refactor certain pref flags out of the display class
This replaces them with direct queries to saved preferences. This also removes the need for set_preference_display_settings,
(introduced in 0cd14d875d9ec04b9327aaff14567b1d522f7fa3) since its only purpose was to ensure the display flags were set
correctly.

Relevant intermediate setters were merged into the main setters (`_set_*` -> `set_*`).

Idle anim rates are now saved in preferences the same way they were in the display class. Additionally, its query func now
returns double instead of int.

set_color_cursors is currently not called, and therefore removing set_preference_display_settings had no effect. Curors are
still correctly changed when changing the preference.

display::turbo_speed remains, since it does additional work with the saved pref value that depends on the display class.
2022-03-29 15:12:26 -04:00
Charles Dang
97b22161d4 Converted math util tests to compile-time checks 2022-03-29 14:29:54 -04:00
Charles Dang
5de32a42fe Marked most math util functions constexpr 2022-03-29 14:29:20 -04:00
Tahsin Jahin Khalid
32e0542b3b
Xol -> Xos^Efs for 4 maps of AToTB/SotA/THoT/NR
Updates deprecated maps to current tileset.
2022-03-29 13:26:04 +06:00
Pentarctagon
31cd64a374
Using cwebp directly shaves another 1 MB off the image size. 2022-03-28 23:12:47 -05:00
Steve Cotton
5c07604c01 wmlxgettext: add a --no-sort-by-file option
Some users of wmlxgettext have scripts that already provide the file list in
a deterministic order, and the sorting added in 3761faf925 was choosing a
different order to the one desired.

(cherry picked from commit 904bb9bfb82c391d20e89dfbaacc1e71749dc3d9)
2022-03-28 10:36:12 +02:00
Wedge009
1726c1ce48 THoT: Remove unused Ratheln character.
Resolves #6587.
2022-03-28 15:06:54 +11:00
Tahsin Jahin Khalid
000dde5bb1 THoT map 09: Xol -> Xos^Efs 2022-03-26 22:22:05 +06:00
Tahsin Jahin Khalid
90b68b5388 NR map 5A: Xol -> Xos^Efs 2022-03-26 22:21:52 +06:00
Tahsin Jahin Khalid
63e9d4d02b SotA map 20: Xol -> Xos^Efs 2022-03-26 22:21:41 +06:00
Tahsin Jahin Khalid
c5d7b6a954 AToTB map 03: Xol -> Xos^Efs 2022-03-26 22:21:00 +06:00
Nils Kneuper
c1896bb79e updated Italian translation 2022-03-26 14:58:52 +01:00
Nils Kneuper
cd68c1c272 updated British English translation 2022-03-26 14:57:36 +01:00