mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 03:51:23 +01:00
refactor: leave culture name only
This commit is contained in:
parent
830fa97d42
commit
3d8af76e42
2 changed files with 10 additions and 13 deletions
11
index.html
11
index.html
|
|
@ -4689,11 +4689,12 @@
|
||||||
></span>
|
></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="provinceCultureName" data-tip="Dominant culture in the province. This decides the naming criteria">
|
<div
|
||||||
Province culture: <span id="provinceCultureDisplay"></span>
|
id="provinceCultureName"
|
||||||
</div>
|
data-tip="Dominant culture in the province. This defines culture-based naming. Can be changed via the Cultures Editor"
|
||||||
<div id="provinceCultureBaseName" data-tip="Namesbase used by the dominant culture in the province.">
|
style="margin-top: 0.2em"
|
||||||
Province language: <span id="provinceLanguageDisplay"></span>
|
>
|
||||||
|
Dominant culture: <span id="provinceCultureDisplay"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -502,11 +502,7 @@ function editProvinces() {
|
||||||
document.getElementById("provinceNameEditorFull").value = p.fullName;
|
document.getElementById("provinceNameEditorFull").value = p.fullName;
|
||||||
|
|
||||||
const cultureId = pack.cells.culture[p.center];
|
const cultureId = pack.cells.culture[p.center];
|
||||||
const cultureName = pack.cultures[cultureId].name;
|
document.getElementById("provinceCultureDisplay").innerText = pack.cultures[cultureId].name;
|
||||||
const provinceLangID = pack.cultures[pack.cells.culture[pack.provinces[province].center]].base;
|
|
||||||
const provinceNameBase = Names.getNameBases()[provinceLangID].name;
|
|
||||||
document.getElementById("provinceCultureDisplay").innerText = cultureName;
|
|
||||||
document.getElementById("provinceLanguageDisplay").innerText = provinceNameBase;
|
|
||||||
|
|
||||||
$("#provinceNameEditor").dialog({
|
$("#provinceNameEditor").dialog({
|
||||||
resizable: false,
|
resizable: false,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue