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
DokaDoka
4da4756f7a
fix(resource/zoneCreator): floating point error mitigation
2022-10-02 11:43:10 +10:00
DokaDoka
a84f2586cb
fix(client/zoneCreator): rotation output
2022-10-01 15:24:51 +10: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
Linden
e624aa2559
fix(version): split and compare semver in 3 parts
...
'11.10' is equal to '11.1' cause maths.
2022-09-29 17:14:11 +10: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
5c028759f3
fix(client/vehicleProperties): livery getter
2022-09-22 15:05:23 +10:00
DokaDoka
6fdc1973e4
fix(client/zoneCreator): box zone length and width
2022-09-20 23:31:35 +10:00
Linden
0e1dfc78ba
refactor(resource/vehicleProperties): type fixes
2022-09-18 11:33:17 +10:00
Linden
d08101c545
refactor(resource/vehicleProperties): typings and formatting
2022-09-18 11:25:07 +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
DokaDoka
d37324eeed
feat(client/zoneCreator): display modes
...
add option to display zones as a wireframe, with solid walls, axis helper or both solid walls and axis helper
2022-09-15 21:19:10 +10:00
DokaDoka
18fa0b6391
fix(client/zoneCreator): no more wild rhombus
2022-09-15 20:57:10 +10:00
DokaDoka
5efec8a114
fix(client/zoneCreator): prevent canceling from opening pause menu
2022-09-15 20:56:10 +10:00
DokaDoka
d90f218ae5
feat(client/zoneCreator): command suggestion
2022-09-15 00:21:16 +10:00
DokaDoka
c8ecc169ca
tweak(client/zoneCreator): activate controls when starting creator
2022-09-15 00:20:46 +10:00
DokaDoka
eef6e049e8
feat(resource/zoneCreator): target output format
2022-09-15 00:01:29 +10:00
DokaDoka
6fb18c740a
feat(resource/zoneCreator): change output format in dialog
2022-09-15 00:00:53 +10:00
Linden
3084265bbb
refactor(server/zoneCreator): output format and path, security fix
...
Don't allow players to trigger ox_lib:saveZone without ace permissions.
Write created_zones to root.
Use explicit vectors and set name as a string.
2022-09-14 15:19:01 +10:00
Linden
c95fd8ecf4
refactor(client/zoneCreator): create temporary thread
...
Move the on-tick thread into the startCreator function, and kill it once
creatorActive is set to false.
2022-09-14 15:15:36 +10: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
Linden
107d812dc3
refactor(client/zoneCreator): restrict command access
...
Includes fix for zone name.
2022-09-14 00:56:56 +10:00
Linden
bac9eb576d
feat(client/resource): RegisterCommand wrapper
...
All these tweaks so we can check ACL for client commands.
2022-09-14 00:54:44 +10:00
Linden
9d8584ff9e
feat(server/acl): add ox_lib:checkPlayerAce as callback
2022-09-14 00:53:50 +10:00
Linden
ed7bf536e8
feat(resource): load callbacks
...
Load lib.callback for internal use.
2022-09-14 00:52:10 +10:00
DokaDoka
0ecb968202
feat(resource): zone creator
2022-09-14 00:05:08 +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
bdb88e74c5
fix(version): properly compare minor/patch semver
...
Comparing "2.7.4" to "2.10.1" would compare each number, i.e.
2 = 2,
7 < 10,
4 > 1
Instead compare the major (2 v 2), then minor.patch (7.4 v 10.1).
where doka to do my math
2022-08-23 19:29:45 +10: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
Linden
f5c5597277
fix(version): compare semver numbers
...
Values were being compared as whole strings.
2022-08-22 20:53:55 +10:00
Linden
a0bea87dfa
fix(client/vehicleProperties): store neons as an array
...
People normally complain about the most nonsensical non-issues; yet
this one was completely left alone; or more specifically, one person
attributed the issue to ox_lib but didn't bother to report the issue or
provide a fix, instead just
complaining that "ox_lib is constantly updating".
2022-08-20 12:55:07 +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
Luke
953673690c
fix(web): clear nui focus from input before resolving the promise
2022-08-15 14:50:00 +02:00
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