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
Luke
aa9b1334f2
fix(web/menu): debounce menu item selected callback
2022-08-04 15:04:49 +02:00
Luke
a2b5ccb354
feat(web/menu): confirm on enter callback
2022-08-04 15:04:49 +02:00
Luke
6d52ecf985
feat(web/menu): fetchnui on item change
2022-08-04 15:04:49 +02:00
Luke
4744df337f
feat(web/menu): add current and max option count into the list button
2022-08-04 15:04:49 +02:00
Luke
fd45418a5d
style(web/menu): change menu header font and weight
2022-08-04 15:04:49 +02:00
Luke
e81a05aa2d
fix(web/menu): set pointer events to none on body div
...
Fixes and issue where you could click the menu to take away focus and make it non interactable
2022-08-04 15:04:49 +02:00
Luke
700fdbc3fe
refactor(web/menu): separate header and body divs
...
This allows for the header to be visible even when scrolling through the menu items
2022-08-04 15:04:49 +02:00
Luke
a43b5eee04
feat(web/menu): list menu icon support
2022-08-04 15:04:49 +02:00
Luke
43ffa86387
refactor(web/menu): improve list menu text alignment
2022-08-04 15:04:49 +02:00
Luke
3f33b690e1
feat(web/menu): array side scrolling
2022-08-04 15:04:49 +02:00
Luke
3b9c8c5534
fix(web/menu): focus on first menu item on load
2022-08-04 15:04:49 +02:00
Luke
196d400c56
feat(web/menu): menu list focus trapping
2022-08-04 15:04:49 +02:00
Luke
98b9e224ef
refactor(web/menu): list menu component split
2022-08-04 15:04:49 +02:00
Luke
933acd2852
refactor(web/menu): improve menu focus handling
2022-08-04 15:04:49 +02:00
Luke
303d81c196
feat(web/menu): initial list menu design
...
Highly subject to change
2022-08-04 15:04:49 +02:00
ANTOND
e1bc9a5015
feat(locales): Update czech and slovak translation ( #64 )
2022-08-04 19:06:54 +10:00
Dolbajoba
10ea0b1fc0
fix(locales): update Estonian translation ( #63 )
2022-08-03 21:11:26 +02:00
Linden
28003c942d
fix(client/streaming): invalid print argument
2022-08-04 02:05:09 +10:00
Linden
93fc595030
fix(client/streaming): timeout
2022-08-04 01:32:54 +10:00
Linden
1b05f87c8e
tweak(client/streaming): rewrite
...
Was going to split into separate imports, then
remembered why I didn't in the first place.
Improved annotations.
Changed timeout into a for loop, and increase default to 500 ticks.
Less variable reassignments.
Allow functions to be called outside threads, but will not check if the
request was successful (has loaded).
2022-08-03 22:58:50 +10:00
Linden
a45584ac78
Revert "feat(imports): loadAnimDict"
...
This reverts commit 77fb9cf637 .
2022-08-03 21:57:03 +10:00
Linden
77fb9cf637
feat(imports): loadAnimDict
2022-08-03 17:27:58 +10:00
Linden
68a6352be4
feat(imports): getClosestPlayer
2022-08-03 17:26:51 +10:00
Linden
ee12035a50
feat(imports): raycast module
...
Just lib.raycast.cam for now.
2022-08-03 17:22:45 +10:00
Linden
d16b3dda06
chore: bump version
2022-07-29 03:09:33 +10:00
Linden
1679510ac9
refactor(resource/cache): remove getVehicle method
...
Keep it in the thread for simplicity.
2022-07-29 01:12:11 +10:00
Linden
7838a3cfe4
refactor(init): cache handling
...
lib.onCache serves as a helper to setup cache event listeners.
Removed _cache table and index method.
Only apply metatable to client-side cache (nothing exists on server yet).
When cache is indexed, setup an event handler for the key.
Remove some ox_core/ox_groups specific code (unused).
Remove the updateCache event, and interval.
2022-07-28 23:13:19 +10:00
Linden
39d5bbae3d
refactor(resource/cache): new cache event
...
Rather than sending a bulk update of cache, trigger different events for
each key.
2022-07-28 23:09:23 +10:00
Linden
ef6f780028
tweak(resource/version): currentVersion validation
...
Check currentVersion is valid before performing HttpRequest, and
print a message when failing.
2022-07-28 22:05:16 +10:00
Linden
9096bd36e8
fix(cache/client): change vehicle getter
...
GetVehiclePedIsIn isn't working with the latest build. Use GetVehiclePedIsUsing instead.
Removed an unused cached value (coords).
Removed the num iterator used for cache:getVehicle to slow its frequency.
2022-07-28 09:32:44 +10:00
Linden
8111ffadd0
fix(fxmanifest): oal-flag
...
Changed in a recent commit. Since oal hasn't been working for 3 months,
it may result in some errors for internal modules (i.e. vehicleProperties).
2022-07-27 09:39:49 +10:00
Luke
c76147ecae
feat(web/context): context menu exit button
2022-07-25 21:32:11 +02:00
Luke
26f20adf58
chore(manifest): bump version
2022-07-12 19:35:49 +02:00
Jag
3c82b654ff
feat(addCommand): Allow multiple groups ( #57 )
2022-07-12 18:50:01 +10:00
Linden
9bc37b461d
tweak(vehicleProperties): allow local entities
...
Local entities (not networked) would fail the check for NetworkGetEntityOwner.
Also fix the error messages, which referenced the wrong variable.
2022-07-09 03:41:25 +10:00
Luke
4fc6366801
feat(web/context): allow displaying icons in context menu items
2022-07-07 14:53:36 +02:00
Luke
92023227cd
fix(web/context): allow displaying image without any metadata defined
2022-07-07 14:36:20 +02:00
Luke
77652c8173
fix(web/context): stretch back arrow to height of the title
2022-07-07 14:33:55 +02:00
Mgil10
e252c44bd2
feat(locales): Spanish locales ( #54 )
2022-07-06 21:32:00 +02:00
Linden
770ae6396e
relicense to LGPLv3
...
Allows resources importing ox_lib to ignore the "same license" condition.
Does not apply to snippets copied from ox_lib into other resources.
2022-07-05 05:17:52 +10:00
Luke
6fdbca0cb3
chore(manifest): bump version
2022-07-03 23:32:12 +02:00
Zan
6e78790c52
fix(locales): update Hungarian cancel button ( #53 )
2022-07-01 20:15:51 +02:00
Luke
0a1b465f52
Merge remote-tracking branch 'origin/master'
2022-06-30 11:11:32 +02:00
Luke
e34fb2855d
feat(web): vite
2022-06-30 11:10:02 +02:00
Linden
893ec8bb00
feat(vehicleProperties): extra settings
...
Includes some minor fixes.
2022-06-30 07:44:51 +10:00
Luke
c4617f1f57
fix(web/settings): run the close function when exiting with ESC
...
Apparently no one notices the focus was being trapped if you were to exit with ESC
2022-06-29 15:39:12 +02:00
Linden
d33df54f0e
tweak(zones): store distance to zone center
...
Should make sphere "zones" nearly 1:1 with the points api.
Distance added for polygons too for consistency and some use-cases,
but generally only worthwhile for smaller zones.
2022-06-26 12:30:25 +10:00
Linden
6c83adfda8
fix(locale): always assign a table to dict
...
Prevent indexing nil when no locales exist for a resource.
2022-06-24 09:10:37 +10:00