| 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 | <aside id="bag-panel" hidden> |
| 19 | <h2>Bag</h2> |
| 20 | <p id="bag-coins" hidden>0 coins</p> |
| 21 | <div id="equip-grid" class="item-grid equip"></div> |
| 22 | <div id="bag-grid" class="item-grid"></div> |
| 23 | <p id="bag-hint" class="hint">Left-click to select. Right-click an item for Send, Equip, Drop, or Write letter.</p> |
| 24 | <div class="bag-actions"> |
| 25 | <button id="bag-drop" type="button">Drop</button> |
| 26 | <button id="bag-equip" type="button">Equip</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" hidden></p> |
| 35 | <div class="bank-tabs"> |
| 36 | <button id="bank-tab-available" type="button" class="bank-tab active">Available</button> |
| 37 | <button id="bank-tab-reserved" type="button" class="bank-tab">Reserved</button> |
| 38 | <button id="bank-tab-inherit" type="button" class="bank-tab">Inheritance</button> |
| 39 | </div> |
| 40 | <div id="bank-available-pane"> |
| 41 | <div id="vault-grid" class="item-grid"></div> |
| 42 | <p class="hint">Click an item to move it to your bag. Right-click for partial transfers.</p> |
| 43 | </div> |
| 44 | <div id="bank-reserved-pane" hidden> |
| 45 | <div id="vault-reserved-grid" class="item-grid"></div> |
| 46 | <p class="hint">Goods reserved by outstanding cheques. Redeem a cheque at the bank to claim them.</p> |
| 47 | </div> |
| 48 | <div id="bank-inherit-pane" hidden> |
| 49 | <p id="inherit-coins" hidden></p> |
| 50 | <div id="inherit-grid" class="item-grid"></div> |
| 51 | <button id="bank-claim" type="button">Claim inheritance into vault</button> |
| 52 | </div> |
| 53 | </aside> |
| 54 | <aside id="friends-panel" hidden> |
| 55 | <h2>Friends</h2> |
| 56 | <div id="friends-list"></div> |
| 57 | <h3>Incoming</h3> |
| 58 | <div id="incoming-list"></div> |
| 59 | <h3>Outgoing</h3> |
| 60 | <div id="outgoing-list"></div> |
| 61 | <p class="hint">Right-click a bag item and choose Send to deliver by pigeon to the bank or a player.</p> |
| 62 | </aside> |
| 63 | <aside id="skills-panel" hidden> |
| 64 | <h2>Skills</h2> |
| 65 | <div id="skills-list" class="skills-grid"></div> |
| 66 | <p class="hint">Successful melee hits split XP between the weapon skill and Strength.</p> |
| 67 | </aside> |
| 68 | |
| 69 | <div id="send-backdrop" class="modal-backdrop" hidden></div> |
| 70 | <aside id="send-panel" hidden> |
| 71 | <header> |
| 72 | <h2>Send by pigeon</h2> |
| 73 | <button id="send-close" type="button">Close</button> |
| 74 | </header> |
| 75 | <div id="send-item" class="send-item"> |
| 76 | <img id="send-item-img" alt=""> |
| 77 | <strong id="send-item-name"></strong> |
| 78 | </div> |
| 79 | <label class="send-row">Quantity |
| 80 | <input id="send-qty" type="number" min="1" step="1" value="1"> |
| 81 | </label> |
| 82 | <p id="send-target-label" class="hint">No target selected.</p> |
| 83 | <button id="send-pick-target" type="button">Select target</button> |
| 84 | <button id="send-confirm" type="button" disabled>Send</button> |
| 85 | <p id="send-status" class="hint"></p> |
| 86 | </aside> |
| 87 | |
| 88 | <aside id="send-target-panel" hidden> |
| 89 | <header> |
| 90 | <h2>Select target</h2> |
| 91 | <button id="send-target-close" type="button">Back</button> |
| 92 | </header> |
| 93 | <div id="send-target-list"></div> |
| 94 | <div class="send-search"> |
| 95 | <input id="send-search-first" type="text" placeholder="First name" autocomplete="off"> |
| 96 | <input id="send-search-last" type="text" placeholder="Last name" autocomplete="off"> |
| 97 | <button id="send-search" type="button">Search</button> |
| 98 | </div> |
| 99 | <div id="send-search-result"></div> |
| 100 | </aside> |
| 101 | |
| 102 | <div id="transfer-backdrop" class="modal-backdrop" hidden></div> |
| 103 | <aside id="transfer-panel" hidden> |
| 104 | <header> |
| 105 | <h2>Transfer</h2> |
| 106 | <button id="transfer-close" type="button">Close</button> |
| 107 | </header> |
| 108 | <p id="transfer-item-name"></p> |
| 109 | <label class="send-row">Quantity |
| 110 | <input id="transfer-qty" type="number" min="1" step="1" value="1"> |
| 111 | </label> |
| 112 | <button id="transfer-confirm" type="button">Transfer</button> |
| 113 | </aside> |
| 114 | |
| 115 | <div id="write-cheque-backdrop" class="modal-backdrop" hidden></div> |
| 116 | <aside id="write-cheque-panel" hidden> |
| 117 | <header> |
| 118 | <h2>Write cheque</h2> |
| 119 | <button id="write-cheque-close" type="button">Close</button> |
| 120 | </header> |
| 121 | <p id="write-cheque-hint" class="hint">Choose goods from your vault to reserve on this cheque.</p> |
| 122 | <div id="write-cheque-vault" class="item-grid"></div> |
| 123 | <p id="write-cheque-item"></p> |
| 124 | <label class="send-row">Quantity |
| 125 | <input id="write-cheque-qty" type="number" min="1" step="1" value="1"> |
| 126 | </label> |
| 127 | <button id="write-cheque-confirm" type="button" disabled>Write</button> |
| 128 | <p id="write-cheque-status" class="hint"></p> |
| 129 | </aside> |
| 130 | |
| 131 | <div id="letter-backdrop" class="modal-backdrop" hidden></div> |
| 132 | <aside id="letter-panel" hidden> |
| 133 | <header> |
| 134 | <h2 id="letter-title">Letter</h2> |
| 135 | <button id="letter-close" type="button">Close</button> |
| 136 | </header> |
| 137 | <div id="letter-paper" class="letter-paper"> |
| 138 | <textarea id="letter-body" maxlength="2000" spellcheck="true" rows="1"></textarea> |
| 139 | <pre id="letter-signature" class="letter-signature"></pre> |
| 140 | </div> |
| 141 | <div class="bag-actions"> |
| 142 | <button id="letter-save" type="button">Save</button> |
| 143 | </div> |
| 144 | <p id="letter-status" class="hint"></p> |
| 145 | </aside> |
| 146 | |
| 147 | <div id="craft-backdrop" class="modal-backdrop" hidden></div> |
| 148 | <aside id="craft-panel" hidden> |
| 149 | <header> |
| 150 | <h2 id="craft-station-name">Crafting</h2> |
| 151 | <button id="craft-close" type="button">Close</button> |
| 152 | </header> |
| 153 | <div class="craft-layout"> |
| 154 | <div class="craft-recipes"> |
| 155 | <div id="craft-recipe-grid" class="craft-recipe-grid"></div> |
| 156 | </div> |
| 157 | <div class="craft-detail"> |
| 158 | <p id="craft-detail-empty" class="hint">Select a recipe.</p> |
| 159 | <div id="craft-detail-body" hidden> |
| 160 | <div class="craft-output"> |
| 161 | <img id="craft-output-img" alt=""> |
| 162 | <h3 id="craft-output-name"></h3> |
| 163 | </div> |
| 164 | <ul id="craft-inputs" class="craft-inputs"></ul> |
| 165 | <p id="craft-status" class="hint"></p> |
| 166 | <div id="craft-progress" class="craft-progress" hidden> |
| 167 | <div id="craft-progress-fill" class="craft-progress-fill"></div> |
| 168 | </div> |
| 169 | <button id="craft-button" type="button" disabled>Craft</button> |
| 170 | </div> |
| 171 | </div> |
| 172 | </div> |
| 173 | </aside> |
| 174 | |
| 175 | <div id="nametag" hidden></div> |
| 176 | <div id="damage-numbers"></div> |
| 177 | <div id="chat-bubbles"></div> |
| 178 | <div id="chat-bar" hidden> |
| 179 | <input id="chat-input" type="text" maxlength="100" autocomplete="off" spellcheck="false" placeholder="Say something…"> |
| 180 | </div> |
| 181 | <div id="inspect-backdrop" hidden></div> |
| 182 | <div id="inspect-modal" hidden> |
| 183 | <header> |
| 184 | <h2 id="inspect-name">Player</h2> |
| 185 | <button id="inspect-close" type="button">Close</button> |
| 186 | </header> |
| 187 | <p id="inspect-error" class="error"></p> |
| 188 | <div id="inspect-action"></div> |
| 189 | </div> |
| 190 | <div id="death-backdrop" hidden></div> |
| 191 | <div id="death-modal" role="dialog" aria-modal="true" aria-labelledby="death-title" hidden> |
| 192 | <h2 id="death-title">You have died</h2> |
| 193 | <p>Your remains mark where you fell. Respawn at the nearest church altar.</p> |
| 194 | <button id="death-respawn" type="button">Respawn</button> |
| 195 | </div> |
| 196 | <div id="overlay"> |
| 197 | <section class="panel"> |
| 198 | <h1>Tile MMO</h1> |
| 199 | <p id="status">Connecting…</p> |
| 200 | <p id="error" class="error"></p> |
| 201 | <form id="create-form"> |
| 202 | <label>First name <input id="first-name" required></label> |
| 203 | <label>Last name <input id="last-name" required></label> |
| 204 | <label>Sex |
| 205 | <select id="sex"> |
| 206 | <option value="male">Male</option> |
| 207 | <option value="female">Female</option> |
| 208 | </select> |
| 209 | </label> |
| 210 | <button type="submit">Create character</button> |
| 211 | </form> |
| 212 | <div id="character-list"></div> |
| 213 | <p class="hint">Open chunk 0,0 in the <a href="/editor">world editor</a>, save, then Apply now before walking.</p> |
| 214 | </section> |
| 215 | </div> |
| 216 | <script src="/framework/framework.js"></script> |
| 217 | <script type="module" src="/src/play/main.js"></script> |
| 218 | </body> |
| 219 | </html> |