860f65ea62
Merge branch 'develop' into fix_map_sorting
2025-03-16 19:19:27 +02:00
6ed1aad11b
Merge pull request #5545 from Laserlicht/video_skip_harominize
...
optimize skip video keys
2025-03-16 19:08:57 +02:00
46cd1f7805
optimize skip video keys
2025-03-13 20:56:09 +01:00
749149a679
Fixes following reviews
...
Use std::optional and improve textSearchSimilarityScore()
2025-03-12 21:40:07 +01:00
3f4616eb0f
SonarCloud fixes
2025-03-12 17:44:13 +01:00
9732d39c70
Moved shutdown request dialog handling to GameInstance
2025-03-12 13:33:12 +00:00
5363424451
Small fixes to search mapobject feature:
...
- Trim overly long names to prevent incorrect item display
- Use getLocaleName() for proper locale-aware to_lower conversion
- Implement scoring-based sorting for better search match ranking
- Remove Boost dependency: replace with std::string::find() and rfind()
2025-03-11 23:22:04 +01:00
e993c2aed0
Use locale based on language set in config
2025-03-11 23:21:12 +01:00
7af340e301
setting to disable subtitle
2025-03-10 00:04:44 +01:00
ee5cddb52c
Merge pull request #5518 from Laserlicht/fix_upgrade_all
...
[develop] fix crash, when no cost for upgrade
2025-03-08 19:21:13 +02:00
d983d54cc0
Update client/windows/CCastleInterface.cpp
...
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com >
2025-03-08 15:08:33 +01:00
a061ed04de
Remove usage of ConstTransitivePtr from CTown
2025-03-08 14:04:51 +00:00
4a6a8f9496
Merge pull request #5496 from IvanSavenko/std_thread
...
Replace boost::thread with std::thread
2025-03-08 16:03:55 +02:00
04f690b951
Merge pull request #5498 from IvanSavenko/netlag_prep
...
Minor refactoring of GameHandler to help with antilag support
2025-03-08 16:03:29 +02:00
3f4267df15
fix crash, when no cost for upgrade
2025-03-08 12:46:00 +01:00
bd16808090
fix text overflow
2025-03-07 20:19:50 +01:00
9f713a0914
Rename int3::valid to isValid for consistency
2025-03-03 10:46:00 +00:00
948abfb04c
AI now uses std::thread, added custom thread interruption logic
2025-03-02 14:33:11 +00:00
a8a6be7ac1
Fix potential compatibility with C++20 / C++23 mode
...
This fixes several issues with compatibility with C++20. C++23 was also
tested, but apparently it does not have any additional breaking changes
compared to C++20 (or we don't have those).
VCMI still uses C++17 as before - goal is only to make potential
transition easier.
There were 2 cases that are deprecated in C++20 that we use:
- Floating point operations on enums are deprecated
- `this` can no longer be captured when using default capture by value
`[=]`
Both of those should now be replaced with code that works fine in both C+
+17 and in C++20 mode
2025-03-02 14:11:48 +00:00
e5a095a237
Remove main menu global. Now accessed via GameInstance
2025-03-01 21:16:41 +00:00
07a46ed03b
Configurable icons for bonuses
...
It is now possible for mods (e.g. vcmi extras) to provide custom icons
for bonuses subtypes or for custom bonuses values without requiring
hardcoded check in vcmi.
All existing hardcoded checks have been removed.
Bonuses config json from mods is now actually loaded.
2025-02-28 14:51:32 +00:00
8f074490a7
Merge branch 'master' into 'develop'
2025-02-27 21:15:42 +00:00
e2e83b392b
Merge pull request #5467 from IvanSavenko/brotherhood_fix
...
[1.6.7] Fix Brotherhood displaying Thieves Guild UI on click instead of Tavern
2025-02-25 16:50:18 +02:00
b6dd4460de
Fix Brotherhood displaying Thieves Guild UI on click instead of Tavern
2025-02-23 14:46:04 +00:00
52f7caa0e4
use settings instead of persistentStorage
2025-02-22 20:34:13 +01:00
db23cc2ffa
add setting for disabling overlay
2025-02-21 21:35:17 +01:00
cbcd48aabb
Fix build
2025-02-21 18:51:27 +00:00
645b95ba02
Renamed LibClasses * VLC
to GameLibrary * LIBRARY
2025-02-21 16:54:56 +00:00
156de5b17e
Added GameInstance class
...
- available as global GAME
- integrates LOCPLINT (CPlayerInterface)
- integrates CGI->mh (CMapHandler)
- integrates CSH (CServerHandler)
2025-02-21 16:54:06 +00:00
ffd37a8fa8
Removed CGI in favor of VLC. Map handle is for now global variable
2025-02-21 16:53:14 +00:00
f657e85305
Integrated CClientState into GameEngine class
2025-02-21 16:53:14 +00:00
cacceda950
Renamed CGuiHandler to GameEngine
...
- class CGuiHandler is now called GameEngine to better describe its
functionality
- renamed global GH to more clear ENGINE
- GH/ENGINE is now unique_ptr to make construction / deconstruction
order more clear and to allow interface / implementation split
- CGuiHandler.cpp/h is now called GameEngine.cpp/h and located in root
directory of client dir
2025-02-21 16:53:13 +00:00
2362c6da21
Fixes for multiple new issues from Sonar
2025-02-21 15:57:39 +00:00
0548f325e4
Merge branch 'master' into 'develop'
2025-02-21 13:59:34 +00:00
05e8542a79
Fix corrupted image of university
2025-02-20 13:09:38 +00:00
7d9c9d19c4
Merge pull request #5432 from Laserlicht/fixes
...
[1.6.6] multiple fixes
2025-02-17 12:36:47 +02:00
58042c5cd6
Remove default focus from spellbook search, allow toggling focus via shortcut
2025-02-15 18:50:43 +01:00
567c88a924
Hero exchange: Q button swaps army + artifacts instead of opening quests
2025-02-15 18:50:14 +01:00
a6ab76d3ec
Add ctrl+click and shift+click behavior for creatures "arrows" - hero exchange
2025-02-15 18:49:12 +01:00
e9dc9f81b8
text fixes
2025-02-15 16:46:41 +01:00
9effde04bb
Merge pull request #5404 from Laserlicht/upgrade_all
...
[1.6.6] extend radial wheel in town to upgrade all creatures
2025-02-15 11:12:37 +02:00
3e161da834
code review
2025-02-14 21:03:23 +01:00
b69e1ce1fb
Merge pull request #5399 from Laserlicht/combat_health
...
[1.6.6] Combat Health Bar & Calculation fix
2025-02-14 13:09:49 +02:00
c6987f4183
upgrade all radial wheel button
2025-02-09 21:54:30 +01:00
68e0dcb01d
Merge pull request #5398 from Laserlicht/portrait_mode
...
[1.6.6] portrait mode for android & grey bar fix
2025-02-09 19:42:03 +02:00
640f654fe0
Merge pull request #5401 from Laserlicht/touch_overlay
...
[1.6.6] overlay for touch screens & pinch fix
2025-02-09 19:40:45 +02:00
c13edc8af3
Merge pull request #5383 from IvanSavenko/bugfixing
...
[1.6.6] Fixes for issues in 1.6.5
2025-02-09 19:27:43 +02:00
1f61f22122
implement overlay for touch screens
2025-02-09 13:10:27 +01:00
d98ce78c34
add setting for hp bar
2025-02-08 22:48:21 +01:00
de06de06b5
refactor backgrounds (allow resolution change)
2025-02-08 20:53:32 +01:00