"
@@ -1657,7 +1662,7 @@
new_id.style.animation="flash 2s 1";
new_id.style.WebkitAnimation="flash 2s 1";
control_dlock()
- toast("new block created");
+ toast("New block created");
modal_window('close');
}else if(story_script[new_id]){
toast("this name is used by other blocks");
@@ -1668,7 +1673,7 @@
}
story_script.blocks[new_id.id]=[new_id.style.left,new_id.style.top,document.getElementById(new_id.id+"_content").style.display,((typeof color_chec==='object')?false:color_chec)]
state_save();
- }else{toast('Only latin characters & numbers')}
+ }else{toast('Only latin characters & numbers')}
}
function edit_block(id){
var html="
Edit story block
"
@@ -1697,7 +1702,7 @@
}
}
update_novel();state_save();
- toast("block removed");
+ toast("Block removed");
modal_window('close');
}
function updata_block(old_id){
@@ -1714,11 +1719,11 @@
var story_rename=JSON.stringify(story_script)
story_script=JSON.parse(story_rename.replace(new RegExp('"'+old_id+'"',"g"),'"'+new_id+'"'));
parse_story();
- toast("block updated");
- }else if(story_script[new_id]){toast("this name is used by other blocks");}
+ toast("Block updated");
+ }else if(story_script[new_id]){toast("This name is used by other blocks");}
modal_window ('close');
update_novel();state_save();
- }else{toast('Only latin characters & numbers')}
+ }else{toast('Only latin characters & numbers')}
}
function file_catalog(id,files,area,preview,arr){
var code,f,t,a;
@@ -2380,7 +2385,7 @@
function legacy_choice_edit(){
var var_if="
";
for(var i=0;i
"+((i==0)?"if{":"else if{")+"
"
+ var_if+="
"+((i==0)?"if {":"else if {")+"
"
+"
"
+"
"
+"
"
@@ -2390,7 +2395,7 @@
+"
";
}
var_if+="
else
"
- var html="
legacy choice edit
"+texts.tutorials[0].en+"
"+var_if+"
Apply
"
+ var html="
Legacy choice edit
"+texts.tutorials[0].en+"
"+var_if+"
Apply
"
modal_window("open",html);
}
function legacy_choice_new(){
@@ -2403,7 +2408,7 @@
var td5=document.createElement("td");
var td6=document.createElement("td");
var td7=document.createElement("td");
- td1.innerHTML="else if{";
+ td1.innerHTML="else if {";
td1.align="right";
td1.style="padding-right:4px;white-space:nowrap;";
td2.innerHTML="";
@@ -2411,7 +2416,7 @@
td3.style="border-right:1px solid var(--cb);border-left:1px solid var(--cb);";
td4.innerHTML="";
td5.innerHTML="} go to:";
- td5.style="font-size:12px;";
+ td5.style="white-space:nowrap;";
td5.setAttribute("valign","center");
td5.setAttribute("align","center");
td6.innerHTML="";
@@ -2453,7 +2458,7 @@
else if(arr_n=='text'){arr_l.text={};for(var i=0;i