BlueGit

timfa questward

Files

questward / client / editor.html

editor.html

editor.html 2.2 KiB Download Raw
1<!DOCTYPE html>
2<html lang="en">
3<head>
4 <meta charset="utf-8">
5 <title>World editor</title>
6 <link rel="stylesheet" href="/ui/editor.css">
7</head>
8<body>
9 <header>
10 <h1>World editor</h1>
11 <p id="who">Connecting…</p>
12 <p id="error" class="error"></p>
13 </header>
14 <aside>
15 <p>Chunk <strong id="coords">0, 0</strong></p>
16 <p id="revision"></p>
17 <p id="authored"></p>
18 <label class="open-toggle"><input id="open" type="checkbox"> Open (enterable)</label>
19 <div class="nav">
20 <button id="north" type="button">Up</button>
21 <div>
22 <button id="west" type="button">Left</button>
23 <button id="east" type="button">Right</button>
24 </div>
25 <button id="south" type="button">Down</button>
26 </div>
27 <p>Tool: <strong id="tool"></strong></p>
28 <div class="palette">
29 <button type="button" data-tool='{"kind":"ground","typeId":1}'>Grass</button>
30 <button type="button" data-tool='{"kind":"ground","typeId":2}'>Wood</button>
31 <button type="button" data-tool='{"kind":"block","typeId":1}'>Stone wall</button>
32 <button type="button" data-tool='{"kind":"block","typeId":2}'>Torch</button>
33 <button type="button" data-tool='{"kind":"erase"}'>Erase block</button>
34 </div>
35 <button id="save" type="button">Save chunk</button>
36 <button id="apply" type="button">Apply now</button>
37 <label>Night preview <input id="night" type="range" min="0" max="24" step="0.1" value="12"><span id="night-label">12.0</span></label>
38 <fieldset>
39 <legend>World settings</legend>
40 <label>Walk tiles/s <input id="walk-speed" type="number" min="0.5" step="0.5" value="2"></label>
41 <label>Sim tick Hz <input id="tick-hz" type="number" min="5" step="1" value="20"></label>
42 <button id="save-settings" type="button">Save settings</button>
43 </fieldset>
44 <p class="hint">The red border is the chunk you are editing. Neighbours are shown for alignment and lighting, but paint only applies inside the border. Saves write a pending revision. Apply now reloads the live world. Marketplace placement waits on assets.</p>
45 </aside>
46 <section id="changelog-wrap">
47 <h2>Changelog</h2>
48 <div id="changelog"></div>
49 </section>
50 <div id="selection-border" aria-hidden="true"></div>
51 <script src="/framework/framework.js"></script>
52 <script type="module" src="/src/editor/main.js"></script>
53</body>
54</html>