mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
v1.3.3
This commit is contained in:
parent
79e9a12d99
commit
aab1b8eac6
12 changed files with 152 additions and 109 deletions
|
|
@ -460,10 +460,10 @@ function editCultures() {
|
|||
}
|
||||
|
||||
function changeCode(d) {
|
||||
const code = prompt(`Please provide an abbreviation for culture: ${d.data.name}`, d.data.code);
|
||||
if (!code) return;
|
||||
pack.cultures[d.data.i].code = code;
|
||||
nodes.select("g[data-id='"+d.data.i+"']").select("text").text(code);
|
||||
prompt(`Please provide an abbreviation for culture: ${d.data.name}`, {default:d.data.code}, v => {
|
||||
pack.cultures[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