Skip to content

Commit

Permalink
Update tuesday_visual.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirilllive committed Dec 7, 2023
1 parent d9f46ef commit b54ea32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tuesday_visual.html
Original file line number Diff line number Diff line change
Expand Up @@ -1863,7 +1863,7 @@
for(f=0;f<project_files.length;f++){for(t=0;t<files.length;t++){if(project_files[f][0].includes(files[t])){code+='<tr><td class="add_el add_file" title="'+project_files[f][0]+'" style="height:64px;padding:4px;border-bottom:1px solid var(--cb);" onclick="'+((a.length>1)?a+'.src=\''+project_files[f][1]+'\';':'')+' '+arr+'=\''+project_files[f][0]+'\';'+((area.length>1)?area+'.value=\''+project_files[f][0]+'\';':'')+((preview.length>1)?preview+'.style.backgroundImage=\'url('+project_files[f][1]+')\';':((preview==1)?'scen_edit_update(true);':''))+'menu_add.style.visibility=\'hidden\';'+((tool_update)?tool_update+';':'')+'"><table style="height:64px;"><tbody><tr><td width="64px" height="64px" style=\'content-visibility:auto;background-image:url(\"'+project_files[f][1]+'\");background-size:contain;background-repeat:no-repeat;background-position:center;\'></td><td style="padding:0px 8px;word-break:break-all;">'+project_files[f][0]+'</td></tr></tbody></table></td></tr>'}}}
}else if(files=='audio'){
files=['audio/mpeg'];
for(f=0;f<project_files.length;f++){for(t=0;t< files.length;t++){if(project_files[f][2].includes(files[t])){code+='<tr><td class="add_el add_file" title="'+project_files[f][0]+' '+((project_files[f][0].length<4)?'(warning: short name)':'')+'" style="height:64px;padding:4px;border-bottom:1px solid var(--cb);" onclick="var n='+((id!='files_auio')?'add_audio(\''+project_files[f][0]+'\')':'\''+project_files[f][0]+'\'')+';'+arr+'=n;'+area+'.value=n;menu_add.style.visibility=\'hidden\';audio_preplay.currentTime=0;audio_preplay.pause();'+((preview=='update')?'update_novel();':'')+'"><table style="height:64px;"><tbody><tr><td width="64px" height="64px" class="icon_m icon_audio_play" onclick="preplay_audio(\''+project_files[f][0]+'\');event.stopPropagation();"></td><td style="padding:0px 8px;word-break:break-all;">'+((project_files[f][0].length<4)?'<span style="font-size:14px;">⨻ </span>':'')+project_files[f][0]+'</td></tr></tbody></table></td></tr>'}}}
for(f=0;f<project_files.length;f++){for(t=0;t< files.length;t++){if(project_files[f][2].includes(files[t])){code+='<tr><td class="add_el add_file" title="'+project_files[f][0]+'" style="height:64px;padding:4px;border-bottom:1px solid var(--cb);" onclick="var n='+((id!='files_auio')?'add_audio(\''+project_files[f][0]+'\')':'\''+project_files[f][0]+'\'')+';'+arr+'=n;'+area+'.value=n;menu_add.style.visibility=\'hidden\';audio_preplay.currentTime=0;audio_preplay.pause();'+((preview=='update')?'update_novel();':'')+'"><table style="height:64px;"><tbody><tr><td width="64px" height="64px" class="icon_m icon_audio_play" onclick="preplay_audio(\''+project_files[f][0]+'\');event.stopPropagation();"></td><td style="padding:0px 8px;word-break:break-all;">'+project_files[f][0]+((project_files[f][0].length<4)?' ⨻ warning short name':'')+'</td></tr></tbody></table></td></tr>'}}}
}else if(files=='video'){
files=['video/mp4'];
for(f=0;f<project_files.length;f++){for(t=0;t< files.length;t++){if(project_files[f][2].includes(files[t])){code+='<tr><td class="add_el add_file" title="'+project_files[f][0]+'" style="height:64px;padding:4px;border-bottom:1px solid var(--cb);" onclick="'+arr+'=\''+project_files[f][0]+'\';'+area+'.value=\''+project_files[f][0]+'\';menu_add.style.visibility=\'hidden\';'+preview+'.innerHTML=preview_video(\''+project_files[f][0]+'\');"><table style="height:64px;"><tbody><tr><td width="40px" height="40px" class="icon_m icon_video"></td><td style="padding:0px 8px;word-break:break-all;">'+project_files[f][0]+'</td></tr></tbody></table></td></tr>'}}}
Expand Down Expand Up @@ -1916,7 +1916,7 @@
+'<tr><td class="add_el" style="border-bottom:1px solid var(--cb);" onclick="dialog_add();arr_l=arr_l[arr_n];arr_n=\'choice\';element_to();menu_add.style.visibility=\'hidden\';"><table><tbody><tr><td width="40px" height="26px" class="icon_m icon_choice"></td><td>Choice</td></tr></tbody></table></td></tr>'
+'<tr><td class="add_el" style="border-bottom:1px solid var(--cb);" onclick="dialog_add();arr_l=arr_l[arr_n];arr_n=\'video\';element_to();dialog_video_edit();"><table><tbody><tr><td width="40px" height="26px" class="icon_m icon_video"></td><td>Video</td></tr></tbody></table></td></tr>'
+'<tr><td class="add_el" style="border-bottom:1px solid var(--cb);" onclick="dialog_add();arr_l=arr_l[arr_n];arr_n=\'sound_stop\';element_to();dialog_audio_edit(\''+id+'\');"><table><tbody><tr><td width="40px" height="26px" class="icon_m icon_audio_off"></td><td>Stop sound</td></tr></tbody></table></td></tr>'
+'<tr><td class="add_el" style="border-bottom:1px solid var(--cb);" onclick="dialog_add();arr_l=arr_l[arr_n];arr_n=\'sound\';element_to();dialog_audio_edit(\''+id+'\');"><table><tbody><tr><td width="40px" height="26px" class="icon_m icon_audio_play"></td><td>Play sound</td></tr></tbody></table></td></tr>'
+'<tr><td class="add_el" style="border-bottom:1px solid var(--cb);" onclick="dialog_add();arr_l=arr_l[arr_n];arr_n=\'sound\';element_to();dialog_audio_edit(\''+id+'\');"><table><tbody><tr><td width="40px" height="26px" class="icon_m icon_audio_play"></td><td>Play sound'+((story_script.parameters.launch_story==scen_data[0]&&scen_data[1]==0&& arr_l.length<1)?' ⨻ warning blocks':'')+'</td></tr></tbody></table></td></tr>'
+'<tr><td class="add_el" style="border-bottom:1px solid var(--cb);" onclick="dialog_add();arr_l=arr_l[arr_n];arr_n=\'timer\';element_to();state_save();menu_add.style.visibility=\'hidden\';"><table><tbody><tr><td width="40px" height="26px" class="icon_m icon_timer"></td><td>Timer</td></tr></tbody></table></td></tr>'
+'<tr><td class="add_el" style="border-bottom:1px solid var(--cb);" onclick=\' '+((story_script.parameters.variables&&Object.keys(story_script.parameters.variables).length>0)?'dialog_add();arr_l=arr_l[arr_n];arr_n="variables";element_to();':'setup();set_menu(4);')+' menu_add.style.visibility="hidden";\'><table><tbody><tr><td width="40px" height="26px" class="icon_m icon_var"></td><td>Variables</td></tr></tbody></table></td></tr>'
+'<tr><td class="add_el" style="border-bottom:1px solid var(--cb);" onclick=\'dialog_add();arr_l=arr_l[arr_n];arr_n="go_to";element_to();state_save();menu_add.style.visibility="hidden";\'><table><tbody><tr><td width="40px" height="26px" class="icon_m icon_goto"></td><td>Go to</td></tr></tbody></table></td></tr>'
Expand All @@ -1941,7 +1941,7 @@
+((arr_l.choice)?'':'<tr><td class="add_el" style="border-bottom:1px solid var(--cb);" onclick="arr_n=\'choice\';element_to();menu_add.style.visibility=\'hidden\';"><table><tbody><tr><td width="40px" height="26px" class="icon_m icon_choice"></td><td>Choice</td></tr></tbody></table></td></tr>')
+((arr_l.video)?'':'<tr><td class="add_el" style="border-bottom:1px solid var(--cb);" onclick=\'arr_n="video";element_to();dialog_video_edit();\'><table><tbody><tr><td width="40px" height="26px" class="icon_m icon_video"></td><td>Video</td></tr></tbody></table></td></tr>')
+((arr_l.sound_stop)?'':'<tr><td class="add_el" style="border-bottom:1px solid var(--cb);" onclick=\'arr_n="sound_stop";element_to();dialog_audio_edit("'+id+'");\'><table><tbody><tr><td width="40px" height="26px" class="icon_m icon_audio_off"></td><td>Stop sound</td></tr></tbody></table></td></tr>')
+((arr_l.sound)?'':'<tr><td class="add_el" style="border-bottom:1px solid var(--cb);" onclick=\'arr_n="sound";element_to();dialog_audio_edit("'+id+'");\'><table><tbody><tr><td width="40px" height="26px" class="icon_m icon_audio_play"></td><td>Play sound</td></tr></tbody></table></td></tr>')
+((arr_l.sound)?'':'<tr><td class="add_el" style="border-bottom:1px solid var(--cb);" onclick=\'arr_n="sound";element_to();dialog_audio_edit("'+id+'");\'><table><tbody><tr><td width="40px" height="26px" class="icon_m icon_audio_play"></td><td>Play sound'+((story_script.parameters.launch_story==scen_data[0]&&scen_data[1]==0&&scen_data[2]==1)?' ⨻ warning blocks':'')+'</td></tr></tbody></table></td></tr>')
+((arr_l.timer)?'':'<tr><td class="add_el" style="border-bottom:1px solid var(--cb);" onclick="arr_n=\'timer\';element_to();state_save();menu_add.style.visibility=\'hidden\';"><table><tbody><tr><td width="40px" height="26px" class="icon_m icon_timer"></td><td>Timer</td></tr></tbody></table></td></tr>')
+((arr_l.variables)?'':'<tr><td class="add_el" style="border-bottom:1px solid var(--cb);" onclick=\' '+((story_script.parameters.variables&&Object.keys(story_script.parameters.variables).length>0)?'arr_n="variables";element_to();':'setup();set_menu(4);')+' menu_add.style.visibility="hidden";\'><table><tbody><tr><td width="40px" height="26px" class="icon_m icon_var"></td><td>Variables</td></tr></tbody></table></td></tr>')
+((arr_l.go_to)?'':'<tr><td class="add_el" style="border-bottom:1px solid var(--cb);" onclick=\'arr_n="go_to";element_to();state_save();menu_add.style.visibility="hidden";\'><table><tbody><tr><td width="40px" height="26px" class="icon_m icon_goto"></td><td>Go to</td></tr></tbody></table></td></tr>')
Expand Down

0 comments on commit b54ea32

Please sign in to comment.