Commit Graph
264 Commits
Author SHA1 Message Date
Taso 36d1e993bd refactor(calls): refactor of call architecture 2021-07-28 14:26:00 -04:00
Taso d648b21d3b tweak(phone): update old NuiCallbacks with new wrapper func
Also switches old Nui.send() calls with fetchNui on focus input control
2021-07-27 23:08:40 -04:00
Taso fc939885a8 feat(config): configure an export to be called at toggle to control phone access
Can serve as a primitive form of access control that can for example call a client side inventory check
2021-07-27 23:06:13 -04:00
Taso b00bee0217 chore(client/animation-service): shut eslint up about explicit types 2021-07-27 22:40:59 -04:00
Taso 16626db5bd cleanup(photos): A general cleanup of photos
Removes legacy code no longer in use or cleans up code to use new type safe native wrappers
2021-07-27 22:39:18 -04:00
Taso 83ec915926 perf(client/controls): global -> local ref optimization 2021-07-27 17:49:47 -04:00
Christopher 68d2e66d16 chore(phone): minor changes 2021-07-27 17:04:29 -04:00
Christopher 4e8c57492b feat(camera): refactor to new promise event format 2021-07-27 17:04:28 -04:00
Taso f9956a15a8 fix(scripts/client): fix wrong response format struct on promise reject 2021-07-06 23:58:30 -04:00
Dillon Skaggs 104fda2c11 feat(global): major fixes...i dont even know that to call this commit so ill just say its global. Who even cares 2021-07-06 23:10:47 +02:00
Dillon Skaggs 398bfa2092 feat(): add animation and call service & controllers (#259)
* feat(): add animation and call service & controllers

- run animations on interval so we don't lose animations when walking through doors
- move cl_call.ts to a class

* fix(animation/service): make everything private except for open/closePhone and start/endPhoneCall
2021-07-06 23:02:55 +02:00
Taso 44a9595463 refactor(notes): Refactor to new promise event format 2021-06-08 23:10:16 -04:00
Taso 5e225ca736 tweak(marketplace): Tweak marketplace to match current fetching std 2021-06-08 16:35:41 -04:00
Taso 3df2f88759 refactor(server/marketplace): Refactor to use promise events 2021-06-08 15:46:57 -04:00
Taso 4afa9c691b refactor(phone/marketplace): Refactor state management and fetching 2021-06-08 15:46:39 -04:00
Taso d036243d64 refactor(contacts): Refactor contacts to efficient data fetching 2021-06-08 14:58:05 -04:00
Taso f1012958e2 chore(resources): General Linting 2021-06-08 12:36:10 -04:00
Christopher 478c5ffc63 fix(calls): handle invalid numbers 2021-06-05 19:19:30 +02:00
Taso fed042aea7 tweak(client/utils): Add and tweak various fetch utils for refactor 2021-06-04 10:47:25 -04:00
GoatGeek ebe8c67369 feat: added lua linting github action (#252) 2021-06-03 12:16:11 -04:00
Jan Lecoutere 870aeda3c3 Disable walking when an inputfield is focused (#234)
* feat(phone) Disable walking when an input is focused

* refactor(phone) renamed var & replaced copy paste code

Instead of copying the code it now uses a custom hook

* refactor(phone/input): removed useMemo from hook

* style(phone/input): changed indentation to spaces & added de-structured import
2021-05-24 12:22:00 -04:00
Christopher Gjelten e05f543cb0 Fix: Player ready stuff (#241) 2021-05-23 15:34:17 +02:00
RockySouthpaw a103ef9b2f FIX: Prevent crouch when pasting into phone. 2021-05-22 01:19:35 -04:00
Christopher fb32aaef15 fix(phone): only listen to UI Ready 2021-05-21 00:35:05 +02:00
Dillon Skaggs 2411c39b95 Fix double call history & adding contact from history (#231) 2021-05-20 23:54:01 +02:00
Dillon Skaggs 488c8df5cb feat(client/call): make pma-voice the default export (#232)
- mumble-voip is no longer maintained and is recommended to not be used.
2021-05-20 14:43:28 -04:00
Christopher 054f89c03d fix(phone): fixed? 2021-05-20 18:29:01 +02:00
Christopher 2f0f83a17e fix(resources): load config when player spawns
this is a solution for standalone
2021-05-20 16:42:34 +02:00
Christopher d279b31b8f chore(phone): remove useless sendMessage 2021-05-18 13:13:31 +02:00
Christopher f89ffc3060 fix(init): remove player/ui ready events 2021-05-16 02:20:17 +02:00
Christopher Gjelten 0134b9052c Merge branch 'master' into cleanup/config 2021-05-16 01:57:30 +02:00
Christopher Gjelten 951ed914d5 Merge pull request #212 from project-error/feat/keep-input 2021-05-14 02:29:37 +02:00
Darrian d5aaa67c6c Fix: Removed net event. 2021-05-12 02:38:11 -04:00
Christopher b92cf0d6fa fix(resources/messages): fix coercion comparsion 2021-05-09 15:15:20 +02:00
Christopher fd6afa927c fix(resources/notes): fetch notes after adding 2021-05-04 17:48:24 +02:00
Darrian 000151e756 Fix: Disable additional controls. 2021-04-22 13:24:23 -04:00
Darrian 80d2d5476a Fix: Additional disable controls for vehicles + chat. 2021-04-22 12:59:49 -04:00
Darrian 95ed68dff6 RFR: Renamed file, adjusted manifest, and refactored code.
Renamed the event so its more clear what it does and added a bool to denote when it's being disabled or not. This was attached to `isPhoneOpen` which wasn't reliablly working.  Its now done within `showPhone` and `hidePhone`.

The wait was changed from `1000` to `100` in the event the phone is opened before the wait is over. Makes it more smooth as there is no longer a small duration where the mouse moves the camera.

Removed the enable of control actions as it wasn't needed.
2021-04-22 12:32:10 -04:00
Taso 478d4d4519 fix(client/twitter): Fixed profile fetch 2021-04-18 15:38:51 -04:00
Taso 8af7530f18 fix(server/notes): Temporarily use old resp format 2021-04-18 15:38:51 -04:00
Taso caf42c9c8a fix(client/calls): Fix call history not fetching properly 2021-04-18 15:38:51 -04:00
Taso c94c69c646 refactor(server/contacts): Implement singleton architecture 2021-04-18 15:38:51 -04:00
Taso 0bb20fff31 refactor(server/notes): Implement singleton architecture
Also trying something out with the response structure on the server to cut down on redundant calls.
2021-04-18 15:38:51 -04:00
Taso 949ea4ba4b tweak(player): Altered PLAYER_IS_READY event to emit a bool
This will set the client var to true when NPWD loads a player and false when NPWD unloads a player.
2021-04-18 15:38:50 -04:00
Christopher 1c69cd5e2e keep input 2021-04-16 09:10:10 +02:00
Taso dd3eac4a0e tweak(config): Config var & send as event method
config -> ResourceConfig for readability and the resource config in NUI is now being referenced consistently from state so it can be referenced at runtime and not compile time.

Also removes the need to copy the config before using `cp`
2021-04-13 22:07:22 -04:00
Taso fad2ff14fa fix(scripts/client): Fix incorrect ready & config method 2021-04-13 16:49:35 -04:00
Taso 390319deda fix(types): Fixed incorrectly referenced type 2021-04-11 10:32:31 -04:00
Taso b5fca6b35b cleanup: Recoil State Type Safety + Misc Cleanup (#189)
* chore(phone/settings): Removed unused state

* cleanup(phone/photos): Added type safety to photo state

* tweak(phone/marketplace): Added type safety to marketplace state

* chore(phone/match): Removed unnecessary console.log

* tweak(phone/messages): Added type safety to messages state

Also fixed ESLint warning for exported anonymous hook in useMessages.ts

* tweak(phone/match): Added type safety to match state

* tweak(phone/dialer): Cleanup & type safety for state

Renamed some types to better represent their data

* cleanup(phone/gen): Added NUI event enums for phone events

* tweak(phone/contacts): Type safety for contacts state & variable rename

Renamed and type variable in setFilteredContacts to better represent its use

* tweak(phone/gen-state): Added type-safety to gen phone global state

* tweak(phone/settings): Type safety for settings state

* tweak(phone/photos): Tweaked type for photo referral

* fix(phone/notification-comp): Fix reference to old theme config

* chore(phone/hooks): Remove keyboard service

Removed as this was unused and ESLint was not happy with it

* chore(phone): Cleaned up eslint warnings

No more warnings hooray!

* tweak(phone): Set time in dev mode

* fix(phone): Remove useNuiService that appeared somehow

* fix(phone/gallery): Fixed missing import for gallery

* Revert removing the keyboard service as this is built upon in another PR

This reverts commit 82d12255a84e918da087d988b599af98ce1fe54d.

* fix(phone/keyboard): Add useKeyboardService hook back to Phone.tsx

* fix(phone/gallery): Fix and standardized GalleryPhoto type
2021-04-11 10:01:38 -04:00
Taso a880ae66ea feat(config): Allow config to be edited without rebuild 2021-04-11 09:38:20 -04:00