Commit Graph

20 Commits

Author SHA1 Message Date
Linden
c3726ed924 tweak(interface/menu): SetNuiFocusKeepInput
Default to allow input; disable with "disableInput = true" during registration.
2022-08-09 07:42:20 +10:00
Linden
2e77817c41 refactor(interface/menu): set openMenu to reference menu data, not id
No need to index registeredMenus[openMenu] repeatedly.
2022-08-08 17:54:50 +10:00
Linden
101d94392b refactor(client/interface): micro-optimise menu callbacks
Remove short-lived objects and set local refs to the openMenu to reduce table-lookups.
2022-08-05 00:58:19 +10:00
Luke
ff81bbb434 chore(client/interface): remove debug command 2022-08-04 15:04:49 +02:00
Luke
32a698c043 feat(menu): lib.hideMenu 2022-08-04 15:04:49 +02:00
Luke
cf2c45687a refactor(menu): split side and vertical scroll change handlers
Resolves an issue where changing to the next button while scrolling a horizontal list would not trigger the onChange function for the previous button
2022-08-04 15:04:49 +02:00
Linden
c662368cd4 fix(client/interface): changeSelected args 2022-08-04 15:04:49 +02:00
Luke
37c10f570b feat(client/interface): menu close arg on button 2022-08-04 15:04:49 +02:00
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