Commit Graph

769 Commits

Author SHA1 Message Date
Linden
639faa214d refactor(init): minor tweaks
Remove dead table (lib.exports) and annotate server-side lib.notify.
2023-02-22 10:08:43 +11:00
Linden
7ab2aac9be feat(imports/require): custom require for script files 2023-02-22 09:53:58 +11:00
Linden
47b8a72527 refactor(server/addCommand): add suggestion on command creation
Delayed commands should trigger the suggestion.
2023-02-22 01:30:52 +11:00
Linden
b47ae9d4fa refactor(server/addCommand): use single command handler for aliases 2023-02-22 01:27:03 +11:00
DokaDoka
189a8a451f feat(web/radial): gap variable 2023-02-22 00:12:43 +11:00
Linden
4dd9b03ba3 refactor(web/radial): add stroke to center circle 2023-02-21 23:54:02 +11:00
Linden
4d15b38d02 feat(imports/addCommand)!: update syntax and support param help text
BREAKING CHANGE: First parameter now holds command name(s).
Second parameter is properties, containing (optional) values for help,
restricted, and params.

See #224 for more info.
2023-02-21 19:52:12 +11:00
Luke
76eef708a8 refactor(package): use cache.ped for points 2023-02-20 18:08:51 +01:00
Luke
7520509da3 refactor(package): use generics to type point args 2023-02-20 17:25:12 +01:00
Luke
7ff9f93838 feat(package): points system 2023-02-19 22:40:31 +01:00
renzuzu
8eca1698cb feat(web/meu): support images as icons in context and list menu (#230)
* feat: Support image Tag in buttons

in my server. ox_lib is heavily used.
most of sample use cases for this is.
Food image,
Ingredients,
Vehicle Parts,
etc..

i believe font awesome is not enough for some use cases.

i did suggest this on v3 pending PR.
but it seems gets ignored.

here i am gonna try to push this PR.

to use this.
icon must be not existing in the options.

if both icon and image is in options, nothing will appear.

image in metadata will still appear normaly.

* tweak(web/menu): resize render image comparable to FA

* refactor(web/context): use icon prop for images

* refactor(web/list): use icon prop for images

---------

Co-authored-by: Luke <39926192+LukeWasTakenn@users.noreply.github.com>
2023-02-19 13:53:48 +01:00
Luke
672b638ba7 fix(web/progress): nui callback on progress unmount
fixes an issue where activating 2 progress bars/circles one after another would cause a stuck progress bar.

resolves #227
2023-02-18 20:31:54 +01:00
Linden
3801faf976 fix(client/radial): don't hide radial when opening submenu
fix(fix): fix
2023-02-19 05:48:28 +11:00
Luke
4c8a670b85 fix(client/radial): hide radial before running onSelect
potentially fixes focus issues when opening another UI element in onSelect
2023-02-18 19:36:03 +01:00
Linden
b79273c0d7 refactor(client/radial): change keybind to toggle 2023-02-18 21:56:39 +11:00
Linden
9df936ab16 fix(client/radial): handle submenu transition
Resolve #225.
2023-02-18 21:26:58 +11:00
Linden
828ca36c1c refactor(web/radial): disable transition when swapping to submenu 2023-02-18 21:25:22 +11:00
Luke
b56e6826a8 Merge branch 'v3' 2023-02-17 15:54:20 +01:00
Luke
c3331063da chore(web/typings): remove unused checkbox description prop 2023-02-17 11:45:52 +01:00
Luke
e57460c611 refactor(client): add missing lua typings 2023-02-17 11:28:55 +01:00
Linden
43197b492b chore(client/radial): typings 2023-02-17 01:50:26 +11:00
Luke
006873007f fix(client/radial): don't display radial menu when nui is focused 2023-02-16 14:19:59 +01:00
Luke
19d8a6ef28 refactor(package): omit id from registerRadial items array 2023-02-15 18:35:15 +01:00
Luke
dab7e8da31 fix(package): export radial file into index 2023-02-15 18:13:43 +01:00
Luke
b99014eb8c feat(package): add radial menu exports 2023-02-15 18:10:39 +01:00
Luke
b072d0da59 refactor(client/radial): add isOpen check when adding global items 2023-02-15 17:42:37 +01:00
Luke
66585521b4 chore(package): add missing typings 2023-02-15 13:51:46 +01:00
Luke
829bec2592 refactor(web): move all types into typings folder 2023-02-15 13:25:44 +01:00
Luke
5b4c6b8674 fix(web/notifications): add string as type to id 2023-02-15 11:46:41 +01:00
Luke
59a495a541 refactor(web/input): improve typings 2023-02-14 11:17:39 +01:00
Luke
7bb2eb2ea7 refactor(web/input): separate date and time fields 2023-02-14 10:54:53 +01:00
Luke
14341a0343 chore(web): remove unused code 2023-02-13 21:24:33 +01:00
Luke
f166c1675e feat(web/skillcheck): random skill check key from inputs table 2023-02-12 19:26:15 +01:00
Jorn
7c2e894b67 chore(web): renamed web to ox_lib and removed unused packages (#221) 2023-02-12 12:23:28 +01:00
Luke
c9ac415f12 feat(web): primary colour and shade convars 2023-02-11 14:40:58 +01:00
Luke
abd63ba2e4 chore(web): update font awesome deps 2023-02-11 13:55:54 +01:00
Luke
d0ffed8592 refactor(web/radial): move center icon into absolute div
fixes annoying issues when trying to rotate the icon
2023-02-11 13:49:10 +01:00
Luke
71885f5831 refactor(web/radial): disable nui focus when closing with x button 2023-02-10 18:17:30 +01:00
masonschafercodes
7acad823b8 Revert "feat(web/context): mouse enter and mouse leave events (#218)"
This reverts commit 7a22da68e6.
2023-02-10 18:11:18 +01:00
Luke
c9c90efaf8 Revert "refactor(client/context): rename lastHoveredContextItem variable"
This reverts commit 61db40c07d.
2023-02-10 18:11:06 +01:00
Luke
407cfd8eb2 refactor(web/radial): radial menu back on rmb 2023-02-10 18:10:43 +01:00
Luke
ec62398e55 Revert "refactor(web/menu): radial menu onHover"
This reverts commit f20e3a288f.
2023-02-10 18:09:26 +01:00
Luke
f20e3a288f refactor(web/menu): radial menu onHover 2023-02-08 10:17:44 +01:00
Luke
61db40c07d refactor(client/context): rename lastHoveredContextItem variable 2023-02-08 10:06:02 +01:00
masonschafercodes
7a22da68e6 feat(web/context): mouse enter and mouse leave events (#218)
* feat(web/context): mouse enter and mouse leave events

* chore(web/context): condense into one function for onHover

* feat(resource/context): cache last hovered option
2023-02-08 10:05:30 +01:00
Linden
6fe8f5257f refactor(client/radial): use lib.addKeybind and tweak exports
Merge lib.hideRadial with closeRadial, trigger onReleased.
Trigger radial submenu after onSelect.
Keep showRadial as a local method.
2023-02-08 00:50:05 +11:00
Linden
62d441ddb1 refactor(fxmanifest): load addKeybind 2023-02-08 00:44:42 +11:00
Linden
560b19c34a refactor(client/radial): clear items on resource stop 2023-02-08 00:26:08 +11:00
Linden
a30c8c1384 refactor(client/radial): minor tweaks and formatting
Increment menuSize during lib.addRadialItem (micro-optimisation).
Don't open radial menu if no items are registered.
2023-02-08 00:19:51 +11:00
Luke
2e74c2d8c9 refactor(web/menu): rename radial menu item key to id 2023-02-07 13:51:58 +01:00