Commit Graph
1201 Commits
Author SHA1 Message Date
Diogo Manuel Coelho Morais dos Santos 053d5d45ec fix(radial): replace global item with same id instead of duplicating (#255) 2023-03-01 06:48:08 +11:00
Diogo Manuel Coelho Morais dos Santos d72b7eb00a fix(radial): go back to correct more page when going back from sub (#247) 2023-03-01 06:47:14 +11:00
Nuga bbc1216a54 chore(locales): update et.json (#256) 2023-03-01 06:43:59 +11:00
iSentrie 0a94924c2e chore(locales): update lt.json (#251) 2023-02-27 18:22:09 +01:00
Manifest Bumper 107a94b752 chore: bump manifest version to v3.0.1 2023-02-26 22:12:22 +00:00
Luke a0ebec5877 refactor(web/context): move inline styling to createStyles 2023-02-26 12:10:51 +01:00
Linden 36d11444fa fix(web/dialog): delay fetch until promise is resolved
Resolves #246; probably needs a better look at.
2023-02-26 12:31:08 +11:00
Luke c9402bba3f ci(release): update pnpm version
fixes issue with the notification dependency not being patched correctly
2023-02-25 22:22:58 +01:00
Linden 79e91ee452 refactor(client/radial): allow onSelect as string to call an export
e.g. onSelect = 'menuHandler'
exports('menuHandler', function(menu, item) end)
2023-02-26 03:58:05 +11:00
Manifest Bumper 2000654546 chore: bump manifest version to v3.0.0 2023-02-25 16:05:31 +00:00
Linden 29022e1a48 feat(client/radial): return currentMenu and itemIndex onSelect 2023-02-26 01:59:01 +11:00
Luke 60e3a12033 Revert "fix(web/radial): go back to correct more page when going back from sub"
This reverts commit 709d512422.
2023-02-25 15:37:13 +01:00
Luke 6e1a978038 fix(web/radial): check whether radial menu was closed during transition
Closing the radial menu during the transition from the more pages would cause the menu to be stuck open
2023-02-25 14:30:54 +01:00
Luke 709d512422 fix(web/radial): go back to correct more page when going back from sub 2023-02-25 14:15:27 +01:00
Linden b3b49b1cbd fix: missing and invalid types and parameters 2023-02-25 18:20:14 +11:00
Linden b779ea7c3b refactor(client/radial): don't refresh submenu if parent updated
Possibly works as intended, even.
2023-02-24 14:39:17 +11:00
Linden f130a27680 fix(client/radial): don't refresh submenu if unrelated option updates 2023-02-24 14:31:42 +11:00
Linden 386fc60afd fix(client/radial): refresh current submenu if path is still valid
Resolves #424, hopefully without weird side effects.
2023-02-24 04:24:51 +11:00
Linden 7f538f6a5b fix(client/radial): refresh when current submenu updates
Resolves #241.
2023-02-24 04:04:25 +11:00
Linden 21739ac6cf refactor(client/radial): refresh to last available menu
When re-registering or removing an option linking to the current
submenu, restore the last available sub menu.
2023-02-24 03:55:19 +11:00
Luke 7ffa12af4f feat(web/radial): global menu pagination
adds a More... button when menu items are over PAGE_ITEMS
2023-02-23 17:29:40 +01:00
Luke c2f5d38108 chore(web/input): remove console.log 2023-02-23 17:29:40 +01:00
Linden e2650b7e05 feat(client/radial): refresh menu when parent is re-registered 2023-02-24 02:50:54 +11:00
Linden 5f1678131c feat(client/radial): support refreshing menus 2023-02-24 00:26:17 +11:00
Linden 5428d1c768 feat(client/radial): refresh menu when current menu is removed
Possibly weird.
2023-02-23 23:35:20 +11:00
Luke e9c2e244c7 fix(web/radial): fix transition not showing for global radial menu 2023-02-23 12:57:17 +01:00
Luke f560961348 refactor(web/radial): remove pointer cursor 2023-02-23 12:54:14 +01:00
Luke 1897743bd1 chore(web/radial): reformat with prettier 2023-02-23 12:51:00 +01:00
Linden bce10d0980 feat(client/radial): radial menu history and radial id getter
Store an array containing the history of opened menus, and restore
the previous menu when closing out of nested menus.
Added lib.getCurrentRadialId and improved types.
2023-02-23 22:46:22 +11:00
Linden c57b1a9215 fix(imports/locale): prevent error from invalid locales
People with poorly formatted json files would not get a locales table,
leading to an error when trying to iterate.
Contains some other inconsequential changes, and warnings.
2023-02-23 18:54:49 +11:00
Luke b22840f102 fix(client/radial): don't refresh radial menu when in sub menu
resolves #233
2023-02-22 21:45:11 +01:00
Aaron-Downham f5bada7aa4 refactor(import/disableControls): add missing lua typings (#231) 2023-02-22 13:26:09 +11:00
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
renzuzuandLuke 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