80551 Commits

Author SHA1 Message Date
Tommy
58c9d4feae CVideo: add get_pixel_scale() to return the active pixel scale.
Multiply font sizes by this to create high-dpi font textures.
2022-05-24 03:20:46 -04:00
Charles Dang
c028dd7cf6
Merge pull request #6693 from mesilliac/rendering_system_overhaul
Rendering system overhaul
2022-05-24 03:15:15 -04:00
Tommy
197dfae46c Merge remote-tracking branch 'wesnoth/master' into rendering_system_overhaul 2022-05-24 18:27:40 +12:00
Charles Dang
776a127c57 Hotkeys: properly named hotkey_command id and command members 2022-05-24 01:57:27 -04:00
Charles Dang
bd663177d2 Preferences/Game: made use of insert_or_assign 2022-05-24 00:08:18 -04:00
Charles Dang
bf4dab1b1e Hotkeys: some cleanup
- Moved hotkey_command_temp definition to the cpp
- Removed trailing underscores from non-private objects
- Initialize master_hotkey_list at compile-time
- Mark const containers const
2022-05-24 00:08:18 -04:00
Wedge009
799f251113 THoT S4: Remove spurious WML (closes #6725) 2022-05-24 08:14:24 +10:00
Martin Liska
5fa07ea15c Fix building with GCC 13.
Fixes the following issue:
base64.hpp:23:49: error: 'uint8_t' was not declared in this scope

and:
deprecation.hpp:20:22: error: found ':' in nested-name-specifier, expected '::'
2022-05-23 16:09:28 +02:00
Luis Miguel Iglesias Sánchez
7d2ee4ef72
Merge pull request #6438 from Descacharrado/NR_S01_OOS_6268
NR S01 Solve OOS by moving code to synced event
2022-05-23 10:09:58 +02:00
Luis Miguel Iglesias Sánchez
742bb75ca3
EI S07a various fixes (#6639)
* Side 2 hidden without spoilers
* Fixed Grug upkeep, added dialogue about Ogres joining
* typographic quote
2022-05-22 10:45:17 -05:00
doofus-01
e2c57124f4
1.17 water-related things (#6695)
* caribe monster unit

* some sea-related terrain overlays

* minor variation of dead oak

* update rubble on the water
2022-05-22 05:05:52 -07:00
Nils Kneuper
92312479e9 updated Japanese translation 2022-05-22 11:07:44 +02:00
Tommy
47ff165450 Potential fix for CVideo::get_dpi_scale_factor on Mac. 2022-05-21 23:12:32 -05:00
Tommy
b8144449c6 Potential fix for hardware-rendering high-dpi issues on Mac. 2022-05-21 23:12:32 -05:00
Nils Kneuper
a693aa1233 updated Czech translation 2022-05-21 10:52:01 +02:00
Nils Kneuper
50ef1ddf6f updated French translation 2022-05-21 10:50:36 +02:00
Celtic Minstrel
0ffe926b01
Make tutorial hint messages persistent (#6620)
The hint messages even persist in saved games, in case someone saves their tutorial
2022-05-20 12:23:49 -04:00
newfrenchy83
5c2aaeac2d modify testing for show diffrence between using ('add/sub' attribute)and value with cumulative=yes
in this test, two same leadership with value attribute and cumulative=yes add their value then what two leadership with same id and 'add' attribute using on 'add' only(the highest when 'add' value is different)
2022-05-19 18:13:43 -05:00
newfrenchy83
856aafc8d5 add a test case for 'cumulative=yes'
this test is added for verify what cumulative=yes work in same time what 'add' and 'sub' and what using of these attributes in[leadership] don't be
changed, only using of cumulative work anew like in 1.14
2022-05-19 18:13:43 -05:00
newfrenchy83
f6c9561149 use old method highest and lowest("value").first and limit to [leadership]
in hope what est validated
2022-05-19 18:13:43 -05:00
newfrenchy83
fcd0c02c8d fix cumulative=yes don't function for [leadership]
Fix https://github.com/wesnoth/wesnoth/issues/6466 issue.
2022-05-19 18:13:43 -05:00
newfrenchy83
81d41a861d
Add tooltips to unit_attack dialogs (#6462)
In tooltips, the special and weapon_abilities are listed by stats (damage, attacks and chance to hit), and the owner of each is specified.
2022-05-18 08:54:28 +02:00
Elvish_Hunter
f7859ad104 wmllint: automatically remove {SOUND:SLOW} and {SOUND:POISON} lines
Part of point 5 of issue #6403
2022-05-17 23:57:08 +02:00
macabeus
77d5c6cf47 map-diff: replace previous comment 2022-05-17 08:10:52 +02:00
macabeus
403112457a map-diff: fix get new map 2022-05-17 08:10:52 +02:00
Charles Dang
80eb1db092 GUI2/Grid: explicitly invoke base class in init list 2022-05-16 01:53:31 -04:00
Charles Dang
26e7ea9e38 GUI2/Window Builder: removed an unnecessary copy 2022-05-16 01:53:01 -04:00
macabeus
c90f5d5bda map-diff: fix get map 2022-05-15 19:57:17 -05:00
Luis Miguel Iglesias Sánchez
92ff6c52b2
EI S01 Move the campfire and give it a little more range (#6704) 2022-05-15 19:56:28 -05:00
macabeus
39a96df685 map-diff: fix missing permission 2022-05-15 11:58:37 -05:00
Pentarctagon
9753b9538d
1.17.4+dev 2022-05-15 09:43:37 -05:00
Pentarctagon
712a7c96be
1.17.4 1.17.4 2022-05-15 09:42:25 -05:00
loonycyborg
4c7bdcb18b
pot-update and regenerate doc files 2022-05-15 17:29:35 +03:00
Elvish_Hunter
bc789fcf8b Prevent wmllint from updating a compatibility unit 2022-05-15 10:22:08 +02:00
Charles Dang
8db2b901e9 GUI2/Iterator: used nested namespace declarations 2022-05-14 20:27:53 -04:00
Charles Dang
224f547059 GUI2: manage walker objects with unique_ptrs from the get-go
Needed the extra includes since walker_base's dtor needs to be visible to unique_ptr's ctor.
2022-05-14 20:20:44 -04:00
Tahsin Jahin Khalid
4c42228c52
wmllint: add Giant Stoat -> Frost Stoat monster ID change (#6694) 2022-05-14 23:24:03 +02:00
Nils Kneuper
5394d81f8e updated British English translation 2022-05-14 11:19:13 +02:00
Charles Dang
b6519cc71d
Merge pull request #6701 from bencsikandrei/various_fixes_animated_h_cpp
Remove some dead code (maybe a merge defect?)
2022-05-13 18:56:53 -04:00
Charles Dang
e5dbbf65d2
Merge pull request #6705 from bencsikandrei/various_fixes_arrow_c_h_pp
Add explicit + some cleanup in arrow.h/cpp
2022-05-13 18:55:44 -04:00
Luis Miguel Iglesias Sánchez
87d574698d
Add command suggestions (#6688) 2022-05-13 18:54:55 -04:00
Andrei BENCSIK
985fdec5f5 Add explicit + some cleanup in arrow.h/cpp 2022-05-13 22:34:44 +03:00
Andrei BENCSIK
4476ee403b Remove some dead code (maybe a merge defect?)
* small formatting changes
* small rearrange
2022-05-13 22:27:16 +03:00
Pentarctagon
7a4037bb2f Fixup msys2 on windows. 2022-05-12 08:46:15 -05:00
Andrei BENCSIK
1838041a37 Add FindSDL2 to simplify main CML
* the FindSDL2 module forwards to CONFIG mode first
* if that fails (eg. no -version.cmake or config not even present) it
uses pkg-config
* exports SDL2::SDL2 and SDL2::SDL2main as targets
* fix missing IMPORTED_LOCATION for other build types in Vorbisfile
2022-05-11 09:18:14 -05:00
Charles Dang
9212946e0c
Merge pull request #6697 from mesilliac/auto_webp_missing_png
Automatically replace missing .png graphics with .webp if found.
2022-05-11 02:02:38 -04:00
Andrei BENCSIK
5cd1527977 Various small fixes in about.[h|c]pp
* Fix minor typos in about.hpp comments
* Insert can be called with empty range
* Avoid 1 map search in get_background_images
* Default constructors already called for vector, string and tstring
* Add missing include for std::pair
* Reorder if statement for clarity
2022-05-10 11:45:52 -05:00
Charles Dang
d4059b2721 Forgot to commit this bit 2022-05-10 09:33:32 -04:00
Charles Dang
feed1fc132 GUI2: cleaned up fields implementation
- Removed window arguments from a whole bunch of functions by making use of the stored widget pointer
- Added a general register_field method to modal_dialog
- Simplified messy metaprogramming with static-if
2022-05-10 08:27:09 -04:00
Tommy
8f06da1974 Automatically replace missing .png graphics with .webp if found. 2022-05-10 22:16:21 +12:00