summaryrefslogtreecommitdiffstats
path: root/cwd/assets/altcraft/ui/main-menu.rml
blob: 9fd28988b8c190d02dfb8340c8900259aaccbdef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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>