summaryrefslogtreecommitdiffstats
path: root/cwd/assets/altcraft/ui
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-06-22 01:40:04 +0200
committerLaG1924 <lag1924@gmail.com>2021-06-22 02:20:33 +0200
commit0d2b4783824730ba2208f5caaef27c5c61a56fa5 (patch)
tree3c2e085706f3824aa34d2dce5747c9c86a79723a /cwd/assets/altcraft/ui
parentAdded Settings UI (diff)
downloadAltCraft-0d2b4783824730ba2208f5caaef27c5c61a56fa5.tar
AltCraft-0d2b4783824730ba2208f5caaef27c5c61a56fa5.tar.gz
AltCraft-0d2b4783824730ba2208f5caaef27c5c61a56fa5.tar.bz2
AltCraft-0d2b4783824730ba2208f5caaef27c5c61a56fa5.tar.lz
AltCraft-0d2b4783824730ba2208f5caaef27c5c61a56fa5.tar.xz
AltCraft-0d2b4783824730ba2208f5caaef27c5c61a56fa5.tar.zst
AltCraft-0d2b4783824730ba2208f5caaef27c5c61a56fa5.zip
Diffstat (limited to 'cwd/assets/altcraft/ui')
-rw-r--r--cwd/assets/altcraft/ui/hud.rml1
-rw-r--r--cwd/assets/altcraft/ui/main-menu.rml7
2 files changed, 3 insertions, 5 deletions
diff --git a/cwd/assets/altcraft/ui/hud.rml b/cwd/assets/altcraft/ui/hud.rml
index 5a1d7ce..cbf5c86 100644
--- a/cwd/assets/altcraft/ui/hud.rml
+++ b/cwd/assets/altcraft/ui/hud.rml
@@ -9,6 +9,7 @@
<p>FPS: <span id="dbg-fps">∞?</span></p>
<p>Pos: <span id="dbg-pos">∞?</span></p>
<p>Select pos: <span id="dbg-select-pos">∞?</span></p>
+ <p>Select block: <span id="dbg-select-bid">∞?</span></p>
</div>
<div class="status-hud">
<p>HP: <span id="status-hp">∞?</span> <progress value="15" max="20" id="status-hp-bar" /> </p>
diff --git a/cwd/assets/altcraft/ui/main-menu.rml b/cwd/assets/altcraft/ui/main-menu.rml
index 0aaac89..c5d405d 100644
--- a/cwd/assets/altcraft/ui/main-menu.rml
+++ b/cwd/assets/altcraft/ui/main-menu.rml
@@ -10,11 +10,8 @@
<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'))">Connect</button>
+ <input class="mc-text" id="username"/>
+ <button class="mc-button" id="connect" onclick="ConnectToServer(document)">Connect</button>
<button type="button" class="mc-button" id="options" onclick="OpenOptions(document)">Options...</button>
<button class="mc-button" id="exit" onclick="AC.Exit()">Quit game</button>
</body>