1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00
Commit Graph

373 Commits

Author SHA1 Message Date
Laserlicht
743013a0d6 Merge branch 'develop' into battleonly 2025-11-02 20:31:28 +01:00
Andrej Dudenhefner
0f74cb9c79 Fix preserveCountSuffix if no parentheses are present 2025-11-01 15:35:26 +01:00
Laserlicht
ea001c6973 fix regression of #6255 2025-10-28 12:39:28 +01:00
Laserlicht
c202d44179 Merge branch 'develop' into battleonly 2025-10-28 12:26:57 +01:00
Ivan Savenko
483e170f6b Fix text trimming in object window
- Do not attempt to preserve object count in string when string does not
contains object count
- Correctly look up last bracket, to correctly handle object names that
contain brackets
2025-10-27 19:33:48 +02:00
Laserlicht
35b294611c fix regression of #6235 2025-10-24 01:14:37 +02:00
Laserlicht
5a650a8f2f Merge branch 'develop' into battleonly 2025-10-24 01:01:42 +02:00
Laserlicht
15a85c2c5c fix pos in list popup 2025-10-24 00:56:20 +02:00
Laserlicht
ed562e42ba battleonly gui 2025-10-24 00:56:20 +02:00
Michał Zaremba
30c58f0ffa Fix trimTextIfTooWide function 2025-10-17 20:50:47 +02:00
Ivan Savenko
076f7ba5b5 Merge pull request #6182 from Laserlicht/color_list
fixing trimming color in object list
2025-09-28 21:52:19 +03:00
Laserlicht
70328f1bd9 fixing trimming color in object list 2025-09-28 20:40:18 +02:00
Laserlicht
8ef97abc7d replace hardcoded 2025-09-16 10:34:38 +02:00
Laserlicht
134c145b98 convert ResourceSet to std::map 2025-09-15 23:48:55 +02:00
Ivan Savenko
c0644da408 Merge pull request #5947 from Laserlicht/skill
Setting to increase selectable skills on levelup
2025-07-31 17:00:24 +03:00
Ivan Savenko
b7521450fb Merge pull request #5942 from IvanSavenko/university_popup
Show skill that can be learned in university on right click
2025-07-28 18:53:08 +03:00
Laserlicht
2894297b36 sort skills 2025-07-24 22:51:42 +02:00
Laserlicht
c8f06b17f5 gui extension 2025-07-24 22:22:21 +02:00
Ivan Savenko
b3167a44ee Move MarketInstanceConstructor class to a separate file 2025-07-21 19:38:24 +03:00
Laserlicht
2751ada585 fix sorting 2025-07-20 03:03:16 +02:00
Laserlicht
dea441899a searchbox color 2025-07-20 02:44:09 +02:00
Ivan Savenko
35644da2b7 Reogranize callback-related classes on 1 file = 1 class basis 2025-05-12 22:07:09 +03:00
Ivan Savenko
829739da24 Reduce usage of implicit conversions to int 2025-04-27 14:57:31 +03:00
Ivan Savenko
4d57a8ed36 Prefer to pass CGameState as reference instead of pointer 2025-04-27 14:57:31 +03:00
Ivan Savenko
63d00b080e Removed pointer to army from StackInstance 2025-04-27 14:57:30 +03:00
Ivan Savenko
417ea6451a Remove ConstTransitivePtr from hero and town instances 2025-04-27 14:57:30 +03:00
Ivan Savenko
7a3e1409d0 Remove old boost includes and defines 2025-03-19 08:03:56 +00:00
Ivan Savenko
860f65ea62 Merge branch 'develop' into fix_map_sorting 2025-03-16 19:19:27 +02:00
Laserlicht
46cd1f7805 optimize skip video keys 2025-03-13 20:56:09 +01:00
MichalZr6
749149a679 Fixes following reviews
Use std::optional and improve textSearchSimilarityScore()
2025-03-12 21:40:07 +01:00
MichalZr6
3f4616eb0f SonarCloud fixes 2025-03-12 17:44:13 +01:00
MichalZr6
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
Ivan Savenko
4a6a8f9496 Merge pull request #5496 from IvanSavenko/std_thread
Replace boost::thread with std::thread
2025-03-08 16:03:55 +02:00
Laserlicht
bd16808090 fix text overflow 2025-03-07 20:19:50 +01:00
Ivan Savenko
948abfb04c AI now uses std::thread, added custom thread interruption logic 2025-03-02 14:33:11 +00:00
Ivan Savenko
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
Ivan Savenko
645b95ba02 Renamed LibClasses * VLC to GameLibrary * LIBRARY 2025-02-21 16:54:56 +00:00
Ivan Savenko
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
Ivan Savenko
ffd37a8fa8 Removed CGI in favor of VLC. Map handle is for now global variable 2025-02-21 16:53:14 +00:00
Ivan Savenko
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
Ivan Savenko
2362c6da21 Fixes for multiple new issues from Sonar 2025-02-21 15:57:39 +00:00
Ivan Savenko
05e8542a79 Fix corrupted image of university 2025-02-20 13:09:38 +00:00
Laserlicht
de06de06b5 refactor backgrounds (allow resolution change) 2025-02-08 20:53:32 +01:00
Ivan Savenko
9a1c2a5800 Merge pull request #5317 from Laserlicht/search_inp
[1.6.4] improved text search
2025-01-25 13:54:27 +02:00
Laserlicht
0035b2346a optimized search input 2025-01-23 23:50:04 +01:00
Laserlicht
3c104d0e4b max width 2025-01-23 22:12:40 +01:00
Laserlicht
38d3426a3b thieves guild icons instead of text 2025-01-23 21:47:49 +01:00
Laserlicht
c1e709e8c4 fix video background 2025-01-18 20:35:01 +01:00
Laserlicht
487297b05e correct align of thiefguild text an add popup 2024-12-22 00:13:36 +01:00
MichalZr6
f893c80192 Move UpgradeInfo class to header and source files 2024-12-19 14:13:09 +01:00