Commit Graph
21 Commits
Author SHA1 Message Date
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 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