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
Luke
be99e16e34
refactor(web/menu): radial sub menu chaining
...
still some quirks to figure out but it's working well
2023-02-04 22:13:22 +01:00
Luke
86318d5fe4
refactor(client/radial): ditch canInteract
2023-02-03 13:24:55 +01:00
Luke
a44142333e
refactor(web/menu): radial menu item removing and refreshing
2023-02-02 12:23:48 +01:00
masonschafercodes
db4a75dfbc
feat(web/alert): new options for alert dialog ( #213 )
2023-02-01 16:19:08 +01:00
Luke
ada2a35c0b
refactor(client/interface): initial lua radial menu implementation
...
linden pls don't kill me
2023-01-31 14:07:52 +01:00
Linden
f9a6d8ca8b
refactor(client/progress): allow all progress bars to be cancelled
...
canCancel should really only apply to user-input.
2023-01-27 21:42:13 +11:00
Luke
9a92729a30
feat(web/input): allowCancel option
2023-01-11 20:54:29 +01:00
Luke
9a3cff864e
refactor(client/interface): default notify backwards compat
2023-01-11 20:38:58 +01:00
Linden
b50c0b7df8
fix(client/context): reset focus
...
Should resolve #170 but ceebs testing
2022-12-13 08:37:56 +11:00
Luke
d92c1d7e23
feat(web/alert): allow defining alert dialog button labels
2022-12-08 11:46:21 +01:00
Linden
d9511231b1
refactor(client/progress): move controls outside of function
2022-12-06 13:33:04 +11:00
Scully
231d1c3c77
feat: improved RedM support ( #162 )
...
* Improvements + remove redm keybind system as it's pointless
2022-11-26 13:05:55 +11:00
Linden
00c2086072
refactor(streaming): convert to modules
...
Import methods rather than call via exports.
2022-11-21 21:39:05 +11:00
Linden
d2799075ad
fix: types and nil-checks
2022-11-21 21:39:05 +11:00
Luke
306b7b3670
feat(web/context): disabled buttons
2022-11-06 11:01:39 +01:00
Luke
bee78ccdfc
chore(client/menu): remove debug code
2022-11-03 17:56:41 +01:00
Luke
9cc7b9270e
refactor(web/menu)!: pass scrollIndex or checked in the same value
...
If the button is a scroll button then `isScroll` is passed into args, if a button is a checkbox then `isCheck` is passed into args.
Requires `args` to always be of type `table`
2022-10-29 15:55:08 +02:00
BerkieBb
5ba1a3b8f9
feat(interface/menu): checkbox
...
feat(package/interface/menu): checkbox
feat(web/menu/list): checkbox
feat(web/menu/list): checkbox option for ListItem
feat(web/menu/list): custom checkbox
2022-10-29 15:55:08 +02:00
Luke
a6a0e4905f
feat(web/input): description tooltip on fields
2022-10-27 13:45:27 +02:00
Luke
1127108fcd
feat(web/menu): add description support on list items
2022-10-27 10:09:48 +02:00
davidxd33
4f69c7c5c1
feat(interface/dialog): disabled row property ( #142 )
...
* feat(interface/dialog): readonly, disabled flags
* Update TS prop types
* refactor(web/input): remove read only property
Co-authored-by: davidxd33 <dponce@gmail.com >
2022-10-27 09:17:53 +02:00
Luke
6264bbcbc9
refactor(skillcheck): move array handling into ui
2022-10-18 20:03:00 +02:00
Linden
d5437e070c
chore(interface/skillcheck): types
2022-10-18 20:03:00 +02:00
Luke
4a2866613e
feat(client/skillcheck): skillcheck array chaining
2022-10-18 20:03:00 +02:00
Luke
e4b3e0186d
feat(client/skillcheck): winning/losing promise resolving
2022-10-18 20:03:00 +02:00
Dominic
4f71595122
refactor(keybinds): rename module, tweaks ( #127 )
2022-10-15 10:08:20 +11:00
BerkieBb
115bf702c9
feat(client/textui): open state getter for textUI ( #126 )
...
* feat(package/interface/textui): text ui open getter
* feat(resource/interface/textui): text ui open getter
2022-10-14 17:17:57 +02: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
BerkieBb
738296adfb
tweak(resource/interface/menu): add cb field
2022-10-08 01:57:51 +02:00
Linden
0e9ad23fb3
fix: types
2022-10-02 20:19:35 +11:00
BerkieBb
6584105e9c
fix(resource/interface/client/menu): add close missing field to MenuOptions ( #112 )
...
* feat(resource/interface/client/menu): add missing field to MenuOptions
* feat(package/interface/menu) close argument
2022-09-30 09:57:02 +02:00
Luke
6a8eb35a0a
feat(client/interface): close functions for input and alert dialogs
2022-09-29 11:39:30 +02:00
BerkieBb
615a3cc073
feat(interface/menu): onClose keyPressed
2022-09-25 14:26:04 +02:00
DokaDoka
52728feb95
fix(interface/menu): getOpenMenu() returns id rather than entire menu
2022-09-25 11:10:19 +10:00
Linden
6254ba9ba2
refactor(resource/interface): formatting and type definitions
2022-09-18 09:06:32 +10:00
Jag
47163748d5
feat(menu): Open Menu with specified item index selected
...
* Allows a user to pass in a start index to have pre-selected when a menu is opening
* Cleaned up whitespace inconsistencies in menu.lua
2022-09-17 11:03:10 -07:00
Linden
26538b8148
refactor(imports): assign modules directly to lib namespace
...
Mostly a change for improved intellisense with sumneko lua.
Includes some type fixes and deprecation notices.
2022-09-14 01:20:50 +10:00
Tony Stark
ff7a0b6dea
fix(client/interface): fix openMenu getting defined nil ( #86 )
...
openMenu gets defined nil even when the options has passed close = false which result in error
2022-09-08 13:17:05 +02:00
Luke
336a16baed
feat(web): add ability to not be able to close menu
2022-09-08 10:26:35 +02:00
Luke
adf0994b3f
feat(web): ability to not be able to close the context menu
2022-09-08 10:05:44 +02:00
Luke
d494b70506
feat(interface/menu): improve error handling for invalid option override
2022-08-30 21:26:23 +02:00
Linden
1ea4b16c8b
fix(client/interface): set openMenu to nil before triggering callbacks
...
Callbacks may open another menu, which then gets set to nil after
the callback has returned.
2022-08-23 19:12:50 +10:00
Linden
4578d54c5e
fix(client/interface): progressbar props not deleted
...
Somehow, calling DetachEntity before DeleteEntity results in the
entity not being deleted (when oal is enabled).
Fortunately we don't need to detach it before deleting.
2022-08-23 04:30:58 +10:00
Luke
6cf29ac0eb
fix(client/interface): cache alert promise
...
Same as input
2022-08-17 23:47:31 +02:00
Luke
82d052a1bb
fix(client/interface): cache input promise
...
Caching the promise into a variable allows us to set input to nil and resolve the promise after, which fixes an issue with opening 2 input dialogs back to back
2022-08-17 23:42:36 +02:00
Luke
0e7bd1a177
feat(web): onSelect function for options
2022-08-17 21:41:05 +02:00
Jag
c6250b6d5a
feat(client/progress): add interrupt options ( #70 )
...
Add the ability to specify if an action can be interrupted. Options that I've thought of off the bat are ped going ragdoll or ped being handcuffed.
Co-authored-by: Linden <65407488+thelindat@users.noreply.github.com >
2022-08-16 17:22:05 +10:00