Commit Graph

275 Commits

Author SHA1 Message Date
Lukas Brūzga
f641881243 fix(client/setVehicleProperties): force clear custom colours (#375) 2023-07-23 13:14:44 +10:00
Jerry
588d26c421 fix(client/vehicleProperties): don't set modLivery if no livery exists (#374) 2023-07-23 13:14:03 +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
Linden
310b9720bc fix(client/zoneCreator): require input confirmation 2023-06-17 16:11:08 +10:00
Linden
1f76590b53 fix(version): report unknown versions during checkDependency
Rather than throwing potentially fatal and confusing errors we should
just report the current version as 'unknown'.
2023-06-13 00:36:17 +10:00
Linden
6cf53ddd68 fix(client/vehicleProperties): mods not applying 2023-05-28 15:02:54 +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
Linden
3bc9c3206d fix(client/vehicleProperties): missing tyres 2023-05-22 03:34:21 +10:00
Linden
c0ee1ae2f8 fix(client/vehicleProperties): SetVehicleExtra takes bool 2023-05-22 03:27:47 +10:00
Linden
dbfb0227aa refactor(cleint/textui): cancel showTextUI if text is unchanged
Because people continue to excessively call it in a loop.
2023-05-19 21:41:58 +10:00
Linden
991be22de5 fix(client/radial): disable pause menu while open 2023-05-18 21:02:27 +10:00
Linden
16875ca7e3 fix: type corrections 2023-05-18 15:38:53 +10:00
Demetrio
b4d9cffb31 fix(server/txadmin): notification override convar (#325) 2023-05-12 13:10:28 +10:00
Demetrio
8a8700ca57 feat(server/interface): configurable txAdmin notifications override (#299) 2023-05-09 23:52:09 +10:00
Linden
89c0668985 refactor(client/progress): reduce Wait in progress queue 2023-05-05 14:55:03 +10:00
Linden
878763867a refactor(client/progress): don't clear progress on cancel
Sending "progressCancel" to NUI will cause a transition and then
trigger "progressComplete" with a slight delay (~100ms).

Should look better when people queue up progress bars.
2023-05-05 14:51:52 +10:00
mikigoalie
c94d019f67 feat(web/notifications): add warning type (#315)
* update(notify): add warning it's own type

* update(notify): inform > info, change warning default icon to circle

* fix typo

* update(notify): case for def notifs, update icons

use circle icons for all notifs so its more unified, also looks a bit better imo

* fix(progressBar): spamming cancel

spamming cancel would sometimes not interrupt current progbar

* Revert "fix(progressBar): spamming cancel"

This reverts commit b030fddd20f9f2b92a07ce4199c73e3b43f435a3.
2023-05-01 12:08:02 +02:00
FjamZoo
74876c8b4e fix(client/context): reset focus when selecting option (#310) 2023-04-26 09:47:07 +10:00
Linden
9ce8f963b4 fix(client/context): hide before triggering select actions 2023-04-21 12:31:33 +10:00
Linden
0af4b42586 feat(client/radial): keepOpen 2023-04-17 15:15:30 +10:00
Demetrio
87b08c29c6 feat(client/raycast): allow defining distance (#296) 2023-04-17 14:50:12 +10:00
FjamZoo
33215fa6b5 fix(interface/radial): keep input while open (#288) 2023-04-17 14:43:15 +10:00
Linden
4a7cf75b7f fix(client/radial): reset nui focus on hide 2023-04-01 14:24:42 +11:00
Linden
c4b87a0d91 refactor(client/interface): nui focus consistency 2023-03-23 05:55:16 +11:00
Malcolm Keefe
b32ab6e948 feat(interface/radial): allow clearing all global radial menu items (#272)
* Add clearAllRadialItems

* Refresh rather then close, rename
2023-03-16 09:26:17 +01:00
Lunar-Scripts
b3b684b389 fix(interface/men): fix cursor being shown in menu (#273) 2023-03-15 21:04:39 +01:00
Diogo Manuel Coelho Morais dos Santos
fc6a95c73c fix(interface): Add table<string, string> to icon typings (#261) 2023-03-11 06:38:34 +11:00
David Malchin
9c1c784e5d fix(version): match major versions with multiple digits (#259) 2023-03-02 04:30:26 +11:00
Linden
ad2c50cd1d feat(client/radial): add lib.disableRadial to prevent radial access 2023-03-01 07:32:40 +11:00
Linden
3dd996c38b refactor(client/interface): nui focus tweaks
Add helper functions to set nui focus and restore previous input state.
Ensure focus is reset before triggering responses (promises/callbacks).
2023-03-01 07:25:28 +11:00
Linden
284b563483 fix(client/radial): reset NuiFocusKeepInput 2023-03-01 07:04:51 +11:00
Linden
8848f6d6bc fix(client/radial): onSelect export handler
currentRadial is cleared before triggering the export.
2023-03-01 06:48:13 +11:00
Diogo Manuel Coelho Morais dos Santos
053d5d45ec fix(radial): replace global item with same id instead of duplicating (#255) 2023-03-01 06:48:08 +11:00
Diogo Manuel Coelho Morais dos Santos
d72b7eb00a fix(radial): go back to correct more page when going back from sub (#247) 2023-03-01 06:47:14 +11:00
Linden
79e91ee452 refactor(client/radial): allow onSelect as string to call an export
e.g. onSelect = 'menuHandler'
exports('menuHandler', function(menu, item) end)
2023-02-26 03:58:05 +11:00
Linden
29022e1a48 feat(client/radial): return currentMenu and itemIndex onSelect 2023-02-26 01:59:01 +11:00
Luke
60e3a12033 Revert "fix(web/radial): go back to correct more page when going back from sub"
This reverts commit 709d512422.
2023-02-25 15:37:13 +01:00
Luke
6e1a978038 fix(web/radial): check whether radial menu was closed during transition
Closing the radial menu during the transition from the more pages would cause the menu to be stuck open
2023-02-25 14:30:54 +01:00
Luke
709d512422 fix(web/radial): go back to correct more page when going back from sub 2023-02-25 14:15:27 +01:00
Linden
b3b49b1cbd fix: missing and invalid types and parameters 2023-02-25 18:20:14 +11:00
Linden
b779ea7c3b refactor(client/radial): don't refresh submenu if parent updated
Possibly works as intended, even.
2023-02-24 14:39:17 +11:00
Linden
f130a27680 fix(client/radial): don't refresh submenu if unrelated option updates 2023-02-24 14:31:42 +11:00
Linden
386fc60afd fix(client/radial): refresh current submenu if path is still valid
Resolves #424, hopefully without weird side effects.
2023-02-24 04:24:51 +11:00
Linden
7f538f6a5b fix(client/radial): refresh when current submenu updates
Resolves #241.
2023-02-24 04:04:25 +11:00
Linden
21739ac6cf refactor(client/radial): refresh to last available menu
When re-registering or removing an option linking to the current
submenu, restore the last available sub menu.
2023-02-24 03:55:19 +11:00
Linden
e2650b7e05 feat(client/radial): refresh menu when parent is re-registered 2023-02-24 02:50:54 +11:00
Linden
5f1678131c feat(client/radial): support refreshing menus 2023-02-24 00:26:17 +11:00
Linden
5428d1c768 feat(client/radial): refresh menu when current menu is removed
Possibly weird.
2023-02-23 23:35:20 +11:00
Luke
e9c2e244c7 fix(web/radial): fix transition not showing for global radial menu 2023-02-23 12:57:17 +01:00