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

76 Commits

Author SHA1 Message Date
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
Laserlicht
3872a3ea89 fix fallback scaling 2024-11-09 17:58:23 +01:00
Laserlicht
35e198078b cleanup logic 2024-11-09 14:02:09 +01:00
Laserlicht
ac31a946e6 use path instead of different filename 2024-11-09 13:07:15 +01:00
Laserlicht
7c3afde7ee fix 2024-11-05 23:12:02 +01:00
Laserlicht
52aa4aeb82 fix for not loaded images 2024-11-03 22:17:29 +01:00
Laserlicht
11b437db62 prescaled image support 2024-11-03 20:27:11 +01:00
Ivan Savenko
51848ced3b Add font loading tracking to log 2024-09-28 19:30:26 +00:00