Commit Graph
100 Commits
Author SHA1 Message Date
Luke 763997f2a1 refactor(web/skillcheck): darker track colour 2022-12-30 13:01:41 +01:00
Luke fa04332def refactor(web/skillcheck): skillcheck mantine rewrite 2022-12-23 10:29:22 +01:00
Luke d1187eda43 refactor(web/progress): circle progress to Mantine 2022-12-22 20:14:09 +01:00
Luke f8f81db3eb refactor(web/progress): hide progress bar if not visible 2022-12-21 15:00:22 +01:00
Luke 102d58cbb1 refactor(web): context button description class 2022-12-21 14:53:25 +01:00
Luke 4f6fc6abaf refactor(web/progress): progress bar mantine rewrite 2022-12-18 13:17:42 +01:00
Luke 50aab9987c refactor(web/alert): use primary color theme for the button color 2022-12-18 12:07:37 +01:00
Luke e7d86af637 refactor(web/context): context menu mantine rewrite 2022-12-17 14:27:55 +01:00
Luke c419474969 refactor(web/input): input dialog mantine rewrite 2022-12-16 15:00:01 +01:00
Luke f24e43a1a4 refactor(web/alert): alert dialog mantine rewrite 2022-12-16 12:27:15 +01:00
Luke 1893b66014 refactor(web/dev): mantine rewrite 2022-12-16 12:03:31 +01:00
Luke 5206f8b81b refactor(web): initial mantine setup 2022-12-16 11:55:12 +01:00
Luke abff60d4ed fix(web): fix values persisting across input dialogs opened quickly 2022-12-16 09:40:28 +01:00
Luke da9b55fa84 refactor(package/callbacks): improve typings 2022-12-13 08:26:43 +11:00
Luke d92c1d7e23 feat(web/alert): allow defining alert dialog button labels 2022-12-08 11:46:21 +01:00
Luke 4aad28a2e5 chore(web): remove unused settings component 2022-12-08 11:37:24 +01:00
Luke e806781dde fix(web/menu): fix onSideScroll getting called on open
Potentially fixes an issue where if your first item in the menu was a side scroll the onSideScroll would get instantly called when opening
2022-12-08 11:23:49 +01:00
Luke 7cde7e0581 fix(web/input): ensure select rerender between dialogs
If opening another input dialog with select in the same row it would cause the value to be the same as the previous one as there was no rerender being forced because their keys were the same
2022-11-19 12:11:02 +01:00
Luke d5e0305df9 fix(web/input): ensure number type input is max length 2022-11-19 11:04:34 +01:00
Luke 59051d505b fix(web/skillcheck): fix not being able to hit skill check with capslock
apparently the return key for event can differentiate lower and uppercase keys
2022-11-16 23:16:17 +01:00
Luke 39668aa26a fix(web/menu): fix button tooltip not displaying on side scroll button 2022-11-12 13:58:34 +01:00
Luke 306b7b3670 feat(web/context): disabled buttons 2022-11-06 11:01:39 +01:00
Luke 33b70b6f1c refactor(web/context): cache context option into a variable 2022-11-05 11:20:59 +01:00
Luke bee78ccdfc chore(client/menu): remove debug code 2022-11-03 17:56:41 +01:00
Luke 765fff3598 fix(web/menu): show values description without requiring button desc 2022-10-30 10:16:28 +01:00
Luke 00465d2e7a perf(web/menu): memoize button and header components
Drops the render times for a 9 button menu down from 12ms to 1.6ms
2022-10-29 16:15:58 +02:00
Luke 6b8cfa990f fix(web/menu): fix vertical icon alignment 2022-10-29 16:00:35 +02:00
Luke 9cc7b9270e refactor(web/menu)!: pass scrollIndex or checked in the same value
If the button is a scroll button then `isScroll` is passed into args, if a button is a checkbox then `isCheck` is passed into args.

