| 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 | <button id="open-settings" type="button">World settings</button> |
| 39 | <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. Hover previews the selected tool; the mouse wheel cycles visual states. Chunk saves write a pending revision; world settings apply immediately. Marketplace placement waits on assets.</p> |
| 40 | </aside> |
| 41 | <section id="changelog-wrap"> |
| 42 | <h2>Changelog</h2> |
| 43 | <div id="changelog"></div> |
| 44 | </section> |
| 45 | <div id="selection-border" aria-hidden="true"></div> |
| 46 | <div id="settings-backdrop" hidden></div> |
| 47 | <div id="settings-modal" hidden> |
| 48 | <div id="settings-main"> |
| 49 | <header> |
| 50 | <h2>World settings</h2> |
| 51 | <button id="settings-close" type="button">Close</button> |
| 52 | </header> |
| 53 | <div id="settings-form"></div> |
| 54 | <footer> |
| 55 | <button id="settings-cancel" type="button">Cancel</button> |
| 56 | <button id="settings-save" type="button" disabled>Save</button> |
| 57 | </footer> |
| 58 | </div> |
| 59 | <aside id="settings-log-wrap"> |
| 60 | <h2>Settings log</h2> |
| 61 | <div id="settings-log"></div> |
| 62 | </aside> |
| 63 | </div> |
| 64 | <script src="/framework/framework.js"></script> |
| 65 | <script type="module" src="/src/editor/main.js"></script> |
| 66 | </body> |
| 67 | </html> |