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

320 Commits

Author SHA1 Message Date
4b2cba96cc Merge pull request #3646 from IvanSavenko/configurable_button
Configurable buttons
2024-03-04 13:34:40 +02:00
ddb2acb9c2 Code cleanup 2024-02-29 15:39:13 +02:00
0051ffa7a9 Implemented configurable buttons. Replaced 'animateLonelyFrame' logic. 2024-02-29 13:57:25 +02:00
07d201502e Refactoring of button class to prepare for configurable button 2024-02-29 13:57:25 +02:00
8b60275a6e Hero exchange in town is now activated by clicking on hero portrait 2024-02-18 21:02:24 +02:00
4c70abbeb5 Reduced usage of global variables - removed or made const / constexpr 2024-02-12 13:49:45 +02:00
6e399eb21a Make some non-const static variables const or constexpr 2024-02-12 13:22:54 +02:00
facdc9f993 Merge pull request #3583 from Laserlicht/town_portal
town portal dialog adjustments
2024-02-01 11:30:51 +02:00
9e7fbc3ca2 use localstate 2024-01-31 21:29:04 +01:00
9cd6a6838b fix 2024-01-31 11:32:35 +01:00
ebb2cce8b8 rework town portal 2024-01-31 02:30:10 +01:00
3abc26e789 Moved checks for campaign heroes to CGHeroInstance class 2024-01-30 23:33:58 +02:00
bd5682ecc3 Merge remote-tracking branch 'vcmi/master' into develop 2024-01-19 13:49:54 +02:00
f3277b7953 Define each identifier in a dedicated statement 2024-01-10 00:22:23 +00:00
24d4816a36 trim text 2024-01-07 23:42:48 +01:00
ea8995e901 Fixed check for free slots when recruiting in towns 2023-11-28 16:25:11 +02:00
2eada0efca allow shortcout if any town has a marketplace 2023-11-25 03:14:31 +01:00
1954447a9e fix image order 2023-11-25 02:58:06 +01:00
864462b84a Reduce excessive updates of garrisons. Fixes selection reset in simturns 2023-11-09 00:01:48 +02:00
5487f07d3b added toEntity overload that accepts generic Services class 2023-11-04 17:04:53 +02:00
184f5a72cc Use toEntity/toXXX methods in Identifier instead VLC objects access 2023-11-03 16:03:29 +02:00
056ef00f74 Bugfixing 2023-11-02 13:52:58 +02:00
10e50548e7 Converted Component class to use VariantIdentifier instead of int 2023-11-02 12:00:04 +02:00
8346d71c98 Remove more subID access 2023-11-01 14:44:05 +02:00
10ad5b6789 client/windows/CCastleInterface.cpp: Identical sub-expressions on both sides of operator "&&".
Identical expressions should not be used on both sides of a binary operator
2023-10-27 18:19:17 +00:00
3880ea58b9 Merge branch 'josch/dos2unix' into develop 2023-10-22 18:39:03 +03:00
12b179ef1f Merge pull request #3057 from Laserlicht/rw_hero 2023-10-20 01:42:06 +02:00
a1a5bc28c2 convert line endings from CRLF (Windows) to LF (Linux/Unix)
Mixed line endings cause problems when exporting patches with
git-format-patch and then trying to "git am" a patch with mixed and
non-matching line endings. In such a situation git will fail to apply
the patch.

This commit runs the dos2unix tools on the remaining files with CRLF
(\r\n) line endings to convert them to line-feeds (\n) only.

Files that are Windows specific like *.vcxproj and *.props files were
not converted.

Closes: #3073
2023-10-19 16:23:21 +02:00
464577be28 new icons 2023-10-17 20:06:35 +02:00
efcf6b71d7 formatting 2023-10-15 12:58:07 +02:00
23e1b0b0d5 radial wheel for hero 2023-10-15 02:43:42 +02:00
9e508fe2c2 interface improvements 2023-10-13 19:56:56 +02:00
ab36692847 Merge pull request #3037 from Laserlicht/missing_res 2023-10-13 10:36:33 +02:00
8a3e58cd5e red is the most liked color 2023-10-10 23:15:40 +02:00
926bf71814 make townhall clickable 2023-10-10 21:02:40 +02:00
25f7bb40d0 new layout 2023-10-09 22:50:07 +02:00
fa9d5e9971 show missing resources 2023-10-09 21:43:43 +02:00
b75a67ef7c Merge pull request #2973 from IvanSavenko/identifier_explicit_constructor
Improvements to type safety of Identifier class
2023-10-05 00:33:07 +03:00
037efdf5fc Improvements to type safety of Identifier class
- Constructor of Identifier from integer is now explicit
- Lobby hero/town selection now uses Identifiers instead of int's
- Removed serialization workaround for hero portraits
- Added dummy objects for custom heroes portraits for ID resolver to use
- HeroInstance now stores portrait ID only in case of custom portrait
- Fixed loading of campaign heroes portraits on RoE maps
2023-10-04 18:05:23 +03:00
39a92cdde3 Add query for dwellings dialog 2023-10-04 17:47:12 +03:00
898733eed7 Added Query to track visit duration for Taverns and Markets 2023-10-04 17:47:12 +03:00
42d9ba6c82 Merge pull request #2877 from IvanSavenko/simturn_fixes
Changes for simturns support
2023-09-20 22:09:25 +03:00
2af7d7c085 Ignore garrison update events of another towns for our castleInt 2023-09-19 19:24:35 +03:00
3d04e9c9ed Cleaned up and fixed ownership checks for market netpack 2023-09-18 17:22:30 +03:00
1d0e696db6 Added RenderHandler that acts as factory for images and animations 2023-09-04 18:22:34 +03:00
823ffa7a07 Always use ResourcePath for referencing images and animations 2023-09-04 18:22:34 +03:00
e54287ea5d Converted remaining identifier to new system 2023-08-25 13:38:02 +03:00
0240ee886d Converted (almost) all namespace enum's to enum classes 2023-08-25 13:38:02 +03:00
f13a53c1d9 Merge remote-tracking branch 'vcmi/beta' into develop 2023-08-12 17:28:47 +03:00
ad2bd897d0 Replace boost::format with MetaString
Looks like some of H3 localizations don't have string replacements for
building / war machine name, resulting in exceptions on formatting
attempt. MetaString handles this case silently.
2023-08-11 18:50:39 +03:00