summaryrefslogtreecommitdiffstats
path: root/cwd
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-06-30 15:08:59 +0200
committerLaG1924 <lag1924@gmail.com>2021-07-02 08:46:28 +0200
commit12990cee44efdae378ffbfb4d717ed8a1eafc6dc (patch)
tree341e977ab190d64e59af3d8afa44da08bd2eb410 /cwd
parentAdded more debug values (diff)
downloadAltCraft-12990cee44efdae378ffbfb4d717ed8a1eafc6dc.tar
AltCraft-12990cee44efdae378ffbfb4d717ed8a1eafc6dc.tar.gz
AltCraft-12990cee44efdae378ffbfb4d717ed8a1eafc6dc.tar.bz2
AltCraft-12990cee44efdae378ffbfb4d717ed8a1eafc6dc.tar.lz
AltCraft-12990cee44efdae378ffbfb4d717ed8a1eafc6dc.tar.xz
AltCraft-12990cee44efdae378ffbfb4d717ed8a1eafc6dc.tar.zst
AltCraft-12990cee44efdae378ffbfb4d717ed8a1eafc6dc.zip
Diffstat (limited to 'cwd')
-rw-r--r--cwd/assets/altcraft/scripts/init.lua1
-rw-r--r--cwd/assets/altcraft/ui/loading-styles.rcss9
-rw-r--r--cwd/assets/altcraft/ui/loading.rml11
3 files changed, 21 insertions, 0 deletions
diff --git a/cwd/assets/altcraft/scripts/init.lua b/cwd/assets/altcraft/scripts/init.lua
index 790bab0..ffd74b7 100644
--- a/cwd/assets/altcraft/scripts/init.lua
+++ b/cwd/assets/altcraft/scripts/init.lua
@@ -15,6 +15,7 @@ function plugin.onLoad ()
con:LoadDocument("altcraft/ui/hud")
con:LoadDocument("altcraft/ui/pause")
con:LoadDocument("altcraft/ui/options")
+ con:LoadDocument("altcraft/ui/loading")
uiMainMenu:Show()
AC.Settings.Load()
diff --git a/cwd/assets/altcraft/ui/loading-styles.rcss b/cwd/assets/altcraft/ui/loading-styles.rcss
new file mode 100644
index 0000000..b376fe8
--- /dev/null
+++ b/cwd/assets/altcraft/ui/loading-styles.rcss
@@ -0,0 +1,9 @@
+#body-loading {
+ background-color: #160f08;
+ color: white;
+}
+
+#loading {
+ font-size: 20vh;
+ margin: 30% auto auto;
+}
diff --git a/cwd/assets/altcraft/ui/loading.rml b/cwd/assets/altcraft/ui/loading.rml
new file mode 100644
index 0000000..2d84c37
--- /dev/null
+++ b/cwd/assets/altcraft/ui/loading.rml
@@ -0,0 +1,11 @@
+<rml>
+ <head>
+ <link type="text/rcss" href="mc-styles" />
+ <link type="text/rcss" href="loading-styles" />
+ <title>Loading</title>
+ <script src="/altcraft/scripts/ui"></script>
+ </head>
+ <body id="body-loading">
+ <strong class="mc-title" id="loading">Loading</strong>
+ </body>
+</rml>