Luke
765fff3598
fix(web/menu): show values description without requiring button desc
2022-10-30 10:16:28 +01:00
Manifest Bumper
847f5218f6
chore: bump manifest version to v2.15.0
2022-10-29 20:56:31 +00: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
5b806313d7
Merge pull request #146 from BerkieBb/master
...
feat(menu): checkbox
2022-10-29 15:56:34 +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
BerkieBb
5ba1a3b8f9
feat(interface/menu): checkbox
...
feat(package/interface/menu): checkbox
feat(web/menu/list): checkbox
feat(web/menu/list): checkbox option for ListItem
feat(web/menu/list): custom checkbox
2022-10-29 15:55:08 +02:00
Jag
de23227ea7
fix(web/menu): move firstRengerRef check earlier in the function ( #145 )
...
* This fixes a case where, if the first option selected in a menu doesn't have side scroll values, the first time that you *did* side scroll on an item in that menu it would no trigger onSideScroll
2022-10-29 10:11:40 +02:00
Linden
e840bbb50f
refactor(init): report ox_lib error when loading imports
...
People like to cry about resources not working because they
failed to install ox_lib and don't know how to read, missing the
fat error and stack trace on resource start.
Now we can remind these people they need to actually install
a release.
2022-10-28 18:46:56 +11:00
Linden
97c18f0c6b
refactor(resource): export load error
2022-10-28 18:45:47 +11: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
Linden
646473f755
fix(client/cache): GetVehiclePedIsIn
...
Native was swapped out due to a bug R* introduced.
It hasn't been a problem for months and this native is safer.
2022-10-28 00:32:18 +11: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
davidxd33
4f69c7c5c1
feat(interface/dialog): disabled row property ( #142 )
...
* feat(interface/dialog): readonly, disabled flags
* Update TS prop types
* refactor(web/input): remove read only property
Co-authored-by: davidxd33 <dponce@gmail.com >
2022-10-27 09:17:53 +02:00
Ehbw2
0d2c06e982
fix(logger/loki): Fix error when passing invalid/nil tags ( #139 )
2022-10-26 02:30:53 +11:00
Manifest Bumper
5bc6ad9912
chore: bump manifest version to v2.14.2
2022-10-25 10:33:17 +00:00
Linden
a2014502d5
refactor(addCommand): send raw input to callback
...
Resolves #101 , just use a pattern or split the string.
2022-10-25 03:09:12 +11:00
Linden
03dcf14f7e
fix(callback): multi-return values for callback method
...
Resolves #136
2022-10-25 03:03:03 +11:00
Linden
541e708970
refactor(addKeybind): move RegisterCommand to top
2022-10-25 02:58:39 +11:00
Manifest Bumper
7c566719ad
chore: bump manifest version to v2.14.1
2022-10-20 11:59:32 +00:00
Luke
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
Linden
2bb0d68415
fix(callback): bad argument to unpack when callback throws error
...
Throwing an error responds with false rather than a string.
2022-10-19 20:20:38 +11:00
Manifest Bumper
6f0bf6a624
chore: bump manifest version to v2.14.0
2022-10-19 07:27:57 +00: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
Linden
d5437e070c
chore(interface/skillcheck): types
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
Linden
ec18bbf34a
fix(locale): setLocale
2022-10-19 04:14:36 +11:00
Linden
671be5e7a2
refactor(locale): simplify
...
BREAKING CHANGE (kind of)
Remove user-selection for locales. Adds mostly unnecessary complexity,
and most people don't want to bother with it anyway.
Locale is always based on the convar "ox:locale" instead.
2022-10-18 21:17:26 +11:00
Linden
5b2c74afa0
refactor(addKeybind): improve types
2022-10-16 12:49:47 +11:00
Dominic
63b8afa9ed
refactor(addKeybind): consistency with defaultKey ( #128 )
2022-10-16 12:41:49 +11:00
Róbert Nagy
a4d553cbb1
fix(logger): Fix bad argument #2 to strsplit ( #125 )
...
Only Loki logging was affected. When no tags were given and the source is console the convertDDTagsToKVP break because of the nil value.
2022-10-15 13:04:14 +11:00
Dominic
4f71595122
refactor(keybinds): rename module, tweaks ( #127 )
2022-10-15 10:08:20 +11:00
BerkieBb
115bf702c9
feat(client/textui): open state getter for textUI ( #126 )
...
* feat(package/interface/textui): text ui open getter
* feat(resource/interface/textui): text ui open getter
2022-10-14 17:17:57 +02:00
Linden
01b4c53a9d
fix(keybinds): typo
2022-10-14 11:46:06 +11:00
Linden
7355d9ef25
refactor(keybinds): formatting and tweaks
2022-10-14 11:01:57 +11:00
Dominic
de23afa7f8
feat(imports): add keybinds manager ( #124 )
2022-10-14 10:58:45 +11:00