Files
slaguru666andClaude Opus 4.8 100e514c4d Mapwright v0.5.0 — procedural battle map generator for Foundry VTT
Buildings (modern/fantasy, multi-floor, footprint shapes), caves, outdoor
biomes, and town/village + city-block settlements. Auto-places Foundry walls,
doors, windows, lighting; furniture as locked tiles; live preview.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 15:05:25 +01:00

76 lines
3.4 KiB
HTML

<div class="mapwright-layout">
<section class="mapwright-controls">
<div class="mapwright-field">
<label>Map name</label>
<input type="text" name="name" value="{{defaults.name}}" data-preview />
</div>
<div class="mapwright-field">
<label>Category</label>
<select name="category" data-preview>
{{#each categories}}<option value="{{this.value}}" {{#if this.selected}}selected{{/if}}>{{this.label}}</option>{{/each}}
</select>
</div>
<div class="mapwright-field mapwright-variant">
<label>Style</label>
<select name="variant" data-preview></select>
</div>
<div class="mapwright-field mapwright-shape">
<label>Footprint shape</label>
<select name="shape" data-preview>
{{#each shapes}}<option value="{{this.value}}" {{#if this.selected}}selected{{/if}}>{{this.label}}</option>{{/each}}
</select>
</div>
<div class="mapwright-field mapwright-floors">
<label>Floors</label>
<select name="floors" data-preview>
{{#each floors}}<option value="{{this.value}}" {{#if this.selected}}selected{{/if}}>{{this.label}}</option>{{/each}}
</select>
</div>
<div class="mapwright-field">
<label>Size</label>
<select name="size" data-preview>
{{#each sizes}}<option value="{{this.value}}" {{#if this.selected}}selected{{/if}}>{{this.label}}</option>{{/each}}
</select>
</div>
<div class="mapwright-field">
<label>Grid square</label>
<select name="gridSize" data-preview>
{{#each gridSizes}}<option value="{{this.value}}" {{#if this.selected}}selected{{/if}}>{{this.label}}</option>{{/each}}
</select>
</div>
<div class="mapwright-field mapwright-seed">
<label>Seed</label>
<div class="mapwright-seed-row">
<input type="text" name="seed" value="{{defaults.seed}}" data-preview />
<button type="button" class="mapwright-icon-btn" data-action="reroll" title="Reroll"><i class="fas fa-dice"></i></button>
</div>
</div>
<fieldset class="mapwright-toggles">
<legend>Include</legend>
<label class="mw-opt-windows"><input type="checkbox" name="windows" {{#if defaults.windows}}checked{{/if}} data-preview /> Windows</label>
<label class="mw-opt-furniture"><input type="checkbox" name="furniture" {{#if defaults.furniture}}checked{{/if}} data-preview /> Furniture</label>
<label class="mw-opt-lights" title="Adds room lights + token vision (walls block sight). Off = flat, fully-lit map like the preview."><input type="checkbox" name="placeLights" {{#if defaults.placeLights}}checked{{/if}} /> Dynamic lighting</label>
<label><input type="checkbox" name="createNotes" {{#if defaults.createNotes}}checked{{/if}} /> Labels (GM notes)</label>
<label><input type="checkbox" name="showGrid" {{#if defaults.showGrid}}checked{{/if}} data-preview /> Grid overlay</label>
<label><input type="checkbox" name="showLabels" {{#if defaults.showLabels}}checked{{/if}} data-preview /> Labels on map</label>
</fieldset>
<div class="mapwright-stats"></div>
<button type="button" class="mapwright-create" data-action="create"><i class="fas fa-wand-magic-sparkles"></i> Create Map</button>
<p class="mapwright-hint">The preview is exactly what gets built — walls, doors and windows are placed automatically.</p>
</section>
<section class="mapwright-stage">
<div class="mapwright-preview"></div>
</section>
</div>