mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 20:11:24 +01:00
show production in burgs editor
This commit is contained in:
parent
3b8b569aa5
commit
1ee1a38e87
2 changed files with 10 additions and 5 deletions
11
index.css
11
index.css
|
|
@ -1627,6 +1627,15 @@ div.states > div.resourceBonus > span.icon-male {
|
|||
line-height: 1.4em;
|
||||
}
|
||||
|
||||
#burgBody {
|
||||
display: flex;
|
||||
padding-bottom: 0.3em;
|
||||
}
|
||||
|
||||
#burgBody > div {
|
||||
width: 18em;
|
||||
}
|
||||
|
||||
#burgBody div.label {
|
||||
display: inline-block;
|
||||
width: 6em;
|
||||
|
|
@ -1641,7 +1650,7 @@ div.states > div.resourceBonus > span.icon-male {
|
|||
#burgBody > div > div,
|
||||
#riverBody > div,
|
||||
#lakeBody > div {
|
||||
padding: 0.1em;
|
||||
line-height: 1.8em;
|
||||
}
|
||||
|
||||
#riverBody div.label,
|
||||
|
|
|
|||
|
|
@ -57,10 +57,6 @@ function editBurg(id) {
|
|||
function updateBurgValues() {
|
||||
const id = +elSelected.attr('data-id');
|
||||
const b = pack.burgs[id];
|
||||
const province = pack.cells.province[b.cell];
|
||||
const provinceName = province ? pack.provinces[province].fullName + ', ' : '';
|
||||
const stateName = pack.states[b.state].fullName || pack.states[b.state].name;
|
||||
document.getElementById('burgProvinceAndState').innerHTML = provinceName + stateName;
|
||||
|
||||
document.getElementById("burgName").value = b.name;
|
||||
document.getElementById("burgType").value = b.type || "Generic";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue