Commit Graph

296 Commits

Author SHA1 Message Date
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
Cranksome
7e171d2a20 fix(locales): DE Cancel (#50) 2022-06-21 13:48:04 +02:00
Nfire
ac1d38412d fix(locale): FR cancel (#49) 2022-06-20 19:13:20 +02:00
Luke
a3b8154b3e feat(web/input): submit on enter press 2022-06-19 15:13:43 +02:00
Luke
5183607279 feat(web/input): number input type 2022-06-19 14:57:03 +02:00
Linden
b1056c1246 tweak(vehicleProperties): return true on success 2022-06-19 14:06:59 +10:00
Linden
130ea5d17e refactor(init): lib.notify server function
Client handler attempts to translate the notification if locales are loaded.
2022-06-19 13:36:11 +10:00
Linden
e95ae858df fix(callback): handle external resource events
Calling registered callback events in another resource should respond to
the invoking resource.
2022-06-19 13:08:28 +10:00
Michur55
db515f552b refactor(locales): cancel string Polish translation (#43) 2022-06-18 22:13:21 +02:00
Luke
038d27089c chore(manifest): bump version 2022-06-17 20:48:07 +02: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
Luke
4a20a0c3ff chore(locales): add cancel string 2022-06-17 20:27:38 +02:00
Michur55
ccee5aa9fa feat(locales): Polish language (#42) 2022-06-17 19:03:24 +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
Luke
de03da1204 chore(manifest): version bump 2022-06-16 16:31:23 +02:00
Cranksome
27721f9121 feat(locales): German locale(#39) 2022-06-16 16:26:34 +02:00
boostless
b086ba1396 Create lt.json (#37) 2022-06-15 22:59:54 +02:00
waddle_dee
cd69b97724 feat(locales): Russian translation (#36)
* feat(locales): Russian translation

* oop
2022-06-15 20:24:35 +02:00
Luke
923a76896b fix(web/progress): remove cancelled timeout animation
This is not a fix, it's a workaround, removes the red animation when cancelling due to it causing the progress bar/circle to be permanently stuck
2022-06-14 19:18:28 +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
835151162f refactor(web/dialog): use locale for alert confirm button 2022-06-12 12:29:48 +02:00
Luke
7b6cf6682f feat(web/input): display value when no label is provided for select 2022-06-11 11:59:00 +02:00
Luke
a7e2dc0067 feat(web/context): images in metadata 2022-06-11 11:49:25 +02:00
Luke
186014f95e feat(web/dialog): alert dialog 2022-06-11 11:33:15 +02:00
Linden
76fcc007c4 feat(callback): client callback
Allow the client to listen for and respond to server requests.
Basically just copy-paste and swap the two.
2022-06-09 05:18:05 +10:00
Linden
c85e9032f9 refactor(callback): rewrite
Register a single net event to handle callback responses (per resource).
Previous implementation registered new events for each callback.
2022-06-09 04:43:37 +10: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
Linden
6d0f915b00 chore: update version 2022-06-03 15:11:19 +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