Requires `args` to always be of type `table`
2022-10-29 15:55:08 +02:00
Luke c227282ce0 refactor(web/menu): update checkbox styling 2022-10-29 15:55:08 +02:00
Luke a8fc5caaae fix(web): set color-scheme to normal
fixes an issue with a black screen in game
2022-10-27 23:24:38 +02:00
Luke a1d2607286 chore(web): update react and chakra versions
hopefully nothing broke that I didn't notice prayge
2022-10-27 16:44:47 +02:00
Luke 8ad04de0bc refactor(web/input): move field components into fields folder 2022-10-27 14:22:15 +02:00
Luke d4dc68f21e fix(web/input): remove unused isReadOnly property 2022-10-27 13:46:45 +02:00
Luke a6a0e4905f feat(web/input): description tooltip on fields 2022-10-27 13:45:27 +02:00
Luke 1127108fcd feat(web/menu): add description support on list items 2022-10-27 10:09:48 +02:00
Luke b354e0836c chore(web): move skill check into dev draw tools 2022-10-27 09:27:54 +02:00
LukeandDokaDoka e40331009b fix(web/skillcheck): use proper skill check calculations
Changed the areaSize to use degrees rather than the length of the arch which was causing issues

Co-authored-by: DokaDoka <31368547+DokaDoka@users.noreply.github.com>
2022-10-20 13:31:30 +02:00
Luke 3fcb9941f7 refactor(web/skillcheck): remove unused code and comments 2022-10-18 20:03:00 +02:00
Luke 6264bbcbc9 refactor(skillcheck): move array handling into ui 2022-10-18 20:03:00 +02:00
Luke 61092d7c3c refactor(web/skillcheck): move visibility into it's own state 2022-10-18 20:03:00 +02:00
Luke 5c4853798e feat(package): skillcheck typings 2022-10-18 20:03:00 +02:00
Luke d4b331c104 style(web/skillcheck): update appearance 2022-10-18 20:03:00 +02:00
Luke 4a2866613e feat(client/skillcheck): skillcheck array chaining 2022-10-18 20:03:00 +02:00
Luke ed8e804c09 feat(web/skillcheck): add support for custom game difficulty 2022-10-18 20:03:00 +02:00
Luke a358f1ccad tweak(web/skillcheck): adjust game difficulty
Don't spawn the skillcheck zone in the 1/3rd of the circle and adjust hard difficulty
2022-10-18 20:03:00 +02:00
Luke e4b3e0186d feat(client/skillcheck): winning/losing promise resolving 2022-10-18 20:03:00 +02:00
Luke 66c16b5843 feat(web): skillcheck minigame 2022-10-18 20:03:00 +02:00
Luke 39f7b6d78a fix(web/dialog): set slider value to min if default is not defined 2022-10-05 16:16:39 +02:00
Luke 6a8eb35a0a feat(client/interface): close functions for input and alert dialogs 2022-09-29 11:39:30 +02:00
Luke 158ec03a2a chore(package): add readme 2022-09-18 12:37:03 +02:00
Luke 230948862f ci(release): fix incorrect path name 2022-09-18 12:25:00 +02:00
Luke 5549fd4cff fix(package): use generics to define return type 2022-09-17 20:21:06 +02:00
Luke 87310e77e0 feat(package): add citizen typings 2022-09-17 16:06:38 +02:00
Luke ef4595c706 fix(package): set notification types as optional 2022-09-17 14:21:28 +02:00
Luke ea40c9c8d5 fix(package): include position in progress circle interface 2022-09-17 13:57:54 +02:00
Luke 7529e7436b fix(package): fix incorrect typings for context menu 2022-09-16 16:06:04 +02:00
Luke fe1820e07f ci(release): publish new npm package version on release 2022-09-15 14:01:18 +02:00
Luke cc80d53dfd fix(package): include tsconfig files in server and shared 2022-09-15 13:29:21 +02:00
Luke f573ba259c fix(package): remember to actually save the file 2022-09-15 10:36:50 +02:00
Luke 3dcad0fc98 feat(web): version wreapper 2022-09-15 10:34:52 +02:00
Luke f298bb6eb9 feat(package): vehicle properties wrapper 2022-09-15 10:24:04 +02:00
Luke 5054030948 feat(package): streaming wrapper 2022-09-15 00:22:25 +02:00
Luke 8cbef2580c feat(package): locale wrapper 2022-09-15 00:10:04 +02:00
Luke 1373ff21d4 feat(package): acl wrapper 2022-09-14 23:46:00 +02:00
Luke 4f0cc4c7c5 feat(package): interface definitions 2022-09-14 13:50:32 +02:00
Luke 5d4eff8cd3 fix(web/menu): fix misalignment on the list buttons in the menu 2022-09-09 13:04:31 +02:00
Luke b638e435ea feat(web/input): allow defining icon for number row field 2022-09-08 12:00:41 +02:00
Luke 473a0f480d feat(web/context): allow hiding arrow by setting it to false 2022-09-08 11:11:27 +02:00
Luke 336a16baed feat(web): add ability to not be able to close menu 2022-09-08 10:26:35 +02:00
Luke adf0994b3f feat(web): ability to not be able to close the context menu 2022-09-08 10:05:44 +02:00
Luke d494b70506 feat(interface/menu): improve error handling for invalid option override 2022-08-30 21:26:23 +02:00
Luke 4a5251b60b chore(web): add prettier and format 2022-08-27 15:58:36 +02:00
Luke cc76d23419 chore(web): fix incorrect notification props spelling 2022-08-27 15:55:05 +02:00
Luke 52ce1c53ae feat(web): support min and max value for number input type 2022-08-27 15:54:43 +02:00
Luke 0bc185ef38 feat(web): developer drawer
Move all debug functions into a single developer drawer,

