1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-10-08 23:22:25 +02:00
Commit Graph

83 Commits

Author SHA1 Message Date
Laserlicht
5973c6cca3 fix inncorect button color with async upscaling 2025-10-03 15:49:45 +02:00
Ivan Savenko
c469c6c31e Merge pull request #6136 from Laserlicht/resource
Configurable resources
2025-09-28 21:51:10 +03:00
Laserlicht
f094cddcb3 fix for adding animationLayouts later (after init) 2025-09-19 21:23:52 +02:00
Laserlicht
a4b09f8310 correctly register them 2025-09-19 14:48:17 +02:00
Laserlicht
6320fd8ab0 generate button from icon in config (big & small) 2025-09-19 14:35:11 +02:00
Laserlicht
2bf9454b77 multiple fixes 2025-09-16 01:29:54 +02:00
Laserlicht
c9834c43d6 no async for generated images 2025-08-17 16:16:18 +02:00
Laserlicht
182100dfd1 button for more than 2 layers 2025-08-17 16:16:18 +02:00
Laserlicht
af2198e793 generate also for sequences 2025-08-01 21:55:19 +02:00
Laserlicht
e799db4546 code review 2025-07-17 22:47:14 +02:00
Laserlicht
af2f039ed4 Merge branch 'develop' into generate_overlay_shadow 2025-07-14 23:24:23 +02:00
Laserlicht
2607767ab7 revert algoritm on optimized 2025-07-14 01:40:56 +02:00
Laserlicht
be56d6eff4 optimize running the algorithms on smaller image 2025-07-13 15:13:33 +02:00
Laserlicht
e43df04ae1 better outline matching H3 2025-07-12 14:29:11 +02:00
Laserlicht
2f00524439 dont cut overlays & shadows 2025-07-12 00:45:49 +02:00
Laserlicht
79dead4ad6 fix 2025-07-11 23:03:46 +02:00
Laserlicht
7eae917497 basic algorithm 2025-07-11 22:50:16 +02:00
Laserlicht
a6f95433a2 fix 2025-07-11 20:05:16 +02:00
Laserlicht
03870ee28a Hd setting 2025-07-11 11:11:50 +02:00
Laserlicht
a8af226ec5 format fix 2025-06-20 03:46:27 +02:00
Laserlicht
d0d3b96fa9 add battle animation 2025-06-20 01:51:10 +02:00
Ivan Savenko
975d9aedc9 Merge branch 'vcmi/beta' into 'vcmi/develop' 2025-04-13 18:53:54 +03:00
Ivan Savenko
8a0fed7b3a Temporarily(?) use weak_ptr to reduce ram usage increase during long
game sessions
2025-03-26 15:37:38 +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
Laserlicht
091477aebc possibility to add fonts at end of the font chain 2025-02-15 19:52:59 +01:00
Ivan Savenko
fff5ac5945 Fix transparency on hero portraits 2025-02-06 14:22:06 +00:00
Ivan Savenko
38bb5a76e6 Handle flag color overlay and creature selection overlay separately
Fixes handling of Iron Golem animation from HotA
2025-02-03 11:44:21 +00:00
Ivan Savenko
cca4c0888c In-memory assets generation
All assets generation (large spellbook, terrain animations, etc) are now
done in memory and used as it, without saving to disk.

This should slightly improve load times since there is no encode png /
decode png, and should help with avoiding strange bug when vcmi fails to
load recently saved assets.

If needed, such assets can be force-dumped on disk using already
existing console command
2025-01-30 22:21:38 +00:00
Ivan Savenko
5d67de0e46 Fixed few more cases of incorrect town building ordering 2025-01-29 23:11:53 +00:00
Ivan Savenko
f4c3367e43 Workarounds for crashes from Google Play
- Do not crash on failure to read json from disk
- Add more debug information for crash on BattleHex access
2025-01-28 20:22:28 +00:00
Ivan Savenko
6fe8700761 If mod validation is set to full, VCMI will now detect overlapping
buildings with same z-index
2025-01-26 14:38:51 +00:00
Ivan Savenko
301086d956 Support for shadow, overlay and player-colored premade images for 1x 2025-01-24 19:49:30 +00:00
Ivan Savenko
391986e0ba Moved image scaling & optimization logic to separate classes 2025-01-21 21:15:21 +00:00
Ivan Savenko
c9dd3dab5d Fix loading of pre-scaled assets 2025-01-21 21:15:21 +00:00
Ivan Savenko
668bf63fc0 Remove access to internal surface of Canvas 2025-01-21 21:15:21 +00:00
Ivan Savenko
4a600a9d4c Reworked image container classes for easier support of new features 2025-01-21 21:15:21 +00:00
MichalZr6
f4a15a198b Cleanup 2024-12-15 21:32:23 +01:00
MichalZr6
81e29d6ce2 Return built in default image 2024-12-15 11:43:39 +01:00
MichalZr6
5fc61df717 fix_crash_loading_frames_from_def 2024-12-15 11:43:39 +01:00
Ivan Savenko
7fdddee503 Merge pull request #4978 from IvanSavenko/swap_h3_icons
Fix h3 bug: icons of View Earth and View Air are swapped
2024-11-25 15:29:39 +02:00
Ivan Savenko
2b692c2606 Fix h3 bug: icons of View Earth and View Air are swapped 2024-11-24 19:26:06 +00:00
Ivan Savenko
aef6b0cc00 Fix several new issues detected by SonarCloud 2024-11-20 16:06:38 +00:00
Ivan Savenko
251155d913 More robust management of body/shadow/overlay split 2024-11-17 17:54:55 +00:00
Ivan Savenko
d81d682939 Merge pull request #4933 from Laserlicht/fix_overlay
allow seperate overlay and shadow images also for unscaled images
2024-11-17 19:38:26 +02:00
Laserlicht
8cd77fc5fc allow overlay and shadow also for unscaled images 2024-11-17 17:09:13 +01:00
Ivan Savenko
7f0cb6ce6a ISharedImage is now always const, remove creation of image copy when
upscaling to same factor
2024-11-16 15:40:05 +00:00
Laserlicht
149c6cd778 code review 2024-11-15 19:09:34 +01:00
Laserlicht
a6c985c4f5 code review 2024-11-13 23:10:41 +01:00
Laserlicht
23709ab217 support loading layer images 2024-11-09 21:04:20 +01:00