summaryrefslogtreecommitdiffstats
path: root/cwd/assets/altcraft/ui
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-07-02 09:26:39 +0200
committerLaG1924 <lag1924@gmail.com>2021-07-03 10:36:56 +0200
commit48e564a32c266c8d4649c6f50bf4eac56f771c0d (patch)
tree34fbd849a2b0f1ded8ab8d87c1e4a300107b2e0e /cwd/assets/altcraft/ui
parentAdded Loading screen (diff)
downloadAltCraft-48e564a32c266c8d4649c6f50bf4eac56f771c0d.tar
AltCraft-48e564a32c266c8d4649c6f50bf4eac56f771c0d.tar.gz
AltCraft-48e564a32c266c8d4649c6f50bf4eac56f771c0d.tar.bz2
AltCraft-48e564a32c266c8d4649c6f50bf4eac56f771c0d.tar.lz
AltCraft-48e564a32c266c8d4649c6f50bf4eac56f771c0d.tar.xz
AltCraft-48e564a32c266c8d4649c6f50bf4eac56f771c0d.tar.zst
AltCraft-48e564a32c266c8d4649c6f50bf4eac56f771c0d.zip
Diffstat (limited to 'cwd/assets/altcraft/ui')
-rw-r--r--cwd/assets/altcraft/ui/respawn-styles.rcss24
-rw-r--r--cwd/assets/altcraft/ui/respawn.rml12
2 files changed, 36 insertions, 0 deletions
diff --git a/cwd/assets/altcraft/ui/respawn-styles.rcss b/cwd/assets/altcraft/ui/respawn-styles.rcss
new file mode 100644
index 0000000..c6bbd7a
--- /dev/null
+++ b/cwd/assets/altcraft/ui/respawn-styles.rcss
@@ -0,0 +1,24 @@
+.body-respawn {
+ background-color: #800000AA;
+}
+
+#died {
+ font-size: 10vh;
+ margin: 30% auto auto;
+}
+
+#respawn {
+ display: inline-block;
+ width: 45%;
+ height: 8%;
+ position: fixed;
+ margin: 10% auto auto;
+}
+
+#disconnect {
+ display: inline-block;
+ width: 45%;
+ height: 8%;
+ position: fixed;
+ margin: 20% auto auto;
+}
diff --git a/cwd/assets/altcraft/ui/respawn.rml b/cwd/assets/altcraft/ui/respawn.rml
new file mode 100644
index 0000000..093a169
--- /dev/null
+++ b/cwd/assets/altcraft/ui/respawn.rml
@@ -0,0 +1,12 @@
+<rml>
+ <head>
+ <link type="text/rcss" href="mc-styles" />
+ <link type="text/rcss" href="respawn-styles" />
+ <title>NeedRespawn</title>
+ </head>
+ <body class="body-respawn">
+ <strong class="mc-title" id="died">You died!</strong>
+ <button class="mc-button" onclick="AC.GetGameState():PerformRespawn()" id="respawn">Respawn</button>
+ <button class="mc-button" onclick="AC.Disconnect()" id="disconnect">Title screen</button>
+ </body>
+</rml>