diff --git a/plugins/terrain_map.js b/plugins/terrain_map.js index a879c84..a660519 100755 --- a/plugins/terrain_map.js +++ b/plugins/terrain_map.js @@ -68,7 +68,7 @@ function terrain_map(){ if (arr_dialog.objects[i].sound){v+="sound_play('"+arr_dialog.objects[i].sound+"');"} else if (arr_dialog.sound){v+="sound_play('"+arr_dialog.sound+"');"} if (arr_dialog.objects[i].js){v+=arr_dialog.objects[i].js+";"} - if (arr_dialog.objects[i].go_to){ + if (arr_dialog.objects[i].go_to && arr_dialog.objects[i].go_to!="tue_no"){ if (arr_dialog.objects[i].text_from){v+="tue_story='"+arr_dialog.objects[i].go_to+"';scene=0;dialog=0;creation_dialog();"} else if(arr_dialog.objects[i].url){v+="window.open('"+((arr_dialog.objects[i].go_to[languare])?arr_dialog.objects[i].go_to[languare]:arr_dialog.objects[i].go_to)+"','_"+arr_dialog.objects[i].url+"');"} else {v+="tue_world.remove();"+((arr_dialog.objects[i].go_to=="tue_go")?"scene++;dialog=0;creation_scene();":"go_to('"+arr_dialog.objects[i].go_to+"');")} diff --git a/translate/en_tuesday_visual.html b/translate/en_tuesday_visual.html index a60696c..eda8ab6 100644 --- a/translate/en_tuesday_visual.html +++ b/translate/en_tuesday_visual.html @@ -868,7 +868,7 @@ },"hidden_objects":{ "name":"Hidden objects", "text":"player must find items from a list that are hidden within a scene", - "code":"var ho={startmove_x:null,startmove_y:null,scroll_x:null,scroll_y:null,scale:1};function hidden_objects(){clearTimeout(dialog_timeout),arr_dialog=story_json[tue_story][scene].hidden_objects,tue_text_view.innerHTML=\"\",tuesday.style.backgroundImage=\"none\",findobjects=story_json.parameters.hidden_objects.label.items>arr_dialog.objects.length?arr_dialog.objects.length:story_json.parameters.hidden_objects.label.items;var e=document.createElement(\"div\");e.id=\"tue_hiddenobjects\",e.style=\"height:100%;width:100%;\"+(navigator.userAgent.indexOf(\"Firefox\")>0?\"overflow:hidden;\":\"overflow:auto;\");var t=document.createElement(\"div\"),s=Math.round(arr_dialog.objects.length/findobjects),l=0,o=0;findobjects1&&(a=l+Math.round(Math.random()*(s-1))),arr_dialog.objects.length-le.width/e.height?tue_objectsroom.style.transform=\"scale(\"+e.height/arr_dialog.size[1]*ho.scale+\")\":tue_objectsroom.style.transform=\"scale(\"+e.width/arr_dialog.size[0]*ho.scale+\")\",tue_objectsroom.style.marginBottom=\"-\"+(e.height+arr_dialog.size[1])+\"px\",tue_objectsroom.style.marginRight=\"-\"+(e.width+arr_dialog.size[0])+\"px\",tue_objectsroom.style.marginTop=\"0px\",tue_objectsroom.style.marginLeft=\"0px\"}}function find_item(id){findobjects--,story_json.parameters.hidden_objects.label_find.no_del_label?(id=document.getElementById(id),story_json.parameters.hidden_objects.label_find.className&&(id.className=story_json.parameters.hidden_objects.label_find.className),story_json.parameters.hidden_objects.label_find.style&&(id.className=story_json.parameters.hidden_objects.label_find.style),story_json.parameters.hidden_objects.label_find.color&&(id.style.backgroundColor=story_json.parameters.hidden_objects.label_find.color),story_json.parameters.hidden_objects.label_find.color_text&&(id.style.color=story_json.parameters.hidden_objects.label_find.color_text)):document.getElementById(id).remove(),findobjects<=0&&(arr_dialog.js&&eval(arr_dialog.js),tue_hiddenobjects.remove(),\"tue_go\"==arr_dialog.go_to?(scene++,dialog=0,creation_scene()):go_to(arr_dialog.go_to))}tuesday.addEventListener(\"hidden_objects\",function(e){hidden_objects()}),window.addEventListener(\"resize\",objectsroom_resize,!0);" + "code":"var ho={startmove_x:null,startmove_y:null,scroll_x:null,scroll_y:null,scale:1};function hidden_objects(){clearTimeout(dialog_timeout),arr_dialog=story_json[tue_story][scene].hidden_objects,tue_text_view.innerHTML=\"\",tuesday.style.backgroundImage=\"none\";let e=document.createElement(\"div\"),t=[];arr_dialog.objects.forEach((s,l)=>{if(s.type){var a=document.createElement(\"div\");s.className&&(a.className=s.className),a.style=s.style,a.style.width=s.size[0]+\"px\",a.style.height=s.size[1]+\"px\",a.style.backgroundRepeat=\"no-repeat\",a.style.backgroundPosition=\"center\",a.style.backgroundSize=s.fit,a.style.backgroundImage='url(\"'+art_data(s.art)+'\")',a.style.position=\"absolute\",a.style.transformOrigin=\"top left\",a.style.transform=\"rotate(\"+s.angle+\"deg)\",a.style.top=s.position[1]+\"px\",a.style.left=s.position[0]+\"px\",a.style.zIndex=l,e.appendChild(a)}else s.index=l,t.push(s)}),findobjects=story_json.parameters.hidden_objects.label.items>t.length?t.length:story_json.parameters.hidden_objects.label.items;var s=document.createElement(\"div\");s.id=\"tue_hiddenobjects\",s.style=\"height:100%;width:100%;\"+(navigator.userAgent.indexOf(\"Firefox\")>0?\"overflow:hidden;\":\"overflow:auto;\");var l=Math.round(t.length/findobjects),a=0,o=0;findobjects1&&(r=a+Math.round(Math.random()*(l-1))),t.length-ae.width/e.height?tue_objectsroom.style.transform=\"scale(\"+e.height/arr_dialog.size[1]*ho.scale+\")\":tue_objectsroom.style.transform=\"scale(\"+e.width/arr_dialog.size[0]*ho.scale+\")\",tue_objectsroom.style.marginBottom=\"-\"+(e.height+arr_dialog.size[1])+\"px\",tue_objectsroom.style.marginRight=\"-\"+(e.width+arr_dialog.size[0])+\"px\",tue_objectsroom.style.marginTop=\"0px\",tue_objectsroom.style.marginLeft=\"0px\"}}function find_item(id){findobjects--,story_json.parameters.hidden_objects.label_find.no_del_label?(id=document.getElementById(id),story_json.parameters.hidden_objects.label_find.className&&(id.className=story_json.parameters.hidden_objects.label_find.className),story_json.parameters.hidden_objects.label_find.style&&(id.className=story_json.parameters.hidden_objects.label_find.style),story_json.parameters.hidden_objects.label_find.color&&(id.style.backgroundColor=story_json.parameters.hidden_objects.label_find.color),story_json.parameters.hidden_objects.label_find.color_text&&(id.style.color=story_json.parameters.hidden_objects.label_find.color_text)):document.getElementById(id).remove(),findobjects<=0&&(arr_dialog.js&&eval(arr_dialog.js),tue_hiddenobjects.remove(),\"tue_go\"==arr_dialog.go_to?(scene++,dialog=0,creation_scene()):go_to(arr_dialog.go_to))}tuesday.addEventListener(\"hidden_objects\",function(e){hidden_objects()}),window.addEventListener(\"resize\",objectsroom_resize,!0);" },"screen_control":{ "name":"Screen control", "text":"switches dialogue by click to screen.", @@ -884,7 +884,7 @@ },"terrain_map":{ "name":"Terrain map", "text":"location with markers for transition to other plot blocks.", - "code":"var wmap={startmove_x:null,startmove_y:null,scroll_x:null,scroll_y:null,scale:1};function terrain_map(){clearTimeout(dialog_timeout),arr_dialog=story_json[tue_story][scene].terrain_map,tue_text_view.innerHTML=\"\",tuesday.style.backgroundImage=\"none\";var e=document.createElement(\"div\");e.id=\"tue_world\",e.style=\"height:100%;width:100%;\"+(navigator.userAgent.indexOf(\"Firefox\")>0?\"overflow:hidden;\":\"overflow:auto;\"),e.className=\"tue_html_scene\";var t=document.createElement(\"div\");arr_dialog.scale&&(wmap.scale=arr_dialog.scale),t.id=\"tue_map\",t.className=arr_dialog.className,t.style=arr_dialog.style,t.style.width=arr_dialog.size[0]+\"px\",t.style.height=arr_dialog.size[1]+\"px\",t.style.backgroundRepeat=arr_dialog.repeat?arr_dialog.repeat:\"no-repeat\",arr_dialog.art_align&&(t.style.backgroundPosition=arr_dialog.art_align),arr_dialog.fit&&(t.style.backgroundSize=\"object\"==typeof arr_dialog.fit?arr_dialog.fit[0]+\" \"+arr_dialog.fit[1]:arr_dialog.fit),arr_dialog.color&&(e.style.backgroundColor=art_data(arr_dialog.color)),arr_dialog.art&&art_data(arr_dialog.art).length>0&&(t.style.backgroundImage='url(\"'+art_data(arr_dialog.art)+'\")'),t.style.position=\"relative\",t.style.overflow=\"hidden\",t.style.transformOrigin=\"left top\";for(var o=0;oe.width/e.height?tue_map.style.transform=\"scale(\"+e.height/arr_dialog.size[1]*wmap.scale+\")\":tue_map.style.transform=\"scale(\"+e.width/arr_dialog.size[0]*wmap.scale+\")\",tue_map.style.marginBottom=\"-\"+(e.height+arr_dialog.size[1])+\"px\",tue_map.style.marginRight=\"-\"+(e.width+arr_dialog.size[0])+\"px\",tue_map.style.marginTop=\"0px\",tue_map.style.marginLeft=\"0px\"}}tuesday.addEventListener(\"terrain_map\",function(e){terrain_map()}),window.addEventListener(\"resize\",worldmap_resize,!0);" + "code":"var wmap={startmove_x:null,startmove_y:null,scroll_x:null,scroll_y:null,scale:1};function terrain_map(){clearTimeout(dialog_timeout),arr_dialog=story_json[tue_story][scene].terrain_map,tue_text_view.innerHTML=\"\",tuesday.style.backgroundImage=\"none\";var e=document.createElement(\"div\");e.id=\"tue_world\",e.style=\"height:100%;width:100%;\"+(navigator.userAgent.indexOf(\"Firefox\")>0?\"overflow:hidden;\":\"overflow:auto;\"),e.className=\"tue_html_scene\";var t=document.createElement(\"div\");arr_dialog.scale&&(wmap.scale=arr_dialog.scale),t.id=\"tue_map\",t.className=arr_dialog.className,t.style=arr_dialog.style,t.style.width=arr_dialog.size[0]+\"px\",t.style.height=arr_dialog.size[1]+\"px\",t.style.backgroundRepeat=arr_dialog.repeat?arr_dialog.repeat:\"no-repeat\",arr_dialog.art_align&&(t.style.backgroundPosition=arr_dialog.art_align),arr_dialog.fit&&(t.style.backgroundSize=\"object\"==typeof arr_dialog.fit?arr_dialog.fit[0]+\" \"+arr_dialog.fit[1]:arr_dialog.fit),arr_dialog.color&&(e.style.backgroundColor=art_data(arr_dialog.color)),arr_dialog.art&&art_data(arr_dialog.art).length>0&&(t.style.backgroundImage='url(\"'+art_data(arr_dialog.art)+'\")'),t.style.position=\"relative\",t.style.overflow=\"hidden\",t.style.transformOrigin=\"left top\";for(var o=0;oe.width/e.height?tue_map.style.transform=\"scale(\"+e.height/arr_dialog.size[1]*wmap.scale+\")\":tue_map.style.transform=\"scale(\"+e.width/arr_dialog.size[0]*wmap.scale+\")\",tue_map.style.marginBottom=\"-\"+(e.height+arr_dialog.size[1])+\"px\",tue_map.style.marginRight=\"-\"+(e.width+arr_dialog.size[0])+\"px\",tue_map.style.marginTop=\"0px\",tue_map.style.marginLeft=\"0px\"}}tuesday.addEventListener(\"terrain_map\",function(e){terrain_map()}),window.addEventListener(\"resize\",worldmap_resize,!0);" },"touch_swipe":{ "name":"Touch swipe", "text":"switches dialogue by swiping your finger across the touchscreen", @@ -1627,7 +1627,7 @@ x.classList.add("toast_anim"); } function about(){ - var html="

Tuesday JS visual novel engine


Release: 50

" + var html="

Tuesday JS visual novel engine


Release: 51

" +"" +"" +"" @@ -1652,9 +1652,9 @@ +'
E-Mail:tuesdayjsengine@gmail.com
WebSite:kirilllive.github.io/tuesday-js
Tutorial:kirilllive.github.io/tuesday-js/doc_editor
' +'' +'

'+texts.tutorials[10].en+'

' - +'' - +'' - +'

'+texts.tutorials[17].en+'

' +// +'' +// +'' +// +'

'+texts.tutorials[17].en+'

' +"
" modal_window("open",html); } @@ -1926,7 +1926,7 @@ files=['audio/mpeg']; for(f=0;f
'+project_files[f][0]+((project_files[f][0].length<4)?' ⨻ warning short name':'')+'
'}}} }else if(files=='video'){ - files=['video/mp4']; + files=['video/mp4','video/webm','video/ogg']; for(f=0;f
'+project_files[f][0]+'
'}}} }else if(files=='js'){ files=['javascript']; @@ -2432,17 +2432,23 @@ function ho_new(s){ if(!s){ var a=story_script[scen_data[0]][scen_data[1]][arr_n],p=[(ho_canvas.offsetWidth-ho_room.offsetWidth)/2,(ho_canvas.offsetHeight-ho_room.offsetHeight)/2]; - if(arr_n=="hidden_objects"){a.objects.push({"position":[(ho_preview.scrollLeft-p[0])+(ho_preview.clientWidth/2),(ho_preview.scrollTop-p[1])+(ho_preview.clientHeight/2)],"size":[128,128],"art":"","fit":"contain","name":""}); - file_catalog('','img','hois_art'+(a.objects.length-1),'','story_script[scen_data[0]][scen_data[1]].'+arr_n+'.objects['+(a.objects.length-1)+'].art');} - else{ + if(arr_n=="hidden_objects"){ + tool_update='ho_new(1);'; + a.objects.push({"position":[(ho_preview.scrollLeft-p[0])+(ho_preview.clientWidth/2),(ho_preview.scrollTop-p[1])+(ho_preview.clientHeight/2)],"size":[128,128],"art":"","fit":"contain","name":""}); + file_catalog('','img','hois_art'+(a.objects.length-1),'','story_script[scen_data[0]][scen_data[1]].'+arr_n+'.objects['+(a.objects.length-1)+'].art'); + } else { let c=a.objects[a.objects.length-1]; if(c){c=JSON.parse(JSON.stringify(c));c.go_to="tue_go";c.position=[(ho_preview.scrollLeft-p[0])+(ho_preview.clientWidth/2),(ho_preview.scrollTop-p[1])+(ho_preview.clientHeight/2)];c.name="label";a.objects.push(c);} - else {a.objects.push({"go_to":"tue_go","position":[(ho_preview.scrollLeft-p[0])+(ho_preview.clientWidth/2),(ho_preview.scrollTop-p[1])+(ho_preview.clientHeight/2)],"size":[128,128],"art":"","fit":"contain","name":"label","indent_text":"8px"});}} - tool_update='ho_new(1)';ho_update(); - }else if(s==1){ - var a=story_script[scen_data[0]][scen_data[1]][arr_n].objects,image = new Image(); - image.src=open_file(languare_data(a[a.length-1].art)); - image.onload=function(){a[a.length-1].size=[this.width,this.height];tool_update='ho_update()';ho_update();} + else {a.objects.push({"go_to":"tue_go","position":[(ho_preview.scrollLeft-p[0])+(ho_preview.clientWidth/2),(ho_preview.scrollTop-p[1])+(ho_preview.clientHeight/2)],"size":[128,128],"art":"","fit":"contain","name":"label","indent_text":"8px"});} + } + ho_update(); + }else if(s==1){tool_update='ho_update();'; + var a=story_script[scen_data[0]][scen_data[1]][arr_n].objects; + if(a[a.length-1].art.length>0){ + let image = new Image(); + image.src=open_file(languare_data(a[a.length-1].art)); + image.onload=function(){a[a.length-1].size=[this.width,this.height]; ho_update();} + } } } function ho_update(){ @@ -2516,7 +2522,7 @@ +"
"+ ((arr_l[arr_n].objects[i].name&&arr_l[arr_n].objects[i].name[languare])?arr_l[arr_n].objects[i].name[languare]:"")+"
" +"" +"" - +((arr_n=="terrain_map")?""+((!arr_l[arr_n].objects[i].url&&typeof arr_l[arr_n].objects[i].go_to==="object")?"":((arr_l[arr_n].objects[i].url)?"":""))+((arr_l[arr_n].objects[i].url)?"":""):"") + +((arr_n=="terrain_map")?""+((!arr_l[arr_n].objects[i].url&&typeof arr_l[arr_n].objects[i].go_to==="object")?"":((arr_l[arr_n].objects[i].url)?"":""))+((arr_l[arr_n].objects[i].url)?"":""):"") +"" +"" +"" @@ -2526,8 +2532,13 @@ +"" +"" - +"" + if(arr_n=="hidden_objects"){k+="" + +""} + k+="" +"" +"" @@ -5855,6 +5866,7 @@ if(state_num>0){back_up.splice(0,state_num);state_num=0;} back_up.unshift(JSON.stringify(story_script)); if(back_up.length>10){back_up.pop();} + window.addEventListener("beforeunload",(e)=>{ if(back_up.length>1){e.preventDefault();e.returnValue=""}}); } function state_back(n){ state_num+=n @@ -5929,6 +5941,7 @@ } return output.replace(/\n/gm,'
').replace(/\t/g,' ').replace(/^\s+|\s{2,}/g,(a)=>new Array(a.length+1).join(' ')); //let symbol_tab=Array(4).join('\u00a0'); //.replace(/\t/g,document.createTextNode('\u00a0')) } + diff --git a/translate/es_tuesday_visual.html b/translate/es_tuesday_visual.html index 2cf8cda..ff22f7b 100644 --- a/translate/es_tuesday_visual.html +++ b/translate/es_tuesday_visual.html @@ -868,7 +868,7 @@ },"hidden_objects":{ "name":"Objetos ocultos", "text":"el jugador debe encontrar los objetos de una lista que están ocultos dentro de una escena", - "code":"var ho={startmove_x:null,startmove_y:null,scroll_x:null,scroll_y:null,scale:1};function hidden_objects(){clearTimeout(dialog_timeout),arr_dialog=story_json[tue_story][scene].hidden_objects,tue_text_view.innerHTML=\"\",tuesday.style.backgroundImage=\"none\",findobjects=story_json.parameters.hidden_objects.label.items>arr_dialog.objects.length?arr_dialog.objects.length:story_json.parameters.hidden_objects.label.items;var e=document.createElement(\"div\");e.id=\"tue_hiddenobjects\",e.style=\"height:100%;width:100%;\"+(navigator.userAgent.indexOf(\"Firefox\")>0?\"overflow:hidden;\":\"overflow:auto;\");var t=document.createElement(\"div\"),s=Math.round(arr_dialog.objects.length/findobjects),l=0,o=0;findobjects1&&(a=l+Math.round(Math.random()*(s-1))),arr_dialog.objects.length-le.width/e.height?tue_objectsroom.style.transform=\"scale(\"+e.height/arr_dialog.size[1]*ho.scale+\")\":tue_objectsroom.style.transform=\"scale(\"+e.width/arr_dialog.size[0]*ho.scale+\")\",tue_objectsroom.style.marginBottom=\"-\"+(e.height+arr_dialog.size[1])+\"px\",tue_objectsroom.style.marginRight=\"-\"+(e.width+arr_dialog.size[0])+\"px\",tue_objectsroom.style.marginTop=\"0px\",tue_objectsroom.style.marginLeft=\"0px\"}}function find_item(id){findobjects--,story_json.parameters.hidden_objects.label_find.no_del_label?(id=document.getElementById(id),story_json.parameters.hidden_objects.label_find.className&&(id.className=story_json.parameters.hidden_objects.label_find.className),story_json.parameters.hidden_objects.label_find.style&&(id.className=story_json.parameters.hidden_objects.label_find.style),story_json.parameters.hidden_objects.label_find.color&&(id.style.backgroundColor=story_json.parameters.hidden_objects.label_find.color),story_json.parameters.hidden_objects.label_find.color_text&&(id.style.color=story_json.parameters.hidden_objects.label_find.color_text)):document.getElementById(id).remove(),findobjects<=0&&(arr_dialog.js&&eval(arr_dialog.js),tue_hiddenobjects.remove(),\"tue_go\"==arr_dialog.go_to?(scene++,dialog=0,creation_scene()):go_to(arr_dialog.go_to))}tuesday.addEventListener(\"hidden_objects\",function(e){hidden_objects()}),window.addEventListener(\"resize\",objectsroom_resize,!0);" + "code":"var ho={startmove_x:null,startmove_y:null,scroll_x:null,scroll_y:null,scale:1};function hidden_objects(){clearTimeout(dialog_timeout),arr_dialog=story_json[tue_story][scene].hidden_objects,tue_text_view.innerHTML=\"\",tuesday.style.backgroundImage=\"none\";let e=document.createElement(\"div\"),t=[];arr_dialog.objects.forEach((s,l)=>{if(s.type){var a=document.createElement(\"div\");s.className&&(a.className=s.className),a.style=s.style,a.style.width=s.size[0]+\"px\",a.style.height=s.size[1]+\"px\",a.style.backgroundRepeat=\"no-repeat\",a.style.backgroundPosition=\"center\",a.style.backgroundSize=s.fit,a.style.backgroundImage='url(\"'+art_data(s.art)+'\")',a.style.position=\"absolute\",a.style.transformOrigin=\"top left\",a.style.transform=\"rotate(\"+s.angle+\"deg)\",a.style.top=s.position[1]+\"px\",a.style.left=s.position[0]+\"px\",a.style.zIndex=l,e.appendChild(a)}else s.index=l,t.push(s)}),findobjects=story_json.parameters.hidden_objects.label.items>t.length?t.length:story_json.parameters.hidden_objects.label.items;var s=document.createElement(\"div\");s.id=\"tue_hiddenobjects\",s.style=\"height:100%;width:100%;\"+(navigator.userAgent.indexOf(\"Firefox\")>0?\"overflow:hidden;\":\"overflow:auto;\");var l=Math.round(t.length/findobjects),a=0,o=0;findobjects1&&(r=a+Math.round(Math.random()*(l-1))),t.length-ae.width/e.height?tue_objectsroom.style.transform=\"scale(\"+e.height/arr_dialog.size[1]*ho.scale+\")\":tue_objectsroom.style.transform=\"scale(\"+e.width/arr_dialog.size[0]*ho.scale+\")\",tue_objectsroom.style.marginBottom=\"-\"+(e.height+arr_dialog.size[1])+\"px\",tue_objectsroom.style.marginRight=\"-\"+(e.width+arr_dialog.size[0])+\"px\",tue_objectsroom.style.marginTop=\"0px\",tue_objectsroom.style.marginLeft=\"0px\"}}function find_item(id){findobjects--,story_json.parameters.hidden_objects.label_find.no_del_label?(id=document.getElementById(id),story_json.parameters.hidden_objects.label_find.className&&(id.className=story_json.parameters.hidden_objects.label_find.className),story_json.parameters.hidden_objects.label_find.style&&(id.className=story_json.parameters.hidden_objects.label_find.style),story_json.parameters.hidden_objects.label_find.color&&(id.style.backgroundColor=story_json.parameters.hidden_objects.label_find.color),story_json.parameters.hidden_objects.label_find.color_text&&(id.style.color=story_json.parameters.hidden_objects.label_find.color_text)):document.getElementById(id).remove(),findobjects<=0&&(arr_dialog.js&&eval(arr_dialog.js),tue_hiddenobjects.remove(),\"tue_go\"==arr_dialog.go_to?(scene++,dialog=0,creation_scene()):go_to(arr_dialog.go_to))}tuesday.addEventListener(\"hidden_objects\",function(e){hidden_objects()}),window.addEventListener(\"resize\",objectsroom_resize,!0);" },"screen_control":{ "name":"control de pantalla", "text":"cambia el diálogo haciendo clic en la pantalla.", @@ -884,7 +884,7 @@ },"terrain_map":{ "name":"Mapa del terreno", "text":"ubicación con marcadores para la transición a otros bloques de la trama.", - "code":"var wmap={startmove_x:null,startmove_y:null,scroll_x:null,scroll_y:null,scale:1};function terrain_map(){clearTimeout(dialog_timeout),arr_dialog=story_json[tue_story][scene].terrain_map,tue_text_view.innerHTML=\"\",tuesday.style.backgroundImage=\"none\";var e=document.createElement(\"div\");e.id=\"tue_world\",e.style=\"height:100%;width:100%;\"+(navigator.userAgent.indexOf(\"Firefox\")>0?\"overflow:hidden;\":\"overflow:auto;\"),e.className=\"tue_html_scene\";var t=document.createElement(\"div\");arr_dialog.scale&&(wmap.scale=arr_dialog.scale),t.id=\"tue_map\",t.className=arr_dialog.className,t.style=arr_dialog.style,t.style.width=arr_dialog.size[0]+\"px\",t.style.height=arr_dialog.size[1]+\"px\",t.style.backgroundRepeat=arr_dialog.repeat?arr_dialog.repeat:\"no-repeat\",arr_dialog.art_align&&(t.style.backgroundPosition=arr_dialog.art_align),arr_dialog.fit&&(t.style.backgroundSize=\"object\"==typeof arr_dialog.fit?arr_dialog.fit[0]+\" \"+arr_dialog.fit[1]:arr_dialog.fit),arr_dialog.color&&(e.style.backgroundColor=art_data(arr_dialog.color)),arr_dialog.art&&art_data(arr_dialog.art).length>0&&(t.style.backgroundImage='url(\"'+art_data(arr_dialog.art)+'\")'),t.style.position=\"relative\",t.style.overflow=\"hidden\",t.style.transformOrigin=\"left top\";for(var o=0;oe.width/e.height?tue_map.style.transform=\"scale(\"+e.height/arr_dialog.size[1]*wmap.scale+\")\":tue_map.style.transform=\"scale(\"+e.width/arr_dialog.size[0]*wmap.scale+\")\",tue_map.style.marginBottom=\"-\"+(e.height+arr_dialog.size[1])+\"px\",tue_map.style.marginRight=\"-\"+(e.width+arr_dialog.size[0])+\"px\",tue_map.style.marginTop=\"0px\",tue_map.style.marginLeft=\"0px\"}}tuesday.addEventListener(\"terrain_map\",function(e){terrain_map()}),window.addEventListener(\"resize\",worldmap_resize,!0);" + "code":"var wmap={startmove_x:null,startmove_y:null,scroll_x:null,scroll_y:null,scale:1};function terrain_map(){clearTimeout(dialog_timeout),arr_dialog=story_json[tue_story][scene].terrain_map,tue_text_view.innerHTML=\"\",tuesday.style.backgroundImage=\"none\";var e=document.createElement(\"div\");e.id=\"tue_world\",e.style=\"height:100%;width:100%;\"+(navigator.userAgent.indexOf(\"Firefox\")>0?\"overflow:hidden;\":\"overflow:auto;\"),e.className=\"tue_html_scene\";var t=document.createElement(\"div\");arr_dialog.scale&&(wmap.scale=arr_dialog.scale),t.id=\"tue_map\",t.className=arr_dialog.className,t.style=arr_dialog.style,t.style.width=arr_dialog.size[0]+\"px\",t.style.height=arr_dialog.size[1]+\"px\",t.style.backgroundRepeat=arr_dialog.repeat?arr_dialog.repeat:\"no-repeat\",arr_dialog.art_align&&(t.style.backgroundPosition=arr_dialog.art_align),arr_dialog.fit&&(t.style.backgroundSize=\"object\"==typeof arr_dialog.fit?arr_dialog.fit[0]+\" \"+arr_dialog.fit[1]:arr_dialog.fit),arr_dialog.color&&(e.style.backgroundColor=art_data(arr_dialog.color)),arr_dialog.art&&art_data(arr_dialog.art).length>0&&(t.style.backgroundImage='url(\"'+art_data(arr_dialog.art)+'\")'),t.style.position=\"relative\",t.style.overflow=\"hidden\",t.style.transformOrigin=\"left top\";for(var o=0;oe.width/e.height?tue_map.style.transform=\"scale(\"+e.height/arr_dialog.size[1]*wmap.scale+\")\":tue_map.style.transform=\"scale(\"+e.width/arr_dialog.size[0]*wmap.scale+\")\",tue_map.style.marginBottom=\"-\"+(e.height+arr_dialog.size[1])+\"px\",tue_map.style.marginRight=\"-\"+(e.width+arr_dialog.size[0])+\"px\",tue_map.style.marginTop=\"0px\",tue_map.style.marginLeft=\"0px\"}}tuesday.addEventListener(\"terrain_map\",function(e){terrain_map()}),window.addEventListener(\"resize\",worldmap_resize,!0);" },"touch_swipe":{ "name":"Desplazamiento táctil", "text":"cambia los dialogos deslizando tu dedo a traves de la pantalla táctil", @@ -1627,7 +1627,7 @@ x.classList.add("toast_anim"); } function about(){ - var html="

Tuesday JS motor de novela visual


Lanzamiento: 50

" + var html="

Tuesday JS motor de novela visual


Lanzamiento: 51

" +"
"+arr_l[arr_n].objects[i].go_to[0]+" / "+arr_l[arr_n].objects[i].go_to[1]+" / "+arr_l[arr_n].objects[i].go_to[2]+"
Open link
"+arr_l[arr_n].objects[i].go_to[0]+" / "+arr_l[arr_n].objects[i].go_to[1]+" / "+arr_l[arr_n].objects[i].go_to[2]+"
Open link
Name
Height size" +"" - +"
Sound
Type" + +"
Sound" +"
" +"" +"" @@ -1652,9 +1652,9 @@ +'
Correo:tuesdayjsengine@gmail.com
Sitio Web:kirilllive.github.io/tuesday-js
Tutorial:kirilllive.github.io/tuesday-js/doc_editor
' +'' +'

'+texts.tutorials[10].en+'

' - +'' - +'' - +'

'+texts.tutorials[17].en+'

' +// +'' +// +'' +// +'

'+texts.tutorials[17].en+'

' +"
" modal_window("open",html); } @@ -1926,7 +1926,7 @@ files=['audio/mpeg']; for(f=0;f
'+project_files[f][0]+((project_files[f][0].length<4)?' ⨻ warning short name':'')+'
'}}} }else if(files=='video'){ - files=['video/mp4']; + files=['video/mp4','video/webm','video/ogg']; for(f=0;f
'+project_files[f][0]+'
'}}} }else if(files=='js'){ files=['javascript']; @@ -2432,17 +2432,23 @@ function ho_new(s){ if(!s){ var a=story_script[scen_data[0]][scen_data[1]][arr_n],p=[(ho_canvas.offsetWidth-ho_room.offsetWidth)/2,(ho_canvas.offsetHeight-ho_room.offsetHeight)/2]; - if(arr_n=="hidden_objects"){a.objects.push({"position":[(ho_preview.scrollLeft-p[0])+(ho_preview.clientWidth/2),(ho_preview.scrollTop-p[1])+(ho_preview.clientHeight/2)],"size":[128,128],"art":"","fit":"contain","name":""}); - file_catalog('','img','hois_art'+(a.objects.length-1),'','story_script[scen_data[0]][scen_data[1]].'+arr_n+'.objects['+(a.objects.length-1)+'].art');} - else{ + if(arr_n=="hidden_objects"){ + tool_update='ho_new(1);'; + a.objects.push({"position":[(ho_preview.scrollLeft-p[0])+(ho_preview.clientWidth/2),(ho_preview.scrollTop-p[1])+(ho_preview.clientHeight/2)],"size":[128,128],"art":"","fit":"contain","name":""}); + file_catalog('','img','hois_art'+(a.objects.length-1),'','story_script[scen_data[0]][scen_data[1]].'+arr_n+'.objects['+(a.objects.length-1)+'].art'); + } else { let c=a.objects[a.objects.length-1]; if(c){c=JSON.parse(JSON.stringify(c));c.go_to="tue_go";c.position=[(ho_preview.scrollLeft-p[0])+(ho_preview.clientWidth/2),(ho_preview.scrollTop-p[1])+(ho_preview.clientHeight/2)];c.name="label";a.objects.push(c);} - else {a.objects.push({"go_to":"tue_go","position":[(ho_preview.scrollLeft-p[0])+(ho_preview.clientWidth/2),(ho_preview.scrollTop-p[1])+(ho_preview.clientHeight/2)],"size":[128,128],"art":"","fit":"contain","name":"label","indent_text":"8px"});}} - tool_update='ho_new(1)';ho_update(); - }else if(s==1){ - var a=story_script[scen_data[0]][scen_data[1]][arr_n].objects,image = new Image(); - image.src=open_file(languare_data(a[a.length-1].art)); - image.onload=function(){a[a.length-1].size=[this.width,this.height];tool_update='ho_update()';ho_update();} + else {a.objects.push({"go_to":"tue_go","position":[(ho_preview.scrollLeft-p[0])+(ho_preview.clientWidth/2),(ho_preview.scrollTop-p[1])+(ho_preview.clientHeight/2)],"size":[128,128],"art":"","fit":"contain","name":"label","indent_text":"8px"});} + } + ho_update(); + }else if(s==1){tool_update='ho_update();'; + var a=story_script[scen_data[0]][scen_data[1]][arr_n].objects; + if(a[a.length-1].art.length>0){ + let image = new Image(); + image.src=open_file(languare_data(a[a.length-1].art)); + image.onload=function(){a[a.length-1].size=[this.width,this.height]; ho_update();} + } } } function ho_update(){ @@ -2516,7 +2522,7 @@ +"
"+ ((arr_l[arr_n].objects[i].name&&arr_l[arr_n].objects[i].name[languare])?arr_l[arr_n].objects[i].name[languare]:"")+"
" +"" +"" - +((arr_n=="terrain_map")?""+((!arr_l[arr_n].objects[i].url&&typeof arr_l[arr_n].objects[i].go_to==="object")?"":((arr_l[arr_n].objects[i].url)?"":""))+((arr_l[arr_n].objects[i].url)?"":""):"") + +((arr_n=="terrain_map")?""+((!arr_l[arr_n].objects[i].url&&typeof arr_l[arr_n].objects[i].go_to==="object")?"":((arr_l[arr_n].objects[i].url)?"":""))+((arr_l[arr_n].objects[i].url)?"":""):"") +"" +"" +"" @@ -2526,8 +2532,13 @@ +"" +"" - +"" + if(arr_n=="hidden_objects"){k+="" + +""} + k+="" +"" +"" @@ -5855,6 +5866,7 @@ if(state_num>0){back_up.splice(0,state_num);state_num=0;} back_up.unshift(JSON.stringify(story_script)); if(back_up.length>10){back_up.pop();} + window.addEventListener("beforeunload",(e)=>{ if(back_up.length>1){e.preventDefault();e.returnValue=""}}); } function state_back(n){ state_num+=n @@ -5929,6 +5941,7 @@ } return output.replace(/\n/gm,'
').replace(/\t/g,' ').replace(/^\s+|\s{2,}/g,(a)=>new Array(a.length+1).join(' ')); //let symbol_tab=Array(4).join('\u00a0'); //.replace(/\t/g,document.createTextNode('\u00a0')) } + diff --git a/translate/ja_tuesday_visual.html b/translate/ja_tuesday_visual.html index 133de75..f9c9c61 100644 --- a/translate/ja_tuesday_visual.html +++ b/translate/ja_tuesday_visual.html @@ -868,7 +868,7 @@ },"hidden_objects":{ "name":"オブジェクト探し", "text":"配置したオブジェクトをプレイヤーが見つけると処理が進む仕掛けです。", - "code":"var ho={startmove_x:null,startmove_y:null,scroll_x:null,scroll_y:null,scale:1};function hidden_objects(){clearTimeout(dialog_timeout),arr_dialog=story_json[tue_story][scene].hidden_objects,tue_text_view.innerHTML=\"\",tuesday.style.backgroundImage=\"none\",findobjects=story_json.parameters.hidden_objects.label.items>arr_dialog.objects.length?arr_dialog.objects.length:story_json.parameters.hidden_objects.label.items;var e=document.createElement(\"div\");e.id=\"tue_hiddenobjects\",e.style=\"height:100%;width:100%;\"+(navigator.userAgent.indexOf(\"Firefox\")>0?\"overflow:hidden;\":\"overflow:auto;\");var t=document.createElement(\"div\"),s=Math.round(arr_dialog.objects.length/findobjects),l=0,o=0;findobjects1&&(a=l+Math.round(Math.random()*(s-1))),arr_dialog.objects.length-le.width/e.height?tue_objectsroom.style.transform=\"scale(\"+e.height/arr_dialog.size[1]*ho.scale+\")\":tue_objectsroom.style.transform=\"scale(\"+e.width/arr_dialog.size[0]*ho.scale+\")\",tue_objectsroom.style.marginBottom=\"-\"+(e.height+arr_dialog.size[1])+\"px\",tue_objectsroom.style.marginRight=\"-\"+(e.width+arr_dialog.size[0])+\"px\",tue_objectsroom.style.marginTop=\"0px\",tue_objectsroom.style.marginLeft=\"0px\"}}function find_item(id){findobjects--,story_json.parameters.hidden_objects.label_find.no_del_label?(id=document.getElementById(id),story_json.parameters.hidden_objects.label_find.className&&(id.className=story_json.parameters.hidden_objects.label_find.className),story_json.parameters.hidden_objects.label_find.style&&(id.className=story_json.parameters.hidden_objects.label_find.style),story_json.parameters.hidden_objects.label_find.color&&(id.style.backgroundColor=story_json.parameters.hidden_objects.label_find.color),story_json.parameters.hidden_objects.label_find.color_text&&(id.style.color=story_json.parameters.hidden_objects.label_find.color_text)):document.getElementById(id).remove(),findobjects<=0&&(arr_dialog.js&&eval(arr_dialog.js),tue_hiddenobjects.remove(),\"tue_go\"==arr_dialog.go_to?(scene++,dialog=0,creation_scene()):go_to(arr_dialog.go_to))}tuesday.addEventListener(\"hidden_objects\",function(e){hidden_objects()}),window.addEventListener(\"resize\",objectsroom_resize,!0);" + "code":"var ho={startmove_x:null,startmove_y:null,scroll_x:null,scroll_y:null,scale:1};function hidden_objects(){clearTimeout(dialog_timeout),arr_dialog=story_json[tue_story][scene].hidden_objects,tue_text_view.innerHTML=\"\",tuesday.style.backgroundImage=\"none\";let e=document.createElement(\"div\"),t=[];arr_dialog.objects.forEach((s,l)=>{if(s.type){var a=document.createElement(\"div\");s.className&&(a.className=s.className),a.style=s.style,a.style.width=s.size[0]+\"px\",a.style.height=s.size[1]+\"px\",a.style.backgroundRepeat=\"no-repeat\",a.style.backgroundPosition=\"center\",a.style.backgroundSize=s.fit,a.style.backgroundImage='url(\"'+art_data(s.art)+'\")',a.style.position=\"absolute\",a.style.transformOrigin=\"top left\",a.style.transform=\"rotate(\"+s.angle+\"deg)\",a.style.top=s.position[1]+\"px\",a.style.left=s.position[0]+\"px\",a.style.zIndex=l,e.appendChild(a)}else s.index=l,t.push(s)}),findobjects=story_json.parameters.hidden_objects.label.items>t.length?t.length:story_json.parameters.hidden_objects.label.items;var s=document.createElement(\"div\");s.id=\"tue_hiddenobjects\",s.style=\"height:100%;width:100%;\"+(navigator.userAgent.indexOf(\"Firefox\")>0?\"overflow:hidden;\":\"overflow:auto;\");var l=Math.round(t.length/findobjects),a=0,o=0;findobjects1&&(r=a+Math.round(Math.random()*(l-1))),t.length-ae.width/e.height?tue_objectsroom.style.transform=\"scale(\"+e.height/arr_dialog.size[1]*ho.scale+\")\":tue_objectsroom.style.transform=\"scale(\"+e.width/arr_dialog.size[0]*ho.scale+\")\",tue_objectsroom.style.marginBottom=\"-\"+(e.height+arr_dialog.size[1])+\"px\",tue_objectsroom.style.marginRight=\"-\"+(e.width+arr_dialog.size[0])+\"px\",tue_objectsroom.style.marginTop=\"0px\",tue_objectsroom.style.marginLeft=\"0px\"}}function find_item(id){findobjects--,story_json.parameters.hidden_objects.label_find.no_del_label?(id=document.getElementById(id),story_json.parameters.hidden_objects.label_find.className&&(id.className=story_json.parameters.hidden_objects.label_find.className),story_json.parameters.hidden_objects.label_find.style&&(id.className=story_json.parameters.hidden_objects.label_find.style),story_json.parameters.hidden_objects.label_find.color&&(id.style.backgroundColor=story_json.parameters.hidden_objects.label_find.color),story_json.parameters.hidden_objects.label_find.color_text&&(id.style.color=story_json.parameters.hidden_objects.label_find.color_text)):document.getElementById(id).remove(),findobjects<=0&&(arr_dialog.js&&eval(arr_dialog.js),tue_hiddenobjects.remove(),\"tue_go\"==arr_dialog.go_to?(scene++,dialog=0,creation_scene()):go_to(arr_dialog.go_to))}tuesday.addEventListener(\"hidden_objects\",function(e){hidden_objects()}),window.addEventListener(\"resize\",objectsroom_resize,!0);" },"screen_control":{ "name":"画面操作", "text":"画面のクリック又はタップでダイアログを進行します", @@ -884,7 +884,7 @@ },"terrain_map":{ "name":"地図表示", "text":"別のプロックに処理が移行する際、地図とマーカーを表示して現在位置を示す演出が可能です", - "code":"var wmap={startmove_x:null,startmove_y:null,scroll_x:null,scroll_y:null,scale:1};function terrain_map(){clearTimeout(dialog_timeout),arr_dialog=story_json[tue_story][scene].terrain_map,tue_text_view.innerHTML=\"\",tuesday.style.backgroundImage=\"none\";var e=document.createElement(\"div\");e.id=\"tue_world\",e.style=\"height:100%;width:100%;\"+(navigator.userAgent.indexOf(\"Firefox\")>0?\"overflow:hidden;\":\"overflow:auto;\"),e.className=\"tue_html_scene\";var t=document.createElement(\"div\");arr_dialog.scale&&(wmap.scale=arr_dialog.scale),t.id=\"tue_map\",t.className=arr_dialog.className,t.style=arr_dialog.style,t.style.width=arr_dialog.size[0]+\"px\",t.style.height=arr_dialog.size[1]+\"px\",t.style.backgroundRepeat=arr_dialog.repeat?arr_dialog.repeat:\"no-repeat\",arr_dialog.art_align&&(t.style.backgroundPosition=arr_dialog.art_align),arr_dialog.fit&&(t.style.backgroundSize=\"object\"==typeof arr_dialog.fit?arr_dialog.fit[0]+\" \"+arr_dialog.fit[1]:arr_dialog.fit),arr_dialog.color&&(e.style.backgroundColor=art_data(arr_dialog.color)),arr_dialog.art&&art_data(arr_dialog.art).length>0&&(t.style.backgroundImage='url(\"'+art_data(arr_dialog.art)+'\")'),t.style.position=\"relative\",t.style.overflow=\"hidden\",t.style.transformOrigin=\"left top\";for(var o=0;oe.width/e.height?tue_map.style.transform=\"scale(\"+e.height/arr_dialog.size[1]*wmap.scale+\")\":tue_map.style.transform=\"scale(\"+e.width/arr_dialog.size[0]*wmap.scale+\")\",tue_map.style.marginBottom=\"-\"+(e.height+arr_dialog.size[1])+\"px\",tue_map.style.marginRight=\"-\"+(e.width+arr_dialog.size[0])+\"px\",tue_map.style.marginTop=\"0px\",tue_map.style.marginLeft=\"0px\"}}tuesday.addEventListener(\"terrain_map\",function(e){terrain_map()}),window.addEventListener(\"resize\",worldmap_resize,!0);" + "code":"var wmap={startmove_x:null,startmove_y:null,scroll_x:null,scroll_y:null,scale:1};function terrain_map(){clearTimeout(dialog_timeout),arr_dialog=story_json[tue_story][scene].terrain_map,tue_text_view.innerHTML=\"\",tuesday.style.backgroundImage=\"none\";var e=document.createElement(\"div\");e.id=\"tue_world\",e.style=\"height:100%;width:100%;\"+(navigator.userAgent.indexOf(\"Firefox\")>0?\"overflow:hidden;\":\"overflow:auto;\"),e.className=\"tue_html_scene\";var t=document.createElement(\"div\");arr_dialog.scale&&(wmap.scale=arr_dialog.scale),t.id=\"tue_map\",t.className=arr_dialog.className,t.style=arr_dialog.style,t.style.width=arr_dialog.size[0]+\"px\",t.style.height=arr_dialog.size[1]+\"px\",t.style.backgroundRepeat=arr_dialog.repeat?arr_dialog.repeat:\"no-repeat\",arr_dialog.art_align&&(t.style.backgroundPosition=arr_dialog.art_align),arr_dialog.fit&&(t.style.backgroundSize=\"object\"==typeof arr_dialog.fit?arr_dialog.fit[0]+\" \"+arr_dialog.fit[1]:arr_dialog.fit),arr_dialog.color&&(e.style.backgroundColor=art_data(arr_dialog.color)),arr_dialog.art&&art_data(arr_dialog.art).length>0&&(t.style.backgroundImage='url(\"'+art_data(arr_dialog.art)+'\")'),t.style.position=\"relative\",t.style.overflow=\"hidden\",t.style.transformOrigin=\"left top\";for(var o=0;oe.width/e.height?tue_map.style.transform=\"scale(\"+e.height/arr_dialog.size[1]*wmap.scale+\")\":tue_map.style.transform=\"scale(\"+e.width/arr_dialog.size[0]*wmap.scale+\")\",tue_map.style.marginBottom=\"-\"+(e.height+arr_dialog.size[1])+\"px\",tue_map.style.marginRight=\"-\"+(e.width+arr_dialog.size[0])+\"px\",tue_map.style.marginTop=\"0px\",tue_map.style.marginLeft=\"0px\"}}tuesday.addEventListener(\"terrain_map\",function(e){terrain_map()}),window.addEventListener(\"resize\",worldmap_resize,!0);" },"touch_swipe":{ "name":"タッチスワイプ操作", "text":"スワイプ操作でダイアログを進行", @@ -1627,7 +1627,7 @@ x.classList.add("toast_anim"); } function about(){ - var html="

ビジュアルノベル制作エンジン「Tuesday JS」


公開バージョン 50

" + var html="

ビジュアルノベル制作エンジン「Tuesday JS」


公開バージョン 51

" +"
"+arr_l[arr_n].objects[i].go_to[0]+" / "+arr_l[arr_n].objects[i].go_to[1]+" / "+arr_l[arr_n].objects[i].go_to[2]+"
Abrir enlace
"+arr_l[arr_n].objects[i].go_to[0]+" / "+arr_l[arr_n].objects[i].go_to[1]+" / "+arr_l[arr_n].objects[i].go_to[2]+"
Abrir enlace
Nombre
Tamaño de altura" +"" - +"
Sonido
Type" + +"
Sonido" +"
" +"" +"" @@ -1652,9 +1652,9 @@ +'
メールアドレス:tuesdayjsengine@gmail.com
ウェブサイト:kirilllive.github.io/tuesday-js
チュートリアル:kirilllive.github.io/tuesday-js/doc_editor
' +'' +'

'+texts.tutorials[10].en+'

' - +'' - +'' - +'

'+texts.tutorials[17].en+'

' +// +'' +// +'' +// +'

'+texts.tutorials[17].en+'

' +"" modal_window("open",html); } @@ -1926,7 +1926,7 @@ files=['audio/mpeg']; for(f=0;f
'+project_files[f][0]+((project_files[f][0].length<4)?' ⨻ warning short name':'')+'
'}}} }else if(files=='video'){ - files=['video/mp4']; + files=['video/mp4','video/webm','video/ogg']; for(f=0;f
'+project_files[f][0]+'
'}}} }else if(files=='js'){ files=['javascript']; @@ -2432,17 +2432,23 @@ function ho_new(s){ if(!s){ var a=story_script[scen_data[0]][scen_data[1]][arr_n],p=[(ho_canvas.offsetWidth-ho_room.offsetWidth)/2,(ho_canvas.offsetHeight-ho_room.offsetHeight)/2]; - if(arr_n=="hidden_objects"){a.objects.push({"position":[(ho_preview.scrollLeft-p[0])+(ho_preview.clientWidth/2),(ho_preview.scrollTop-p[1])+(ho_preview.clientHeight/2)],"size":[128,128],"art":"","fit":"contain","name":""}); - file_catalog('','img','hois_art'+(a.objects.length-1),'','story_script[scen_data[0]][scen_data[1]].'+arr_n+'.objects['+(a.objects.length-1)+'].art');} - else{ + if(arr_n=="hidden_objects"){ + tool_update='ho_new(1);'; + a.objects.push({"position":[(ho_preview.scrollLeft-p[0])+(ho_preview.clientWidth/2),(ho_preview.scrollTop-p[1])+(ho_preview.clientHeight/2)],"size":[128,128],"art":"","fit":"contain","name":""}); + file_catalog('','img','hois_art'+(a.objects.length-1),'','story_script[scen_data[0]][scen_data[1]].'+arr_n+'.objects['+(a.objects.length-1)+'].art'); + } else { let c=a.objects[a.objects.length-1]; if(c){c=JSON.parse(JSON.stringify(c));c.go_to="tue_go";c.position=[(ho_preview.scrollLeft-p[0])+(ho_preview.clientWidth/2),(ho_preview.scrollTop-p[1])+(ho_preview.clientHeight/2)];c.name="label";a.objects.push(c);} - else {a.objects.push({"go_to":"tue_go","position":[(ho_preview.scrollLeft-p[0])+(ho_preview.clientWidth/2),(ho_preview.scrollTop-p[1])+(ho_preview.clientHeight/2)],"size":[128,128],"art":"","fit":"contain","name":"label","indent_text":"8px"});}} - tool_update='ho_new(1)';ho_update(); - }else if(s==1){ - var a=story_script[scen_data[0]][scen_data[1]][arr_n].objects,image = new Image(); - image.src=open_file(languare_data(a[a.length-1].art)); - image.onload=function(){a[a.length-1].size=[this.width,this.height];tool_update='ho_update()';ho_update();} + else {a.objects.push({"go_to":"tue_go","position":[(ho_preview.scrollLeft-p[0])+(ho_preview.clientWidth/2),(ho_preview.scrollTop-p[1])+(ho_preview.clientHeight/2)],"size":[128,128],"art":"","fit":"contain","name":"label","indent_text":"8px"});} + } + ho_update(); + }else if(s==1){tool_update='ho_update();'; + var a=story_script[scen_data[0]][scen_data[1]][arr_n].objects; + if(a[a.length-1].art.length>0){ + let image = new Image(); + image.src=open_file(languare_data(a[a.length-1].art)); + image.onload=function(){a[a.length-1].size=[this.width,this.height]; ho_update();} + } } } function ho_update(){ @@ -2516,7 +2522,7 @@ +"
"+ ((arr_l[arr_n].objects[i].name&&arr_l[arr_n].objects[i].name[languare])?arr_l[arr_n].objects[i].name[languare]:"")+"
" +"" +"" - +((arr_n=="terrain_map")?""+((!arr_l[arr_n].objects[i].url&&typeof arr_l[arr_n].objects[i].go_to==="object")?"":((arr_l[arr_n].objects[i].url)?"":""))+((arr_l[arr_n].objects[i].url)?"":""):"") + +((arr_n=="terrain_map")?""+((!arr_l[arr_n].objects[i].url&&typeof arr_l[arr_n].objects[i].go_to==="object")?"":((arr_l[arr_n].objects[i].url)?"":""))+((arr_l[arr_n].objects[i].url)?"":""):"") +"" +"" +"" @@ -2526,8 +2532,13 @@ +"" +"" - +"" + if(arr_n=="hidden_objects"){k+="" + +""} + k+="" +"" +"" @@ -5855,6 +5866,7 @@ if(state_num>0){back_up.splice(0,state_num);state_num=0;} back_up.unshift(JSON.stringify(story_script)); if(back_up.length>10){back_up.pop();} + window.addEventListener("beforeunload",(e)=>{ if(back_up.length>1){e.preventDefault();e.returnValue=""}}); } function state_back(n){ state_num+=n @@ -5929,6 +5941,7 @@ } return output.replace(/\n/gm,'
').replace(/\t/g,' ').replace(/^\s+|\s{2,}/g,(a)=>new Array(a.length+1).join(' ')); //let symbol_tab=Array(4).join('\u00a0'); //.replace(/\t/g,document.createTextNode('\u00a0')) } + diff --git a/translate/ru_tuesday_visual.html b/translate/ru_tuesday_visual.html index 342a461..0c81ab2 100644 --- a/translate/ru_tuesday_visual.html +++ b/translate/ru_tuesday_visual.html @@ -868,7 +868,7 @@ },"hidden_objects":{ "name":"Поиск предметов", "text":"игровая механика где игрок должен найти в сцене элементы из списка.", - "code":"var ho={startmove_x:null,startmove_y:null,scroll_x:null,scroll_y:null,scale:1};function hidden_objects(){clearTimeout(dialog_timeout),arr_dialog=story_json[tue_story][scene].hidden_objects,tue_text_view.innerHTML=\"\",tuesday.style.backgroundImage=\"none\",findobjects=story_json.parameters.hidden_objects.label.items>arr_dialog.objects.length?arr_dialog.objects.length:story_json.parameters.hidden_objects.label.items;var e=document.createElement(\"div\");e.id=\"tue_hiddenobjects\",e.style=\"height:100%;width:100%;\"+(navigator.userAgent.indexOf(\"Firefox\")>0?\"overflow:hidden;\":\"overflow:auto;\");var t=document.createElement(\"div\"),s=Math.round(arr_dialog.objects.length/findobjects),l=0,o=0;findobjects1&&(a=l+Math.round(Math.random()*(s-1))),arr_dialog.objects.length-le.width/e.height?tue_objectsroom.style.transform=\"scale(\"+e.height/arr_dialog.size[1]*ho.scale+\")\":tue_objectsroom.style.transform=\"scale(\"+e.width/arr_dialog.size[0]*ho.scale+\")\",tue_objectsroom.style.marginBottom=\"-\"+(e.height+arr_dialog.size[1])+\"px\",tue_objectsroom.style.marginRight=\"-\"+(e.width+arr_dialog.size[0])+\"px\",tue_objectsroom.style.marginTop=\"0px\",tue_objectsroom.style.marginLeft=\"0px\"}}function find_item(id){findobjects--,story_json.parameters.hidden_objects.label_find.no_del_label?(id=document.getElementById(id),story_json.parameters.hidden_objects.label_find.className&&(id.className=story_json.parameters.hidden_objects.label_find.className),story_json.parameters.hidden_objects.label_find.style&&(id.className=story_json.parameters.hidden_objects.label_find.style),story_json.parameters.hidden_objects.label_find.color&&(id.style.backgroundColor=story_json.parameters.hidden_objects.label_find.color),story_json.parameters.hidden_objects.label_find.color_text&&(id.style.color=story_json.parameters.hidden_objects.label_find.color_text)):document.getElementById(id).remove(),findobjects<=0&&(arr_dialog.js&&eval(arr_dialog.js),tue_hiddenobjects.remove(),\"tue_go\"==arr_dialog.go_to?(scene++,dialog=0,creation_scene()):go_to(arr_dialog.go_to))}tuesday.addEventListener(\"hidden_objects\",function(e){hidden_objects()}),window.addEventListener(\"resize\",objectsroom_resize,!0);" + "code":"var ho={startmove_x:null,startmove_y:null,scroll_x:null,scroll_y:null,scale:1};function hidden_objects(){clearTimeout(dialog_timeout),arr_dialog=story_json[tue_story][scene].hidden_objects,tue_text_view.innerHTML=\"\",tuesday.style.backgroundImage=\"none\";let e=document.createElement(\"div\"),t=[];arr_dialog.objects.forEach((s,l)=>{if(s.type){var a=document.createElement(\"div\");s.className&&(a.className=s.className),a.style=s.style,a.style.width=s.size[0]+\"px\",a.style.height=s.size[1]+\"px\",a.style.backgroundRepeat=\"no-repeat\",a.style.backgroundPosition=\"center\",a.style.backgroundSize=s.fit,a.style.backgroundImage='url(\"'+art_data(s.art)+'\")',a.style.position=\"absolute\",a.style.transformOrigin=\"top left\",a.style.transform=\"rotate(\"+s.angle+\"deg)\",a.style.top=s.position[1]+\"px\",a.style.left=s.position[0]+\"px\",a.style.zIndex=l,e.appendChild(a)}else s.index=l,t.push(s)}),findobjects=story_json.parameters.hidden_objects.label.items>t.length?t.length:story_json.parameters.hidden_objects.label.items;var s=document.createElement(\"div\");s.id=\"tue_hiddenobjects\",s.style=\"height:100%;width:100%;\"+(navigator.userAgent.indexOf(\"Firefox\")>0?\"overflow:hidden;\":\"overflow:auto;\");var l=Math.round(t.length/findobjects),a=0,o=0;findobjects1&&(r=a+Math.round(Math.random()*(l-1))),t.length-ae.width/e.height?tue_objectsroom.style.transform=\"scale(\"+e.height/arr_dialog.size[1]*ho.scale+\")\":tue_objectsroom.style.transform=\"scale(\"+e.width/arr_dialog.size[0]*ho.scale+\")\",tue_objectsroom.style.marginBottom=\"-\"+(e.height+arr_dialog.size[1])+\"px\",tue_objectsroom.style.marginRight=\"-\"+(e.width+arr_dialog.size[0])+\"px\",tue_objectsroom.style.marginTop=\"0px\",tue_objectsroom.style.marginLeft=\"0px\"}}function find_item(id){findobjects--,story_json.parameters.hidden_objects.label_find.no_del_label?(id=document.getElementById(id),story_json.parameters.hidden_objects.label_find.className&&(id.className=story_json.parameters.hidden_objects.label_find.className),story_json.parameters.hidden_objects.label_find.style&&(id.className=story_json.parameters.hidden_objects.label_find.style),story_json.parameters.hidden_objects.label_find.color&&(id.style.backgroundColor=story_json.parameters.hidden_objects.label_find.color),story_json.parameters.hidden_objects.label_find.color_text&&(id.style.color=story_json.parameters.hidden_objects.label_find.color_text)):document.getElementById(id).remove(),findobjects<=0&&(arr_dialog.js&&eval(arr_dialog.js),tue_hiddenobjects.remove(),\"tue_go\"==arr_dialog.go_to?(scene++,dialog=0,creation_scene()):go_to(arr_dialog.go_to))}tuesday.addEventListener(\"hidden_objects\",function(e){hidden_objects()}),window.addEventListener(\"resize\",objectsroom_resize,!0);" },"screen_control":{ "name":"Нажатие на экран", "text":"переключение диалогов по клику или нажатию на экран.", @@ -884,7 +884,7 @@ },"terrain_map":{ "name":"Карта местности", "text":"локация с отметками на другие блоки сюжета.", - "code":"var wmap={startmove_x:null,startmove_y:null,scroll_x:null,scroll_y:null,scale:1};function terrain_map(){clearTimeout(dialog_timeout),arr_dialog=story_json[tue_story][scene].terrain_map,tue_text_view.innerHTML=\"\",tuesday.style.backgroundImage=\"none\";var e=document.createElement(\"div\");e.id=\"tue_world\",e.style=\"height:100%;width:100%;\"+(navigator.userAgent.indexOf(\"Firefox\")>0?\"overflow:hidden;\":\"overflow:auto;\"),e.className=\"tue_html_scene\";var t=document.createElement(\"div\");arr_dialog.scale&&(wmap.scale=arr_dialog.scale),t.id=\"tue_map\",t.className=arr_dialog.className,t.style=arr_dialog.style,t.style.width=arr_dialog.size[0]+\"px\",t.style.height=arr_dialog.size[1]+\"px\",t.style.backgroundRepeat=arr_dialog.repeat?arr_dialog.repeat:\"no-repeat\",arr_dialog.art_align&&(t.style.backgroundPosition=arr_dialog.art_align),arr_dialog.fit&&(t.style.backgroundSize=\"object\"==typeof arr_dialog.fit?arr_dialog.fit[0]+\" \"+arr_dialog.fit[1]:arr_dialog.fit),arr_dialog.color&&(e.style.backgroundColor=art_data(arr_dialog.color)),arr_dialog.art&&art_data(arr_dialog.art).length>0&&(t.style.backgroundImage='url(\"'+art_data(arr_dialog.art)+'\")'),t.style.position=\"relative\",t.style.overflow=\"hidden\",t.style.transformOrigin=\"left top\";for(var o=0;oe.width/e.height?tue_map.style.transform=\"scale(\"+e.height/arr_dialog.size[1]*wmap.scale+\")\":tue_map.style.transform=\"scale(\"+e.width/arr_dialog.size[0]*wmap.scale+\")\",tue_map.style.marginBottom=\"-\"+(e.height+arr_dialog.size[1])+\"px\",tue_map.style.marginRight=\"-\"+(e.width+arr_dialog.size[0])+\"px\",tue_map.style.marginTop=\"0px\",tue_map.style.marginLeft=\"0px\"}}tuesday.addEventListener(\"terrain_map\",function(e){terrain_map()}),window.addEventListener(\"resize\",worldmap_resize,!0);" + "code":"var wmap={startmove_x:null,startmove_y:null,scroll_x:null,scroll_y:null,scale:1};function terrain_map(){clearTimeout(dialog_timeout),arr_dialog=story_json[tue_story][scene].terrain_map,tue_text_view.innerHTML=\"\",tuesday.style.backgroundImage=\"none\";var e=document.createElement(\"div\");e.id=\"tue_world\",e.style=\"height:100%;width:100%;\"+(navigator.userAgent.indexOf(\"Firefox\")>0?\"overflow:hidden;\":\"overflow:auto;\"),e.className=\"tue_html_scene\";var t=document.createElement(\"div\");arr_dialog.scale&&(wmap.scale=arr_dialog.scale),t.id=\"tue_map\",t.className=arr_dialog.className,t.style=arr_dialog.style,t.style.width=arr_dialog.size[0]+\"px\",t.style.height=arr_dialog.size[1]+\"px\",t.style.backgroundRepeat=arr_dialog.repeat?arr_dialog.repeat:\"no-repeat\",arr_dialog.art_align&&(t.style.backgroundPosition=arr_dialog.art_align),arr_dialog.fit&&(t.style.backgroundSize=\"object\"==typeof arr_dialog.fit?arr_dialog.fit[0]+\" \"+arr_dialog.fit[1]:arr_dialog.fit),arr_dialog.color&&(e.style.backgroundColor=art_data(arr_dialog.color)),arr_dialog.art&&art_data(arr_dialog.art).length>0&&(t.style.backgroundImage='url(\"'+art_data(arr_dialog.art)+'\")'),t.style.position=\"relative\",t.style.overflow=\"hidden\",t.style.transformOrigin=\"left top\";for(var o=0;oe.width/e.height?tue_map.style.transform=\"scale(\"+e.height/arr_dialog.size[1]*wmap.scale+\")\":tue_map.style.transform=\"scale(\"+e.width/arr_dialog.size[0]*wmap.scale+\")\",tue_map.style.marginBottom=\"-\"+(e.height+arr_dialog.size[1])+\"px\",tue_map.style.marginRight=\"-\"+(e.width+arr_dialog.size[0])+\"px\",tue_map.style.marginTop=\"0px\",tue_map.style.marginLeft=\"0px\"}}tuesday.addEventListener(\"terrain_map\",function(e){terrain_map()}),window.addEventListener(\"resize\",worldmap_resize,!0);" },"touch_swipe":{ "name":"Свайп-жест", "text":"переключение диалогов используя жест смахивания (свайп) влево или право", @@ -1627,7 +1627,7 @@ x.classList.add("toast_anim"); } function about(){ - var html="

Tuesday JS Движок визуальных новелл


Релиз: 50

" + var html="

Tuesday JS Движок визуальных новелл


Релиз: 51

" +"
"+arr_l[arr_n].objects[i].go_to[0]+" / "+arr_l[arr_n].objects[i].go_to[1]+" / "+arr_l[arr_n].objects[i].go_to[2]+"
リンクの開き方
"+arr_l[arr_n].objects[i].go_to[0]+" / "+arr_l[arr_n].objects[i].go_to[1]+" / "+arr_l[arr_n].objects[i].go_to[2]+"
リンクの開き方
ネーム
縦幅" +"" - +"
音量
Type" + +"
音量" +"
" +"" +"" @@ -1652,9 +1652,9 @@ +'
Почта:tuesdayjsengine@gmail.com
Сайт:kirilllive.github.io/tuesday-js
Руководство:kirilllive.github.io/tuesday-js/doc_editor
' +'' +'

'+texts.tutorials[10].en+'

' - +'' - +'' - +'

'+texts.tutorials[17].en+'

' +// +'' +// +'' +// +'

'+texts.tutorials[17].en+'

' +"" modal_window("open",html); } @@ -1926,7 +1926,7 @@ files=['audio/mpeg']; for(f=0;f
'+project_files[f][0]+((project_files[f][0].length<4)?' ⨻ warning short name':'')+'
'}}} }else if(files=='video'){ - files=['video/mp4']; + files=['video/mp4','video/webm','video/ogg']; for(f=0;f
'+project_files[f][0]+'
'}}} }else if(files=='js'){ files=['javascript']; @@ -2432,17 +2432,23 @@ function ho_new(s){ if(!s){ var a=story_script[scen_data[0]][scen_data[1]][arr_n],p=[(ho_canvas.offsetWidth-ho_room.offsetWidth)/2,(ho_canvas.offsetHeight-ho_room.offsetHeight)/2]; - if(arr_n=="hidden_objects"){a.objects.push({"position":[(ho_preview.scrollLeft-p[0])+(ho_preview.clientWidth/2),(ho_preview.scrollTop-p[1])+(ho_preview.clientHeight/2)],"size":[128,128],"art":"","fit":"contain","name":""}); - file_catalog('','img','hois_art'+(a.objects.length-1),'','story_script[scen_data[0]][scen_data[1]].'+arr_n+'.objects['+(a.objects.length-1)+'].art');} - else{ + if(arr_n=="hidden_objects"){ + tool_update='ho_new(1);'; + a.objects.push({"position":[(ho_preview.scrollLeft-p[0])+(ho_preview.clientWidth/2),(ho_preview.scrollTop-p[1])+(ho_preview.clientHeight/2)],"size":[128,128],"art":"","fit":"contain","name":""}); + file_catalog('','img','hois_art'+(a.objects.length-1),'','story_script[scen_data[0]][scen_data[1]].'+arr_n+'.objects['+(a.objects.length-1)+'].art'); + } else { let c=a.objects[a.objects.length-1]; if(c){c=JSON.parse(JSON.stringify(c));c.go_to="tue_go";c.position=[(ho_preview.scrollLeft-p[0])+(ho_preview.clientWidth/2),(ho_preview.scrollTop-p[1])+(ho_preview.clientHeight/2)];c.name="label";a.objects.push(c);} - else {a.objects.push({"go_to":"tue_go","position":[(ho_preview.scrollLeft-p[0])+(ho_preview.clientWidth/2),(ho_preview.scrollTop-p[1])+(ho_preview.clientHeight/2)],"size":[128,128],"art":"","fit":"contain","name":"label","indent_text":"8px"});}} - tool_update='ho_new(1)';ho_update(); - }else if(s==1){ - var a=story_script[scen_data[0]][scen_data[1]][arr_n].objects,image = new Image(); - image.src=open_file(languare_data(a[a.length-1].art)); - image.onload=function(){a[a.length-1].size=[this.width,this.height];tool_update='ho_update()';ho_update();} + else {a.objects.push({"go_to":"tue_go","position":[(ho_preview.scrollLeft-p[0])+(ho_preview.clientWidth/2),(ho_preview.scrollTop-p[1])+(ho_preview.clientHeight/2)],"size":[128,128],"art":"","fit":"contain","name":"label","indent_text":"8px"});} + } + ho_update(); + }else if(s==1){tool_update='ho_update();'; + var a=story_script[scen_data[0]][scen_data[1]][arr_n].objects; + if(a[a.length-1].art.length>0){ + let image = new Image(); + image.src=open_file(languare_data(a[a.length-1].art)); + image.onload=function(){a[a.length-1].size=[this.width,this.height]; ho_update();} + } } } function ho_update(){ @@ -2516,7 +2522,7 @@ +"
"+ ((arr_l[arr_n].objects[i].name&&arr_l[arr_n].objects[i].name[languare])?arr_l[arr_n].objects[i].name[languare]:"")+"
" +"" +"" - +((arr_n=="terrain_map")?""+((!arr_l[arr_n].objects[i].url&&typeof arr_l[arr_n].objects[i].go_to==="object")?"":((arr_l[arr_n].objects[i].url)?"":""))+((arr_l[arr_n].objects[i].url)?"":""):"") + +((arr_n=="terrain_map")?""+((!arr_l[arr_n].objects[i].url&&typeof arr_l[arr_n].objects[i].go_to==="object")?"":((arr_l[arr_n].objects[i].url)?"":""))+((arr_l[arr_n].objects[i].url)?"":""):"") +"" +"" +"" @@ -2526,8 +2532,13 @@ +"" +"" - +"" + if(arr_n=="hidden_objects"){k+="" + +""} + k+="" +"" +"" @@ -5855,6 +5866,7 @@ if(state_num>0){back_up.splice(0,state_num);state_num=0;} back_up.unshift(JSON.stringify(story_script)); if(back_up.length>10){back_up.pop();} + window.addEventListener("beforeunload",(e)=>{ if(back_up.length>1){e.preventDefault();e.returnValue=""}}); } function state_back(n){ state_num+=n @@ -5929,6 +5941,7 @@ } return output.replace(/\n/gm,'
').replace(/\t/g,' ').replace(/^\s+|\s{2,}/g,(a)=>new Array(a.length+1).join(' ')); //let symbol_tab=Array(4).join('\u00a0'); //.replace(/\t/g,document.createTextNode('\u00a0')) } + diff --git a/tuesday_visual.html b/tuesday_visual.html index 798998d..eda8ab6 100755 --- a/tuesday_visual.html +++ b/tuesday_visual.html @@ -884,7 +884,7 @@ },"terrain_map":{ "name":"Terrain map", "text":"location with markers for transition to other plot blocks.", - "code":"var wmap={startmove_x:null,startmove_y:null,scroll_x:null,scroll_y:null,scale:1};function terrain_map(){clearTimeout(dialog_timeout),arr_dialog=story_json[tue_story][scene].terrain_map,tue_text_view.innerHTML=\"\",tuesday.style.backgroundImage=\"none\";var e=document.createElement(\"div\");e.id=\"tue_world\",e.style=\"height:100%;width:100%;\"+(navigator.userAgent.indexOf(\"Firefox\")>0?\"overflow:hidden;\":\"overflow:auto;\"),e.className=\"tue_html_scene\";var t=document.createElement(\"div\");arr_dialog.scale&&(wmap.scale=arr_dialog.scale),t.id=\"tue_map\",t.className=arr_dialog.className,t.style=arr_dialog.style,t.style.width=arr_dialog.size[0]+\"px\",t.style.height=arr_dialog.size[1]+\"px\",t.style.backgroundRepeat=arr_dialog.repeat?arr_dialog.repeat:\"no-repeat\",arr_dialog.art_align&&(t.style.backgroundPosition=arr_dialog.art_align),arr_dialog.fit&&(t.style.backgroundSize=\"object\"==typeof arr_dialog.fit?arr_dialog.fit[0]+\" \"+arr_dialog.fit[1]:arr_dialog.fit),arr_dialog.color&&(e.style.backgroundColor=art_data(arr_dialog.color)),arr_dialog.art&&art_data(arr_dialog.art).length>0&&(t.style.backgroundImage='url(\"'+art_data(arr_dialog.art)+'\")'),t.style.position=\"relative\",t.style.overflow=\"hidden\",t.style.transformOrigin=\"left top\";for(var o=0;oe.width/e.height?tue_map.style.transform=\"scale(\"+e.height/arr_dialog.size[1]*wmap.scale+\")\":tue_map.style.transform=\"scale(\"+e.width/arr_dialog.size[0]*wmap.scale+\")\",tue_map.style.marginBottom=\"-\"+(e.height+arr_dialog.size[1])+\"px\",tue_map.style.marginRight=\"-\"+(e.width+arr_dialog.size[0])+\"px\",tue_map.style.marginTop=\"0px\",tue_map.style.marginLeft=\"0px\"}}tuesday.addEventListener(\"terrain_map\",function(e){terrain_map()}),window.addEventListener(\"resize\",worldmap_resize,!0);" + "code":"var wmap={startmove_x:null,startmove_y:null,scroll_x:null,scroll_y:null,scale:1};function terrain_map(){clearTimeout(dialog_timeout),arr_dialog=story_json[tue_story][scene].terrain_map,tue_text_view.innerHTML=\"\",tuesday.style.backgroundImage=\"none\";var e=document.createElement(\"div\");e.id=\"tue_world\",e.style=\"height:100%;width:100%;\"+(navigator.userAgent.indexOf(\"Firefox\")>0?\"overflow:hidden;\":\"overflow:auto;\"),e.className=\"tue_html_scene\";var t=document.createElement(\"div\");arr_dialog.scale&&(wmap.scale=arr_dialog.scale),t.id=\"tue_map\",t.className=arr_dialog.className,t.style=arr_dialog.style,t.style.width=arr_dialog.size[0]+\"px\",t.style.height=arr_dialog.size[1]+\"px\",t.style.backgroundRepeat=arr_dialog.repeat?arr_dialog.repeat:\"no-repeat\",arr_dialog.art_align&&(t.style.backgroundPosition=arr_dialog.art_align),arr_dialog.fit&&(t.style.backgroundSize=\"object\"==typeof arr_dialog.fit?arr_dialog.fit[0]+\" \"+arr_dialog.fit[1]:arr_dialog.fit),arr_dialog.color&&(e.style.backgroundColor=art_data(arr_dialog.color)),arr_dialog.art&&art_data(arr_dialog.art).length>0&&(t.style.backgroundImage='url(\"'+art_data(arr_dialog.art)+'\")'),t.style.position=\"relative\",t.style.overflow=\"hidden\",t.style.transformOrigin=\"left top\";for(var o=0;oe.width/e.height?tue_map.style.transform=\"scale(\"+e.height/arr_dialog.size[1]*wmap.scale+\")\":tue_map.style.transform=\"scale(\"+e.width/arr_dialog.size[0]*wmap.scale+\")\",tue_map.style.marginBottom=\"-\"+(e.height+arr_dialog.size[1])+\"px\",tue_map.style.marginRight=\"-\"+(e.width+arr_dialog.size[0])+\"px\",tue_map.style.marginTop=\"0px\",tue_map.style.marginLeft=\"0px\"}}tuesday.addEventListener(\"terrain_map\",function(e){terrain_map()}),window.addEventListener(\"resize\",worldmap_resize,!0);" },"touch_swipe":{ "name":"Touch swipe", "text":"switches dialogue by swiping your finger across the touchscreen", @@ -1926,7 +1926,7 @@ files=['audio/mpeg']; for(f=0;f
"+arr_l[arr_n].objects[i].go_to[0]+" / "+arr_l[arr_n].objects[i].go_to[1]+" / "+arr_l[arr_n].objects[i].go_to[2]+"
Открыть ссылку
"+arr_l[arr_n].objects[i].go_to[0]+" / "+arr_l[arr_n].objects[i].go_to[1]+" / "+arr_l[arr_n].objects[i].go_to[2]+"
Открыть ссылку
Название
Высота" +"" - +"
Звук
Type" + +"
Звук" +"
'+project_files[f][0]+((project_files[f][0].length<4)?' ⨻ warning short name':'')+'
'}}} }else if(files=='video'){ - files=['video/mp4']; + files=['video/mp4','video/webm','video/ogg']; for(f=0;f
'+project_files[f][0]+'
'}}} }else if(files=='js'){ files=['javascript']; @@ -2522,7 +2522,7 @@ +"
"+ ((arr_l[arr_n].objects[i].name&&arr_l[arr_n].objects[i].name[languare])?arr_l[arr_n].objects[i].name[languare]:"")+"
" +"" +"" - +((arr_n=="terrain_map")?""+((!arr_l[arr_n].objects[i].url&&typeof arr_l[arr_n].objects[i].go_to==="object")?"":((arr_l[arr_n].objects[i].url)?"":""))+((arr_l[arr_n].objects[i].url)?"":""):"") + +((arr_n=="terrain_map")?""+((!arr_l[arr_n].objects[i].url&&typeof arr_l[arr_n].objects[i].go_to==="object")?"":((arr_l[arr_n].objects[i].url)?"":""))+((arr_l[arr_n].objects[i].url)?"":""):"") +"" +"" +"" @@ -2532,13 +2532,13 @@ +"" +"" + if(arr_n=="hidden_objects"){k+="" +"" - +"" + +""} + k+="" +"" +""
"+arr_l[arr_n].objects[i].go_to[0]+" / "+arr_l[arr_n].objects[i].go_to[1]+" / "+arr_l[arr_n].objects[i].go_to[2]+"
Open link
"+arr_l[arr_n].objects[i].go_to[0]+" / "+arr_l[arr_n].objects[i].go_to[1]+" / "+arr_l[arr_n].objects[i].go_to[2]+"
Open link
Name
Height size" +"" - +"
Type" +"
Sound
Sound" +"