Skip to content

Commit

Permalink
Feather support added + Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewR3K committed Dec 21, 2023
1 parent 285bcbd commit 8f71872
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
5 changes: 4 additions & 1 deletion config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
CONFIG = {
feathercore: {
active: false
},
image: {
active: true, // If you want an image background make this flag true (but make sure youtube/video is false)
source: "url('nui://bcc-loadscreen/ui/assets/background.png')",
Expand All @@ -19,7 +22,7 @@ CONFIG = {
volume: 50 // 0 - 100
},
googledrive: {
active: true, //If you want a youtube video make this flag true (but make sure image/video is false)
active: false, //If you want a youtube video make this flag true (but make sure image/video is false)
source: "<YOUR VIDEO ID>", //ID of your google drive video. 1: Make the video shared with anyone with the link, then copy the link Example: https://drive.google.com/file/d/<YOUR VIDEO ID>/view
looped: false, // If the video is not looped then the loadscreen will "close" when the video ends. otherwise it will loop until the loading is actually done.
mute: false,
Expand Down
9 changes: 2 additions & 7 deletions fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lua54 'yes'

author 'Bytesizd'
description 'Customizable loadscreen'
loadscreen_manual_shutdown "yes"

files {
'ui/index.html',
'ui/vendor/vue.js',
Expand All @@ -18,11 +18,6 @@ files {
'config.js'
}

loadscreen 'ui/index.html'
ui_page 'ui/index.html'

loadscreen_cursor 'yes'

version '1.1.1'

resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
version '1.1.2'
9 changes: 1 addition & 8 deletions ui/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ let vueApp = createApp({
}
},
destroyed() {
window.removeEventListener("message");

this.yt = false;
this.image = false;

Expand Down Expand Up @@ -127,14 +125,9 @@ let vueApp = createApp({
}
}
},
onMessage(event) {
if (event.data.action === "toggle") {
this.visible = !this.visible;
}
},
startCallback() {
this.timer = setInterval(() => {
fetch(`https://bcc-loadscreen-helper/isgameinitiated`, {
fetch(this.config.feathercore.active ? `https://feather-core/isgameinitiated` : `https://bcc-loadscreen-helper/isgameinitiated`, {
method: "POST",
headers: {
"Content-Type": "application/json; charset=UTF-8",
Expand Down

0 comments on commit 8f71872

Please sign in to comment.