-
-
Couldn't load subscription status.
- Fork 496
Add transfer box customization #1955
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Based on pull request multitheftauto#171 by CrosRoad95
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff. I've created a basic resource to test (and show off) these features.
It disables the default transfer box and replaces it with a basic dx progress bar, as well as the file name and progress percentage displayed above it.
lgtm :shipit:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did light testing and works well. Looks good!
Individual resource file download progress can't be displayed because the network module returns false in a GetDownloadStatus lookup through the HTTP server interface.
Uh oh!
There was an error while loading. Please reload this page.
Transfer box customization
This work is based on the work by @CrosRoad95 in pull request #171
grafik
You are able to hide and show the transfer box on clients.
You can hide the transfer box from server-side before the client starts resources to not show the download window at all.
You are supposed to use a resource with higher download priority to show a custom transfer box.
You will only receive events for the resource download transfer box.
The map download transfer box does not emit these events and can not be hidden with the scripting functions.
Players can force the download window to always appear regardless of the script provided setting through settings.
New server functions
These functions are global. That means they apply for every player.
New client functions
New client events