1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-01 00:45:26 +02:00
Commit Graph

171 Commits

Author SHA1 Message Date
e72817c866 Added existing HD assets for vcmi mod
Some of our custom assets were actually made in high resolution, and
then - greatly downscaled for use in vcmi.

This PR adds (some of) these assets using recently introduced HD assets
loading support. None of these were upscaled, but rather downscaled from
existing high-resolution version.

Following assets were added:
- vcmi icon for map format - based on our main logo, with no text
- 'defend' icon for stack queue - now also based on our logo, with no
text and sepia effect
- 'wait' icon for stack queue - added only x2 version. Was actually
already present in vcmi mod, but unused.
- icons for creature window (attack/defense/hit points/etc) - it was
based on existing CC0 asset
- 'gear' icon for settings - made from scratch by me.

Will also upload all of these assets in their original resolution to
vcmi-assets repository.
2024-11-22 16:46:48 +00:00
251155d913 More robust management of body/shadow/overlay split 2024-11-17 17:54:55 +00:00
10ad0fc760 Split CHeroHandler.cpp/.h into 1 file per class
All parts of CHeroHandler.cpp are now in lib/entities/hero
Adjusted includes to use new paths
No functionality changes
2024-10-13 14:01:09 +00:00
3dd4fa2528 Reduce usage of pointers to VLC entities
Final goal (of multiple PR's) is to remove all remaining pointers from
serializeable game state, and replace them with either identifiers or
with shared/unique pointers.

CGTownInstance::town and CGHeroInstance::type members have been removed.
Now this data is computed dynamically using subID member.

VLC entity of a town can now be accessed via following methods:
- getFactionID() returns ID of a faction
- getFaction() returns pointer to a faction
- getTown() returns pointer to a town

VLC entity of a hero can now be accessed via following methods:
- getHeroTypeID() returns ID of a hero
- getHeroClassID() returns ID of a hero class
- getHeroType() returns pointer to a hero
- getHeroClass() returns pointer to a hero class
2024-10-10 12:28:08 +00:00
19db016473 Merge pull request #4654 from dydzio0614/any-hex-shooting
Allow targeting empty hex by shooters with multi-tile SPELL_LIKE_ABILITY
2024-09-27 19:23:33 +03:00
248cff49a4 Moved fonts handling from Graphics to RenderHandler class 2024-09-23 15:43:11 +00:00
dc56047661 Add hex highlight for SPELL_LIKE_ATTACK in casting mode & minor cleanup 2024-09-22 20:38:49 +02:00
49c5f650f7 Merge pull request #4437 from IvanSavenko/battle_sides
Unified handling of battle sides ID's
2024-08-14 18:37:05 +03:00
97f1a310df Fix miscellaneous issues discovered by Sonar 2024-08-12 18:26:30 +00:00
2a05fbdd50 Unified handling of battle sides ID's
- Replaced BattleSide namespace-enum with enum class
- Merged two different BattleSide enum's into one
- Merged BattlePerspective enum into BattleSide enum
- Changed all places that use integers to represent battle side to use
BattleSide enum
- Added BattleSideArray convenience wrapper for std::array that is
always 2-elements in size and allows access to its elements using
BattleSide enum
2024-08-11 20:54:44 +00:00
9fba3d97f1 Renamed & unified OBJECT_CONSTRUCTION macro set 2024-08-09 15:30:04 +00:00
52ae6a56f1 fix 2024-08-01 23:35:07 +02:00
6f604444c6 fix 2024-08-01 22:36:11 +02:00
405bc09780 Update client/battle/BattleInterfaceClasses.cpp
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com>
2024-08-01 21:42:32 +02:00
136f33f950 quickspell improvements 2024-07-26 20:11:14 +02:00
4aa73b40c9 Split CTownHandler into smaller chunks 2024-07-21 18:21:48 +00:00
4533271692 Merge pull request #4312 from IvanSavenko/texthandler_split
Split CGeneralTextHandler file into 1 file per class form
2024-07-21 13:49:14 +03:00
1aa391fdf8 Split CGeneralTextHandler file into 1 file per class form
All text processing code is now located in lib/texts.
No changes other than code being moved around and adjustment of includes

Moved without changes:
Languages.h           -> texts/Languages.h
MetaString.*          -> texts/MetaString.*
TextOperations.*      -> texts/TextOperations.*

Split into parts:
CGeneralTextHandler.* -> texts/CGeneralTextHandler.*
                      -> texts/CLegacyConfigParser.*
                      -> texts/TextLocalizationContainer.*
                      -> texts/TextIdentifier.h
2024-07-20 12:55:17 +00:00
d59a5dad7d Merge pull request #4299 from Laserlicht/input_modi_detection
input mode detection
2024-07-20 12:51:08 +03:00
0e207e7f64 change naming 2024-07-19 17:58:23 +02:00
0d6ec0d224 Reviewed usage of EBlitMode, now specified clearly in all cases 2024-07-19 10:08:50 +00:00
230add02e4 Remove no longer used code 2024-07-19 10:08:50 +00:00
920a39844b Unified naming of method to recolor UI element to current player scheme 2024-07-19 10:08:50 +00:00
a8a330f39f Remove unused code and no longer needed caching 2024-07-19 10:08:50 +00:00
ac30f7757b changed naming 2024-07-19 11:41:00 +02:00
26b164b7ca change naming 2024-07-19 03:44:45 +02:00
76fc821f82 click also change of modi; haptic only with touch 2024-07-19 03:16:56 +02:00
5dae5ed30e input modi detection 2024-07-19 03:00:19 +02:00
9ac7db24ca Merge branch 'develop' into quickspell 2024-07-18 21:24:42 +02:00
e629b7a371 reduce to 12 with gap 2024-07-17 19:26:18 +02:00
2dd22c383b make inactive buttons darker 2024-07-17 14:05:14 +02:00
f0435d8b8e small fix 2024-07-17 13:48:00 +02:00
f54b84ead9 use spellbook to select 2024-07-17 13:20:17 +02:00
5562402646 hotkey number from config 2024-07-17 12:37:23 +02:00
b8d872aa60 mobile adjustments 2024-07-17 04:24:27 +02:00
1daf6dfad1 make hideable 2024-07-16 23:36:23 +02:00
37b5de689a move to left side 2024-07-16 22:47:40 +02:00
29d3de2807 Fix missing video on winning the battle 2024-07-16 11:41:40 +00:00
11664b27b8 fix for develop 2024-06-21 22:34:14 +02:00
fe408c203b right click + tweak 2024-06-21 21:29:19 +02:00
53a1bf2051 add spell cast 2024-06-21 21:29:19 +02:00
e4dfca9f3d disable correctly 2024-06-21 21:26:10 +02:00
1a8a14a56d selectable fix 2024-06-21 21:26:10 +02:00
989394de53 Selectionwindow 2024-06-21 21:25:14 +02:00
814241e836 converted to window 2024-06-21 21:25:14 +02:00
1f6e0fae7d quickspell draft 2024-06-21 21:25:14 +02:00
b8beb4fb13 Fixes for various minor issues detected by Sonar Cloud 2024-06-01 11:48:30 +00:00
df83fa33a1 Merge branch 'vcmi/master' into 'vcmi/develop' 2024-05-31 09:34:21 +00:00
ffe14fc1fc Merge pull request #4022 from vcmi/master
Merge master -> beta
2024-05-20 18:09:51 +03:00
d502850054 Add network thread termination logic for adventure map animations 2024-05-18 12:15:48 +00:00