| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | |
| 4 | <head> |
| 5 | <meta charset="utf-8"> |
| 6 | <title>Questward</title> |
| 7 | <link rel="stylesheet" href="/ui/play.css"> |
| 8 | </head> |
| 9 | |
| 10 | <body> |
| 11 | <div id="hud" hidden> |
| 12 | <span id="you"></span> |
| 13 | <span>Walk/run: <strong id="gait">walk</strong> (press R)</span> |
| 14 | <span>Zoom: <strong id="zoom">2.00×</strong> (scroll)</span> |
| 15 | <button id="friends-toggle" type="button">Friends</button> |
| 16 | <button id="quests-toggle" type="button">Quests</button> |
| 17 | <button id="skills-toggle" type="button">Skills</button> |
| 18 | <button id="spells-toggle" type="button">Spells</button> |
| 19 | <button id="bag-toggle" type="button">Bag</button> |
| 20 | <button id="leave" type="button">Leave world</button> |
| 21 | </div> |
| 22 | <button id="settings-toggle" type="button" hidden title="Settings" aria-label="Settings">⚙</button> |
| 23 | <div id="xp-gain-hud" hidden aria-live="polite"></div> |
| 24 | <aside id="settings-panel" hidden> |
| 25 | <header> |
| 26 | <h2>Settings</h2> |
| 27 | <button id="settings-close" type="button">Close</button> |
| 28 | </header> |
| 29 | <section class="settings-group"> |
| 30 | <h3>Viewing distance</h3> |
| 31 | <div class="settings-options"> |
| 32 | <button type="button" data-graphics-key="viewDistance" data-graphics-value="long">Long</button> |
| 33 | <button type="button" data-graphics-key="viewDistance" data-graphics-value="short">Short</button> |
| 34 | </div> |
| 35 | </section> |
| 36 | <section class="settings-group"> |
| 37 | <h3>Lighting</h3> |
| 38 | <div class="settings-options"> |
| 39 | <button type="button" data-graphics-key="lighting" data-graphics-value="soft">Soft</button> |
| 40 | <button type="button" data-graphics-key="lighting" data-graphics-value="simple">Simple</button> |
| 41 | </div> |
| 42 | </section> |
| 43 | <section class="settings-group"> |
| 44 | <h3>Bloom</h3> |
| 45 | <div class="settings-options"> |
| 46 | <button type="button" data-graphics-key="bloom" data-graphics-value="on">On</button> |
| 47 | <button type="button" data-graphics-key="bloom" data-graphics-value="off">Off</button> |
| 48 | </div> |
| 49 | </section> |
| 50 | <section class="settings-group"> |
| 51 | <h3>Soft terrain</h3> |
| 52 | <div class="settings-options"> |
| 53 | <button type="button" data-graphics-key="softTerrain" data-graphics-value="on">On</button> |
| 54 | <button type="button" data-graphics-key="softTerrain" data-graphics-value="off">Off</button> |
| 55 | </div> |
| 56 | </section> |
| 57 | <section class="settings-group"> |
| 58 | <h3>Autorun</h3> |
| 59 | <div class="settings-options"> |
| 60 | <button type="button" data-graphics-key="autorun" data-graphics-value="on">On</button> |
| 61 | <button type="button" data-graphics-key="autorun" data-graphics-value="off">Off</button> |
| 62 | </div> |
| 63 | </section> |
| 64 | </aside> |
| 65 | <div id="top-center-stack"> |
| 66 | <div id="quest-tracker" hidden aria-live="polite"></div> |
| 67 | <div id="toast-stack" aria-live="polite"></div> |
| 68 | </div> |
| 69 | <div id="world-tooltip" hidden></div> |
| 70 | |
| 71 | <div id="quests-list-backdrop" class="modal-backdrop" hidden></div> |
| 72 | <div id="quests-list-panel" hidden> |
| 73 | <header> |
| 74 | <h2>Quests</h2> |
| 75 | <button id="quests-list-close" type="button">Close</button> |
| 76 | </header> |
| 77 | <div id="quests-list-body"></div> |
| 78 | </div> |
| 79 | |
| 80 | <div id="quests-detail-backdrop" class="modal-backdrop" hidden></div> |
| 81 | <div id="quests-detail-panel" hidden> |
| 82 | <header> |
| 83 | <h2 id="quests-detail-title">Quest</h2> |
| 84 | <div class="quests-detail-actions"> |
| 85 | <button id="quests-detail-back" type="button">Back</button> |
| 86 | <button id="quests-detail-close" type="button">Close</button> |
| 87 | </div> |
| 88 | </header> |
| 89 | <div class="quests-detail-layout"> |
| 90 | <section> |
| 91 | <h3>Journal</h3> |
| 92 | <div id="quests-detail-journal"></div> |
| 93 | </section> |
| 94 | <section> |
| 95 | <h3>Current</h3> |
| 96 | <div id="quests-detail-step"></div> |
| 97 | </section> |
| 98 | </div> |
| 99 | </div> |
| 100 | |
| 101 | <div id="quest-complete-backdrop" class="modal-backdrop" hidden></div> |
| 102 | <div id="quest-complete-panel" hidden> |
| 103 | <header> |
| 104 | <h2 id="quest-complete-title">Quest Completed!</h2> |
| 105 | </header> |
| 106 | <div id="quest-complete-body" class="quest-complete-body"></div> |
| 107 | <footer> |
| 108 | <button id="quest-complete-ok" type="button">OK</button> |
| 109 | </footer> |
| 110 | </div> |
| 111 | |
| 112 | <div id="dialogue-panel" hidden> |
| 113 | <header> |
| 114 | <h2 id="dialogue-title"></h2> |
| 115 | <button id="dialogue-close" type="button">Close</button> |
| 116 | </header> |
| 117 | <div id="dialogue-lines"></div> |
| 118 | <div id="dialogue-triggers" class="dialogue-triggers"></div> |
| 119 | </div> |
| 120 | |
| 121 | <aside id="bag-panel" hidden> |
| 122 | <div class="bag-header"> |
| 123 | <h2>Bag</h2> |
| 124 | <p id="bag-max-hit" class="bag-max-hit hint" hidden></p> |
| 125 | </div> |
| 126 | <p id="bag-coins" hidden>0 coins</p> |
| 127 | <div id="equip-grid" class="item-grid equip"></div> |
| 128 | <div id="bag-grid" class="item-grid"></div> |
| 129 | <p id="bag-hint" class="hint">Left-click to select. Drag between slots to rearrange. Right-click for other |
| 130 | options.</p> |
| 131 | </aside> |
| 132 | <aside id="bank-panel" hidden> |
| 133 | <header> |
| 134 | <h2>Bank</h2> |
| 135 | <button id="bank-close" type="button">Close</button> |
| 136 | </header> |
| 137 | <p id="vault-coins" hidden></p> |
| 138 | <div class="bank-tabs"> |
| 139 | <button id="bank-tab-available" type="button" class="bank-tab active">Available</button> |
| 140 | <button id="bank-tab-reserved" type="button" class="bank-tab">Reserved</button> |
| 141 | <button id="bank-tab-inherit" type="button" class="bank-tab">Inheritance</button> |
| 142 | </div> |
| 143 | <div id="bank-available-pane"> |
| 144 | <div id="vault-grid" class="item-grid"></div> |
| 145 | <p class="hint">Click an item to move it to your bag. Right-click for partial transfers.</p> |
| 146 | </div> |
| 147 | <div id="bank-reserved-pane" hidden> |
| 148 | <div id="vault-reserved-grid" class="item-grid"></div> |
| 149 | <p class="hint">Goods reserved by outstanding cheques. Redeem a cheque at the bank to claim them.</p> |
| 150 | </div> |
| 151 | <div id="bank-inherit-pane" hidden> |
| 152 | <p id="inherit-coins" hidden></p> |
| 153 | <div id="inherit-grid" class="item-grid"></div> |
| 154 | <button id="bank-claim" type="button">Claim inheritance into vault</button> |
| 155 | </div> |
| 156 | </aside> |
| 157 | <aside id="friends-panel" hidden> |
| 158 | <h2>Friends</h2> |
| 159 | <div id="friends-list"></div> |
| 160 | <h3>Incoming</h3> |
| 161 | <div id="incoming-list"></div> |
| 162 | <h3>Outgoing</h3> |
| 163 | <div id="outgoing-list"></div> |
| 164 | <p class="hint">Right-click a bag item and choose Send to deliver by pigeon to the bank or a player.</p> |
| 165 | </aside> |
| 166 | <aside id="skills-panel" hidden> |
| 167 | <h2>Skills</h2> |
| 168 | <div id="skills-combat-level" class="skills-combat-level" hidden></div> |
| 169 | <div id="skills-list" class="skills-grid"></div> |
| 170 | </aside> |
| 171 | <aside id="spells-panel" hidden> |
| 172 | <h2>Spells</h2> |
| 173 | <label class="spell-autocast-row"> |
| 174 | <input id="spell-autocast-toggle" type="checkbox"> |
| 175 | Auto-cast (repeat on target) |
| 176 | </label> |
| 177 | <div id="spells-list" class="spells-grid"></div> |
| 178 | </aside> |
| 179 | <div id="bottom-left-hud"> |
| 180 | <div id="equipped-ammo-hud" hidden></div> |
| 181 | <div id="spell-favorites-bar" hidden></div> |
| 182 | </div> |
| 183 | |
| 184 | <div id="send-backdrop" class="modal-backdrop" hidden></div> |
| 185 | <aside id="send-panel" hidden> |
| 186 | <header> |
| 187 | <h2>Send by pigeon</h2> |
| 188 | <button id="send-close" type="button">Close</button> |
| 189 | </header> |
| 190 | <div id="send-item" class="send-item"> |
| 191 | <img id="send-item-img" alt=""> |
| 192 | <strong id="send-item-name"></strong> |
| 193 | </div> |
| 194 | <label class="send-row">Quantity |
| 195 | <input id="send-qty" type="number" min="1" step="1" value="1"> |
| 196 | </label> |
| 197 | <p id="send-target-label" class="hint">No target selected.</p> |
| 198 | <button id="send-pick-target" type="button">Select target</button> |
| 199 | <button id="send-confirm" type="button" disabled>Send</button> |
| 200 | <p id="send-status" class="hint"></p> |
| 201 | </aside> |
| 202 | |
| 203 | <aside id="send-target-panel" hidden> |
| 204 | <header> |
| 205 | <h2>Select target</h2> |
| 206 | <button id="send-target-close" type="button">Back</button> |
| 207 | </header> |
| 208 | <div id="send-target-list"></div> |
| 209 | <div class="send-search"> |
| 210 | <input id="send-search-first" type="text" placeholder="First name" autocomplete="off"> |
| 211 | <input id="send-search-last" type="text" placeholder="Last name" autocomplete="off"> |
| 212 | <button id="send-search" type="button">Search</button> |
| 213 | </div> |
| 214 | <div id="send-search-result"></div> |
| 215 | </aside> |
| 216 | |
| 217 | <div id="transfer-backdrop" class="modal-backdrop" hidden></div> |
| 218 | <aside id="transfer-panel" hidden> |
| 219 | <header> |
| 220 | <h2>Transfer</h2> |
| 221 | <button id="transfer-close" type="button">Close</button> |
| 222 | </header> |
| 223 | <p id="transfer-item-name"></p> |
| 224 | <label class="send-row">Quantity |
| 225 | <input id="transfer-qty" type="number" min="1" step="1" value="1"> |
| 226 | </label> |
| 227 | <button id="transfer-confirm" type="button">Transfer</button> |
| 228 | </aside> |
| 229 | |
| 230 | <div id="trade-backdrop" class="modal-backdrop" hidden></div> |
| 231 | <aside id="trade-panel" hidden> |
| 232 | <header> |
| 233 | <h2 id="trade-partner">Trade</h2> |
| 234 | <button id="trade-cancel" type="button">Cancel</button> |
| 235 | </header> |
| 236 | <div class="trade-columns"> |
| 237 | <section class="trade-column"> |
| 238 | <h3>You will give:</h3> |
| 239 | <div id="trade-give-grid" class="trade-offer-grid item-grid"></div> |
| 240 | </section> |
| 241 | <section class="trade-column"> |
| 242 | <h3>You will receive:</h3> |
| 243 | <div id="trade-receive-grid" class="trade-offer-grid item-grid"></div> |
| 244 | </section> |
| 245 | </div> |
| 246 | <p id="trade-status" class="hint"></p> |
| 247 | <div class="trade-actions"> |
| 248 | <button id="trade-accept" type="button">Accept</button> |
| 249 | </div> |
| 250 | </aside> |
| 251 | |
| 252 | <div id="trade-qty-backdrop" class="modal-backdrop" hidden></div> |
| 253 | <aside id="trade-qty-panel" hidden> |
| 254 | <header> |
| 255 | <h2>Offer quantity</h2> |
| 256 | <button id="trade-qty-close" type="button">Close</button> |
| 257 | </header> |
| 258 | <p id="trade-qty-name"></p> |
| 259 | <label class="send-row">Quantity |
| 260 | <input id="trade-qty-input" type="number" min="1" step="1" value="1"> |
| 261 | </label> |
| 262 | <button id="trade-qty-confirm" type="button">Offer</button> |
| 263 | </aside> |
| 264 | |
| 265 | <div id="write-cheque-backdrop" class="modal-backdrop" hidden></div> |
| 266 | <aside id="write-cheque-panel" hidden> |
| 267 | <header> |
| 268 | <h2>Write cheque</h2> |
| 269 | <button id="write-cheque-close" type="button">Close</button> |
| 270 | </header> |
| 271 | <p id="write-cheque-hint" class="hint">Choose goods from your vault to reserve on this cheque.</p> |
| 272 | <div id="write-cheque-vault" class="item-grid"></div> |
| 273 | <p id="write-cheque-item"></p> |
| 274 | <label class="send-row">Quantity |
| 275 | <input id="write-cheque-qty" type="number" min="1" step="1" value="1"> |
| 276 | </label> |
| 277 | <button id="write-cheque-confirm" type="button" disabled>Write</button> |
| 278 | <p id="write-cheque-status" class="hint"></p> |
| 279 | </aside> |
| 280 | |
| 281 | <div id="letter-backdrop" class="modal-backdrop" hidden></div> |
| 282 | <aside id="letter-panel" hidden> |
| 283 | <header> |
| 284 | <h2 id="letter-title">Letter</h2> |
| 285 | <button id="letter-close" type="button">Close</button> |
| 286 | </header> |
| 287 | <div id="letter-paper" class="letter-paper"> |
| 288 | <textarea id="letter-body" maxlength="2000" spellcheck="true" rows="1"></textarea> |
| 289 | <pre id="letter-signature" class="letter-signature"></pre> |
| 290 | </div> |
| 291 | <div class="bag-actions"> |
| 292 | <button id="letter-save" type="button">Save</button> |
| 293 | </div> |
| 294 | <p id="letter-status" class="hint"></p> |
| 295 | </aside> |
| 296 | |
| 297 | <div id="craft-backdrop" class="modal-backdrop" hidden></div> |
| 298 | <aside id="craft-panel" hidden> |
| 299 | <header> |
| 300 | <h2 id="craft-station-name">Crafting</h2> |
| 301 | <button id="craft-close" type="button">Close</button> |
| 302 | </header> |
| 303 | <div class="craft-layout"> |
| 304 | <div class="craft-recipes"> |
| 305 | <div id="craft-recipe-grid" class="craft-recipe-grid"></div> |
| 306 | </div> |
| 307 | <div class="craft-detail"> |
| 308 | <p id="craft-detail-empty" class="hint">Select a recipe.</p> |
| 309 | <div id="craft-detail-body" hidden> |
| 310 | <div id="craft-material-controls" class="craft-material-controls" hidden> |
| 311 | <label class="craft-material-field"> |
| 312 | <span>Material</span> |
| 313 | <select id="craft-material-tier"></select> |
| 314 | </label> |
| 315 | </div> |
| 316 | <div id="craft-dye-controls" class="craft-tailor-dye" hidden> |
| 317 | <span>Dye (optional)</span> |
| 318 | <button id="craft-dye-pick" type="button">Choose dye…</button> |
| 319 | <button id="craft-dye-clear" type="button" hidden>Clear dye</button> |
| 320 | <img id="craft-dye-preview" alt="" hidden> |
| 321 | </div> |
| 322 | <div class="craft-output"> |
| 323 | <img id="craft-output-img" alt=""> |
| 324 | <h3 id="craft-output-name"></h3> |
| 325 | </div> |
| 326 | <ul id="craft-inputs" class="craft-inputs"></ul> |
| 327 | <p id="craft-status" class="hint"></p> |
| 328 | <div id="craft-progress" class="craft-progress"> |
| 329 | <div id="craft-progress-fill" class="craft-progress-fill"></div> |
| 330 | </div> |
| 331 | <div id="craft-actions" class="craft-actions"> |
| 332 | <button id="craft-button" type="button" disabled>Craft 1</button> |
| 333 | <button id="craft-batch-button" type="button" hidden disabled>Craft x</button> |
| 334 | <button id="craft-batch-all-button" type="button" hidden disabled>Craft all</button> |
| 335 | </div> |
| 336 | </div> |
| 337 | </div> |
| 338 | </div> |
| 339 | </aside> |
| 340 | |
| 341 | <div id="craft-qty-backdrop" class="modal-backdrop" hidden></div> |
| 342 | <aside id="craft-qty-panel" hidden> |
| 343 | <header> |
| 344 | <h2>Craft quantity</h2> |
| 345 | <button id="craft-qty-close" type="button">Close</button> |
| 346 | </header> |
| 347 | <p id="craft-qty-name"></p> |
| 348 | <p id="craft-qty-hint" class="hint"></p> |
| 349 | <label class="send-row">Quantity |
| 350 | <input id="craft-qty-input" type="number" min="1" step="1" value="1"> |
| 351 | </label> |
| 352 | <button id="craft-qty-confirm" type="button">Craft</button> |
| 353 | </aside> |
| 354 | |
| 355 | <div id="dye-picker-backdrop" class="modal-backdrop" hidden></div> |
| 356 | <aside id="dye-picker-panel" hidden> |
| 357 | <header> |
| 358 | <h2>Choose dye</h2> |
| 359 | <button id="dye-picker-close" type="button">Close</button> |
| 360 | </header> |
| 361 | <div id="dye-picker-grid" class="craft-recipe-grid"></div> |
| 362 | </aside> |
| 363 | |
| 364 | <div id="shop-backdrop" class="modal-backdrop" hidden></div> |
| 365 | <aside id="shop-panel" hidden> |
| 366 | <header> |
| 367 | <h2 id="shop-title">Shop</h2> |
| 368 | <button id="shop-close" type="button">Close</button> |
| 369 | </header> |
| 370 | <p id="shop-coins" class="shop-coins">Coins: 0</p> |
| 371 | <div class="shop-tabs" role="tablist"> |
| 372 | <button id="shop-tab-buy" type="button" class="shop-tab active" role="tab" aria-selected="true">Buy</button> |
| 373 | <button id="shop-tab-sell" type="button" class="shop-tab" role="tab" aria-selected="false" |
| 374 | hidden>Sell</button> |
| 375 | </div> |
| 376 | <section id="shop-pane-buy" class="shop-pane"> |
| 377 | <div class="shop-body"> |
| 378 | <div id="shop-grid" class="shop-grid"></div> |
| 379 | <div id="shop-detail" class="shop-detail" hidden> |
| 380 | <img id="shop-detail-icon" alt=""> |
| 381 | <strong id="shop-detail-name"></strong> |
| 382 | <span id="shop-detail-price" class="hint"></span> |
| 383 | <span id="shop-detail-stock" class="hint"></span> |
| 384 | <div class="shop-buy-row"> |
| 385 | <button id="shop-buy-1" type="button">Buy 1</button> |
| 386 | <button id="shop-buy-5" type="button">Buy 5</button> |
| 387 | <button id="shop-buy-10" type="button">Buy 10</button> |
| 388 | <button id="shop-buy-x" type="button">Buy x</button> |
| 389 | </div> |
| 390 | <p id="shop-bag-warn" class="shop-bag-warn" hidden>Inventory full; purchases will be sent to your |
| 391 | bank.</p> |
| 392 | </div> |
| 393 | </div> |
| 394 | </section> |
| 395 | <section id="shop-pane-sell" class="shop-pane" hidden> |
| 396 | <div class="shop-body"> |
| 397 | <div id="shop-sell-grid" class="item-grid shop-sell-grid"></div> |
| 398 | <div id="shop-sell-detail" class="shop-detail shop-sell-detail" hidden> |
| 399 | <img id="shop-sell-icon" alt=""> |
| 400 | <strong id="shop-sell-name"></strong> |
| 401 | <span id="shop-sell-price" class="hint"></span> |
| 402 | <span id="shop-sell-fee" class="hint" hidden></span> |
| 403 | <div id="shop-sell-actions" class="shop-buy-row"></div> |
| 404 | <p id="shop-sell-empty" class="hint" hidden></p> |
| 405 | </div> |
| 406 | </div> |
| 407 | </section> |
| 408 | </aside> |
| 409 | |
| 410 | <div id="shop-qty-backdrop" class="modal-backdrop" hidden></div> |
| 411 | <aside id="shop-qty-panel" hidden> |
| 412 | <header> |
| 413 | <h2 id="shop-qty-title">Buy quantity</h2> |
| 414 | <button id="shop-qty-close" type="button">Close</button> |
| 415 | </header> |
| 416 | <p id="shop-qty-hint" class="hint"></p> |
| 417 | <label class="send-row">Quantity |
| 418 | <input id="shop-qty-input" type="number" min="1" step="1" value="1"> |
| 419 | </label> |
| 420 | <button id="shop-qty-confirm" type="button">Buy</button> |
| 421 | </aside> |
| 422 | |
| 423 | <div id="market-backdrop" class="modal-backdrop" hidden></div> |
| 424 | <aside id="market-panel" hidden> |
| 425 | <header> |
| 426 | <h2 id="market-title">Central Exchange</h2> |
| 427 | <button id="market-close" type="button">Close</button> |
| 428 | </header> |
| 429 | <p id="market-hint" class="hint"></p> |
| 430 | <p id="market-coins" class="shop-coins">Funds: 0</p> |
| 431 | <div class="market-tabs" role="tablist"> |
| 432 | <button id="market-tab-orders" type="button" class="market-tab active" data-tab="orders">Your |
| 433 | Orders</button> |
| 434 | <button id="market-tab-sell" type="button" class="market-tab" data-tab="sell">Sell</button> |
| 435 | <button id="market-tab-buy" type="button" class="market-tab" data-tab="buy">Buy</button> |
| 436 | </div> |
| 437 | <section id="market-pane-orders" class="market-pane" data-pane="orders"> |
| 438 | <div id="market-orders"></div> |
| 439 | </section> |
| 440 | <section id="market-pane-sell" class="market-pane" data-pane="sell" hidden> |
| 441 | <div id="market-sell-list" class="item-grid"></div> |
| 442 | <p id="market-sell-selected" class="hint">Select an item from your bag</p> |
| 443 | <label class="send-row">Quantity |
| 444 | <input id="market-sell-qty" type="number" min="1" step="1" value="1"> |
| 445 | </label> |
| 446 | <label class="send-row">Min unit price |
| 447 | <input id="market-sell-min" type="number" min="1" step="1" value="1"> |
| 448 | </label> |
| 449 | <p id="market-sell-fee" class="hint"></p> |
| 450 | <div class="market-sell-actions"> |
| 451 | <button id="market-sell-confirm" type="button">Place sell order</button> |
| 452 | <button id="market-sell-suggest" type="button" class="market-price-suggest" hidden></button> |
| 453 | </div> |
| 454 | </section> |
| 455 | <section id="market-pane-buy" class="market-pane" data-pane="buy" hidden> |
| 456 | <label class="send-row">Search items |
| 457 | <input id="market-buy-search" type="search" placeholder="Type a name and press Enter" |
| 458 | autocomplete="off"> |
| 459 | </label> |
| 460 | <div id="market-catalog" class="market-catalog"></div> |
| 461 | <p id="market-buy-item" class="hint">Search and select an item</p> |
| 462 | <label class="send-row">Quantity |
| 463 | <input id="market-buy-qty" type="number" min="1" step="1" value="1"> |
| 464 | </label> |
| 465 | <label class="send-row">Max unit price |
| 466 | <input id="market-buy-max" type="number" min="1" step="1" value="1"> |
| 467 | </label> |
| 468 | <p id="market-buy-fee" class="hint"></p> |
| 469 | <button id="market-buy-confirm" type="button">Place buy order</button> |
| 470 | </section> |
| 471 | </aside> |
| 472 | |
| 473 | <div id="cauldron-backdrop" class="modal-backdrop" hidden></div> |
| 474 | <aside id="cauldron-panel" hidden> |
| 475 | <header> |
| 476 | <h2>Cauldron</h2> |
| 477 | <button id="cauldron-close" type="button">Close</button> |
| 478 | </header> |
| 479 | <div class="cauldron-tabs" role="tablist"> |
| 480 | <button id="cauldron-tab-alchemy" type="button" class="cauldron-tab active" role="tab" |
| 481 | aria-selected="true">Alchemy</button> |
| 482 | <button id="cauldron-tab-dyes" type="button" class="cauldron-tab" role="tab" |
| 483 | aria-selected="false">Dyes</button> |
| 484 | </div> |
| 485 | <section id="cauldron-alchemy-pane" class="cauldron-pane"> |
| 486 | <div id="cauldron-slots" class="cauldron-slots"></div> |
| 487 | <div id="cauldron-inserts" class="cauldron-inserts"></div> |
| 488 | <div class="cauldron-vessel" aria-hidden="true">⚗</div> |
| 489 | <p id="cauldron-flavor" class="cauldron-flavor">The cauldron is empty</p> |
| 490 | <div class="cauldron-actions"> |
| 491 | <button id="cauldron-stir" type="button" disabled>Stir</button> |
| 492 | <button id="cauldron-heat" type="button" disabled>Heat</button> |
| 493 | <button id="cauldron-cool" type="button" disabled>Cool</button> |
| 494 | </div> |
| 495 | <div class="cauldron-finish"> |
| 496 | <button id="cauldron-bottle" type="button">Bottle</button> |
| 497 | <button id="cauldron-clear" type="button">Clear</button> |
| 498 | <button id="cauldron-save-recipe" type="button" hidden>Save Recipe</button> |
| 499 | </div> |
| 500 | <ol id="cauldron-steps" class="cauldron-steps"></ol> |
| 501 | <p id="cauldron-status" class="hint"></p> |
| 502 | </section> |
| 503 | <section id="cauldron-dyes-pane" class="cauldron-pane" hidden> |
| 504 | <p class="hint">Place flowers of any colours, then create dye.</p> |
| 505 | <div id="cauldron-dye-slots" class="cauldron-slots cauldron-dye-slots"></div> |
| 506 | <div class="cauldron-finish"> |
| 507 | <button id="cauldron-create-dye" type="button">Create Dye</button> |
| 508 | <button id="cauldron-clear-dye" type="button">Clear</button> |
| 509 | </div> |
| 510 | <p id="cauldron-dye-status" class="hint"></p> |
| 511 | </section> |
| 512 | </aside> |
| 513 | |
| 514 | <div id="bounty-backdrop" class="modal-backdrop" hidden></div> |
| 515 | <aside id="bounty-panel" hidden> |
| 516 | <header> |
| 517 | <h2>Bounty Office</h2> |
| 518 | <button id="bounty-close" type="button">Close</button> |
| 519 | </header> |
| 520 | <div class="bounty-tabs" role="tablist"> |
| 521 | <button type="button" class="bounty-tab active" data-tab="place" role="tab">Place / raise</button> |
| 522 | <button type="button" class="bounty-tab" data-tab="mine" role="tab">My bounty</button> |
| 523 | </div> |
| 524 | <section class="bounty-pane" data-pane="place"> |
| 525 | <div class="bounty-search-row"> |
| 526 | <label>First <input id="bounty-search-first" autocomplete="off" spellcheck="false"></label> |
| 527 | <label>Last <input id="bounty-search-last" autocomplete="off" spellcheck="false"></label> |
| 528 | <button id="bounty-search" type="button">Search</button> |
| 529 | </div> |
| 530 | <div class="bounty-target"> |
| 531 | <div id="bounty-preview"></div> |
| 532 | <div> |
| 533 | <p id="bounty-target-label">No target selected.</p> |
| 534 | <p id="bounty-target-amount" class="hint"></p> |
| 535 | </div> |
| 536 | </div> |
| 537 | <label class="bounty-amount-label">Coins to add |
| 538 | <input id="bounty-amount" type="number" min="1" step="1" value="100"> |
| 539 | </label> |
| 540 | <button id="bounty-raise" type="button">Add to bounty</button> |
| 541 | <p id="bounty-status" class="hint"></p> |
| 542 | </section> |
| 543 | <section class="bounty-pane" data-pane="mine" hidden> |
| 544 | <p class="hint">Coin currently on your head:</p> |
| 545 | <p id="bounty-my-amount" class="bounty-my-amount">None</p> |
| 546 | <p id="bounty-decay-hint" class="hint">Your bounty drops by 1 coin each day at midnight.</p> |
| 547 | <div id="bounty-payoff" class="bounty-payoff" hidden> |
| 548 | <p class="hint" id="bounty-payoff-rate">Every 10 coins paid clears 1 coin of bounty.</p> |
| 549 | <label class="bounty-amount-label">Coins to pay |
| 550 | <input id="bounty-pay-amount" type="number" min="10" step="10" value="100"> |
| 551 | </label> |
| 552 | <button id="bounty-pay" type="button">Pay toward bounty</button> |
| 553 | </div> |
| 554 | </section> |
| 555 | </aside> |
| 556 | |
| 557 | <div id="barber-backdrop" class="modal-backdrop" hidden></div> |
| 558 | <aside id="barber-panel" hidden> |
| 559 | <header> |
| 560 | <h2>Barber</h2> |
| 561 | <button id="barber-close" type="button">Close</button> |
| 562 | </header> |
| 563 | <div class="hair-controls"> |
| 564 | <canvas data-hair-preview width="64" height="96" aria-label="Hair preview"></canvas> |
| 565 | <label>Hair |
| 566 | <select data-hair-style></select> |
| 567 | </label> |
| 568 | <label>Hue <input data-hair-hue type="range" min="0" max="360" value="30"></label> |
| 569 | <label>Saturation <input data-hair-saturation type="range" min="0" max="100" value="55"></label> |
| 570 | <label>Darkness <input data-hair-darkness type="range" min="0" max="100" value="45"></label> |
| 571 | <span data-hair-swatch class="hair-swatch" aria-hidden="true"></span> |
| 572 | </div> |
| 573 | <button id="barber-apply" type="button">Apply</button> |
| 574 | <p id="barber-status" class="hint"></p> |
| 575 | </aside> |
| 576 | |
| 577 | <div id="cauldron-pick-backdrop" class="modal-backdrop" hidden></div> |
| 578 | <aside id="cauldron-pick-panel" hidden> |
| 579 | <header> |
| 580 | <h2 id="cauldron-pick-title">Choose ingredient</h2> |
| 581 | <button id="cauldron-pick-cancel" type="button">Cancel</button> |
| 582 | </header> |
| 583 | <div id="cauldron-pick-list" class="cauldron-pick-list"></div> |
| 584 | <label class="cauldron-pick-qty">Quantity <input id="cauldron-pick-qty" type="number" min="1" value="1"></label> |
| 585 | <button id="cauldron-pick-confirm" type="button">Place in slot</button> |
| 586 | </aside> |
| 587 | |
| 588 | <div id="cauldron-dye-confirm-backdrop" class="modal-backdrop" hidden></div> |
| 589 | <aside id="cauldron-dye-confirm-panel" hidden> |
| 590 | <header> |
| 591 | <h2>Not enough bottles</h2> |
| 592 | <button id="cauldron-dye-confirm-cancel" type="button">Cancel</button> |
| 593 | </header> |
| 594 | <p id="cauldron-dye-confirm-text" class="hint"></p> |
| 595 | <button id="cauldron-dye-confirm-ok" type="button">Create anyway</button> |
| 596 | </aside> |
| 597 | |
| 598 | <div id="nametag" hidden></div> |
| 599 | <div id="damage-numbers"></div> |
| 600 | <div id="skill-level-floats"></div> |
| 601 | <div id="chat-bubbles"></div> |
| 602 | <div id="chat-bar" hidden> |
| 603 | <input id="chat-input" type="text" maxlength="100" autocomplete="off" spellcheck="false" |
| 604 | placeholder="Say something…"> |
| 605 | </div> |
| 606 | <div id="inspect-backdrop" hidden></div> |
| 607 | <div id="inspect-modal" hidden> |
| 608 | <header> |
| 609 | <h2 id="inspect-name">Player</h2> |
| 610 | <button id="inspect-close" type="button">Close</button> |
| 611 | </header> |
| 612 | <p id="inspect-bounty" class="hint" hidden></p> |
| 613 | <p id="inspect-error" class="error"></p> |
| 614 | <div id="inspect-action"></div> |
| 615 | </div> |
| 616 | <div id="death-backdrop" hidden></div> |
| 617 | <div id="death-modal" role="dialog" aria-modal="true" aria-labelledby="death-title" hidden> |
| 618 | <h2 id="death-title">You have died</h2> |
| 619 | <p>Your remains mark where you fell. Respawn at the nearest church altar.</p> |
| 620 | <p>Your carried coins are dropped on the ground.</p> |
| 621 | <button id="death-respawn" type="button">Respawn</button> |
| 622 | </div> |
| 623 | <div id="overlay"> |
| 624 | <section class="panel"> |
| 625 | <h1>Questward</h1> |
| 626 | <p id="status">Connecting…</p> |
| 627 | <div id="asset-load" class="asset-load" hidden> |
| 628 | <progress id="asset-load-bar" max="100" value="0"></progress> |
| 629 | <p id="asset-load-label" class="hint">Loading assets…</p> |
| 630 | </div> |
| 631 | <p id="auth-actions" class="auth-actions"> |
| 632 | <a id="auth-sign-in" href="/auth/login" hidden>Sign in</a> |
| 633 | <a id="auth-sign-out" href="/auth/logout" hidden>Sign out</a> |
| 634 | <a id="auth-export" href="/settings/export" hidden>Export my data</a> |
| 635 | </p> |
| 636 | <p id="error" class="error"></p> |
| 637 | <div id="character-list"></div> |
| 638 | <button id="create-character-open" type="button">Create Character</button> |
| 639 | <p class="hint">Open chunk 0,0 in the <a href="/editor">world editor</a>, save, then Apply now before |
| 640 | walking.</p> |
| 641 | </section> |
| 642 | </div> |
| 643 | <div id="create-backdrop" class="modal-backdrop" hidden></div> |
| 644 | <aside id="create-panel" hidden> |
| 645 | <header> |
| 646 | <h2>Create character</h2> |
| 647 | <button id="create-close" type="button">Close</button> |
| 648 | </header> |
| 649 | <p id="create-error" class="error"></p> |
| 650 | <form id="create-form"> |
| 651 | <div class="create-tabs" role="tablist"> |
| 652 | <button type="button" class="create-tab active" data-create-tab="appearance" role="tab" |
| 653 | aria-selected="true">Appearance</button> |
| 654 | <button type="button" class="create-tab" data-create-tab="clothing" role="tab" |
| 655 | aria-selected="false">Clothing</button> |
| 656 | </div> |
| 657 | <section class="create-pane" data-create-pane="appearance"> |
| 658 | <label>First name <input id="first-name" required maxlength="24" pattern="[A-Za-z-]+" title="Letters A–Z and hyphens only"></label> |
| 659 | <label>Last name <input id="last-name" required maxlength="24" pattern="[A-Za-z-]+" title="Letters A–Z and hyphens only"></label> |
| 660 | <label>Sex |
| 661 | <select id="sex"> |
| 662 | <option value="male">Male</option> |
| 663 | <option value="female">Female</option> |
| 664 | </select> |
| 665 | </label> |
| 666 | <div id="create-hair" class="hair-controls"> |
| 667 | <canvas id="create-hair-preview" data-hair-preview width="64" height="96" |
| 668 | aria-label="Character preview"></canvas> |
| 669 | <label>Hair |
| 670 | <select id="create-hair-style" data-hair-style></select> |
| 671 | </label> |
| 672 | <label>Hue <input id="create-hair-hue" data-hair-hue type="range" min="0" max="360" |
| 673 | value="30"></label> |
| 674 | <label>Saturation <input id="create-hair-saturation" data-hair-saturation type="range" min="0" |
| 675 | max="100" value="55"></label> |
| 676 | <label>Darkness <input id="create-hair-darkness" data-hair-darkness type="range" min="0" max="100" |
| 677 | value="45"></label> |
| 678 | <span id="create-hair-swatch" data-hair-swatch class="hair-swatch" aria-hidden="true"></span> |
| 679 | </div> |
| 680 | </section> |
| 681 | <section class="create-pane" data-create-pane="clothing" hidden> |
| 682 | <div id="create-clothing" class="create-clothing"> |
| 683 | <canvas id="create-clothing-preview" data-clothing-preview width="80" height="96" |
| 684 | aria-label="Clothing preview"></canvas> |
| 685 | <div class="create-clothing-fields"> |
| 686 | <label>Legs |
| 687 | <select data-create-legs></select> |
| 688 | </label> |
| 689 | <p class="hint">Cotton shirt is always included. Pick trousers, shorts, or a skirt.</p> |
| 690 | <fieldset class="create-dye-fieldset"> |
| 691 | <legend>Shirt colour</legend> |
| 692 | <label>Hue <input data-shirt-hue type="range" min="0" max="360" value="30"></label> |
| 693 | <label>Saturation <input data-shirt-saturation type="range" min="0" max="100" |
| 694 | value="55"></label> |
| 695 | <label>Darkness <input data-shirt-darkness type="range" min="0" max="100" |
| 696 | value="45"></label> |
| 697 | <span data-shirt-swatch class="hair-swatch" aria-hidden="true"></span> |
| 698 | </fieldset> |
| 699 | <fieldset class="create-dye-fieldset"> |
| 700 | <legend>Legs colour</legend> |
| 701 | <label>Hue <input data-legs-hue type="range" min="0" max="360" value="210"></label> |
| 702 | <label>Saturation <input data-legs-saturation type="range" min="0" max="100" |
| 703 | value="55"></label> |
| 704 | <label>Darkness <input data-legs-darkness type="range" min="0" max="100" value="45"></label> |
| 705 | <span data-legs-swatch class="hair-swatch" aria-hidden="true"></span> |
| 706 | </fieldset> |
| 707 | </div> |
| 708 | </div> |
| 709 | </section> |
| 710 | <button type="submit">Create & play</button> |
| 711 | </form> |
| 712 | </aside> |
| 713 | <script src="/framework/framework.js"></script> |
| 714 | <script type="module" src="/src/play/main.js"></script> |
| 715 | </body> |
| 716 | |
| 717 | </html> |