| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="utf-8"> |
| 5 | <title>Tile MMO</title> |
| 6 | <link rel="stylesheet" href="/ui/play.css"> |
| 7 | </head> |
| 8 | <body> |
| 9 | <div id="hud" hidden> |
| 10 | <span id="you"></span> |
| 11 | <span>Walk/run: <strong id="gait">walk</strong> (press R)</span> |
| 12 | <span>Zoom: <strong id="zoom">2.00×</strong> (scroll)</span> |
| 13 | <button id="friends-toggle" type="button">Friends</button> |
| 14 | <button id="skills-toggle" type="button">Skills</button> |
| 15 | <button id="bag-toggle" type="button">Bag</button> |
| 16 | <button id="leave" type="button">Leave world</button> |
| 17 | </div> |
| 18 | <div id="toast-stack" aria-live="polite"></div> |
| 19 | <div id="world-tooltip" hidden></div> |
| 20 | <aside id="bag-panel" hidden> |
| 21 | <h2>Bag</h2> |
| 22 | <p id="bag-coins" hidden>0 coins</p> |
| 23 | <div id="equip-grid" class="item-grid equip"></div> |
| 24 | <div id="bag-grid" class="item-grid"></div> |
| 25 | <p id="bag-hint" class="hint">Left-click to select. Right-click an item for Send, Equip, Drop, or Write letter.</p> |
| 26 | <div class="bag-actions"> |
| 27 | <button id="bag-drop" type="button">Drop</button> |
| 28 | <button id="bag-equip" type="button">Equip</button> |
| 29 | </div> |
| 30 | </aside> |
| 31 | <aside id="bank-panel" hidden> |
| 32 | <header> |
| 33 | <h2>Bank</h2> |
| 34 | <button id="bank-close" type="button">Close</button> |
| 35 | </header> |
| 36 | <p id="vault-coins" hidden></p> |
| 37 | <div class="bank-tabs"> |
| 38 | <button id="bank-tab-available" type="button" class="bank-tab active">Available</button> |
| 39 | <button id="bank-tab-reserved" type="button" class="bank-tab">Reserved</button> |
| 40 | <button id="bank-tab-inherit" type="button" class="bank-tab">Inheritance</button> |
| 41 | </div> |
| 42 | <div id="bank-available-pane"> |
| 43 | <div id="vault-grid" class="item-grid"></div> |
| 44 | <p class="hint">Click an item to move it to your bag. Right-click for partial transfers.</p> |
| 45 | </div> |
| 46 | <div id="bank-reserved-pane" hidden> |
| 47 | <div id="vault-reserved-grid" class="item-grid"></div> |
| 48 | <p class="hint">Goods reserved by outstanding cheques. Redeem a cheque at the bank to claim them.</p> |
| 49 | </div> |
| 50 | <div id="bank-inherit-pane" hidden> |
| 51 | <p id="inherit-coins" hidden></p> |
| 52 | <div id="inherit-grid" class="item-grid"></div> |
| 53 | <button id="bank-claim" type="button">Claim inheritance into vault</button> |
| 54 | </div> |
| 55 | </aside> |
| 56 | <aside id="friends-panel" hidden> |
| 57 | <h2>Friends</h2> |
| 58 | <div id="friends-list"></div> |
| 59 | <h3>Incoming</h3> |
| 60 | <div id="incoming-list"></div> |
| 61 | <h3>Outgoing</h3> |
| 62 | <div id="outgoing-list"></div> |
| 63 | <p class="hint">Right-click a bag item and choose Send to deliver by pigeon to the bank or a player.</p> |
| 64 | </aside> |
| 65 | <aside id="skills-panel" hidden> |
| 66 | <h2>Skills</h2> |
| 67 | <div id="skills-list" class="skills-grid"></div> |
| 68 | </aside> |
| 69 | |
| 70 | <div id="send-backdrop" class="modal-backdrop" hidden></div> |
| 71 | <aside id="send-panel" hidden> |
| 72 | <header> |
| 73 | <h2>Send by pigeon</h2> |
| 74 | <button id="send-close" type="button">Close</button> |
| 75 | </header> |
| 76 | <div id="send-item" class="send-item"> |
| 77 | <img id="send-item-img" alt=""> |
| 78 | <strong id="send-item-name"></strong> |
| 79 | </div> |
| 80 | <label class="send-row">Quantity |
| 81 | <input id="send-qty" type="number" min="1" step="1" value="1"> |
| 82 | </label> |
| 83 | <p id="send-target-label" class="hint">No target selected.</p> |
| 84 | <button id="send-pick-target" type="button">Select target</button> |
| 85 | <button id="send-confirm" type="button" disabled>Send</button> |
| 86 | <p id="send-status" class="hint"></p> |
| 87 | </aside> |
| 88 | |
| 89 | <aside id="send-target-panel" hidden> |
| 90 | <header> |
| 91 | <h2>Select target</h2> |
| 92 | <button id="send-target-close" type="button">Back</button> |
| 93 | </header> |
| 94 | <div id="send-target-list"></div> |
| 95 | <div class="send-search"> |
| 96 | <input id="send-search-first" type="text" placeholder="First name" autocomplete="off"> |
| 97 | <input id="send-search-last" type="text" placeholder="Last name" autocomplete="off"> |
| 98 | <button id="send-search" type="button">Search</button> |
| 99 | </div> |
| 100 | <div id="send-search-result"></div> |
| 101 | </aside> |
| 102 | |
| 103 | <div id="transfer-backdrop" class="modal-backdrop" hidden></div> |
| 104 | <aside id="transfer-panel" hidden> |
| 105 | <header> |
| 106 | <h2>Transfer</h2> |
| 107 | <button id="transfer-close" type="button">Close</button> |
| 108 | </header> |
| 109 | <p id="transfer-item-name"></p> |
| 110 | <label class="send-row">Quantity |
| 111 | <input id="transfer-qty" type="number" min="1" step="1" value="1"> |
| 112 | </label> |
| 113 | <button id="transfer-confirm" type="button">Transfer</button> |
| 114 | </aside> |
| 115 | |
| 116 | <div id="write-cheque-backdrop" class="modal-backdrop" hidden></div> |
| 117 | <aside id="write-cheque-panel" hidden> |
| 118 | <header> |
| 119 | <h2>Write cheque</h2> |
| 120 | <button id="write-cheque-close" type="button">Close</button> |
| 121 | </header> |
| 122 | <p id="write-cheque-hint" class="hint">Choose goods from your vault to reserve on this cheque.</p> |
| 123 | <div id="write-cheque-vault" class="item-grid"></div> |
| 124 | <p id="write-cheque-item"></p> |
| 125 | <label class="send-row">Quantity |
| 126 | <input id="write-cheque-qty" type="number" min="1" step="1" value="1"> |
| 127 | </label> |
| 128 | <button id="write-cheque-confirm" type="button" disabled>Write</button> |
| 129 | <p id="write-cheque-status" class="hint"></p> |
| 130 | </aside> |
| 131 | |
| 132 | <div id="letter-backdrop" class="modal-backdrop" hidden></div> |
| 133 | <aside id="letter-panel" hidden> |
| 134 | <header> |
| 135 | <h2 id="letter-title">Letter</h2> |
| 136 | <button id="letter-close" type="button">Close</button> |
| 137 | </header> |
| 138 | <div id="letter-paper" class="letter-paper"> |
| 139 | <textarea id="letter-body" maxlength="2000" spellcheck="true" rows="1"></textarea> |
| 140 | <pre id="letter-signature" class="letter-signature"></pre> |
| 141 | </div> |
| 142 | <div class="bag-actions"> |
| 143 | <button id="letter-save" type="button">Save</button> |
| 144 | </div> |
| 145 | <p id="letter-status" class="hint"></p> |
| 146 | </aside> |
| 147 | |
| 148 | <div id="craft-backdrop" class="modal-backdrop" hidden></div> |
| 149 | <aside id="craft-panel" hidden> |
| 150 | <header> |
| 151 | <h2 id="craft-station-name">Crafting</h2> |
| 152 | <button id="craft-close" type="button">Close</button> |
| 153 | </header> |
| 154 | <div class="craft-layout"> |
| 155 | <div class="craft-recipes"> |
| 156 | <div id="craft-recipe-grid" class="craft-recipe-grid"></div> |
| 157 | </div> |
| 158 | <div class="craft-detail"> |
| 159 | <p id="craft-detail-empty" class="hint">Select a recipe.</p> |
| 160 | <div id="craft-detail-body" hidden> |
| 161 | <div class="craft-output"> |
| 162 | <img id="craft-output-img" alt=""> |
| 163 | <h3 id="craft-output-name"></h3> |
| 164 | </div> |
| 165 | <ul id="craft-inputs" class="craft-inputs"></ul> |
| 166 | <p id="craft-status" class="hint"></p> |
| 167 | <div id="craft-progress" class="craft-progress" hidden> |
| 168 | <div id="craft-progress-fill" class="craft-progress-fill"></div> |
| 169 | </div> |
| 170 | <button id="craft-button" type="button" disabled>Craft</button> |
| 171 | </div> |
| 172 | </div> |
| 173 | </div> |
| 174 | </aside> |
| 175 | |
| 176 | <div id="shop-backdrop" class="modal-backdrop" hidden></div> |
| 177 | <aside id="shop-panel" hidden> |
| 178 | <header> |
| 179 | <h2 id="shop-title">Shop</h2> |
| 180 | <button id="shop-close" type="button">Close</button> |
| 181 | </header> |
| 182 | <div class="shop-body"> |
| 183 | <div id="shop-grid" class="shop-grid"></div> |
| 184 | <div id="shop-detail" class="shop-detail" hidden> |
| 185 | <img id="shop-detail-icon" alt=""> |
| 186 | <strong id="shop-detail-name"></strong> |
| 187 | <span id="shop-detail-price" class="hint"></span> |
| 188 | <span id="shop-detail-stock" class="hint"></span> |
| 189 | <div class="shop-buy-row"> |
| 190 | <button id="shop-buy-1" type="button">Buy 1</button> |
| 191 | <button id="shop-buy-5" type="button">Buy 5</button> |
| 192 | <button id="shop-buy-10" type="button">Buy 10</button> |
| 193 | <button id="shop-buy-x" type="button">Buy x</button> |
| 194 | </div> |
| 195 | <p id="shop-bag-warn" class="shop-bag-warn" hidden>Inventory full; purchases will be sent to your bank.</p> |
| 196 | </div> |
| 197 | </div> |
| 198 | <div id="shop-sell-section" class="shop-sell-section" hidden> |
| 199 | <strong>Sell to shop</strong> |
| 200 | <div id="shop-sell-list" class="shop-sell-list"></div> |
| 201 | <div id="shop-sell-detail" class="shop-sell-detail" hidden> |
| 202 | <span id="shop-sell-price" class="hint"></span> |
| 203 | <span id="shop-sell-fee" class="hint" hidden></span> |
| 204 | <button id="shop-sell-confirm" type="button">Sell 1</button> |
| 205 | </div> |
| 206 | </div> |
| 207 | <p id="shop-coins" class="shop-coins">Coins: 0</p> |
| 208 | </aside> |
| 209 | |
| 210 | <div id="shop-qty-backdrop" class="modal-backdrop" hidden></div> |
| 211 | <aside id="shop-qty-panel" hidden> |
| 212 | <header> |
| 213 | <h2>Buy quantity</h2> |
| 214 | <button id="shop-qty-close" type="button">Close</button> |
| 215 | </header> |
| 216 | <p id="shop-qty-hint" class="hint"></p> |
| 217 | <label class="send-row">Quantity |
| 218 | <input id="shop-qty-input" type="number" min="1" step="1" value="1"> |
| 219 | </label> |
| 220 | <button id="shop-qty-confirm" type="button">Buy</button> |
| 221 | </aside> |
| 222 | |
| 223 | <div id="market-backdrop" class="modal-backdrop" hidden></div> |
| 224 | <aside id="market-panel" hidden> |
| 225 | <header> |
| 226 | <h2 id="market-title">Central Exchange</h2> |
| 227 | <button id="market-close" type="button">Close</button> |
| 228 | </header> |
| 229 | <p id="market-hint" class="hint"></p> |
| 230 | <p id="market-coins" class="shop-coins">Funds: 0</p> |
| 231 | <div class="market-tabs" role="tablist"> |
| 232 | <button id="market-tab-orders" type="button" class="market-tab active" data-tab="orders">Your Orders</button> |
| 233 | <button id="market-tab-sell" type="button" class="market-tab" data-tab="sell">Sell</button> |
| 234 | <button id="market-tab-buy" type="button" class="market-tab" data-tab="buy">Buy</button> |
| 235 | </div> |
| 236 | <section id="market-pane-orders" class="market-pane" data-pane="orders"> |
| 237 | <div id="market-orders"></div> |
| 238 | </section> |
| 239 | <section id="market-pane-sell" class="market-pane" data-pane="sell" hidden> |
| 240 | <div id="market-sell-list" class="market-sell-list"></div> |
| 241 | <p id="market-sell-selected" class="hint">Select an item from your bag</p> |
| 242 | <label class="send-row">Quantity |
| 243 | <input id="market-sell-qty" type="number" min="1" step="1" value="1"> |
| 244 | </label> |
| 245 | <label class="send-row">Min unit price |
| 246 | <input id="market-sell-min" type="number" min="1" step="1" value="1"> |
| 247 | </label> |
| 248 | <p id="market-sell-fee" class="hint"></p> |
| 249 | <button id="market-sell-confirm" type="button">Place sell order</button> |
| 250 | </section> |
| 251 | <section id="market-pane-buy" class="market-pane" data-pane="buy" hidden> |
| 252 | <label class="send-row">Search items |
| 253 | <input id="market-buy-search" type="search" placeholder="Type a name and press Enter" autocomplete="off"> |
| 254 | </label> |
| 255 | <div id="market-catalog" class="market-catalog"></div> |
| 256 | <p id="market-buy-item" class="hint">Search and select an item</p> |
| 257 | <label class="send-row">Quantity |
| 258 | <input id="market-buy-qty" type="number" min="1" step="1" value="1"> |
| 259 | </label> |
| 260 | <label class="send-row">Max unit price |
| 261 | <input id="market-buy-max" type="number" min="1" step="1" value="1"> |
| 262 | </label> |
| 263 | <p id="market-buy-fee" class="hint"></p> |
| 264 | <button id="market-buy-confirm" type="button">Place buy order</button> |
| 265 | </section> |
| 266 | </aside> |
| 267 | |
| 268 | <div id="cauldron-backdrop" class="modal-backdrop" hidden></div> |
| 269 | <aside id="cauldron-panel" hidden> |
| 270 | <header> |
| 271 | <h2>Cauldron</h2> |
| 272 | <button id="cauldron-close" type="button">Close</button> |
| 273 | </header> |
| 274 | <div id="cauldron-slots" class="cauldron-slots"></div> |
| 275 | <div id="cauldron-inserts" class="cauldron-inserts"></div> |
| 276 | <div class="cauldron-vessel" aria-hidden="true">⚗</div> |
| 277 | <div class="cauldron-actions"> |
| 278 | <button id="cauldron-stir" type="button">Stir</button> |
| 279 | <button id="cauldron-heat" type="button">Heat</button> |
| 280 | <button id="cauldron-cool" type="button">Cool</button> |
| 281 | </div> |
| 282 | <div class="cauldron-finish"> |
| 283 | <button id="cauldron-bottle" type="button">Bottle</button> |
| 284 | <button id="cauldron-clear" type="button">Clear</button> |
| 285 | <button id="cauldron-save-recipe" type="button" hidden>Save Recipe</button> |
| 286 | </div> |
| 287 | <ol id="cauldron-steps" class="cauldron-steps"></ol> |
| 288 | <p id="cauldron-status" class="hint"></p> |
| 289 | </aside> |
| 290 | |
| 291 | <div id="cauldron-pick-backdrop" class="modal-backdrop" hidden></div> |
| 292 | <aside id="cauldron-pick-panel" hidden> |
| 293 | <header> |
| 294 | <h2>Choose ingredient</h2> |
| 295 | <button id="cauldron-pick-cancel" type="button">Cancel</button> |
| 296 | </header> |
| 297 | <div id="cauldron-pick-list" class="cauldron-pick-list"></div> |
| 298 | <label class="cauldron-pick-qty">Quantity <input id="cauldron-pick-qty" type="number" min="1" value="1"></label> |
| 299 | <button id="cauldron-pick-confirm" type="button">Place in slot</button> |
| 300 | </aside> |
| 301 | |
| 302 | <div id="nametag" hidden></div> |
| 303 | <div id="damage-numbers"></div> |
| 304 | <div id="chat-bubbles"></div> |
| 305 | <div id="chat-bar" hidden> |
| 306 | <input id="chat-input" type="text" maxlength="100" autocomplete="off" spellcheck="false" placeholder="Say something…"> |
| 307 | </div> |
| 308 | <div id="inspect-backdrop" hidden></div> |
| 309 | <div id="inspect-modal" hidden> |
| 310 | <header> |
| 311 | <h2 id="inspect-name">Player</h2> |
| 312 | <button id="inspect-close" type="button">Close</button> |
| 313 | </header> |
| 314 | <p id="inspect-error" class="error"></p> |
| 315 | <div id="inspect-action"></div> |
| 316 | </div> |
| 317 | <div id="death-backdrop" hidden></div> |
| 318 | <div id="death-modal" role="dialog" aria-modal="true" aria-labelledby="death-title" hidden> |
| 319 | <h2 id="death-title">You have died</h2> |
| 320 | <p>Your remains mark where you fell. Respawn at the nearest church altar.</p> |
| 321 | <button id="death-respawn" type="button">Respawn</button> |
| 322 | </div> |
| 323 | <div id="overlay"> |
| 324 | <section class="panel"> |
| 325 | <h1>Tile MMO</h1> |
| 326 | <p id="status">Connecting…</p> |
| 327 | <p id="error" class="error"></p> |
| 328 | <form id="create-form"> |
| 329 | <label>First name <input id="first-name" required></label> |
| 330 | <label>Last name <input id="last-name" required></label> |
| 331 | <label>Sex |
| 332 | <select id="sex"> |
| 333 | <option value="male">Male</option> |
| 334 | <option value="female">Female</option> |
| 335 | </select> |
| 336 | </label> |
| 337 | <button type="submit">Create character</button> |
| 338 | </form> |
| 339 | <div id="character-list"></div> |
| 340 | <p class="hint">Open chunk 0,0 in the <a href="/editor">world editor</a>, save, then Apply now before walking.</p> |
| 341 | </section> |
| 342 | </div> |
| 343 | <script src="/framework/framework.js"></script> |
| 344 | <script type="module" src="/src/play/main.js"></script> |
| 345 | </body> |
| 346 | </html> |