Commit Graph

158 Commits

Author SHA1 Message Date
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
Linden
aaab5798c0 feat(resource/interface): progressActive and cancelprogress command 2022-04-14 13:11:51 +00:00
Linden
0a21924d39 feat(points): get closest point 2022-04-14 11:08:56 +00:00
Linden
21e0edd115 feat(points): remove points 2022-04-14 10:58:17 +00:00
Linden
7ea609ae91 Merge branch 'master' of https://github.com/overextended/ox_lib 2022-04-14 06:45:55 +00:00
Linden
0227bd11a6 feat(resource/interface): progress bar 2022-04-14 06:45:48 +00:00
Linden
c7dafe56cd tweak(resource/cache): playerId, serverId, and micro 2022-04-14 06:44:34 +00:00
Luke
7996e913dc fix(nui): Update input dialog font 2022-04-12 14:38:01 +02:00
Luke
128fb86954 fix(client): Add missing NUI callbacks 2022-04-11 16:14:32 +02:00
Luke
ed75b683d5 feat(client): Text UI functions 2022-04-11 15:59:18 +02:00
Luke
ff71a7d033 feat(client): Input dialog function 2022-04-11 15:26:10 +02:00
Luke
3d3a7075d2 fix(nui): Make description optional 2022-04-11 14:51:28 +02:00
Luke
8d375569ab fix(nui): Fix incorrect string typing and remove tsignore 2022-04-11 14:41:07 +02:00
Linden
760f18653d tweak(resource/interface): register net event for lib.notify 2022-04-11 04:59:21 +00:00
Linden
1ac844f20a tweak(init): store serverId 2022-04-11 04:59:01 +00:00
Linden
84a456bf68 Merge pull request #12 from overextended/feat/ui
Feat/UI
2022-04-11 13:55:23 +10:00
Linden
e842185382 feat(resource/interface): export notify 2022-04-11 03:52:25 +00:00
Luke
285f30f8fe feat(nui): TextUI icon support 2022-04-01 22:04:14 +02:00
Luke
993b06e880 refactor(nui): Better organize components 2022-04-01 21:41:53 +02:00
Luke
c31fed2c41 chore(nui): Get rid of linting warnings 2022-04-01 21:23:45 +02:00
Luke
d6b21a0481 feat(nui): Context menu Lua callbacks 2022-04-01 21:22:14 +02:00
Luke
8156a123f7 fix(nui): Set frame visibility to true by default 2022-04-01 20:25:19 +02:00
Linden
34310698bc feat(imports/loadFramework): loader for ox, qb, and esx
Deeply upsetting code that should probably be thrown into a fire.
2022-03-31 12:47:56 +00:00
Linden
d30a355254 feat(acl): if principal is a number, reference player.num 2022-03-31 12:47:38 +00:00
Linden
5c94328b45 Merge branch 'master' of https://github.com/overextended/ox_lib 2022-03-30 12:33:10 +00:00
Linden
d2441eb60a feat(logger): add datadog logging 2022-03-30 12:32:41 +00:00
Linden
13be3e7cdc Merge pull request #10 from xrtw/patch-1
GetVehicleXenonLightsColour -> GetVehicleXenonLightsColor
2022-03-30 22:21:01 +11:00