diff options
author | LaG1924 <lag1924@gmail.com> | 2021-06-16 22:56:25 +0200 |
---|---|---|
committer | LaG1924 <lag1924@gmail.com> | 2021-06-16 22:56:25 +0200 |
commit | 94b3b6b32bc8b996c9689fb89a381cf216353641 (patch) | |
tree | 460eaf04e64e0f31bfb8cea2d6b71737ac4a1861 /cwd/test.rml | |
parent | Improved RmlUi integration (diff) | |
download | AltCraft-94b3b6b32bc8b996c9689fb89a381cf216353641.tar AltCraft-94b3b6b32bc8b996c9689fb89a381cf216353641.tar.gz AltCraft-94b3b6b32bc8b996c9689fb89a381cf216353641.tar.bz2 AltCraft-94b3b6b32bc8b996c9689fb89a381cf216353641.tar.lz AltCraft-94b3b6b32bc8b996c9689fb89a381cf216353641.tar.xz AltCraft-94b3b6b32bc8b996c9689fb89a381cf216353641.tar.zst AltCraft-94b3b6b32bc8b996c9689fb89a381cf216353641.zip |
Diffstat (limited to '')
-rw-r--r-- | cwd/test.rml | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/cwd/test.rml b/cwd/test.rml index 4c7bfa6..de48053 100644 --- a/cwd/test.rml +++ b/cwd/test.rml @@ -1,26 +1,19 @@ <rml> <head> <link type="text/rcss" href="test.rcss" /> - <script> - redLvl = 0 - function Test(elem) - elem.style["background-color"] = "rgb(" .. redLvl .. ",255,255)" - print("New background-color: "..elem.style["background-color"]) - redLvl = redLvl + 50 - end - </script> </head> <body> - Test RmlUi - <br /> - New line - <div> - Substring - </div> - <br /> - <button onclick="print('Button clicked!')" style="background-color:navy;">Clickable!</button> - <div class="right-pos" onclick="Test(element)"> - (Clickable) Right viewport border is here -> - </div> + <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> |