Commit Graph
54 Commits
Author SHA1 Message Date
Linden cc6aed591f chore: adjust links 2025-03-29 21:46:58 +11:00
Linden fb2225e373 chore: add copyright notices to each file
Some people accidentally, mistakenly, and without any malicious intent forget to attribute code from this resource to its source. This change will hopefully assist people, so that they do not make that mistake again.
2025-03-18 18:46:09 +11:00
ANTOND 591fb022f9 feat(interface): add locales for progress and radial menu (#509) 2024-03-16 04:41:06 +11:00
ktx-mega 78891fb4b9 feat(web): support icon urls in radial menu (#487)
* feat(package): support icon urls in radial menu

* fix: update lua & ts types + clamp size parameters
2024-02-18 12:11:40 +01:00
Luke b6890e3b56 fix(interface/radial): don't allow weapon melee while open
resolves #447
2023-11-11 12:05:17 +01:00
Diogo Manuel Coelho Morais dos Santos 2161694f84 fix(resource/radial): fix RadialItem type (#381) 2023-07-31 16:13:07 +10:00
Linden 991be22de5 fix(client/radial): disable pause menu while open 2023-05-18 21:02:27 +10:00
Linden 0af4b42586 feat(client/radial): keepOpen 2023-04-17 15:15:30 +10:00
FjamZoo 33215fa6b5 fix(interface/radial): keep input while open (#288) 2023-04-17 14:43:15 +10:00
Linden 4a7cf75b7f fix(client/radial): reset nui focus on hide 2023-04-01 14:24:42 +11:00
Linden c4b87a0d91 refactor(client/interface): nui focus consistency 2023-03-23 05:55:16 +11:00
Malcolm Keefe b32ab6e948 feat(interface/radial): allow clearing all global radial menu items (#272)
* Add clearAllRadialItems

* Refresh rather then close, rename
2023-03-16 09:26:17 +01:00
Diogo Manuel Coelho Morais dos Santos fc6a95c73c fix(interface): Add table<string, string> to icon typings (#261) 2023-03-11 06:38:34 +11:00
Linden ad2c50cd1d feat(client/radial): add lib.disableRadial to prevent radial access 2023-03-01 07:32:40 +11:00
Linden 284b563483 fix(client/radial): reset NuiFocusKeepInput 2023-03-01 07:04:51 +11:00
Linden 8848f6d6bc fix(client/radial): onSelect export handler
currentRadial is cleared before triggering the export.
2023-03-01 06:48:13 +11:00
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
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
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
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
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
Luke b22840f102 fix(client/radial): don't refresh radial menu when in sub menu
resolves #233
2023-02-22 21:45:11 +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 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 b072d0da59 refactor(client/radial): add isOpen check when adding global items 2023-02-15 17:42:37 +01:00
Luke 71885f5831 refactor(web/radial): disable nui focus when closing with x button 2023-02-10 18:17:30 +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
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 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
Luke de7cf1ccef refactor(web/menu): improve radial menu transitions 2023-02-07 13:51:42 +01:00