mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
v1.3.3
This commit is contained in:
parent
79e9a12d99
commit
aab1b8eac6
12 changed files with 152 additions and 109 deletions
|
|
@ -450,10 +450,10 @@ function editReligions() {
|
|||
}
|
||||
|
||||
function changeCode(d) {
|
||||
const code = prompt(`Please provide an abbreviation for ${d.data.name}`, d.data.code);
|
||||
if (!code) return;
|
||||
pack.religions[d.data.i].code = code;
|
||||
nodes.select("g[data-id='"+d.data.i+"']").select("text").text(code);
|
||||
prompt(`Please provide an abbreviation for ${d.data.name}`, {default:d.data.code}, v => {
|
||||
pack.religions[d.data.i].code = v;
|
||||
nodes.select("g[data-id='"+d.data.i+"']").select("text").text(v);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue