| 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 id="open-palette" type="button">Select block…</button> |
| 30 | <button type="button" id="tool-erase">Erase block</button> |
| 31 | </div> |
| 32 | <button id="save" type="button">Save chunk</button> |
| 33 | <button id="apply" type="button" disabled title="Save a chunk first to create a pending revision">Apply now</button> |
| 34 | <p id="apply-status" class="hint" aria-live="polite"></p> |
| 35 | <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> |
| 36 | <label>Season preview |
| 37 | <select id="season"> |
| 38 | <option value="summer">Summer / spring</option> |
| 39 | <option value="fall">Fall</option> |
| 40 | <option value="winter">Winter</option> |
| 41 | </select> |
| 42 | </label> |
| 43 | <button id="open-settings" type="button">World settings</button> |
| 44 | <p class="hint">The red border is the chunk you are editing. Paint only inside the border. Hover shows tile config tooltips. Right-click a spawner to edit or remove it. Spawners are editor-only markers (invisible and non-blocking in play). Mouse wheel zooms; Shift+wheel cycles visual states (seasonal outdoor tiles cycle summer/fall/winter and update Season preview).</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 | <div id="tile-tooltip" hidden></div> |
| 52 | <div id="settings-backdrop" hidden></div> |
| 53 | <div id="settings-modal" hidden> |
| 54 | <div id="settings-main"> |
| 55 | <header> |
| 56 | <h2>World settings</h2> |
| 57 | <button id="settings-close" type="button">Close</button> |
| 58 | </header> |
| 59 | <div id="settings-form"></div> |
| 60 | <footer> |
| 61 | <button id="settings-cancel" type="button">Cancel</button> |
| 62 | <button id="settings-save" type="button" disabled>Save</button> |
| 63 | </footer> |
| 64 | </div> |
| 65 | <aside id="settings-log-wrap"> |
| 66 | <h2>Settings log</h2> |
| 67 | <div id="settings-log"></div> |
| 68 | </aside> |
| 69 | </div> |
| 70 | <div id="palette-backdrop" hidden></div> |
| 71 | <div id="palette-modal" hidden> |
| 72 | <header> |
| 73 | <h2>Select placeable</h2> |
| 74 | <button id="palette-close" type="button">Close</button> |
| 75 | </header> |
| 76 | <div id="palette-tabs" class="settings-tabs" role="tablist"></div> |
| 77 | <div id="palette-panels"></div> |
| 78 | </div> |
| 79 | <div id="tile-config-backdrop" hidden></div> |
| 80 | <div id="tile-config-modal" hidden> |
| 81 | <header> |
| 82 | <h2 id="tile-config-title">Tile config</h2> |
| 83 | <button id="tile-config-close" type="button">Close</button> |
| 84 | </header> |
| 85 | <form id="tile-config-form"></form> |
| 86 | <footer> |
| 87 | <button id="tile-config-remove" type="button">Remove</button> |
| 88 | <button id="tile-config-cancel" type="button">Cancel</button> |
| 89 | <button id="tile-config-save" type="button">Save</button> |
| 90 | </footer> |
| 91 | </div> |
| 92 | |
| 93 | <div id="shop-item-search-backdrop" hidden></div> |
| 94 | <div id="shop-item-search-modal" hidden> |
| 95 | <header> |
| 96 | <h2>Add shop item</h2> |
| 97 | <button id="shop-item-search-close" type="button">Close</button> |
| 98 | </header> |
| 99 | <div class="shop-item-search-body"> |
| 100 | <input id="shop-item-search-input" type="search" placeholder="Search items…" autocomplete="off"> |
| 101 | <div id="shop-item-search-results"></div> |
| 102 | </div> |
| 103 | </div> |
| 104 | |
| 105 | <div id="equip-dye-backdrop" hidden></div> |
| 106 | <div id="equip-dye-modal" hidden> |
| 107 | <header> |
| 108 | <h2 id="equip-dye-title">Dye clothing</h2> |
| 109 | <button id="equip-dye-close" type="button">Close</button> |
| 110 | </header> |
| 111 | <div class="equip-dye-body"> |
| 112 | <div id="equip-dye-preview" class="equip-dye-preview" aria-hidden="true"></div> |
| 113 | <label class="equip-dye-channel"> |
| 114 | <span>R</span> |
| 115 | <input id="equip-dye-r" type="range" min="0" max="255" value="200"> |
| 116 | <input id="equip-dye-r-num" type="number" min="0" max="255" value="200"> |
| 117 | </label> |
| 118 | <label class="equip-dye-channel"> |
| 119 | <span>G</span> |
| 120 | <input id="equip-dye-g" type="range" min="0" max="255" value="80"> |
| 121 | <input id="equip-dye-g-num" type="number" min="0" max="255" value="80"> |
| 122 | </label> |
| 123 | <label class="equip-dye-channel"> |
| 124 | <span>B</span> |
| 125 | <input id="equip-dye-b" type="range" min="0" max="255" value="120"> |
| 126 | <input id="equip-dye-b-num" type="number" min="0" max="255" value="120"> |
| 127 | </label> |
| 128 | <div class="equip-dye-actions"> |
| 129 | <button id="equip-dye-clear" type="button">Clear dye</button> |
| 130 | <button id="equip-dye-apply" type="button">Apply</button> |
| 131 | </div> |
| 132 | </div> |
| 133 | </div> |
| 134 | <script src="/framework/framework.js"></script> |
| 135 | <script type="module" src="/src/editor/main.js"></script> |
| 136 | </body> |
| 137 | </html> |