diff --git a/app/app.ejs b/app/app.ejs
index 28048478..cad811d4 100644
--- a/app/app.ejs
+++ b/app/app.ejs
@@ -7,10 +7,13 @@
-
+
<% include frame.ejs %>
<% include welcome.ejs %>
@@ -30,5 +33,13 @@
<% include landing.ejs %>
<% include overlay.ejs %>
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/assets/css/launcher.css b/app/assets/css/launcher.css
index 617c4f10..dbe41b19 100644
--- a/app/assets/css/launcher.css
+++ b/app/assets/css/launcher.css
@@ -55,7 +55,8 @@ p {
z-index: 100;
display: flex;
flex-direction: column;
- background: rgba(1, 2, 1, 0.5);
+ transition: background-color 1s ease;
+ /*background-color: rgba(1, 2, 1, 0.5);*/
-webkit-user-select: none;
}
@@ -809,67 +810,6 @@ p {
transform: rotate(45deg);
}
-/* * *
-* Login View | Loader
-* * */
-/* Will reuse this elsewhere down the line.
-#loginLoading {
- position: absolute;
- display: flex;
- align-items: center;
- justify-content: center;
- width: 100%;
- height: 100%;
- background: rgba(0, 0, 0, 0.80);
-}
-
-#loginLoadingContent {
- position: relative;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
-}
-
-#loadSpinnerContainer {
- position: relative;
- display: flex;
- align-items: center;
- justify-content: center;
-}
-
-#loadCenterImage {
- position: absolute;
- width: 200px;
- height: auto;
-}
-
-#loadSpinnerImage {
- width: 280px;
- height: auto;
-}
-
-#loadDescText {
- color: #f1eada;
- font-family: 'Avenir Medium';
- font-weight: bold;
- letter-spacing: 1px;
- font-size: 16px;
-}
-
-@keyframes rotating {
- from {
- transform: rotate(0deg);
- }
- to {
- transform: rotate(360deg);
- }
-}
-
-.rotating {
- animation: rotating 10s linear infinite;
-}*/
-
/*
#login_filter {
height: calc(100% - 22px);
@@ -2091,4 +2031,66 @@ p {
}
#serverSelectCancel:active {
color: rgba(165, 165, 165, 0.75);
+}
+
+/*******************************************************************************
+ * *
+ * Loading Element (app.ejs) *
+ * *
+ ******************************************************************************/
+
+/* Loading container, placed above everything. */
+#loadingContainer {
+ position: absolute;
+ z-index: 400;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 100%;
+ height: calc(100% - 22px);
+}
+
+/* Loading content container. */
+#loadingContent {
+ position: relative;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+}
+
+/* Spinner container. */
+#loadSpinnerContainer {
+ position: relative;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
+/* Stationary image for the spinner. */
+#loadCenterImage {
+ position: absolute;
+ width: 200px;
+ height: auto;
+}
+
+/* Rotating image for the spinner. */
+#loadSpinnerImage {
+ width: 280px;
+ height: auto;
+}
+
+/* Rotating animation for the spinner. */
+@keyframes rotating {
+ from {
+ transform: rotate(0deg);
+ }
+ to {
+ transform: rotate(360deg);
+ }
+}
+
+/* Class which is applied when the spinner image is spinning. */
+.rotating {
+ animation: rotating 10s linear infinite;
}
\ No newline at end of file
diff --git a/app/assets/js/assetexec.js b/app/assets/js/assetexec.js
index 1660b304..ee3c25d5 100644
--- a/app/assets/js/assetexec.js
+++ b/app/assets/js/assetexec.js
@@ -41,6 +41,8 @@ process.on('message', (msg) => {
if(res instanceof Promise){
res.then((v) => {
process.send({result: v, content: msg.content})
+ }).catch((err) => {
+ process.send({result: v, content: msg.content})
})
} else {
process.send({result: res, content: msg.content})
diff --git a/app/assets/js/assetguard.js b/app/assets/js/assetguard.js
index b925d332..4257938e 100644
--- a/app/assets/js/assetguard.js
+++ b/app/assets/js/assetguard.js
@@ -373,21 +373,17 @@ class AssetGuard extends EventEmitter {
// #region
/**
- * Statically retrieve the distribution data.
+ * Retrieve a new copy of the distribution index from our servers.
*
* @param {string} launcherPath The root launcher directory.
- * @param {boolean} cached Optional. False if the distro should be freshly downloaded, else
- * a cached copy will be returned.
* @returns {Promise.