| 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="bag-toggle" type="button">Bag</button> |
| 15 | <button id="leave" type="button">Leave world</button> |
| 16 | </div> |
| 17 | <aside id="bag-panel" hidden> |
| 18 | <h2>Bag</h2> |
| 19 | <p id="bag-coins">0 coins</p> |
| 20 | <div id="equip-grid" class="item-grid equip"></div> |
| 21 | <div id="bag-grid" class="item-grid"></div> |
| 22 | <p id="bag-hint" class="hint">Left-click to select. Right-click an item for Send, Equip, Drop, or Write letter.</p> |
| 23 | <div class="bag-actions"> |
| 24 | <button id="bag-drop" type="button">Drop</button> |
| 25 | <button id="bag-equip" type="button">Equip</button> |
| 26 | <button id="bag-bank" type="button">Deposit selected</button> |
| 27 | </div> |
| 28 | </aside> |
| 29 | <aside id="bank-panel" hidden> |
| 30 | <header> |
| 31 | <h2>Bank</h2> |
| 32 | <button id="bank-close" type="button">Close</button> |
| 33 | </header> |
| 34 | <p id="vault-coins"></p> |
| 35 | <div id="vault-grid" class="item-grid"></div> |
| 36 | <h3>Inheritance</h3> |
| 37 | <p id="inherit-coins"></p> |
| 38 | <div id="inherit-grid" class="item-grid"></div> |
| 39 | <button id="bank-claim" type="button">Claim inheritance into vault</button> |
| 40 | <p class="hint">Stand next to a bank block. Click a vault slot to withdraw. Deposit uses the selected bag slot.</p> |
| 41 | </aside> |
| 42 | <aside id="friends-panel" hidden> |
| 43 | <h2>Friends</h2> |
| 44 | <div id="friends-list"></div> |
| 45 | <h3>Incoming</h3> |
| 46 | <div id="incoming-list"></div> |
| 47 | <h3>Outgoing</h3> |
| 48 | <div id="outgoing-list"></div> |
| 49 | <p class="hint">Right-click a bag item and choose Send to deliver by pigeon to the bank or a player.</p> |
| 50 | </aside> |
| 51 | |
| 52 | <div id="send-backdrop" class="modal-backdrop" hidden></div> |
| 53 | <aside id="send-panel" hidden> |
| 54 | <header> |
| 55 | <h2>Send by pigeon</h2> |
| 56 | <button id="send-close" type="button">Close</button> |
| 57 | </header> |
| 58 | <div id="send-item" class="send-item"> |
| 59 | <img id="send-item-img" alt=""> |
| 60 | <strong id="send-item-name"></strong> |
| 61 | </div> |
| 62 | <label class="send-row">Quantity |
| 63 | <input id="send-qty" type="number" min="1" step="1" value="1"> |
| 64 | </label> |
| 65 | <p id="send-target-label" class="hint">No target selected.</p> |
| 66 | <button id="send-pick-target" type="button">Select target</button> |
| 67 | <button id="send-confirm" type="button" disabled>Send</button> |
| 68 | <p id="send-status" class="hint"></p> |
| 69 | </aside> |
| 70 | |
| 71 | <aside id="send-target-panel" hidden> |
| 72 | <header> |
| 73 | <h2>Select target</h2> |
| 74 | <button id="send-target-close" type="button">Back</button> |
| 75 | </header> |
| 76 | <div id="send-target-list"></div> |
| 77 | <div class="send-search"> |
| 78 | <input id="send-search-first" type="text" placeholder="First name" autocomplete="off"> |
| 79 | <input id="send-search-last" type="text" placeholder="Last name" autocomplete="off"> |
| 80 | <button id="send-search" type="button">Search</button> |
| 81 | </div> |
| 82 | <div id="send-search-result"></div> |
| 83 | </aside> |
| 84 | |
| 85 | <div id="letter-backdrop" class="modal-backdrop" hidden></div> |
| 86 | <aside id="letter-panel" hidden> |
| 87 | <header> |
| 88 | <h2 id="letter-title">Letter</h2> |
| 89 | <button id="letter-close" type="button">Close</button> |
| 90 | </header> |
| 91 | <div id="letter-paper" class="letter-paper"> |
| 92 | <textarea id="letter-body" maxlength="2000" spellcheck="true" rows="1"></textarea> |
| 93 | <pre id="letter-signature" class="letter-signature"></pre> |
| 94 | </div> |
| 95 | <div class="bag-actions"> |
| 96 | <button id="letter-save" type="button">Save</button> |
| 97 | </div> |
| 98 | <p id="letter-status" class="hint"></p> |
| 99 | </aside> |
| 100 | |
| 101 | <div id="nametag" hidden></div> |
| 102 | <div id="chat-bubbles"></div> |
| 103 | <div id="chat-bar" hidden> |
| 104 | <input id="chat-input" type="text" maxlength="100" autocomplete="off" spellcheck="false" placeholder="Say something…"> |
| 105 | </div> |
| 106 | <div id="inspect-backdrop" hidden></div> |
| 107 | <div id="inspect-modal" hidden> |
| 108 | <header> |
| 109 | <h2 id="inspect-name">Player</h2> |
| 110 | <button id="inspect-close" type="button">Close</button> |
| 111 | </header> |
| 112 | <p id="inspect-error" class="error"></p> |
| 113 | <div id="inspect-action"></div> |
| 114 | </div> |
| 115 | <div id="overlay"> |
| 116 | <section class="panel"> |
| 117 | <h1>Tile MMO</h1> |
| 118 | <p id="status">Connecting…</p> |
| 119 | <p id="error" class="error"></p> |
| 120 | <form id="create-form"> |
| 121 | <label>First name <input id="first-name" required></label> |
| 122 | <label>Last name <input id="last-name" required></label> |
| 123 | <label>Sex |
| 124 | <select id="sex"> |
| 125 | <option value="male">Male</option> |
| 126 | <option value="female">Female</option> |
| 127 | </select> |
| 128 | </label> |
| 129 | <button type="submit">Create character</button> |
| 130 | </form> |
| 131 | <div id="character-list"></div> |
| 132 | <p class="hint">Open chunk 0,0 in the <a href="/editor">world editor</a>, save, then Apply now before walking.</p> |
| 133 | </section> |
| 134 | </div> |
| 135 | <script src="/framework/framework.js"></script> |
| 136 | <script type="module" src="/src/play/main.js"></script> |
| 137 | </body> |
| 138 | </html> |