more porting work

This commit is contained in:
barrulus 2025-08-05 13:12:07 -04:00
parent 37391c8e8b
commit 7f31969f50
38 changed files with 3673 additions and 463 deletions

View file

@ -13,7 +13,7 @@
<!-- Configuration Panel -->
<div id="optionsContainer">
<h2>Map Configuration</h2>
<!-- Preset Selector -->
<div class="config-section">
<label for="presetSelector">Preset:</label>
@ -28,32 +28,33 @@
<label for="optionsSeed">Seed:</label>
<input type="text" id="optionsSeed" placeholder="Auto-generate" />
<input type="text" id="seed" placeholder="Alternative seed input" />
<label for="mapWidthInput">Width:</label>
<input type="number" id="mapWidthInput" value="1920" min="100" max="8192" />
<label for="mapHeightInput">Height:</label>
<input type="number" id="mapHeightInput" value="1080" min="100" max="8192" />
</div>
<!-- Graph Settings -->
<!-- Graph Settings (removed by Barrulus)
<div class="config-section">
<h3>Graph Settings</h3>
<label for="pointsInput">Cells:</label>
<input type="number" id="pointsInput" value="10000" min="1000" max="100000" data-cells="10000" />
<label for="cellsNumber">Cell Count:</label>
<input type="number" id="cellsNumber" value="10000" readonly />
<label for="pointsNumber">Points:</label>
<input type="number" id="pointsNumber" value="10000" readonly />
<label for="boundary">Boundary:</label>
<select id="boundary">
<option value="box">Box</option>
<option value="circle">Circle</option>
</select>
</div>
-->
<!-- Heightmap Settings -->
<div class="config-section">
@ -72,77 +73,83 @@
</select>
</div>
<!-- Temperature Settings -->
<!-- Temperature Settings removed by Barrulus
<div class="config-section">
<h3>Temperature</h3>
<label for="temperatureEquatorOutput">Equator:</label>
<input type="number" id="temperatureEquatorOutput" value="30" />
<label for="temperatureNorthPoleOutput">North Pole:</label>
<input type="number" id="temperatureNorthPoleOutput" value="-10" />
<label for="temperatureSouthPoleOutput">South Pole:</label>
<input type="number" id="temperatureSouthPoleOutput" value="-15" />
<label for="heightExponentInput">Height Exponent:</label>
<input type="number" id="heightExponentInput" value="1.8" min="0.5" max="5" step="0.1" />
<label for="temperatureScale">Scale:</label>
<select id="temperatureScale">
<option value="C">Celsius</option>
<option value="F">Fahrenheit</option>
</select>
<label for="temperatureBase">Base Temp:</label>
<input type="number" id="temperatureBase" value="25" />
</div>
-->
<!-- Precipitation Settings -->
<!-- Precipitation Settings removed by Barrulus
<div class="config-section">
<h3>Precipitation</h3>
<label for="precInput">Precipitation:</label>
<input type="number" id="precInput" value="100" />
<label for="moisture">Moisture:</label>
<input type="number" id="moisture" value="1" min="0.1" max="2" step="0.1" />
</div>
-->
<!-- Map Settings -->
<!-- Map Settings removed by Barrulus
<div class="config-section">
<h3>Map Settings</h3>
<label for="coordinatesSize">Coordinate Size:</label>
<input type="number" id="coordinatesSize" value="1" min="0.1" max="10" step="0.1" />
<label for="latitude">Latitude:</label>
<input type="number" id="latitude" value="0" min="-90" max="90" />
</div>
-->
<!-- Lakes Settings -->
<!-- Lakes Settings removed by Barrulus
<div class="config-section">
<h3>Lakes</h3>
<label for="lakeElevationLimitOutput">Elevation Limit:</label>
<input type="number" id="lakeElevationLimitOutput" value="50" min="0" max="100" />
</div>
-->
<!-- Rivers Settings -->
<!-- Rivers Settings removed by Barrulus
<div class="config-section">
<h3>Rivers</h3>
<label for="resolveDepressionsStepsOutput">Depression Steps:</label>
<input type="number" id="resolveDepressionsStepsOutput" value="1000" min="100" max="10000" />
</div>
-->
<!-- Ocean Layers -->
<!-- Ocean Layers removed by Barrulus
<div class="config-section">
<h3>Ocean</h3>
<div id="oceanLayers" layers="-1,-2,-3"></div>
</div>
-->
<!-- Cultures Settings -->
<div class="config-section">
<h3>Cultures</h3>
<label for="culturesInput">Number of Cultures:</label>
<input type="number" id="culturesInput" value="12" min="0" max="99" />
<label for="culturesSet">Culture Set:</label>
<select id="culturesSet">
<option value="european" data-max="15">European</option>
@ -154,7 +161,7 @@
<option value="random" data-max="25">Random</option>
<option value="all-world" data-max="20">All World</option>
</select>
<!-- removed by Barrulus
<label for="emblemShape">Emblem Shape:</label>
<select id="emblemShape">
<option value="random">Random</option>
@ -185,9 +192,10 @@
<option value="banner">Banner</option>
</optgroup>
</select>
<label for="neutralRate">Neutral Rate:</label>
<input type="number" id="neutralRate" value="1" min="0.1" max="10" step="0.1" />
-->
</div>
<!-- States & Burgs Settings -->
@ -195,18 +203,20 @@
<h3>States & Burgs</h3>
<label for="statesNumber">Number of States:</label>
<input type="number" id="statesNumber" value="15" min="0" max="999" />
<!-- removed by Barrulus
<label for="manorsInput">Number of Towns:</label>
<input type="number" id="manorsInput" value="1000" min="0" max="10000" title="1000 = auto-calculate" />
<label for="sizeVariety">Size Variety:</label>
<input type="number" id="sizeVariety" value="1" min="0" max="5" step="0.1" />
<label for="growthRate">Growth Rate:</label>
<input type="number" id="growthRate" value="1" min="0.1" max="10" step="0.1" />
<label for="statesGrowthRate">States Growth Rate:</label>
<input type="number" id="statesGrowthRate" value="1" min="0.1" max="10" step="0.1" />
-->
</div>
<!-- Religions Settings -->
@ -216,45 +226,47 @@
<input type="number" id="religionsNumber" value="5" min="0" max="99" />
</div>
<!-- Provinces Settings -->
<!-- Provinces Settings removed by Barrulus
<div class="config-section">
<h3>Provinces</h3>
<label for="provincesRatio">Provinces Ratio:</label>
<input type="number" id="provincesRatio" value="50" min="0" max="100" />
</div>
-->
<!-- Military Settings -->
<!-- Military Settings removed by Barrulus
<div class="config-section">
<h3>Military</h3>
<label for="year">Year:</label>
<input type="number" id="year" value="1400" />
<label for="eraShort">Era (Short):</label>
<input type="text" id="eraShort" value="AD" />
<label for="era">Era:</label>
<input type="text" id="era" value="Anno Domini" />
</div>
-->
<!-- Zones Settings -->
<!-- Zones Settings removed by Barrulus
<div class="config-section">
<h3>Zones</h3>
<label for="zonesGlobalModifier">Global Modifier:</label>
<input type="number" id="zonesGlobalModifier" value="1" min="0.1" max="10" step="0.1" />
</div>
-->
<!-- Control Buttons -->
<div class="config-section controls">
<h3>Actions</h3>
<button id="newMapButton" class="primary">🗺️ Generate Map</button>
<button id="generateButton" class="primary">Generate (Alt)</button>
<div class="button-group">
<button id="saveConfigButton">💾 Save Config</button>
<label for="loadConfigInput" class="button">📁 Load Config</label>
<input type="file" id="loadConfigInput" accept=".json" style="display: none;" />
</div>
<label>
<input type="checkbox" id="restoreSession" checked />
Restore last session