northsqrd
24cedb07ae
feat(interface/multi-select): add maxSelectedValues ( #563 )
2024-05-08 04:28:52 +10:00
Linden
2166b076da
feat(callback): add timeout to callback events
...
Should help when people await broken or unregistered events.
Defaults to 60 seconds, adjusted with convar ox:callbackTimeout.
2024-05-03 15:49:33 +10:00
Linden
b6632ad789
refactor(locale): merge locales with english definitions
...
Also sync some recent changes in the TS module.
2024-04-20 06:42:28 +10:00
RrybaN
9d08560e91
feat(notify): show duration ( #542 )
...
* feat(notify): add option to show duration
lib.notify new option
`showDuration?: boolean -- Option to show duration bar`
* fix(notify): allow icon color using hexadecimal values
* chore(notify): show duration to default and added tinycolor2 for supporting available color formats
* feat(notify): define interface for showDuration
2024-04-12 17:15:57 +02:00
Linden
0f0c7a6591
refactor(streamingRequest): internal method for request functions
...
- TS package type inference for request functions.
- Type fix for Lua's waitFor callback.
- Lua request functions cannot return nil.
2024-03-31 16:15:44 +11:00
Linden
5868649d18
fix(package/streaming): return promise from streamingRequest
2024-03-27 14:27:33 +11:00
Linden
2190cd32f4
refactor(waitFor): use GetGameTimer to timeout callbacks
...
Corrected error message output to ms.
Resolves #518 .
2024-03-18 18:48:57 +11:00
Linden
50d957c1d1
refactor(package/interface): import CSSProperties from csstype
2024-03-16 04:30:02 +11:00
Lily
71b30b928d
feat(web/select): searchable option ( #513 )
2024-03-10 14:06:11 +01:00
xSamiVS
d8578281ee
feat(web/textui) bottom center position( #507 )
2024-03-09 11:04:18 +01:00
ktx-mega
78891fb4b9
feat(web): support icon urls in radial menu ( #487 )
...
* feat(package): support icon urls in radial menu
* fix: update lua & ts types + clamp size parameters
2024-02-18 12:11:40 +01:00
Linden
3ecb419759
refactor(package): move and export VehicleProperties interface
2024-02-18 15:45:16 +11:00
Linden
82dfb8d882
fix(waitFor): type corrections
2024-02-02 13:45:01 +11:00
Linden
0e816ecfc0
fix(waitFor): allow timeout to be disabled
2024-01-20 17:29:36 +11:00
Linden
0be5fce030
fix(package/streaming): somehow valid path is invalid?
2024-01-17 19:55:35 +11:00
Linden
4bf5bb9430
feat(package): random string/int utility functions
2024-01-17 17:43:08 +11:00
Linden
c0832cbe72
feat(package): add waitFor and sleep functions
2024-01-17 17:39:16 +11:00
Linden
fd112ca03c
fix(addCommand): catch errors in command handler
...
+ additional minor changes.
Use DoesPlayerExist native.
Mark addCommand cb as async.
2024-01-17 16:42:26 +11:00
Linden
2aa21e7478
fix(package/addCommand): argument validation
...
Get the first index of raw.split for the command name.
Check if value is defined (as 0 is falsey).
Don't subscribe to 0-index propaganda (argument index+1).
2024-01-15 18:52:28 +11:00
Linden
c383e42602
fix(package/addCommand): allow typed arguments
2024-01-15 17:52:59 +11:00
ESK0
37a35996b4
feat(package): addCommand ( #482 )
2024-01-15 12:10:40 +11:00
Linden
2ad3503985
feat(package/locale): update for parity with lua
...
Support for nested locales (flattening) and getLocale function.
2024-01-14 12:34:13 +11:00
Linden
6da661bef3
fix(package/locale): types
2024-01-14 10:05:53 +11:00
Linden
e94035551c
refactor(package): set entry point to shared
2024-01-14 10:05:24 +11:00
Linden
51646698e1
fix(package/locale): initialise by default
2024-01-14 00:14:04 +11:00
Linden
c9bc66e75b
chore(package): ignore .ts from distribution
2024-01-14 00:13:42 +11:00
Linden
989b164d0e
fix(package): maybe resolve some bundling issues
2024-01-09 14:41:42 +11:00
Luke
36662050ff
chore: optimize imports
2023-11-15 15:32:04 +01:00
Luke
882e372895
feat(web): font awesome icon animations
2023-11-15 15:28:21 +01:00
Luke
a50f7a2052
feat(web): ability to align icon at the top for notifs/text ui
2023-11-15 14:36:37 +01:00
Luke
8c5afec4f7
chore(package): update readme
2023-11-07 18:57:26 +01:00
Luke
7edde87d3b
feat(package): locales system
2023-11-07 18:51:57 +01:00
Luke
1c5f4d6ac8
feat(web/context): allow separate metadata progress bars colors
...
Closes #430
2023-10-28 18:30:57 +02:00
Luke
e6e7bf5547
refactor(package): improve types for input dialog
2023-10-23 22:44:33 +02:00
Luke
4ba5880d40
fix(package): call the correct export for closeInputDialog
2023-09-28 11:49:20 +02:00
Luke
aaa37047f1
feat(web/context): readOnly buttons
2023-09-22 13:49:15 +02:00
Luke
61e3ba9904
fix(package): no implicit any
2023-09-16 10:37:14 +02:00
BerkieBb
3c0136afd8
feat(web/input): returnString for date inputs ( #411 )
...
* feat(interface/input): useFormat field
* feat(interface/input): useFormat field
* feat(types/dialog): useFormat field
* feat(components/date): format date conversion
* tweak(components/date): forgot other data type
* chore(interface/input): more descriptive name
* chore(interface/input): more descriptive name
* chore(types/dialog): more descriptive name
* tweak(components/date): reset things
* feat(dialog/input): date conversion with returnString
* refactor(web/input): remove unnecessary state
---------
Co-authored-by: Luke <39926192+LukeWasTakenn@users.noreply.github.com >
2023-09-11 23:17:35 +02:00
Jellyton
0c072ef4f7
feat(client/vehicleproperties): add fixVehicle parameter ( #392 )
2023-08-15 10:40:35 +10:00
Matin
088c2e094a
feat(web/skillcheck): ability to cancel skillcheck ( #364 )
...
* - (FEAT) Added feature to cancel skillcheck
- (FEAT) Added feature to check is any active skillcheck
* - Fix hiding UI
* - return actual boolean
* - Fix focus does not reset properly
* Update skillcheck wrappers
2023-08-08 12:56:06 +02:00
Linden
c6742eeae9
refactor(client/vehicleProperties): driftTyres and window tweaks
...
+ some notes about setting props from server.
2023-07-31 16:17:50 +10:00
Jag
65a799071a
chore: various fix-ups from docs clean-up ( #363 )
...
- Add in missing js functions
- getCurrentRadialId
- requestScaleformMove
- Change up math.tohex to maintain lowercase `0x` prefix
- Add missing fields
- Removed extra whitespaces
Co-authored-by: Luke <39926192+LukeWasTakenn@users.noreply.github.com >
2023-07-21 13:54:29 +02:00
Luke
45f155f62b
perf(package): only run points loop when there's at least one point
2023-07-14 00:57:03 +02:00
Linden
6cf53ddd68
fix(client/vehicleProperties): mods not applying
2023-05-28 15:02:54 +10:00
Can Sönmez
467e7f51ac
fix(package/callback): await callback response ( #340 )
2023-05-26 09:04:30 +10:00
Linden
4e4b5bd570
fix(client/vehicleProperties): tonumber for extras and tyres
...
Sparse arrays sometimes json.decode with string keys, i.e.
`{[5] = 1, [10] = 1}` becomes `[null,null,null,null,1,null,null,null,null,1]`
`{[10] = 1, [11] = 1}` becomes `{"10":1,"11":1}`
2023-05-22 05:08:31 +10:00
Linden
b4edc5bac6
feat(client/vehicleProperties): support extra props
...
Add modKit and bulletProofTyres.
2023-05-22 03:38:36 +10:00
LukeWasTaken
21990796f5
feat(web): ability to style description in notifications
2023-05-10 16:25:32 +02:00
LukeWasTaken
bcb522d9c1
fix(fix): fix potential package prepublish fix
2023-05-09 00:12:55 +02:00
LukeWasTaken
b314b0a434
fix(package): potential fix for the npm package being uncompiled
2023-05-08 23:58:41 +02:00