Not the best implementation as there is focus fighting going on between some elements and the drawer but will do for now without state management
2022-08-27 15:40:41 +02:00
Luke 9bd0b52749 refactor(web): prettier format for input dialog 2022-08-26 18:50:08 +02:00
Luke ae25d109fc fix(web): move input dialog enter handler
it was causing issues where when confirming a selection in the list menu it would instantly close the input dialog
2022-08-26 18:49:49 +02:00
Luke 8defbaf78f Revert "chore(manifest): update version"
This reverts commit d63ee24fdb.
2022-08-22 00:39:31 +02:00
Luke d63ee24fdb chore(manifest): update version 2022-08-22 00:28:24 +02:00
Luke 6cf29ac0eb fix(client/interface): cache alert promise
Same as input
2022-08-17 23:47:31 +02:00
Luke 82d052a1bb fix(client/interface): cache input promise
Caching the promise into a variable allows us to set input to nil and resolve the promise after, which fixes an issue with opening 2 input dialogs back to back
2022-08-17 23:42:36 +02:00
Luke 0e7bd1a177 feat(web): onSelect function for options 2022-08-17 21:41:05 +02:00
Luke 953673690c fix(web): clear nui focus from input before resolving the promise 2022-08-15 14:50:00 +02:00
Luke c3687d6874 chore(manifest): bump version 2022-08-06 21:12:42 +02:00
Luke 14a04c4b68 fix(web/menu): fix border radius not applying when there is 6 options 2022-08-05 14:00:44 +02:00
Luke ff81bbb434 chore(client/interface): remove debug command 2022-08-04 15:04:49 +02:00
Luke 4490b4476c fix(web/menu): offset default index
Linden's amazin' index fix
2022-08-04 15:04:49 +02:00
Luke 32a698c043 feat(menu): lib.hideMenu 2022-08-04 15:04:49 +02:00
Luke cf2c45687a refactor(menu): split side and vertical scroll change handlers
Resolves an issue where changing to the next button while scrolling a horizontal list would not trigger the onChange function for the previous button
2022-08-04 15:04:49 +02:00
Luke 37c10f570b feat(client/interface): menu close arg on button 2022-08-04 15:04:49 +02:00
Luke 853cec6049 feat(client/interface): allow replacing specific index in menu options 2022-08-04 15:04:49 +02:00
Luke a4b25bddf0 feat(web/menu): allow passing default index for horizontal lists 2022-08-04 15:04:49 +02:00
Luke 873b531da7 fix(client/interface): fix indexing registered menu options with table 2022-08-04 15:04:49 +02:00
Luke ee6baafc0c feat(client/interface): allow separately setting list menu options 2022-08-04 15:04:49 +02:00
Luke ac7a87cc5b feat(client/interface): list menu error catching 2022-08-04 15:04:49 +02:00
Luke dde7daddb7 fix(client/interface): allow reregistering list menus 2022-08-04 15:04:49 +02:00
Luke 33bd3ebc77 feat(web/menu): send args in callback function 2022-08-04 15:04:49 +02:00
Luke 34fe33000f feat(web/menu): display arrow when menu is scrollable 2022-08-04 15:04:49 +02:00
Luke dcce65d472 feat(web/menu): reset indexes on next last item 2022-08-04 15:04:49 +02:00
Luke 95201aba1d fix(web/menu): use same font for tooltip 2022-08-04 15:04:49 +02:00