Commit Graph
96 Commits
Author SHA1 Message Date
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 7b147b04fc feat(web/menu): tooltip description support 2022-08-04 15:04:49 +02:00
Luke 4236dd2bfd feat(web/menu): exit listener and onClose function 2022-08-04 15:04:49 +02:00
Luke 6ef17e83f5 feat(web/menu): visibility handling 2022-08-04 15:04:49 +02:00
Luke bde843f803 feat(web/menu): enter callback function 2022-08-04 15:04:49 +02:00
Luke d48ca25c7b feat(web/menu): initial list menu Lua api 2022-08-04 15:04:49 +02:00
Luke 3034a32955 refactor(dialog/alert): allow defining cancel button
Using the same promise type of API that the input dialog is using, if the user closes the dialog via esc or the cancel button the promise will resolve `cancel` otherwise the promise will resolve `confirm`
2022-06-17 20:30:33 +02:00
PoorLatency e93981fc95 feat(interface/alert): register net event (#41)
Allow the alert dialog to be called from server.
2022-06-17 10:23:56 +02:00
Luke 186014f95e feat(web/dialog): alert dialog 2022-06-11 11:33:15 +02:00
Luke 780371f644 feat(interface/context): onExit function
Allows defining a function in the menu that must be called onExit which is going to execute every time the user exits the context menu with ESC
2022-06-04 14:42:35 +02:00
DokaDoka d2178ca258 fix(interface/context): correct id if a float is received
- the array part of a mixed options table registers a '1.0' and so on, this is not how the option is recorded on the lua side
2022-06-04 22:12:04 +10:00
Sam Shanks 4cd53eeb1b feat(web/circleprogress): add optional label (#33)
* feat(circle progress label)

* refactor(circleprogress): wrap in flex
2022-05-31 19:30:54 +02:00
Luke 6108016796 feat(interface/context): ability to forcefully hide the context menu 2022-05-30 16:39:02 +02:00
Luke f6c1871e54 fix(interface/context): set openContextMenu to nil when closing a menu 2022-05-30 16:34:13 +02:00
Luke d872f5fa5f fix(interface/context): don't hide menu when there is no event 2022-05-29 15:32:38 +02:00
Luke 6194b2cc2c fix(interface/context): increment received option id by one 2022-05-29 15:13:29 +02:00
JsSusenka a5026ed8e9 feat(context): prevent event triggering (#34) 2022-05-28 19:15:35 +02:00
Linden df94633998 tweak(interface/progress): invBusy state
For ox_inventory. Also removed an used table.
2022-05-24 15:13:17 +10:00
hyprell 756e6b83d8 Update progress.lua
Scenario start animation plays no matter if playEnter is true or false
2022-05-15 21:16:37 +03:00
Luke 712a6763e8 fix(client): Missing event for defaultNotify 2022-05-03 21:57:41 +02:00
Luke 0259de8dfe feat(web/dialog): Add checkbox type 2022-05-02 13:51:08 +02:00
Linden f6216af1ae refactor: rename lualib variable and move clipboard export 2022-04-29 03:02:06 +10:00
Linden bf792004e9 fix(interface/progress): check for data.disable.move 2022-04-25 13:31:59 +10:00
Linden 26fe012b55 refactor(interface/progress): disable controls
Last implementation was basically copied over from ox_inventory which used
the control actions wrapper; somewhat pointless in this case.
2022-04-22 14:32:40 +10:00
Linden f4e0739b04 fix(interface/textui): localise input 2022-04-18 23:30:58 +10:00
Luke 66f9460729 feat(client/notifications): Add default chakra notification functions 2022-04-16 12:03:50 +02:00
Luke caa0b8284f fix(client/context): Ensure is ordered correctly
Previously the menu items would be randomly ordered, now they are the order you wrote them to be in.
2022-04-16 11:48:24 +02:00
Luke 282d81500c fix(client/context): Throw error when context id doesn't exist
Opening a context menu before registering it would previously result in the script completely erroring out and having stuck nui focus
2022-04-15 11:27:08 +02:00
Luke c21054280c fix(client/context): Allow using events to open context menus
There was an issue where if you wanted to open a second context menu using args from the first context menu's item with events, the nui focus would get stuck beacuse it would get set by the event.
2022-04-15 11:26:11 +02:00
Luke 50b1ddd167 feat(web/context): Get open context menu function 2022-04-15 10:22:31 +02:00
Linden 9a3b17029f refactor(resource/interface): keymapping and multi-prop support
Prop data should support a single table or an array for multiple
props.
2022-04-14 13:47:56 +00:00
Linden aaab5798c0 feat(resource/interface): progressActive and cancelprogress command 2022-04-14 13:11:51 +00:00
Linden 7ea609ae91 Merge branch 'master' of https://github.com/overextended/ox_lib 2022-04-14 06:45:55 +00:00
Linden 0227bd11a6 feat(resource/interface): progress bar 2022-04-14 06:45:48 +00:00
Luke 128fb86954 fix(client): Add missing NUI callbacks 2022-04-11 16:14:32 +02:00
Luke ed75b683d5 feat(client): Text UI functions 2022-04-11 15:59:18 +02:00
Luke ff71a7d033 feat(client): Input dialog function 2022-04-11 15:26:10 +02:00
Linden 760f18653d tweak(resource/interface): register net event for lib.notify 2022-04-11 04:59:21 +00:00
Linden e842185382 feat(resource/interface): export notify 2022-04-11 03:52:25 +00:00
Luke d6b21a0481 feat(nui): Context menu Lua callbacks 2022-04-01 21:22:14 +02:00