Commit graph

388 commits

Author SHA1 Message Date
Jeremie Pardou-Piquemal
d8ef58edc1 Perf enhancement when shuffling items 2020-07-12 22:06:14 +02:00
Jeremie Pardou-Piquemal
70a5ed9997 Big performance enhancement by using better recoil 2020-07-12 22:06:14 +02:00
Jeremie Pardou-Piquemal
f371e5f3d8 Add random id to box content if missing 2020-07-12 22:06:14 +02:00
Jeremie Pardou-Piquemal
405631243f Try to improve perf by doing deep comparaison 2020-07-12 22:06:14 +02:00
Jeremie Pardou-Piquemal
14f84bb16f Try to improve perf when edit mode is enabled 2020-07-12 22:06:14 +02:00
Jeremie Pardou-Piquemal
cfc747c46c Closes #116 2020-07-12 22:06:14 +02:00
Jeremie Pardou-Piquemal
5c250c4548 Fix typo in translation 2020-07-12 22:06:14 +02:00
Jeremie Pardou-Piquemal
15d72027d2 Closes #113 typo in property 2020-07-12 22:06:14 +02:00
Jeremie Pardou-Piquemal
98be82d3b7 Allow non master to add available items 2020-07-09 21:22:12 +02:00
Jeremie Pardou-Piquemal
8c48a816f0 Fix bug when no classes 2020-07-09 21:22:12 +02:00
Jeremie Pardou-Piquemal
123edee018 Fix label vs text and edit mode for all 2020-07-09 21:01:47 +02:00
Romain Garrigues
9d988ea309 Adds ctrlKey management to differentiate pinch from pan.
Warning: this change will only affect the OS X family.
2020-07-09 20:29:12 +02:00
Jeremie Pardou-Piquemal
7e715f2896 New game is now visible only if you try to create games 2020-07-05 14:02:39 +02:00
Jeremie Pardou-Piquemal
432a9f6ac8 Add rotate action 2020-07-05 14:02:39 +02:00
Jeremie Pardou-Piquemal
3584d65b78 Filter available actions only for selection 2020-07-05 14:02:39 +02:00
Jeremie Pardou-Piquemal
c08c6d2dff Add e2e tests first pass 2020-07-05 14:02:39 +02:00
Jeremie Pardou-Piquemal
037559fd3d Remove extra border around when no overlay 2020-07-05 14:02:39 +02:00
Jeremie Pardou-Piquemal
443fe66d58 Fix backface visibity hidden 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
5e149728df Fix stiky move on mac 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
24a3b7b539 Add board config 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
aedc79fc2c Center board on game loading 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
c2f0afbb17 Remove gap under all image items 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
d1ca731928 Avoid stiky move on mouse leave 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
c4c88880c8 first attempt to avoid zoom gap 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
ce4eb54000 Dim label size 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
ed1a67476c If alt key is pressed, avoid selector, if ctrl avoid zoom 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
fdd969273d Fix broken layer feature 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
88138bad1d Handle selection outside of board 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
bc70ad7760 Add transition to smooth cursor move 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
2b6d541e2f Closes #86 game box is updated if game as url 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
2cf86a3048 Reverse card order on flip 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
d07105d466 Allow ctrl selection and put selected on top 2020-07-03 16:38:03 +02:00
Jeremie Pardou-Piquemal
cf966cc6c1 Add navbar 2020-07-02 17:34:06 +02:00
Jeremie Pardou-Piquemal
e190dabfcc Add help modal 2020-07-02 17:34:06 +02:00
Jeremie Pardou-Piquemal
03dab656aa Add shortcut to actions 2020-06-30 22:00:58 +02:00
Jeremie Pardou-Piquemal
cf4e68ca34 Fix bug when counter was edited 2020-06-30 22:00:58 +02:00
Jeremie Pardou-Piquemal
7279baa964 Add animation to images 2020-06-30 22:00:58 +02:00
Jeremie Pardou-Piquemal
0e9fa4ed31 Add edit mode 2020-06-30 22:00:58 +02:00
Jeremie Pardou-Piquemal
6e83bd63c9 Add translation for all string 2020-06-29 20:20:37 +02:00
Jeremie Pardou-Piquemal
892299f7fc Change layout and split components 2020-06-29 19:59:37 +02:00
Jeremie Pardou-Piquemal
ffd4d492f3 Remove games 2020-06-25 23:25:18 +02:00
Jeremie Pardou-Piquemal
f0c4217748 Add colorpicker 2020-06-25 22:36:30 +02:00
Jeremie Pardou-Piquemal
35144ad7bd New game button 2020-06-25 22:36:30 +02:00
Jeremie Pardou-Piquemal
cc67a28903 First attempt to add items 2020-06-25 22:36:30 +02:00
Jeremie Pardou-Piquemal
1709524444 Add item edition 2020-06-24 21:42:30 +02:00
Jeremie Pardou-Piquemal
38e4b536d7 unify code 2020-06-24 21:42:30 +02:00
Jeremie Pardou-Piquemal
c3590fe7fb Reuse code 2020-06-24 21:42:30 +02:00
Jeremie Pardou-Piquemal
57faef3ce2 Avoid unecessary render 2020-06-24 21:42:30 +02:00
Jeremie Pardou-Piquemal
bc242addb6 Add wdyr 2020-06-24 21:42:30 +02:00
Romain Garrigues
a0d5c62bcd Only displays by default the group titles in the box item generation section of the menu. 2020-06-23 21:51:41 +02:00
Jeremie Pardou-Piquemal
9e6aa42e9a Can add/remove items 2020-06-21 18:18:06 +02:00
Jeremie Pardou-Piquemal
528d553f4a Fix #53 First pass on add note 2020-06-21 18:15:15 +02:00
Jeremie Pardou-Piquemal
01dcb27334 Enhance perfs 2020-06-21 17:26:29 +02:00
Jeremie Pardou-Piquemal
64836c5add Fix chrome unable to select multiple items 2020-06-21 17:26:29 +02:00
Jeremie Pardou-Piquemal
2d0880bf24 Fix cursor under elements 2020-06-21 17:26:29 +02:00
Jeremie Pardou-Piquemal
1d962a7bb3 Fix #65 force websocket 2020-06-21 17:26:29 +02:00
Jeremie Pardou-Piquemal
93810b3419 Enhance dice 2020-06-21 14:22:00 +02:00
Jeremie Pardou-Piquemal
d663673180 Fix #52 add layer managment 2020-06-21 14:22:00 +02:00
Jeremie Pardou-Piquemal
d655168ad5 fix #4 Add dice widget 2020-06-21 14:22:00 +02:00
Jeremie Pardou-Piquemal
7bdc0913dc Refactor Board components 2020-06-20 16:45:05 +02:00
Romain Garrigues
dccfc75ea7 Adds a form to be able to modify an Image label. 2020-06-20 16:11:35 +02:00
Jeremie Pardou-Piquemal
b5b0ee4b2d Gather user relative components 2020-06-20 14:17:11 +02:00
Jeremie Pardou-Piquemal
3cf7d6e66c Refactor user hooks 2020-06-20 14:04:32 +02:00
Jeremie Pardou-Piquemal
d36655069e Refactor list actions to avoid duplication 2020-06-19 22:21:02 +02:00
Jeremie Pardou-Piquemal
b50aa1ad64 Fix counter when no value 2020-06-19 22:21:02 +02:00
Jeremie Pardou-Piquemal
89b70b98c8 Split item in one file by component 2020-06-19 22:21:02 +02:00
Jeremie Pardou-Piquemal
26598ba713 Fix impossible to select locked element 2020-06-19 22:21:02 +02:00
Jeremie Pardou-Piquemal
91d9a1ae62 Fix #58 counter style 2020-06-19 22:19:16 +02:00
Jeremie Pardou-Piquemal
cdf0903583 Fix #57 split on undefined error 2020-06-19 22:19:16 +02:00
Romain Garrigues
61bf3cf354 Updates the gloomhaven box json file to only include item "template" information:
- Removes x/y coordinates,
- Removes item duplicate generation,
- Introduces labels and groupIds for better displaying possibilities.
2020-06-19 20:14:00 +02:00
Jeremie Pardou-Piquemal
d79dff0b72 First pass on item styling 2020-06-19 18:05:48 +02:00
Jeremie Pardou-Piquemal
c8cd8bb11e Style GameController 2020-06-19 18:05:48 +02:00
Jeremie Pardou-Piquemal
dd8d3938aa Fix perf problem 2020-06-19 18:05:48 +02:00
Jeremie Pardou-Piquemal
75fed10ed2 Style user list 2020-06-19 18:05:48 +02:00
Jeremie Pardou-Piquemal
aa8a91fcbd Style user config 2020-06-19 18:05:48 +02:00
Jeremie Pardou-Piquemal
27061e1a09 Styled panzoomrotate 2020-06-19 18:05:48 +02:00
Jeremie Pardou-Piquemal
9ad713d3ac Use styled component on cursor 2020-06-19 18:05:48 +02:00
Jeremie Pardou-Piquemal
59ca4097d9 Add styled components and style some 2020-06-19 18:05:48 +02:00
Jeremie Pardou
cba40b1581 Fix code style 2020-06-19 14:11:42 +02:00
Jeremie Pardou-Piquemal
53739f1553 Translate all files 2020-06-19 14:04:32 +02:00
Jeremie Pardou-Piquemal
92a707e2bc Add i18n 2020-06-19 14:04:32 +02:00
Jeremie Pardou-Piquemal
aadb0ebf30 Add eslint 2020-06-18 21:08:49 +02:00
Jeremie Pardou-Piquemal
7e540d1310 Change single quote for double quote 2020-06-18 20:57:28 +02:00
Jeremie Pardou-Piquemal
0269aff8c7 Use prettierrc 2020-06-18 20:51:47 +02:00
Jeremie Pardou-Piquemal
04db8d669c Remove extra dependencies 2020-06-18 20:43:16 +02:00
Romain Garrigues
e40278d4f9 Adds a new concept of "available item", used to represent the game content and to be able to easily add new content to an ongoing game. 2020-06-18 20:38:21 +02:00
Romain Garrigues
ae239764e0 Adds initial available items for Gloomhaven. 2020-06-17 21:34:03 +02:00
Romain Garrigues
9862aaf82c Adds battle goals to the first scenario of Gloomhaven 2020-06-17 21:22:15 +02:00
Romain Garrigues
6fbe41e371 Adds more materials for the first scenario of gloomhave (elements, ailments, ...) 2020-06-17 20:56:51 +02:00
Romain Garrigues
898cc3e077 Adds the possibility to add an Item overlay.
Currently used to display a normal/elite mask for monsters.
2020-06-17 20:56:07 +02:00
Jeremie Pardou-Piquemal
0490b296cf Add slider for rotation 2020-06-17 09:15:07 +02:00
Jeremie Pardou-Piquemal
5df0421800 Enhance style 2020-06-16 22:22:10 +02:00
Jeremie Pardou-Piquemal
40de4bf4ad Fix minor bug with localstorage 2020-06-16 21:53:52 +02:00
Jeremie Pardou-Piquemal
e410915bd6 Add localstorage save 2020-06-16 21:43:59 +02:00
Jeremie Pardou-Piquemal
7e67f9c07b Fix naming and url 2020-06-16 21:20:29 +02:00
Jeremie Pardou-Piquemal
498ad10450 Rename extraStyling -> extraStyle 2020-06-16 21:11:39 +02:00
Jeremie Pardou-Piquemal
9308454fae Replace class by className 2020-06-16 21:09:42 +02:00
Jeremie Pardou-Piquemal
c35ad31ace Update style 2020-06-16 21:07:29 +02:00
Romain Garrigues
23eabcab83 Adds possibility to display text on Image component. Useful for:
- Numbers on monster tokens,
- Numbers on map tiles.
2020-06-16 21:04:15 +02:00
Jeremie Pardou-Piquemal
82cfc665be Add import export game 2020-06-16 21:01:50 +02:00
Jeremie Pardou-Piquemal
39c1736b33 Add download link 2020-06-16 21:01:50 +02:00
Romain Garrigues
8faa63320e Adds lot of content for first scenario:
- Obstacles,
- Coins / Treasure,
- Doors, Traps,
- Character abilities for Brute and Spellweaver.
2020-06-16 20:59:15 +02:00
Jeremie Pardou-Piquemal
ea10f07fdf Add counter 2020-06-16 20:05:24 +02:00
Jeremie Pardou-Piquemal
19759f93a7 Add settlers 2020-06-16 20:04:15 +02:00
Romain Garrigues
1d9230250e Adds monter tokens for gloomhaven first scenario. 2020-06-16 09:21:59 +02:00
Romain Garrigues
9a4c2fda12 Allows to use "alt / option" key to scroll in the game view. 2020-06-15 21:26:06 +02:00
Jeremie Pardou-Piquemal
6a616fa3ce Update words 2020-06-15 08:59:21 +02:00
Jeremie Pardou-Piquemal
d33beed79c Add more elements and ease use 2020-06-14 22:25:43 +02:00
Jeremie Pardou-Piquemal
f92341eaff Add text when only watcher 2020-06-14 21:26:19 +02:00
Jeremie Pardou-Piquemal
4c3e7e5359 Allow to show only for yourself 2020-06-14 21:18:51 +02:00
Jeremie Pardou-Piquemal
863936bd1c Last selected element is moved on top of the stack 2020-06-14 15:37:54 +02:00
Jeremie Pardou-Piquemal
7af4b07912 Shuffle item position also 2020-06-14 15:25:46 +02:00
Jeremie Pardou-Piquemal
2539ba7c14 Add ability to shuffle and align items 2020-06-14 15:04:01 +02:00
Jeremie Pardou-Piquemal
0e087ed1c3 Improve perf and way items are synchronized 2020-06-14 10:23:20 +02:00
Jeremie Pardou-Piquemal
31f6c2807c Add selected item form 2020-06-13 23:01:23 +02:00
Jeremie Pardou-Piquemal
9ebe0b5d19 Can move all selected items 2020-06-13 16:47:28 +02:00
Jeremie Pardou-Piquemal
587c0c0049 Add action pane to handle all user interactions 2020-06-13 16:40:18 +02:00
Jeremie Pardou-Piquemal
0131c1176a Selection is working 2020-06-12 11:54:05 +02:00
Jeremie Pardou-Piquemal
28274870fc Add rotation and selection 2020-06-12 11:47:14 +02:00
Jeremie Pardou-Piquemal
0d08695ba1 Fix change state while unmounted 2020-06-12 11:31:36 +02:00
Jeremie Pardou-Piquemal
5fc01701da Add ability to change user color 2020-06-12 11:30:53 +02:00
Jeremie Pardou-Piquemal
f33ea300f7 First step of selector 2020-06-11 22:06:10 +02:00
Romain Garrigues
497c77e761 Adds initial Gloomhaven loading game.
Creates initial Gloomhaven json description file.
2020-06-10 21:44:02 +02:00
Jeremie Pardou-Piquemal
dba79e6237 Allow user to disconnect and reconnect 2020-06-09 22:36:23 +02:00
Jeremie Pardou-Piquemal
485ee59272 Prevent race condition with cursor when user leave 2020-06-08 22:19:10 +02:00
Jeremie Pardou-Piquemal
80b4a99661 Allow to change user name 2020-06-08 21:04:42 +02:00
Jeremie Pardou-Piquemal
98c4917b28 Add router to allow multiple rooms 2020-06-08 20:32:24 +02:00
Jeremie Pardou-Piquemal
37eb74d596 Add flippable image item with backContent 2020-06-07 22:56:00 +02:00
Jeremie Pardou-Piquemal
117edce247 Fix sync problem 2020-06-07 22:18:01 +02:00
Jeremie Pardou-Piquemal
b2ad17117c Fix delay problem 2020-06-07 22:10:56 +02:00
Jeremie Pardou-Piquemal
9c6d8c151e Resolve prefix problem 2020-06-07 21:54:10 +02:00
Jeremie Pardou-Piquemal
cb7c39e5c2 Solve cors problem 2020-06-07 21:03:54 +02:00
Jeremie Pardou-Piquemal
6377a50842 Clean before publish 2020-06-07 20:37:12 +02:00
Jeremie Pardou-Piquemal
5ab40a3501 Tiktok is good 2020-06-07 14:58:08 +02:00
Jeremie Pardou-Piquemal
faed323908 PanZoom working 2020-06-07 13:49:04 +02:00
Jeremie Pardou-Piquemal
1bc2c5f63d Tiktok not bad 2020-06-05 23:22:45 +02:00
Jeremie Pardou-Piquemal
81aedea655 Big rework 2020-06-05 22:58:53 +02:00
Jeremie Pardou-Piquemal
e98f5dd220 Initialize project using Create React App 2020-04-05 14:20:00 +02:00