This commit is contained in:
Azgaar 2020-05-18 00:50:57 +03:00
parent 22b4c49e8a
commit b3f83bbabd
4 changed files with 7 additions and 6 deletions

View file

@ -114,7 +114,7 @@ button, select, a, .pointer {
fill-rule: evenodd;
}
#oceanLayers {
#oceanLayers, #terrs {
fill-rule: evenodd;
}

View file

@ -2870,7 +2870,7 @@
<option data-form="Union" value="United States">United States</option>
<option data-form="Wild" value="United Tribes">United Tribes</option>
</select>
<input id="stateNameEditorCustomForm" placeholder="type form name" data-tip="Create custom state form name" style="display: none; width: 11em;">
<input id="stateNameEditorCustomForm" placeholder="type form name" data-tip="Enter custom form name" style="display: none; width: 11em;">
<span id="stateNameEditorAddForm" data-tip="Click to add custom state form name to the list" class="icon-plus pointer"></span>
</div>

View file

@ -343,7 +343,8 @@ function showWelcomeMessage() {
<ul>${post}
<li>Battle simulation</li>
<li>Ice layer and Ice editor</li>
<li>Route Elevation profile</li>
<li>Route and River Elevation profile</li>
<li>Image Converter enhancement</li>
<li>Name generator improvement</li>
<li>Fogging style change</li>
</ul>

View file

@ -215,8 +215,7 @@ function editStates() {
}
function editStateName(state) {
//Reset input value and close add mode
// reset input value and close add mode
stateNameEditorCustomForm.value = "";
const addModeActive = stateNameEditorCustomForm.style.display === "inline-block";
if (addModeActive) {
@ -244,6 +243,7 @@ function editStates() {
document.getElementById("stateNameEditorShortCulture").addEventListener("click", regenerateShortNameCuture);
document.getElementById("stateNameEditorShortRandom").addEventListener("click", regenerateShortNameRandom);
document.getElementById("stateNameEditorAddForm").addEventListener("click", addCustomForm);
document.getElementById("stateNameEditorCustomForm").addEventListener("change", addCustomForm);
document.getElementById("stateNameEditorFullRegenerate").addEventListener("click", regenerateFullName);
function regenerateShortNameCuture() {
@ -264,7 +264,7 @@ function editStates() {
const addModeActive = stateNameEditorCustomForm.style.display === "inline-block";
stateNameEditorCustomForm.style.display = addModeActive ? "none" : "inline-block";
stateNameEditorSelectForm.style.display = addModeActive ? "inline-block" : "none";
if (addModeActive) applyOption(stateNameEditorSelectForm, value);
if (value && addModeActive) applyOption(stateNameEditorSelectForm, value);
stateNameEditorCustomForm.value = "";
}