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
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
1679510ac9
refactor(resource/cache): remove getVehicle method
...
Keep it in the thread for simplicity.
2022-07-29 01:12:11 +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
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
Linden
893ec8bb00
feat(vehicleProperties): extra settings
...
Includes some minor fixes.
2022-06-30 07:44:51 +10:00
Linden
b1056c1246
tweak(vehicleProperties): return true on success
2022-06-19 14:06:59 +10:00
Luke
3034a32955
refactor(dialog/alert): allow defining cancel button
...
Using the same promise type of API that the input dialog is using, if the user closes the dialog via esc or the cancel button the promise will resolve `cancel` otherwise the promise will resolve `confirm`
2022-06-17 20:30:33 +02:00
PoorLatency
e93981fc95
feat(interface/alert): register net event ( #41 )
...
Allow the alert dialog to be called from server.
2022-06-17 10:23:56 +02:00
Linden
f406cebcc8
refactor(version/server): reliable resource name check
...
So people can rename resources and pretend they're custom made, without getting an error.
2022-06-15 00:22:03 +10:00
Luke
186014f95e
feat(web/dialog): alert dialog
2022-06-11 11:33:15 +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
DokaDoka
9a019d61ed
tweak(vehicleProperties): increase timeout when setting properties
2022-06-01 15:09:49 +10:00
Sam Shanks
4cd53eeb1b
feat(web/circleprogress): add optional label ( #33 )
...
* feat(circle progress label)
* refactor(circleprogress): wrap in flex
2022-05-31 19:30:54 +02: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
Linden
df94633998
tweak(interface/progress): invBusy state
...
For ox_inventory. Also removed an used table.
2022-05-24 15:13:17 +10:00
hyprell
756e6b83d8
Update progress.lua
...
Scenario start animation plays no matter if playEnter is true or false
2022-05-15 21:16:37 +03:00
Linden
6fb57eff49
fix(vehicleProperties): store correct extra values
2022-05-14 17:14:49 +10:00
DokaDoka
1080efb0cf
fix(vehicleProperties): wait until entity exists before setting vehicle properties
2022-05-08 17:36:17 +10:00
Linden
91f52d12c1
refactor(client/locale): send GlobalState.locales to ui
2022-05-06 16:38:36 +10:00
Linden
d4b5e0402c
refactor(server/locale): get array of valid locales
2022-05-06 16:37:36 +10:00
Linden
f6b2df0e75
refactor(locale): default locale
2022-05-06 16:00:40 +10:00
Luke
712a6763e8
fix(client): Missing event for defaultNotify
2022-05-03 21:57:41 +02:00
Luke
0259de8dfe
feat(web/dialog): Add checkbox type
2022-05-02 13:51:08 +02:00
Luke
fdb330a38f
fix(client): Move loadLocale function out of init
...
Setting a locale causes the whole application to be rerendered, meaning that the fetch for init would also run every time when locale is set
2022-05-01 11:07:44 +02:00
Luke
4db4c79d8a
feat(web): Settings modal, locale state provider
2022-04-30 14:49:49 +02:00
Linden
48728f0241
feat(locales): include some locales
...
Partial, and google translated just for the sake of setting an example.
Also renamed many of the language codes where the extra characters are
redundant (i.e. fr-FR, de-DE).
2022-04-30 05:04:15 +10:00
Linden
031cccd886
fix(locale): server hotload and "external" kvp
...
External kvp's don't exist for the server, so we have to export the proper language.
2022-04-29 16:53:24 +10:00
Linden
8af19bae42
feat: locale system
2022-04-29 05:56:41 +10:00
Linden
fee2950a35
feat(resource): throw an error if the UI is not built
2022-04-29 03:02:28 +10:00