Commit Graph
98 Commits
Author SHA1 Message Date
Ivan Savenko 4b57a168d5 Fix reliability issues from Sonar 2026-06-19 12:50:53 +03:00
Ivan Savenko 9d27acbc27 Fix new Sonar warnings 2026-04-30 15:38:57 +03:00
Boris Nagaev b05c0f8e6d Normalize local relative include directives
Normalize quoted local relative include directives to remove redundant
path segments while preserving relative includes.

This applies the normalizer across the tree and updates 108 includes in
64 files, including cases where paths inside lib/* redundantly used
../../lib/... and now correctly use ../... .

These paths compiled before because include resolution normalized them,
but they were longer and harder to audit.
2026-03-26 20:15:25 -05:00
Laserlicht 3924b0b4ae support multilayer for map infoboxes 2026-01-03 00:12:31 +01:00
Laserlicht cfe99b4bed show map popup for searched objects 2026-01-02 23:14:03 +01:00
Laserlicht 4b35c82854 color popup window 2025-10-12 01:53:37 +02:00
George KingandLaserlicht e96f3989f2 Update client/windows/InfoWindows.cpp
Co-authored-by: Laserlicht <13953785+Laserlicht@users.noreply.github.com>
2025-09-11 21:49:52 +02:00
George King c9e814ac21 Fix build 2025-09-04 13:20:47 +02:00
George King bc3b77684f Fix build 2025-09-04 13:13:01 +02:00
George King 872f2311c5 Use only when is enableUiEnhancements toogled 2025-09-04 13:05:18 +02:00
George King 36a51228e6 Update InfoWindows.cpp 2025-09-03 13:37:26 +02:00
Laserlicht ecfe09f6b1 multilevel support 2025-08-01 02:21:44 +02:00
Ivan Savenko fe2a981ddf Show skill that can be learned in university on right click
As in title. Now if player has already visited university before, game
will show list of skills that can be learned in this university on right
click
2025-07-20 16:25:50 +03:00
Ivan Savenko 35644da2b7 Reogranize callback-related classes on 1 file = 1 class basis 2025-05-12 22:07:09 +03:00
Ivan Savenko 948abfb04c AI now uses std::thread, added custom thread interruption logic 2025-03-02 14:33:11 +00:00
Ivan Savenko 156de5b17e Added GameInstance class
- available as global GAME
- integrates LOCPLINT (CPlayerInterface)
- integrates CGI->mh (CMapHandler)
- integrates CSH (CServerHandler)
2025-02-21 16:54:06 +00:00
Ivan Savenko ffd37a8fa8 Removed CGI in favor of VLC. Map handle is for now global variable 2025-02-21 16:53:14 +00:00
Ivan Savenko f657e85305 Integrated CClientState into GameEngine class 2025-02-21 16:53:14 +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
Laserlicht 2ebf1daf0d add smooth drag for RMB & fix drag for new windows 2025-01-19 00:30:23 +01:00
Ivan Savenko 19c981fc56 Added similar screen for Obelisk, moved assets to dedicated folder 2025-01-06 13:05:45 +00:00
Ivan Savenko 6d0dc9c5bb Added popup for keymasters/border guards similar to teleporters 2025-01-05 23:22:46 +00:00
Laserlicht c7963cf62f fix TeleporterPopup out of screen 2025-01-04 02:01:44 +01:00
Ivan Savenko 6d8e447ff3 Added new right-click popup to teleporters
Whirlpool, Subterranean Gates, and all Monoliths now show custom popup
on right-click that show all linked objects (exits and entrances).

Only revealed objects are visible, rest are hidden behind fow.

Exits, entrances, and bidirectional objects have different icon that
indicates direction.
2024-12-21 12:01:33 +00:00
Laserlicht 6366175a3c fix window 2024-11-23 19:19:07 +01:00
Ivan Savenko a8e84c55f6 Fix some of the new warnings from sonarcloud 2024-10-11 10:45:29 +00:00
Ivan Savenko fb28de5beb Merge pull request #4531 from Laserlicht/mouse_right_drag
map drag with right mouse
2024-09-19 16:42:33 +03:00
Ivan Savenko 7064374d87 Fix visions not working for towns 2024-08-29 15:46:03 +00:00
Laserlicht be7d27234f map drag with right mouse 2024-08-28 22:17:05 +02:00
Ivan Savenko 9fba3d97f1 Renamed & unified OBJECT_CONSTRUCTION macro set 2024-08-09 15:30:04 +00:00
Ivan Savenko 00605b5129 Remove largely unused defActions member from CIntObject 2024-08-09 14:26:53 +00:00
Ivan Savenko 75fd67a921 Fix mouse scroll not working in right-click popups 2024-07-19 19:36:05 +00:00
Ivan Savenko 9bfe000724 Added semi-workaround method for network thread shutdown:
Currently closing game while network thread is waiting for something is
very bug-prone, since network thread may resume during shutdown and
access partially destroyed client state.

Now if exit has been requested, the very first step would be semi-
graceful shutdown of network thread (via exception throwing). This may
in theory skip some cleanup in non-RAII code, but since game is shutting
down this does not matters much.

This logic applies to:
- shutting down while network thread is waiting for dialogs
- shuttind down while network thread waiting for animations in combat
2024-05-18 11:04:10 +00:00
Ivan Savenko 8003d0d7ca Restore handling of double-clicks in message boxes 2024-04-14 13:09:39 +03:00
Ivan Savenko 658747d342 Code cleanup 2024-02-27 14:45:15 +02:00
Ivan Savenko 99cb1df91d Fixes for positioning on popups with components 2024-02-27 13:15:16 +02:00
Ivan Savenko 93b3cb3af5 Better size & positioning of infoboxes 2024-02-26 22:04:30 +02:00
Ivan Savenko 4b4dedeab9 Code formatting 2024-02-26 18:53:12 +02:00
Ivan Savenko e6b339448f Refactoring & deduplication of infowindow code 2024-02-26 18:32:15 +02:00
Ivan Savenko 658cc14cd0 Removed direct usage of SDL_Surface in info windows 2024-02-26 15:49:27 +02:00
Ivan Savenko 5419df1140 Removed no longer used class 2024-02-26 15:49:27 +02:00
Ivan Savenko 81a48f2d80 Do not attempt to resize text box to zero-width 2023-11-27 14:08:49 +02:00
Ivan Savenko e0f6b582f5 Display object description only on right-click 2023-10-19 14:36:11 +03:00
Ivan Savenko 0f2922d064 Only show components if UI enhancements is on 2023-10-19 13:33:49 +03:00
Ivan Savenko 927ce4e60e Improvements to rewardable objects popups 2023-10-16 23:55:37 +03:00
Laserlicht 39838fdd3c extend for all selections 2023-09-15 15:24:17 +02:00
Ivan Savenko e8453916cf Merge remote-tracking branch 'vcmi/beta' into develop 2023-09-08 18:49:06 +03:00
Ivan Savenko 823ffa7a07 Always use ResourcePath for referencing images and animations 2023-09-04 18:22:34 +03:00
Dydzio e1e41d1107 Implement TOPCENTER text alignment 2023-08-30 00:35:31 +02:00
Dydzio ed12f20609 Improve neutral creature adventure map popup 2023-08-21 14:42:41 +02:00