Commit Graph
122 Commits
Author SHA1 Message Date
Mitchell McCaffrey 8432176014 Fix map scroll when modal open 2020-05-28 11:52:18 +10:00
Mitchell McCaffrey a567cee289 Disabled pointer events for dice tray results text 2020-05-27 18:41:34 +10:00
Mitchell McCaffrey 6f51fd8cbe Fix touch highlight for dice overlay 2020-05-27 16:39:53 +10:00
Mitchell McCaffrey 0d37f8c6e3 Changed map interaction to ignore events not on the canvas
This removes the need for calling prevent interaction all over the code also allowed pointer events to go through the empty parts of the dice tray
2020-05-27 15:26:42 +10:00
Mitchell McCaffrey 7f0b4e32af Separated dice loading and dice instance creation and added loading spinner for dice 2020-05-27 14:47:51 +10:00
Mitchell McCaffrey da84f923d1 Added per dice physics properties 2020-05-27 14:01:12 +10:00
Mitchell McCaffrey d4ec013df2 Zoom dice camera 2020-05-27 12:25:20 +10:00
Mitchell McCaffrey cf12ff22ed Added thickness to dice tray collision wall and roof 2020-05-27 12:04:28 +10:00
Mitchell McCaffrey 027fc480e1 Removed flex wrap from dice controls 2020-05-27 11:34:32 +10:00
Mitchell McCaffrey b786b176b0 Added multiple dice tray sizes 2020-05-27 11:24:17 +10:00
Mitchell McCaffrey 0a5b33a69f Removed outline when dice tray is focused 2020-05-26 17:21:50 +10:00
Mitchell McCaffrey 5a2e0a53ed Fix map scroll with modals open 2020-05-26 15:44:41 +10:00
Mitchell McCaffrey dec8fd3c2e Updated dice tray icon and fixed map interaction with select dice modal open 2020-05-26 15:43:46 +10:00
Mitchell McCaffrey 84b198c851 Added dice style select 2020-05-26 14:47:37 +10:00
Mitchell McCaffrey c99e5bf5f8 Adjusted dice mass and friction and added velocity window for dice throwing 2020-05-26 10:57:12 +10:00
Mitchell McCaffrey 3be729d4a0 Added reset to dice physics when rerolling 2020-05-25 20:52:11 +10:00
Mitchell McCaffrey 70f68a9093 Fix dice momenent conflict on touch devices 2020-05-25 20:46:21 +10:00
Mitchell McCaffrey fd5998ea17 Added dice tray resizing to match screen size 2020-05-25 20:37:17 +10:00
Mitchell McCaffrey 90e6e43c1d Merge branch 'release/v1.3.0' into feature/dice 2020-05-25 19:29:11 +10:00
Mitchell McCaffrey 43b0ff3e2e Removed double click map reset due to conflicts with other interactions 2020-05-25 18:56:46 +10:00
Mitchell McCaffrey 4b4c88f85c Added back double click to reset map transform 2020-05-25 18:08:39 +10:00
Mitchell McCaffrey 92c14533f1 Updated pinch map gesture to support movement and fix bug with drawing while pinching 2020-05-25 17:26:36 +10:00
Mitchell McCaffrey ef96f2f7c4 Reversed context menu as it was bugged with map interaction 2020-05-25 16:12:30 +10:00
Mitchell McCaffrey 6bd0cefc14 Added right click support back for token menu 2020-05-25 16:01:15 +10:00
Mitchell McCaffrey 33d7d972be Added map loading provider to fix bugs with multiple asset loading 2020-05-25 15:34:22 +10:00
Mitchell McCaffrey b0c1dcf9dd Changed map drag position to use a ref value to avoid re-renders
Added a useMapBrush helper
2020-05-25 15:07:12 +10:00
Mitchell McCaffrey 8932ceb1e3 Make map translation smoother by removing it from the state 2020-05-25 14:09:45 +10:00
Mitchell McCaffrey be7d6c5277 Moved to react spring for konva animations 2020-05-25 10:37:28 +10:00
Mitchell McCaffrey bbb9279228 Fix undefined error in token state sort 2020-05-24 13:32:49 +10:00
Mitchell McCaffrey a91f2c6d39 Added tap events for map interaction 2020-05-22 23:55:50 +10:00
Mitchell McCaffrey 5f2d282df8 Added pinch to zoom for map 2020-05-22 23:43:55 +10:00
Mitchell McCaffrey 09e423fd56 Added token animations back, edited token change event to support multiple edits
This stopped mounted vehicle animations from lagging
2020-05-22 22:17:30 +10:00
Mitchell McCaffrey ef1c875088 Added token rotation 2020-05-22 21:10:05 +10:00
Mitchell McCaffrey a8bd5ab672 Added is vehicle checkbox and vehicle type tokens 2020-05-22 20:43:07 +10:00
Mitchell McCaffrey a77c4158ca Readded loading spinner for map loading and fixed infinite token size when loading 2020-05-22 17:56:03 +10:00
Mitchell McCaffrey 9f21f895ba Disable map interaction in map selection modal 2020-05-22 17:25:17 +10:00
Mitchell McCaffrey a6768727fe Readded map fog 2020-05-22 17:22:32 +10:00
Mitchell McCaffrey a81eed1a48 Added transparency for tokens that can't be dragged 2020-05-22 15:11:18 +10:00
Mitchell McCaffrey 14c9151405 Added proper cursors for the selected tool 2020-05-22 15:10:20 +10:00
Mitchell McCaffrey d26932d17c Added back map drawing 2020-05-22 13:47:11 +10:00
Mitchell McCaffrey 9e01ad1d0e Simplified menu interaction prevention 2020-05-22 13:46:52 +10:00
Mitchell McCaffrey d9a4b10563 Fix token resolution for high DPI screens 2020-05-22 13:44:05 +10:00
Mitchell McCaffrey 118878d9e1 Readded map token remove 2020-05-21 22:57:44 +10:00
Mitchell McCaffrey daab80f45e Fix prevent interaction bug in map token 2020-05-21 21:31:15 +10:00
Mitchell McCaffrey b9968053b7 Converted token label and status to konva 2020-05-21 20:57:52 +10:00
Mitchell McCaffrey 5b70f69fb7 Moved map and map tokens to Konva 2020-05-21 16:46:50 +10:00
Mitchell McCaffrey 542388a67f Removed single character limit for token labels and added sizing for token size 2020-05-20 18:39:57 +10:00
Mitchell McCaffrey 3f959fd3a3 Added unknown token for when a token in use is deleted 2020-05-20 11:35:14 +10:00
Mitchell McCaffrey dbc3cd83e7 Fix performance issue from changing map state 2020-05-19 16:33:23 +10:00
Mitchell McCaffrey 7b98370e4c Added token edit modal, refactored map and token data providers
Refactored image drop code into reusable component as well
2020-05-19 16:21:01 +10:00