diff --git a/tuesday_visual.html b/tuesday_visual.html index 16ee66a..1907497 100755 --- a/tuesday_visual.html +++ b/tuesday_visual.html @@ -310,6 +310,11 @@ .show_color{background-color:var(--cb);border-radius:50%;width:26px;height:26px;} .drag{box-sizing:border-box;width:100px;height:100px;position:absolute;top:100px;left:100px;cursor:move;border: 1px dashed var(--cb);} .resizer{width:7px;height:7px;border-radius:50%;background:var(--cw);border: 1px solid var(--cb);position:absolute;z-index:4000;} +.resizer:before{ + position:absolute;content:''; + top:-24px;right:-24px; + left:-24px;bottom:-24px; +} .top-left{left:-5px;top:-5px;cursor:nwse-resize;} .top-right{right:-5px;top:-5px;cursor:nesw-resize;} .bottom-left{left:-5px;bottom:-5px;cursor:nesw-resize;} @@ -848,7 +853,7 @@ for(var f=0;f
"+jsons[f][1]+"
"} html+="" modal_window("open",html) - }else if(jsons.length==0){alert('json file no found')} + }else if(jsons.length==0){alert('JSON file not found')} } } window.addEventListener('load',function(){ @@ -888,9 +893,9 @@ if(this.readyState==4&&this.status==200){ new_novel() story_script=JSON.parse(this.responseText); - if(!story_script.parameters){alert("error in JSON file")} + if(!story_script.parameters){alert("Error in JSON file")} else{ - toast("json file loading completed"); + toast("JSON file loading completed"); languare=story_script.parameters.languares[0] if(story_script.blocks){block_colors();} parse_story() @@ -938,7 +943,7 @@ for(var i=0;i" if(story_script[chapter.id][i].legacy_choice){ - element+="

legacy choice:"+(i+1)+"

" + element+="

Legacy choice:"+(i+1)+"

" for(var l=0;l

Tuesday JS visual novel engine


Release: 11


" + var html="

Tuesday JS visual novel engine


Release: 14


" +"" +"" +"" @@ -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="
E-Mail:tuesdayjsengine@gmail.com
WebSite:https://kirilllive.github.io/tuesday-js
"; for(var i=0;i" + var_if+="" +"" +"" +"" @@ -2390,7 +2395,7 @@ +""; } var_if+="
"+((i==0)?"if {":"else 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


" +"" +"" - +"" + +"" +"" +"" +"" @@ -2482,22 +2487,22 @@ +"" +"" +"" - +"" + +"" +"" +"" - +"" + +"" +"" +"" - +"" + +"" +"" +"" - +"" + +"" +"" +"" +"" @@ -2512,8 +2517,7 @@ if(copy_arr[arr_n].fit=='cover'||!copy_arr[arr_n].fit){ if(video_preview.videoWidth>video_preview.videoHeight){video_preview.style.height='100%';video_preview.style.width='auto';} else{video_preview.style.height='auto';video_preview.style.width='100%';} - } - if(copy_arr[arr_n].fit=='position'){copy_arr[arr_n].size=[video_preview.videoWidth+'px',video_preview.videoHeight+'px'];copy_arr[arr_n].position=['0px',0,'0px',0]} + } else if(copy_arr[arr_n].fit=='position'){ if(!copy_arr[arr_n].size){copy_arr[arr_n].size=[setup_editor.pvw[0]+'px',setup_editor.pvw[1]+'px']}; if(!copy_arr[arr_n].position){copy_arr[arr_n].position=['0px',0,'0px',0]} } if(copy_arr[arr_n].sound && copy_arr[arr_n].sound>0){ video_preview.muted=false; video_preview.volume=copy_arr[arr_n].sound/100 @@ -2542,21 +2546,21 @@ if(!copy_arr.name){copy_arr.name={}} if(story_script.parameters.characters&&story_script.parameters.characters[copy_arr.name]){n=story_script.parameters.characters[copy_arr.name]} if(typeof copy_arr[arr_n]!=='object'){data_la(copy_arr,arr_n)};if(!copy_arr[arr_n][languare]){copy_arr[arr_n][languare]=""}; - var html="
Dialog text

"+texts.tutorials[1].en+"

" - +"
"+preview_video(open_file(languare_data(copy_arr[arr_n].url)))+"Video:Video:
loop:
Loop:
autoplay:
Autoplay:
time start:
Time start:
time end:
Time end:
Go to
" + var html="
Dialogue text

"+texts.tutorials[1].en+"

" + +"
languare:
" +"" +"
language:symbols:"+copy_arr[arr_n][languare].length+"words:"+(copy_arr[arr_n][languare].split(reg).length-1)+"
" +"" +""+ ""+ "
" - +"" + +"" +"" +"" +"" +"" +"" +"" - +"" - +"" + +"" + +"" +"" +"" +"" @@ -2629,7 +2633,7 @@ var html="
Settings scene

"+texts.tutorials[2].en+"



" +"
Settings text panel
Text panel settings
Text color
Panel color
ClassName
Settings name panel
Character name
Name panel settings
Name character
Text color
Panel color
" +"" - +"" + +"" +"" +"" +"" @@ -2887,8 +2891,8 @@ if(scen_data[2]=story_script[block].length-1){i=story_script[block].length-1;} if(!arr_s){i+=1;n=1;} - if(!story_script[block][i]||story_script[block][i].dialogs.length==0){i-=1;n=story_script[block][i].dialogs.length;toast('not scene')} - }else if(scen_data[2]>n&&!arr_s&&story_script[block][i-1]&&story_script[block][i-1].dialogs){i-=1;n=story_script[block][i].dialogs.length;}else if(n<1){n=1;toast('not scene')} + if(!story_script[block][i]||story_script[block][i].dialogs.length==0){i-=1;n=story_script[block][i].dialogs.length;toast('Not scene')} + }else if(scen_data[2]>n&&!arr_s&&story_script[block][i-1]&&story_script[block][i-1].dialogs){i-=1;n=story_script[block][i].dialogs.length;}else if(n<1){n=1;toast('Not scene')} if(story_script.parameters.pixelmode){scene_layout.style.imageRendering="pixelated";scene_layout.style.fontSmooth="never";} else{scene_layout.style.imageRendering="auto";scene_layout.style.fontSmooth="auto";} arr_s=story_script[block][i].dialogs[n-1]; @@ -3960,7 +3964,7 @@ ""+ ""+ ""+ + "
 Image:Image:
icon
Auto save
"+ - "Clear all save:
Clear all save:
Pixel mode
"+ "
"+ @@ -4185,7 +4189,7 @@ lang_select(); update_novel(); modal_window('close'); - toast("parameters updated"); + toast("Parameters updated"); } var scale=1; var scale_scene=1;