Linden
8bcae1937b
tweak(init): store service and name in lib
...
lib.name for 'ox_lib', and service or 'client' or 'server'.
2022-05-01 22:47:34 +10:00
Luke
40a1c15339
chore(web): Fix eslint warnings
2022-05-01 11:09:25 +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
DokaDoka
18f55ffefe
refactor(zones): handle multiple points in the same horizontal line
...
- new intersection points are generated per vertical coord present in the original polygon rather than per vertex and are grouped together rather than associated directly with the parent
- hopefully better code structure and organisation for the entire triangle generating section
2022-05-01 12:49:56 +10: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
Linden
f6216af1ae
refactor: rename lualib variable and move clipboard export
2022-04-29 03:02:06 +10:00
Linden
c7bab9b47f
fix(zones): debug functions should not be global
2022-04-29 02:01:51 +10:00
Linden
634dd747b7
refactor(zones): assign X directly and store triangles as matrices
2022-04-29 02:01:17 +10:00
Linden
754ae1bd8d
refactor(zones): use array table structure when creating triangles
2022-04-29 01:50:31 +10:00
Linden
247b9916e1
refactor(zones): rename variables and minor perf
...
Set box vertices and poly triangles once during creation (with debug).
2022-04-29 01:38:01 +10:00
DokaDoka
65787d3b6d
fix(zones): draw complex polygons properly
...
convex polygons are split into triangles more simply
complex polygons are split into trapezoids and then triangles to be drawn
2022-04-29 00:41:21 +10:00
Linden
cfffcee577
feat(zones): debugBox draw lines on edges
...
It's an abomination until Doka works his magic.
2022-04-27 17:13:26 +10:00
Linden
5dce90682f
refactor(zones): reduce value reassignments
2022-04-27 17:11:36 +10:00
Linden
fc3e5d6339
feat(zones): add contains method to zones
...
Reduces number of table lookups for micro-optimisation.
zone:contains(coords) is also a bit nicer than zone.polygon:contains(coords).
2022-04-27 17:09:32 +10:00
Linden
a340c83e1a
perf(zones): assign inside count and index to local
...
Reduce number of times the inside table needs to be indexed or have length checked.
Also assign debug zones to table without having to be inside the zone.
2022-04-27 17:07:24 +10:00
Linden
cc770ada64
refactor(zones): change new to poly, default box rotation
2022-04-27 10:33:18 +10:00
DokaDoka
de201dcf03
feat(zones): box
...
streamlined rectangle polygon creation for the lazy, with rotation
2022-04-26 23:06:23 +10:00
Linden
f651a91bf6
perf(zones): debug
...
Iterate polygon userdata directly, instead of creating a new table each frame.
2022-04-25 21:51:03 +10:00
Linden
94a460903d
refactor(zones): perf, args, and insideZone
...
lib.zones.new should take a single argument containing all
data related to the new zone, then append new fields to the table.
No need for a distance check and 'nearby', instead check if player
is inside the polygon.
Use a function ref instead of closures for debug (drawPolygon).
2022-04-25 21:33:56 +10:00
DokaDoka
adb110d8d8
feat(imports/zones): basic glm polygon zones
...
build on the points structure
2022-04-25 20:28:10 +10:00
Linden
bf792004e9
fix(interface/progress): check for data.disable.move
2022-04-25 13:31:59 +10:00
Linden
3443475cc0
fix(loadFramework): call correct function after load
2022-04-22 15:33:22 +10:00
Linden
d70fa5de82
fix(loadFramework): catch error during load
2022-04-22 15:29:20 +10:00
Linden
8c448db68d
refactor(loadFramework): determine target based on resource state
...
Easier to work with out-the-box.
2022-04-22 15:28:24 +10:00
Linden
26fe012b55
refactor(interface/progress): disable controls
...
Last implementation was basically copied over from ox_inventory which used
the control actions wrapper; somewhat pointless in this case.
2022-04-22 14:32:40 +10:00
Luke
b4efb510ef
chore(manifest): Bump version
2022-04-21 11:24:01 +02:00
Linden
155dc617f8
refactor(points): support single argument for lib.points.new
2022-04-21 15:18:50 +10:00
Linden
877409486f
refactor(resource/cache): remove commented code
...
Probably won't use this, but if I do then I'll add it when appropriate.
2022-04-21 15:09:42 +10:00
Luke
08d2234484
feat(web/context): Allow manually displaying an arrow
2022-04-19 15:08:02 +02:00
Luke
f74a16d2c2
fix(web/input): Reset input data state on open
...
When putting data in the fields, after closing the dialog and opening it again the data wouldn't be visible but if you were to press confirm again then it would send the previous data
2022-04-19 10:44:17 +02:00
Linden
4464b0ec57
ci(release): create release workflow
2022-04-19 09:53:55 +10:00
Linden
84ad4abcca
refactor(resource/version): checkDependency optional print and return
...
Send 'true' to match old behaviour (print message, return nil).
New behaviour has no output unless sending a third argument.
2022-04-19 01:09:22 +10:00
Linden
f4e0739b04
fix(interface/textui): localise input
2022-04-18 23:30:58 +10:00
Linden
e7ede94866
fix(points): remove tick value when clearing interval
2022-04-18 23:18:39 +10:00
Luke
96d1f74f14
feat(client/web): Set clipboard export
2022-04-17 18:22:19 +02:00
Luke
e00ef6cbf5
refactor(web/progress): Rewrite progressbar component
...
Using chakra's built in progress component was causing weird container stretching when the progress bar would become active
2022-04-16 13:04:22 +02:00
Luke
e46fa203ca
fix(web): Ensure font awesome icons have fixed width
2022-04-16 12:08:55 +02:00
Luke
66f9460729
feat(client/notifications): Add default chakra notification functions
2022-04-16 12:03:50 +02:00
Luke
caa0b8284f
fix(client/context): Ensure is ordered correctly
...
Previously the menu items would be randomly ordered, now they are the order you wrote them to be in.
2022-04-16 11:48:24 +02:00
Luke
66694c4ce3
fix(web/context): Properly align text
...
When there was no description the key for the text wasn't properly centered vertically
2022-04-15 11:41:06 +02:00
Luke
282d81500c
fix(client/context): Throw error when context id doesn't exist
...
Opening a context menu before registering it would previously result in the script completely erroring out and having stuck nui focus
2022-04-15 11:27:08 +02:00
Luke
c21054280c
fix(client/context): Allow using events to open context menus
...
There was an issue where if you wanted to open a second context menu using args from the first context menu's item with events, the nui focus would get stuck beacuse it would get set by the event.
2022-04-15 11:26:11 +02:00
Luke
8ef1b876e1
fix(web/context): Don't close menu when clicking item without events
2022-04-15 11:01:17 +02:00
Luke
50b1ddd167
feat(web/context): Get open context menu function
2022-04-15 10:22:31 +02:00
Linden
65a5bab623
perf(points): use interval for on-frame thread
2022-04-14 14:50:27 +00:00
Linden
9a3b17029f
refactor(resource/interface): keymapping and multi-prop support
...
Prop data should support a single table or an array for multiple
props.
2022-04-14 13:47:56 +00:00