summaryrefslogtreecommitdiffstats
path: root/cwd/assets/altcraft/ui/main-menu.rml
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-06-18 14:14:19 +0200
committerLaG1924 <lag1924@gmail.com>2021-06-18 16:52:47 +0200
commit8c033fff3d82d5f0e4c5d2eb3c5d10efc60ee851 (patch)
treee0f585207f4dde33999e73d3fbde65f0c76f8b16 /cwd/assets/altcraft/ui/main-menu.rml
parentImplemented main menu in Rml and improved RmlUi support (diff)
downloadAltCraft-8c033fff3d82d5f0e4c5d2eb3c5d10efc60ee851.tar
AltCraft-8c033fff3d82d5f0e4c5d2eb3c5d10efc60ee851.tar.gz
AltCraft-8c033fff3d82d5f0e4c5d2eb3c5d10efc60ee851.tar.bz2
AltCraft-8c033fff3d82d5f0e4c5d2eb3c5d10efc60ee851.tar.lz
AltCraft-8c033fff3d82d5f0e4c5d2eb3c5d10efc60ee851.tar.xz
AltCraft-8c033fff3d82d5f0e4c5d2eb3c5d10efc60ee851.tar.zst
AltCraft-8c033fff3d82d5f0e4c5d2eb3c5d10efc60ee851.zip
Diffstat (limited to 'cwd/assets/altcraft/ui/main-menu.rml')
-rw-r--r--cwd/assets/altcraft/ui/main-menu.rml19
1 files changed, 19 insertions, 0 deletions
diff --git a/cwd/assets/altcraft/ui/main-menu.rml b/cwd/assets/altcraft/ui/main-menu.rml
new file mode 100644
index 0000000..9fd2898
--- /dev/null
+++ b/cwd/assets/altcraft/ui/main-menu.rml
@@ -0,0 +1,19 @@
+<rml>
+ <head>
+ <link type="text/rcss" href="main-menu-styles" />
+ </head>
+ <body>
+ <strong class="mc-title" id="title">AltCraft</strong>
+ <p class="mc-p" id="disclaimer">AltCraft is currently not finished, but there is some buggy early testing going on.</p>
+ <p class="mc-p" id="hostname-text">Enter the hostname of a server and your username to connect to it:</p>
+ <input class="mc-text" id="hostname" value="127.0.0.1:25565"/>
+ <input class="mc-text" id="username" value="HelloOne"/>
+ <button class="mc-button" id="connect" onclick="
+ AC.ConnectToServer(
+ document:GetElementById('hostname'):GetAttribute('value'),
+ document:GetElementById('username'):GetAttribute('value'));
+ document:Close()">Connect</button>
+ <button class="mc-button" id="options">Options...</button>
+ <button class="mc-button" id="exit" onclick="AC.Exit()">Quit game</button>
+ </body>
+</rmL>