Commit Graph

26 Commits

Author SHA1 Message Date
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
RIOT
945b535943 chore(client/context): add readOnly field (#474) 2024-02-17 12:11:31 +01:00
Jag
65a799071a chore: various fix-ups from docs clean-up (#363)
- Add in missing js functions
  - getCurrentRadialId
  - requestScaleformMove
- Change up math.tohex to maintain lowercase `0x` prefix
- Add missing fields
- Removed extra whitespaces

Co-authored-by: Luke <39926192+LukeWasTakenn@users.noreply.github.com>
2023-07-21 13:54:29 +02:00
FjamZoo
74876c8b4e fix(client/context): reset focus when selecting option (#310) 2023-04-26 09:47:07 +10:00
Linden
9ce8f963b4 fix(client/context): hide before triggering select actions 2023-04-21 12:31:33 +10: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
3dd996c38b refactor(client/interface): nui focus tweaks
Add helper functions to set nui focus and restore previous input state.
Ensure focus is reset before triggering responses (promises/callbacks).
2023-03-01 07:25:28 +11:00
Linden
b50c0b7df8 fix(client/context): reset focus
Should resolve #170 but ceebs testing
2022-12-13 08:37:56 +11:00
Luke
306b7b3670 feat(web/context): disabled buttons 2022-11-06 11:01:39 +01:00
Sam Shanks
2813bb288b feat(interface/context): context menu onBack function (#122)
* feat(interface/context): back button pressed

* fix(context): types
2022-10-11 13:48:59 +02:00
Linden
6254ba9ba2 refactor(resource/interface): formatting and type definitions 2022-09-18 09:06:32 +10:00
Luke
adf0994b3f feat(web): ability to not be able to close the context menu 2022-09-08 10:05:44 +02:00
Luke
0e7bd1a177 feat(web): onSelect function for options 2022-08-17 21:41:05 +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
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
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
Luke
128fb86954 fix(client): Add missing NUI callbacks 2022-04-11 16:14:32 +02:00
Linden
e842185382 feat(resource/interface): export notify 2022-04-11 03:52:25 +00:00