Commit Graph
81 Commits
Author SHA1 Message Date
Ivan Savenko 2ad186130f Split MapDefines file on .h per class basis 2025-07-07 18:16:42 +03:00
MichalZr6 f98155a785 Fixes following reviews 2025-05-13 12:51:40 +02:00
MichalZr6 87326ce9d9 prompt user for adding required mod
- when object is placed to map and its mod is not in the map's required mod list -> show question messagebox
- fix code in modAssessmentAll function
2025-05-13 12:51:40 +02:00
Ivan Savenko 4b30336d03 Fix issues detected by Sonar 2025-05-11 19:50:57 +03:00
Ivan Savenko ac26b3ed9b Merge pull request #5658 from IvanSavenko/memleak_fix
Fix discovered memory leaks & reduce usage of raw pointers
2025-04-30 13:38:37 +03:00
Ivan Savenko f70ad2c15b Reorganized artifact-related classes
- files now generally contain only 1 class (except for tightly coupled
classes)
- files are now located in lib/entities/artifact directory
- removed excessive includes

No changes to functionality
2025-04-29 13:29:08 +03:00
Ivan Savenko c0fb1d1b3b Replace some raw pointers with unique's or optional 2025-04-29 12:11:10 +03:00
Ivan Savenko 71bc1054d0 BattleStart pack now uses unique_ptr 2025-04-27 14:57:30 +03:00
Ivan Savenko dda5c9f13a Map objects now use shared_ptr (editor) 2025-04-27 14:57:30 +03:00
Ivan Savenko 645b95ba02 Renamed LibClasses * VLC to GameLibrary * LIBRARY 2025-02-21 16:54:56 +00:00
Ivan Savenko b36f5e4026 Merge branch 'beta' into 'develop' 2025-02-03 16:29:10 +00:00
godric3 61e5dbde20 map editor: fix resource reward in events 2025-02-02 17:03:58 +01:00
Ivan Savenko 920a66edb1 Merge branch 'beta' into 'develop' 2025-01-10 13:04:52 +00:00
George KingandAndrey Filipenkov 6c72aa4cbe Improved "Create new map" dialog for map editor (#5187)
* Improve  "Create new map" dialog

* Tweaks

* Tweaks

* Final tweaking

Optimized UI to look more consistent. Removed help button.

* Add files via upload

* Reworked dialog

* Formatting fix

* Add files via upload

* Add files via upload

* Add files via upload

* Fix seed condition

* Remove help button

* Remove help button

* Fixed labels

* Fix for Humans vs Computers combo

* Removed not needed connections + better radio names

* Update mapeditor/windownewmap.cpp

Co-authored-by: Andrey Filipenkov <kambaladecapitator@gmail.com>

* Improve map size selection grabbing

* Remove QRegularExpression

* Reformat mapSizes

---------

Co-authored-by: Andrey Filipenkov <kambaladecapitator@gmail.com>
2025-01-06 14:39:14 +02:00
Laserlicht c7d9cbc7e9 missing str 2025-01-04 16:26:57 +01:00
Laserlicht 4aed816b05 resource and playername translation 2025-01-04 16:26:57 +01:00
Ivan Savenko aabd92451c Merge branch master into develop 2024-12-27 13:29:44 +00:00
Ivan Savenko e2e5fce3b5 Disable emit macro from Qt to fix Qt-tbb conflict 2024-12-21 15:36:36 +00:00
Ivan Savenko 189e7dc94d Merge pull request #5048 from godric3/map-editor-remove-parent-chains
remove chains of `parent()->parent()` in map editor
2024-12-21 15:43:48 +02:00
Laserlicht e7b6962211 translate strings 2024-12-09 21:51:35 +01:00
godric3 c1413b9368 remove chains of parent()->parent() 2024-12-07 22:31:08 +01:00
DydzioandIvan Savenko 7a701b39fb Update mapeditor/mapsettings/timedevent.h
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com>
2024-12-05 21:02:54 +01:00
Dydzio e9be46af98 Merge branch 'develop' into timed_events_objects_removal 2024-12-03 17:27:24 +01:00
Ivan Savenko ba9e3dca9d Mod management rework, part 1
- Replaced CModInfo class with constant ModDescription class
- Simplified mod loading logic
- Extracted some functionality from ModHandler into separate classes for
future reuse by Launcher
2024-11-26 13:55:46 +00:00
Ivan Savenko 60fe8a05b9 Merge pull request #4775 from dydzio0614/map-editor-event-day-fix
Count days from 1 instead of 0 in map editor timed event UI
2024-10-15 18:00:23 +03:00
Dydzio 69b6e9c167 Count days from 1 instead of 0 in map editor timed event UI 2024-10-14 17:19:34 +02:00
Ivan Savenko 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
Ivan Savenko a8f8c3f4b1 Replaced most of accesses to CGObjectInstance::pos with anchorPoint() 2024-10-09 15:43:46 +00:00
godric3 d3db673df2 Fic build 2024-10-01 07:12:27 +02:00
godric3 d078c5ff2d store ObjectInstanceID of objects to remove instead of their position 2024-09-30 20:44:40 +02:00
godric3 e50ba14bbe Use exact position of object to remove + add object name to list of objects to remove 2024-09-30 19:17:21 +02:00
godric3 253af651cc Add map editor ui to set objects to remove on timed event 2024-09-29 13:37:24 +02:00
Dydzio cf5ce96aeb Backend implementation of object removal possibility by timed map events 2024-09-23 21:45:50 +02:00
godric3 514e81406d extract PlayerColor to QString conversion to helper function 2024-09-17 20:57:05 +02:00
godric3 9baccdeeae map editor: fix event players after conversion to std::set 2024-09-16 20:25:19 +02:00
Ivan Savenko 5523e08cb7 Players affected by event is now stored as std::set instead of bitmask 2024-08-14 14:13:49 +00:00
godric3 5578346dac map editor: Allow to customize town events 2024-07-28 16:28:21 +02:00
Ivan Savenko 4aa73b40c9 Split CTownHandler into smaller chunks 2024-07-21 18:21:48 +00:00
Ivan Savenko 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
Laserlicht 0dd36d3c4b replace deprecated functions 2024-06-29 14:55:56 +02:00
Laserlicht aa506e33b9 calendar 2024-06-29 14:24:40 +02:00
Laserlicht caaec71b9f fix 2024-06-29 14:14:21 +02:00
Laserlicht 02bd52041b extend map format 2024-06-29 13:13:59 +02:00
Alexander Wilms 02e429e973 Fix typos using https://github.com/crate-ci/typos
Changes were reviewed manually
2024-06-24 03:47:19 +02:00
Ivan Savenko df83fa33a1 Merge branch 'vcmi/master' into 'vcmi/develop' 2024-05-31 09:34:21 +00:00
godric3 c69150f984 fix victory/loss conditions widget 2024-05-26 22:50:26 +02:00
Ivan Savenko 7461df161c lib now uses shared_ptr for entities. Removed manual memory management. 2024-05-17 15:04:05 +00:00
Evgeny Malygin 25125f96da Fix: licenses, pragma guards, StdInc 2024-03-29 07:48:52 +02:00
Ivan Savenko 08a27663f9 Reworked JsonNode constructors to more logical form 2024-02-26 12:55:49 +02:00
Ivan Savenko fd17133da3 Fix editor build 2024-02-06 00:40:26 +02:00