Files
KSP-MGA-Planner/tools/cfg-to-yml/index.html
T
2022-08-20 14:05:07 +02:00

49 lines
2.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="shortcut icon" href="#">
<!--<link rel="stylesheet" type="text/css" href="./../../style.css">-->
<link rel="stylesheet" type="text/css" href="style.css">
<title>CFG converter for MGA Planner</title>
</head>
<body>
<div id="container">
<section>
<h2>Kopernicus .CFG converter for <a href="https://krafpy.github.io/KSP-MGA-Planner/">KSP MGA Planner</a></h2>
<p>
Use this page to quickly convert Kopernicus' configuration files (.cfg) of solar systems to the `bodies.yml`
file used by MGA planner.
</p>
<p>
Select all .cfg files describing the solar system's bodies <em>only</em>.
Check the "Combine with stock" checkbox if the solar system is an extension to the stock one: missing configuration
files for stock bodies will be added automatically.
<p>
Follow then <strong><a href="https://github.com/Krafpy/KSP-MGA-Planner#solar-systems-support">these steps</a></strong>
to add the new solar system to the tool by contributing to the repository.
</p>
<div id="controls">
<div id="inputs">
<input id="files-input" type="file" multiple>
<div id="checkbox-container">
<input id="combine-checkbox" name="combine-checkbox" type="checkbox">
<label for="combine-checkbox">Combine with stock</label>
</div>
</div>
<div id="buttons">
<button id="convert-btn">Convert</button>
<button id="download-btn">Download</button>
</div>
</div>
<textarea name="log-box" id="log-box" rows="7" readonly></textarea>
</section>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-yaml/4.1.0/js-yaml.min.js"></script>
<script src="./../../dist/tools/cfg-to-yml/main.js" type="module"></script>
</body>
</html>