微件:ScenarioSimulator:修订间差异

来自PRTS
跳到导航 跳到搜索
无编辑摘要
无编辑摘要
第154行: 第154行:
var timer_id_wait = -1,timer_id_temp = -1;
var timer_id_wait = -1,timer_id_temp = -1;
var timer_id_blocker = -1,blocker_now = 100,blocker_new = 100;
var timer_id_blocker = -1,blocker_now = 100,blocker_new = 100;
var image_width = 0,image_height = 0,image_x = 0,image_y = 0;
var image_width = 0,image_height = 0,image_x = 0,image_y = 0,image_adapt = "";
var timer_id_tween = -1,tween_width = 0,tween_height = 0,tween_x = 0,tween_y = 0;
var timer_id_tween = -1,tween_width = 0,tween_height = 0,tween_x = 0,tween_y = 0;
var timer_id_music = -1,music_stats = "",music_loop = "",music_volume = 0.8,flag_music = false;
var timer_id_music = -1,music_stats = "",music_loop = "",music_volume = 0.8,flag_music = false;
第1,066行: 第1,066行:
image_x += c_x;image_y += c_y;
image_x += c_x;image_y += c_y;
image_width += c_width;image_height += c_height;
image_width += c_width;image_height += c_height;
var temp_obj = document.getElementById("pic_image");
temp_obj.style.backgroundPosition = image_x + "px " + image_y + "px";
temp_obj.style.backgroundSize = image_width + "px " + image_height + "px";
if(image_x < tween_x){return 0;}
if(image_x < tween_x){return 0;}
if(image_y < tween_y){return 0;}
if(image_y < tween_y){return 0;}
第1,074行: 第1,077行:
image_x = tween_x;image_y = tween_y;
image_x = tween_x;image_y = tween_y;
image_width = tween_width;image_height = tween_height;
image_width = tween_width;image_height = tween_height;
temp_obj.style.backgroundPosition = image_x + "px " + image_y + "px";
temp_obj.style.backgroundSize = image_width + "px " + image_height + "px";
}
}
function fun_setting(mode)
function fun_setting(mode)
第1,492行: 第1,497行:
else if(command_set.screenadapt == "coverall")
else if(command_set.screenadapt == "coverall")
{
{
image_adapt = command_set.screenadapt;
temp_d1 *= 960;temp_d2 *= 540;
temp_d1 *= 960;temp_d2 *= 540;
obj_image.style.backgroundSize = temp_d1 + "px " + temp_d2 + "px";
obj_image.style.backgroundSize = temp_d1 + "px " + temp_d2 + "px";
第1,507行: 第1,513行:
case 'imagetween':
case 'imagetween':
var obj_image = document.getElementById("pic_image");
var obj_image = document.getElementById("pic_image");
var temp_c1,temp_d1,temp_d2,temp_d3,temp_d4,temp_d5,temp_d6,temp_d7,temp_d8;
var temp_c1,temp_c2,temp_c3;
var temp_d1,temp_d2,temp_d3,temp_d4,temp_d5,temp_d6,temp_d7,temp_d8;
var temp_i1 = new Image();
temp_i1.src = obj_image.style.backgroundImage.replace(/^url\("|"\)$/g,"");
temp_d1 = Number(command_set.xfrom);temp_d2 = Number(command_set.yfrom);
temp_d1 = Number(command_set.xfrom);temp_d2 = Number(command_set.yfrom);
temp_d3 = Number(command_set.xto);temp_d4 = Number(command_set.yto);
temp_d3 = Number(command_set.xto);temp_d4 = Number(command_set.yto);
第1,516行: 第1,525行:
{
{
temp_c1 = 0.05;
temp_c1 = 0.05;
}
if(image_adapt == "coverall")
{
temp_c2 = 960;
temp_c3 = 540;
}
else
{
temp_c2 = temp_i1.width * 0.75;
temp_c3 = temp_i1.height * 0.75;
}
}
if(isNaN(temp_d1))
if(isNaN(temp_d1))
第1,522行: 第1,541行:
if(isNaN(temp_d1))
if(isNaN(temp_d1))
{
{
temp_d1 = image_x;
temp_d1 = image_x / 0.75;
}
}
}
}
第1,529行: 第1,548行:
temp_d2 = Number(command_set.y);
temp_d2 = Number(command_set.y);
{
{
temp_d2 = image_y;
temp_d2 = image_y / 0.75;
}
}
}
}
第1,540行: 第1,559行:
temp_d4 = temp_d2;
temp_d4 = temp_d2;
}
}
temp_d1 *= 0.75;temp_d2 *= 0.75;temp_d3 *= 0.75;temp_d4 *= 0.75;
if(isNaN(temp_d5))
if(isNaN(temp_d5))
{
{
第1,545行: 第1,565行:
if(isNaN(temp_d5))
if(isNaN(temp_d5))
{
{
temp_d5 = image_width;
temp_d5 = image_width / temp_c2;
}
}
}
}
第1,552行: 第1,572行:
temp_d6 = Number(command_set.yscale);
temp_d6 = Number(command_set.yscale);
{
{
temp_d6 = image_height;
temp_d6 = image_height / temp_c3;
}
}
}
}
第1,563行: 第1,583行:
temp_d8 = temp_d6;
temp_d8 = temp_d6;
}
}
temp_d5 *= temp_c2;temp_d6 *= temp_c3;temp_d7 *= temp_c2;temp_d8 *= temp_c3;
image_x = temp_d1;image_y = temp_d2;tween_x = temp_d3;tween_y = temp_d4;
image_x = temp_d1;image_y = temp_d2;tween_x = temp_d3;tween_y = temp_d4;
image_width = temp_d5;image_height = temp_d6;tween_width = temp_d7;tween_height = temp_d8;
image_width = temp_d5;image_height = temp_d6;tween_width = temp_d7;tween_height = temp_d8;

2019年12月5日 (四) 17:28的版本

自动▶
重置▶