Commit Graph

292 Commits

Author SHA1 Message Date
DokaDoka
8a785b9fe8 fix(resource/zoneCreator): revert to using event for addSuggestion 2023-01-13 22:28:41 +11:00
Luke
9a92729a30 feat(web/input): allowCancel option 2023-01-11 20:54:29 +01:00
Luke
9a3cff864e refactor(client/interface): default notify backwards compat 2023-01-11 20:38:58 +01:00
DokaDoka
0284e646a7 refactor(resource/zoneCreator): last zone and axis mode tweaks
- don't cancel command if last zone is invalid for selected zone type
- change movement mode key to C to be with most of the other controls
- display current axis mode
- display camera-aligned axes in addition to grid axes for display mode 3 & 4
2023-01-07 17:45:25 +11:00
DokaDoka
4794af7ae0 refactor(resource/zoneCreator): general cleanup
- improved spacing
- remove redundant thread
- fix chat suggestion registration and change to export
2023-01-07 17:37:45 +11:00
Malcolm
ccf29592fb feat(resource/zoneCreator): lastZone arg and camera-aligned movement 2023-01-07 16:27:12 +11:00
Hepic Greg
86d66b85c1 fix(client/interface): reset nui focus on alert (#192) 2022-12-30 21:16:33 +11:00
Linden
08a725105b fix(client/zones): disable marker rotation 2022-12-17 06:21:22 +11:00
Linden
b50c0b7df8 fix(client/context): reset focus
Should resolve #170 but ceebs testing
2022-12-13 08:37:56 +11:00
DokaDoka
c141d011d1 tweak(resource/zoneCreator): specify vec2 2022-12-11 23:46:55 +11:00
Luke
d92c1d7e23 feat(web/alert): allow defining alert dialog button labels 2022-12-08 11:46:21 +01:00
Linden
d9511231b1 refactor(client/progress): move controls outside of function 2022-12-06 13:33:04 +11:00
Linden
ca38dd61ca fix(resource): set cache.game
Property was only set for imported modules.
2022-12-06 13:30:24 +11:00
Scully
231d1c3c77 feat: improved RedM support (#162)
* Improvements + remove redm keybind system as it's pointless
2022-11-26 13:05:55 +11:00
Linden
00c2086072 refactor(streaming): convert to modules
Import methods rather than call via exports.
2022-11-21 21:39:05 +11:00
Linden
6825103dd5 fix(resource): don't export internally loaded modules
i.e. exports.ox_lib:callback is invalid
2022-11-21 21:39:05 +11:00
Linden
d2799075ad fix: types and nil-checks 2022-11-21 21:39:05 +11:00
BerkieBb
504447320f feat(resource/cache): cache.weapon (#151) 2022-11-09 07:49:51 +11:00
Luke
306b7b3670 feat(web/context): disabled buttons 2022-11-06 11:01:39 +01:00
Luke
bee78ccdfc chore(client/menu): remove debug code 2022-11-03 17:56:41 +01:00
Luke
9cc7b9270e refactor(web/menu)!: pass scrollIndex or checked in the same value
If the button is a scroll button then `isScroll` is passed into args, if a button is a checkbox then `isCheck` is passed into args.

Requires `args` to always be of type `table`
2022-10-29 15:55:08 +02:00
BerkieBb
5ba1a3b8f9 feat(interface/menu): checkbox
feat(package/interface/menu): checkbox
feat(web/menu/list): checkbox
feat(web/menu/list): checkbox option for ListItem
feat(web/menu/list): custom checkbox
2022-10-29 15:55:08 +02:00
Linden
97c18f0c6b refactor(resource): export load error 2022-10-28 18:45:47 +11:00
Linden
646473f755 fix(client/cache): GetVehiclePedIsIn
Native was swapped out due to a bug R* introduced.
It hasn't been a problem for months and this native is safer.
2022-10-28 00:32:18 +11:00
Luke
a6a0e4905f feat(web/input): description tooltip on fields 2022-10-27 13:45:27 +02:00
Luke
1127108fcd feat(web/menu): add description support on list items 2022-10-27 10:09:48 +02:00
davidxd33
4f69c7c5c1 feat(interface/dialog): disabled row property (#142)
* feat(interface/dialog): readonly, disabled flags

* Update TS prop types

* refactor(web/input): remove read only property

Co-authored-by: davidxd33 <dponce@gmail.com>
2022-10-27 09:17:53 +02:00
Luke
6264bbcbc9 refactor(skillcheck): move array handling into ui 2022-10-18 20:03:00 +02:00
Linden
d5437e070c chore(interface/skillcheck): types 2022-10-18 20:03:00 +02:00
Luke
4a2866613e feat(client/skillcheck): skillcheck array chaining 2022-10-18 20:03:00 +02:00
Luke
e4b3e0186d feat(client/skillcheck): winning/losing promise resolving 2022-10-18 20:03:00 +02:00
Linden
ec18bbf34a fix(locale): setLocale 2022-10-19 04:14:36 +11:00
Linden
671be5e7a2 refactor(locale): simplify
BREAKING CHANGE (kind of)
Remove user-selection for locales. Adds mostly unnecessary complexity,
and most people don't want to bother with it anyway.

Locale is always based on the convar "ox:locale" instead.
2022-10-18 21:17:26 +11:00
Dominic
4f71595122 refactor(keybinds): rename module, tweaks (#127) 2022-10-15 10:08:20 +11:00
BerkieBb
115bf702c9 feat(client/textui): open state getter for textUI (#126)
* feat(package/interface/textui): text ui open getter

* feat(resource/interface/textui): text ui open getter
2022-10-14 17:17:57 +02:00
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