Dice button picks a random seed in the new-world dialog (t100)

This commit is contained in:
2026-10-29 22:14:40 -04:00
parent de6d2c1b33
commit 974e5a6272
9 changed files with 154 additions and 7 deletions
+8 -1
View File
@@ -56,7 +56,14 @@
<button class="btn" id="btn-new">New world <small>generate</small></button>
<div class="plate newworld" id="newworld" hidden>
<label>Name <input id="nw-name" type="text" maxlength="40" autocomplete="off" spellcheck="false"></label>
<label>Seed <input id="nw-seed" type="text" inputmode="numeric" autocomplete="off"></label>
<div class="seed-field">
<label for="nw-seed">Seed</label>
<div class="seed-row">
<input id="nw-seed" type="text" inputmode="numeric" maxlength="10" autocomplete="off" aria-describedby="nw-seed-hint">
<button class="btn" id="btn-random-seed" type="button" aria-label="Random seed" title="Random seed">⚄</button>
</div>
<small id="nw-seed-hint" role="status" hidden>Maximum seed: 4294967295.</small>
</div>
<label>Size
<select id="nw-size">
<option value="2048x1024">Small · 2048 × 1024</option>