Michael
b61890355f
Update MapViewController.cpp
2023-08-27 23:17:47 +02:00
Michael
1c89c71031
Update MapViewController.cpp
2023-08-27 22:55:05 +02:00
Michael
3ce9d022d5
try to remove glitch
2023-08-27 22:00:20 +02:00
Michael
da3014bd54
Haptic feedback and increased dead zone
2023-08-27 21:40:56 +02:00
Michael
3960e5aa32
Update client/mapView/MapView.cpp
...
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com>
2023-08-27 20:55:37 +02:00
Michael
f16b93c391
dead area for zoom
2023-08-27 14:00:40 +02:00
Michael
b77bccdc24
code review
2023-08-27 12:09:26 +02:00
Michael
d1d0d6d62e
fps independent
2023-08-27 02:35:10 +02:00
Michael
4137a66f2a
fix division by zero edge case
2023-08-27 00:53:09 +02:00
Michael
bbd69fd430
added setting
2023-08-27 00:33:52 +02:00
Michael
4eecca2d9a
code review
2023-08-27 00:22:29 +02:00
Michael
6b71820197
avoid some edge cases
2023-08-26 23:25:46 +02:00
Michael
a354a7f696
compatible with older sdl
2023-08-26 22:30:02 +02:00
Michael
e57e9e8e9f
ready draft
2023-08-26 21:29:24 +02:00
Michael
2286e0c7b1
implement speed and move
2023-08-26 21:13:33 +02:00
Michael
fe6d96f4a0
angle calc
2023-08-26 20:19:25 +02:00
Michael
bd0f9bb280
preparation
2023-08-26 19:53:36 +02:00
Ivan Savenko
44d16b32fe
Use API identical to std classes where possible
2023-08-23 16:32:29 +03:00
Ivan Savenko
f13a53c1d9
Merge remote-tracking branch 'vcmi/beta' into develop
2023-08-12 17:28:47 +03:00
Ivan Savenko
e9fb0c9b8c
Make object fade-out / fade-in instant on instant movement speed
2023-08-10 13:02:34 +03:00
Ivan Savenko
0c9e2d6fdd
Workaround for crash on map rendering
2023-08-06 14:11:31 +03:00
Ivan Savenko
43795c39a5
Replaced all usage of SDL_Color outside of render with ColorRGBA
2023-07-31 21:07:30 +03:00
Ivan Savenko
5e8a778e7d
Attempt to fix / trace crashes from Google Play statistics
2023-07-18 17:31:21 +03:00
Ivan Savenko
61750d30c2
Implemented dragging map via left mouse click (off by default)
2023-07-16 12:00:40 +03:00
Ivan Savenko
ca889a5c2a
Replaced clickLeft with clickPressed clickReleased methods
2023-07-08 14:33:04 +03:00
Ivan Savenko
fa4a0004b2
Merge pull request #2291 from IvanSavenko/terrain_animations_config
...
Moved hardcoded terrain palette-cycling animations to config
2023-07-07 14:28:39 +03:00
Ivan Savenko
a9d25b0109
Fix map grid visibility on game load
2023-07-07 01:27:57 +03:00
Ivan Savenko
3bce245780
Moved hardcoded terrain palette-cycling animations to config
2023-07-05 22:07:20 +03:00
Ivan Savenko
81b9aec527
Fix map edge scrolling after swiping usage
2023-07-03 23:50:09 +03:00
Ivan Savenko
4e7412faa6
Split mouseDragged event from mouseMoved
2023-06-22 22:11:48 +03:00
Ivan Savenko
ccc85ff4eb
Merge pull request #2246 from IvanSavenko/pathfinding_reorganization
...
Pathfinding code reorganization
2023-06-21 18:22:44 +03:00
Ivan Savenko
ebc7a82c2e
Converted pathfinder enum's to enum class
2023-06-21 15:38:57 +03:00
Ivan Savenko
bd4d2788ed
Split pathfinder into multiple smaller files
2023-06-21 13:46:09 +03:00
Ivan Savenko
06437cbde6
Renamed gesture-related methods, remove unused code
2023-06-20 19:58:05 +03:00
Ivan Savenko
563d7dd41f
Renamed RCLICK -> SHOW_POPUP
2023-06-20 19:58:05 +03:00
Ivan Savenko
d4aa778547
Replaced clickRight event with showPopupWindow/closePopupWindow
2023-06-20 19:58:05 +03:00
Ivan Savenko
0f2a339ab5
Implemented pinch gesture to scale adventure map
2023-06-05 19:20:08 +03:00
Ivan Savenko
b20109c830
Test version of swipe gesture for in-combat attacks
2023-06-05 19:20:08 +03:00
Ivan Savenko
360bf48031
Implemented panning/swiping gesture for sliders
2023-06-05 19:09:56 +03:00
Ivan Savenko
dc8e9cd048
wheelScrolled event now accepts distance instead of bool
2023-06-05 19:00:57 +03:00
Ivan Savenko
48859e186e
Added panning gesture, activated by mouse wheel press
2023-06-05 19:00:56 +03:00
Ivan Savenko
8d278e653f
Merge pull request #2202 from IvanSavenko/map_objects_reorganization
...
Map objects code reorganization
2023-06-05 18:35:05 +03:00
Ivan Savenko
d6a357fd17
Split some map object files into smaller files. Reduced includes usage.
2023-06-02 21:47:37 +03:00
Ivan Savenko
8ea0ecaec1
show/showAll methods now use Canvas instead of SDL_Surface
...
- added compatibility method to Canvas to allow SDL_Surface access
- added drawBorder method to Canvas to replace CSDL_Ext method
- added drawColor method to Canvas to replace CSDL_Ext method
- minor changes to Tavern and Trade windows to adapt to new API
2023-06-02 16:42:18 +03:00
Ivan Savenko
acac42291e
Remove excessive CMap.h includes
2023-05-31 23:18:38 +03:00
Ivan Savenko
2c3e8c3390
Merge pull request #2168 from IvanSavenko/gui_handler_event_handling_refactoring
...
Event handling refactoring
2023-05-23 15:08:10 +03:00
Ivan Savenko
956ff22e64
Merge pull request #2163 from IvanSavenko/adventure_map_zoom
...
Adventure map zoom
2023-05-20 13:35:53 +03:00
Ivan Savenko
0e70f2998f
SDL event handling is now done exclusively in input handler
2023-05-20 01:51:49 +03:00
Ivan Savenko
5e86b00dda
Moved input handling from GuiHandler to set of classes in eventsSDL dir
2023-05-20 01:51:49 +03:00
Ivan Savenko
1c82a10fdd
Fix graphical artifacts on map scaling
2023-05-19 17:09:46 +03:00
Ivan Savenko
be2e101c8c
Fix map freeze on enemy turn
2023-05-19 13:22:18 +03:00
Ivan Savenko
872b68c59a
Implemented zoom reset shortcut (backspace)
2023-05-17 14:54:19 +03:00
Ivan Savenko
7504ceb256
Fixed map view centering during scaling change
2023-05-17 14:36:12 +03:00
Ivan Savenko
9e3bc87a6b
Allow zooming with mouse wheel
2023-05-17 00:49:24 +03:00
Ivan Savenko
3e9da333cf
Basic version of zoomable adventure map
2023-05-16 23:42:51 +03:00
Ivan Savenko
ad3e54e6c0
Reduced usage of topWindow() method
2023-05-16 21:57:45 +03:00
Ivan Savenko
e2ef136003
Renamed "Int" -> "Window" in WindowHandler API
2023-05-16 19:10:22 +03:00
Ivan Savenko
7838190ef4
Moved window stack management from GuiHandler to new class
2023-05-16 19:10:21 +03:00
Ivan Savenko
fa496628f2
Separated timer updates from rendering in adventure map and town screen
2023-05-14 22:22:37 +03:00
Ivan Savenko
03df274450
Framerate manager is now in a separate file and private member of GH
2023-05-14 22:22:37 +03:00
Ivan Savenko
243773b6ef
Renamed some adventure map files & classes
2023-05-09 13:10:33 +03:00
Ivan Savenko
fb739e7186
Merge beta -> develop
2023-04-26 22:48:08 +03:00
Ivan Savenko
48abf46824
Merge pull request #2005 from IvanSavenko/advmap_refactor
...
Refactoring of adventure map interface
2023-04-24 17:19:22 +03:00
Ivan Savenko
d3c1c92a03
Do not update minimap using puzzle map data
2023-04-24 17:16:55 +03:00
Ivan Savenko
fa156568c4
Fixes according to review
2023-04-24 16:58:15 +03:00
Ivan Savenko
dd227d24c3
Formatting and cleanup
2023-04-20 22:04:24 +03:00
Ivan Savenko
6a46138617
Moved current selection to local state class
2023-04-20 22:04:24 +03:00
Ivan Savenko
f6d480cbb2
Moved player-specific heroes & towns information to new class
2023-04-20 22:04:24 +03:00
Ivan Savenko
4ec32e4dcd
Renamed CAdvMapInt to its proper full name
2023-04-20 22:04:24 +03:00
Ivan Savenko
f1902ab247
Initial refactoring to encapsulate adventure map
2023-04-20 22:03:28 +03:00
nordsoft
de159df481
Rename boats
2023-04-20 21:20:51 +04:00
Ivan Savenko
5c9ae8aafc
Implemented spell range overlay for Dimension Door and Scuttle Boat
2023-04-20 14:15:08 +03:00
nordsoft
d1dacd45e2
Animations from config
2023-04-19 00:14:15 +04:00
nordsoft
ed798b06da
Prepare transport enum
2023-04-18 13:04:49 +04:00
nordsoft
2babb5add5
Fix boat extra animations
2023-04-17 23:39:34 +04:00
Ivan Savenko
506c3d29bc
Replaced vstd clamp with std version
2023-04-12 01:03:14 +03:00
Ivan Savenko
839172cd30
Do not attempt to play animations when map is inactive
2023-03-31 23:18:45 +03:00
Ivan Savenko
ea1d177c9b
Fixed false error messages on game startup
2023-03-31 01:28:56 +03:00
Ivan Savenko
2cca15c2db
Fix graphical artifact in hero movement animation
2023-03-28 22:37:53 +03:00
Ivan Savenko
339bbce7b7
Added more checks to avoid potential nullptr dereference crash
2023-03-25 23:54:51 +02:00
Ivan Savenko
8af76947cb
Do not cache hovered tile and always update state
2023-03-22 19:49:57 +02:00
Ivan Savenko
54e8abb3eb
Fix map animation playback speed
2023-03-22 15:51:25 +02:00
Ivan Savenko
a78f7de9cd
Fix crash on defeating hero in boat
2023-03-22 00:38:55 +02:00
Ivan Savenko
bfe7bb11ab
Fix crash on winning scenario
2023-03-21 18:40:48 +02:00
Ivan Savenko
a065fb2e6d
Fix scrolling area bounds while in world view mode
2023-03-15 14:47:23 +02:00
Ivan Savenko
87eab92290
Fix crash on killing hero in boat & visual artifacts from whirpool
2023-03-15 00:31:51 +02:00
krs
1f06a62219
Do not show visitable for current hero
2023-03-08 22:43:52 +02:00
krs
7e97885e73
Renamed showBlockable to showBlocked
2023-03-08 01:19:26 +02:00
Ivan Savenko
db9a296d02
Fix debug renderer
2023-03-07 00:06:58 +02:00
Ivan Savenko
1d03900f16
Fix render priority of heroes
2023-03-07 00:06:58 +02:00
Ivan Savenko
322b8e8840
Fix visibility of garrisoned heroes while picking up resources
2023-03-07 00:06:58 +02:00
Ivan Savenko
b7025125d5
Added map swipe option
2023-03-05 23:53:06 +02:00
Ivan Savenko
59d8989399
Fix initialization of movement speed settings
2023-03-05 18:02:59 +02:00
Ivan Savenko
b61cae5b37
Fixed minor issues discovered during testing
2023-03-05 18:02:59 +02:00
Ivan Savenko
165f6a0944
Implemented terrain transition animation
2023-03-05 18:02:59 +02:00
Ivan Savenko
58aa5c0427
Formatting
2023-03-05 18:02:59 +02:00
Ivan Savenko
b57a07b10f
Restored ambient sounds functionality
2023-03-05 18:02:59 +02:00
Ivan Savenko
cdcd5a29dd
Updated path to renamed directory
2023-03-05 18:02:59 +02:00
Ivan Savenko
225ae2ed46
Renamed directory
2023-03-05 18:02:59 +02:00