微件:ScenarioSimulator:修订间差异
跳到导航
跳到搜索
小无编辑摘要 |
小无编辑摘要 |
||
(未显示同一用户的36个中间版本) | |||
第1行: | 第1行: | ||
<noinclude>{{#Widget:Krliov/test2|datas_txt={{用户:Krliov/ | <noinclude>{{#Widget:Krliov/test2|datas_txt={{用户:Krliov/testpage5}}|pic_back={{用户:Krliov/testpage3}}|pic_char={{用户:Krliov/testpage4}}|datas= | ||
[back]bg_cher_1 | [back]bg_cher_1 | ||
[char]char_130_doberm_ex | [char]char_130_doberm_ex | ||
第18行: | 第18行: | ||
<div class="pic_style" id="pic_image" style="display:none;" onclick="txt_click(2)"></div> | <div class="pic_style" id="pic_image" style="display:none;" onclick="txt_click(2)"></div> | ||
<div class="char_style" id="pic_char_1" style="display:none;" onclick="txt_click(11)"> | <div class="char_style" id="pic_char_1" style="display:none;" onclick="txt_click(11)"> | ||
<div id="pic_char" style="float:left;position:absolute;left:200px;top:25px | <div id="pic_char" style="float:left;position:absolute;left:200px;top:25px;"></div></div> | ||
<div class="char_style" id="pic_char_2" style="display:none;" onclick="txt_click(12)"> | <div class="char_style" id="pic_char_2" style="display:none;" onclick="txt_click(12)"> | ||
<div id="pic_char_left" style="float:left;position:absolute;left:100px;top:25px | <div id="pic_char_left" style="float:left;position:absolute;left:100px;top:25px;"></div> | ||
<div id="pic_char_right" style="float:right;position:absolute;right:100px;top:25px | <div id="pic_char_right" style="float:right;position:absolute;right:100px;top:25px;"></div></div> | ||
<div class="dialog_style" id="dialog_main" style="display:block;" onclick="txt_click()"> | <div class="dialog_style" id="dialog_main" style="display:block;" onclick="txt_click()"> | ||
<div style="position:absolute;text-align:right;width:150px;height:60px;padding:5px 10px 0px 10px;color:#929292;font-size:18px;" id="txt_name">剧情模拟器</div> | <div style="position:absolute;text-align:right;width:150px;height:60px;padding:5px 10px 0px 10px;color:#929292;font-size:18px;" id="txt_name">剧情模拟器</div> | ||
第30行: | 第30行: | ||
.char_style{ | .char_style{ | ||
z-index:2; | z-index:2; | ||
width:400px; | |||
height:400px; | |||
background-clip:"padding-box"; | background-clip:"padding-box"; | ||
} | } | ||
第46行: | 第48行: | ||
padding:0px 5px; | padding:0px 5px; | ||
text-align:left; | text-align:left; | ||
cursor:default; | |||
} | } | ||
.pic_style{ | .pic_style{ | ||
第59行: | 第62行: | ||
bottom:5px; | bottom:5px; | ||
background-color:rgba(0,0,0,.8); | background-color:rgba(0,0,0,.8); | ||
cursor:default; | |||
} | } | ||
</style> | </style> | ||
第66行: | 第70行: | ||
<script type="csv" id="datas_char"><!--{$pic_char}--></script> | <script type="csv" id="datas_char"><!--{$pic_char}--></script> | ||
<script> | <script> | ||
var txt_max = 0,txt_num = 0,now_txt = "",now_txt_max = 0,now_txt_num = 0,now_txt_temp = ""; | |||
var | |||
var timer_id,flag_timer = false; | var timer_id,flag_timer = false; | ||
var timer_id_auto,timer_id_wait,flag_auto = false; | var timer_id_auto,timer_id_wait,flag_auto = false; | ||
var reset_enabled = false,auto_enabled = true,click_enabled = true,system_enabled = true; | var reset_enabled = false,auto_enabled = true,click_enabled = true,system_enabled = true; | ||
var auto_num = 0; | var auto_num = 0; | ||
var data_temp = ""; | var data_temp = ""; | ||
var data_txt = new Array(); | var data_txt = new Array(); | ||
var data_txt_test = new Array(); | var data_txt_test = new Array(); | ||
var data_pic_back = | var data_pic_back = new Array(); | ||
var data_pic_char = | var data_pic_char = new Array(); | ||
try | try | ||
{ | { | ||
第91行: | 第91行: | ||
console.error("ERROR:The datas loaded failed,please check the input and try again."); | console.error("ERROR:The datas loaded failed,please check the input and try again."); | ||
data_txt.push("Krliov:There has something wrong when loaded datas,please check the input. :3"); | data_txt.push("Krliov:There has something wrong when loaded datas,please check the input. :3"); | ||
data_txt_test.push("Krliov:There has something wrong when loaded datas_txt,please check the input. :3"); | |||
auto_enabled = false; | auto_enabled = false; | ||
click_enabled = false; | click_enabled = false; | ||
system_enabled = false; | system_enabled = false; | ||
} | } | ||
try | try | ||
{ | { | ||
第109行: | 第109行: | ||
console.error("ERROR:The pic_back loaded failed,please check the input and try again."); | console.error("ERROR:The pic_back loaded failed,please check the input and try again."); | ||
data_txt.push("Krliov:There has something wrong when loaded pic_back,please check the input. :3"); | data_txt.push("Krliov:There has something wrong when loaded pic_back,please check the input. :3"); | ||
data_txt_test.push("Krliov:There has something wrong when loaded pic_back,please check the input. :3"); | |||
auto_enabled = false; | auto_enabled = false; | ||
click_enabled = false; | click_enabled = false; | ||
第126行: | 第127行: | ||
console.error("ERROR:The pic_char loaded failed,please check the input and try again."); | console.error("ERROR:The pic_char loaded failed,please check the input and try again."); | ||
data_txt.push("Krliov:There has something wrong when loaded pic_char,please check the input. :3"); | data_txt.push("Krliov:There has something wrong when loaded pic_char,please check the input. :3"); | ||
data_txt_test.push("Krliov:There has something wrong when loaded pic_char,please check the input. :3"); | |||
auto_enabled = false; | auto_enabled = false; | ||
click_enabled = false; | click_enabled = false; | ||
第134行: | 第136行: | ||
console.log(data_pic_back); | console.log(data_pic_back); | ||
console.log(data_pic_char); | console.log(data_pic_char); | ||
function txt_start() | function txt_start() | ||
{ | { | ||
第148行: | 第148行: | ||
function txt_click(enter_id) | function txt_click(enter_id) | ||
{ | { | ||
if(enter_id == undefined) | if(click_enabled == false && enter_id == undefined) | ||
{ | { | ||
// console.log("Has disregard the default settings."); | |||
} | } | ||
else if(click_enabled == false) | else if(click_enabled == false) | ||
第156行: | 第156行: | ||
return; | return; | ||
} | } | ||
else | else if(system_enabled == true) | ||
{ | { | ||
if (mw.config.values.debug == true) | |||
{ | |||
txt_max = data_txt_test.length; | |||
} | |||
else | |||
{ | |||
txt_max = data_txt.length; | |||
} | |||
// console.log("txt_max=" + txt_max); | |||
system_enabled = false; | system_enabled = false; | ||
reset_enabled = true; | reset_enabled = true; | ||
document.getElementById("txt_name").innerHTML = ""; | |||
document.getElementById("txt_output").innerHTML = ""; | |||
document.getElementById("button_reset").style.color = ""; | document.getElementById("button_reset").style.color = ""; | ||
} | } | ||
// console.log("enter_id=" + enter_id); | |||
if(flag_auto == true) | if(flag_auto == true) | ||
{ | { | ||
第175行: | 第186行: | ||
} | } | ||
txt_next(); | txt_next(); | ||
return; | |||
} | } | ||
function txt_next() | function txt_next() | ||
第180行: | 第192行: | ||
var place = -1; | var place = -1; | ||
//before | //before | ||
if ( | if (txt_num == txt_max) | ||
{ | { | ||
// console.log("txt_num=" + txt_num + " ,txt_max=" + txt_max) | |||
if(flag_auto == true) | if(flag_auto == true) | ||
{ | { | ||
第187行: | 第200行: | ||
} | } | ||
document.getElementById("pic_back").style.display = "none"; | document.getElementById("pic_back").style.display = "none"; | ||
document.getElementById("pic_image").style.display = "none"; | |||
document.getElementById("pic_char_1").style.display = "none"; | document.getElementById("pic_char_1").style.display = "none"; | ||
document.getElementById("pic_char_2").style.display = "none"; | document.getElementById("pic_char_2").style.display = "none"; | ||
document.getElementById("txt_name").innerHTML = "剧情模拟器"; | document.getElementById("txt_name").innerHTML = "剧情模拟器"; | ||
document.getElementById("txt_output").innerHTML = "剧情模拟已结束,单击将重新开始剧情回顾"; | document.getElementById("txt_output").innerHTML = "剧情模拟已结束,单击将重新开始剧情回顾"; | ||
document.getElementById("dialog_main").style.display = "block"; | |||
setTimeout("temp1()",500); | |||
reset_enabled = false; | reset_enabled = false; | ||
document.getElementById("button_reset").style.color = "#808080"; | document.getElementById("button_reset").style.color = "#808080"; | ||
txt_num = 0; | |||
now_txt_max = 0; | |||
return; | return; | ||
} | } | ||
//check | //check | ||
var ret = 0; | var ret = 0; | ||
if (debug == true) | if (mw.config.values.debug == true) | ||
{ | { | ||
if (data_txt_test[ | if (data_txt_test[txt_num] == "") | ||
{ | { | ||
ret = -3; | ret = -3; | ||
} | } | ||
ret = txt_check_test(); | else | ||
{ | |||
ret = txt_check_test(); | |||
} | |||
} | } | ||
else | else | ||
{ | { | ||
if (data_txt[ | if (data_txt[txt_num] == "") | ||
{ | { | ||
ret = -3; | ret = -3; | ||
} | } | ||
ret = txt_check(); | else | ||
{ | |||
ret = txt_check(); | |||
} | |||
} | } | ||
if(ret == -3) | if(ret == -3) | ||
{ | { | ||
// console.log("Has skipped the space part.Data number:" + txt_num); | |||
txt_num++; | |||
txt_next(); | txt_next(); | ||
return; | return; | ||
第225行: | 第246行: | ||
else if(ret == -2) | else if(ret == -2) | ||
{ | { | ||
// console.log("Break and wait timer."); | |||
txt_num++; | |||
return; | return; | ||
} | } | ||
else if(ret == -1) | else if(ret == -1) | ||
{ | { | ||
// console.log("Has skipped the unused part.Data number:" + txt_num); | |||
txt_num++; | |||
txt_next(); | txt_next(); | ||
return; | return; | ||
第237行: | 第259行: | ||
else if(ret == 1) | else if(ret == 1) | ||
{ | { | ||
// console.log("Data analyze complete.Data number:" + txt_num); | |||
txt_num++; | |||
txt_next(); | txt_next(); | ||
return; | return; | ||
} | } | ||
if( | // console.log("Data number:" + txt_num); | ||
if(txt_num < txt_max && txt_num >= 0) | |||
{ | { | ||
txt_dynamic(50); | txt_dynamic(50); | ||
第250行: | 第273行: | ||
{ | { | ||
var place = 0,temp = ""; | var place = 0,temp = ""; | ||
if(data_txt[ | if(data_txt[txt_num].indexOf(":") > 0) | ||
{ | { | ||
place = data_txt[ | place = data_txt[txt_num].indexOf(":"); | ||
document.getElementById("txt_name").innerHTML = data_txt[ | document.getElementById("txt_name").innerHTML = data_txt[txt_num].substr(0,place); | ||
now_txt = data_txt[ | now_txt = data_txt[txt_num].substr(place + 1); | ||
// console.log("now_txt=" + now_txt); | |||
return 0; | return 0; | ||
} | } | ||
if(data_txt[ | if(data_txt[txt_num].startsWith("[clear]")) | ||
{ | { | ||
document.getElementById("pic_back").style.display = "none"; | document.getElementById("pic_back").style.display = "none"; | ||
第264行: | 第288行: | ||
return 1; | return 1; | ||
} | } | ||
else if(data_txt[ | else if(data_txt[txt_num].startsWith("[clear_back]")) | ||
{ | { | ||
document.getElementById("pic_back").style.display = "none"; | document.getElementById("pic_back").style.display = "none"; | ||
return 1; | return 1; | ||
} | } | ||
else if(data_txt[ | else if(data_txt[txt_num].startsWith("[clear_char]")) | ||
{ | { | ||
document.getElementById("pic_char_1").style.display = "none"; | document.getElementById("pic_char_1").style.display = "none"; | ||
第275行: | 第299行: | ||
return 1; | return 1; | ||
} | } | ||
else if(data_txt[ | else if(data_txt[txt_num].startsWith("[back]")) | ||
{ | { | ||
place = data_txt[ | place = data_txt[txt_num].indexOf("]") + 1; | ||
temp = data_txt[ | temp = data_txt[txt_num].substr(place); | ||
document.getElementById("pic_back").innerHTML = "<img alt=\"" + temp + "\" width=\"800\" height=\"450\" src=\"" + data_pic_back[temp] + "\">"; | document.getElementById("pic_back").innerHTML = "<img alt=\"" + temp + "\" width=\"800\" height=\"450\" src=\"" + data_pic_back[temp] + "\">"; | ||
document.getElementById("pic_back").style.display = "block"; | document.getElementById("pic_back").style.display = "block"; | ||
return 1; | return 1; | ||
} | } | ||
else if(data_txt[ | else if(data_txt[txt_num].startsWith("[char]")) | ||
{ | { | ||
place = data_txt[ | place = data_txt[txt_num].indexOf("]") + 1; | ||
temp = data_txt[ | temp = data_txt[txt_num].substr(place); | ||
document.getElementById("pic_char").innerHTML = "<img alt=\"" + temp + "\" width=\"400\" height=\"400\" src=\"" + data_pic_char[temp] + "\">"; | document.getElementById("pic_char").innerHTML = "<img alt=\"" + temp + "\" width=\"400\" height=\"400\" src=\"" + data_pic_char[temp] + "\">"; | ||
document.getElementById("pic_char_1").style.display = "block"; | document.getElementById("pic_char_1").style.display = "block"; | ||
第292行: | 第316行: | ||
return 1; | return 1; | ||
} | } | ||
else if(data_txt[ | else if(data_txt[txt_num].startsWith("[char_")) | ||
{ | { | ||
var pic_left = "",pic_right = ""; | var pic_left = "",pic_right = ""; | ||
var char_left = document.getElementById("pic_char_left"); | var char_left = document.getElementById("pic_char_left"); | ||
var char_right = document.getElementById("pic_char_right"); | var char_right = document.getElementById("pic_char_right"); | ||
place = data_txt[ | place = data_txt[txt_num].indexOf("]") + 1; | ||
temp = data_txt[ | temp = data_txt[txt_num].substr(place); | ||
temp = temp.split(","); | temp = temp.split(","); | ||
if(temp.length <= 1) | if(temp.length <= 1) | ||
第309行: | 第333行: | ||
char_left.innerHTML = "<img alt=\"" + pic_left + "\" width=\"400\" height=\"400\" src=\"" + data_pic_char[pic_left] + "\">"; | char_left.innerHTML = "<img alt=\"" + pic_left + "\" width=\"400\" height=\"400\" src=\"" + data_pic_char[pic_left] + "\">"; | ||
char_right.innerHTML = "<img alt=\"" + pic_right + "\" width=\"400\" height=\"400\" src=\"" + data_pic_char[pic_right] + "\">"; | char_right.innerHTML = "<img alt=\"" + pic_right + "\" width=\"400\" height=\"400\" src=\"" + data_pic_char[pic_right] + "\">"; | ||
if (data_txt[ | if (data_txt[txt_num].startsWith("[char_left]")) | ||
{ | { | ||
char_left.style.display = "block"; | char_left.style.display = "block"; | ||
char_right.style.display = "none"; | char_right.style.display = "none"; | ||
} | } | ||
else if (data_txt[ | else if (data_txt[txt_num].startsWith("[char_right]")) | ||
{ | { | ||
char_right.style.display = "block"; | char_right.style.display = "block"; | ||
char_left.style.display = "none"; | char_left.style.display = "none"; | ||
} | } | ||
else if (data_txt[ | else if (data_txt[txt_num].startsWith("[char_both]")) | ||
{ | { | ||
char_left.style.display = "block"; | char_left.style.display = "block"; | ||
第328行: | 第352行: | ||
return 1; | return 1; | ||
} | } | ||
now_txt = data_txt[ | now_txt = data_txt[txt_num]; | ||
return 0; | return 0; | ||
} | } | ||
第335行: | 第359行: | ||
if(auto_enabled == false) | if(auto_enabled == false) | ||
{ | { | ||
// console.log("auto didn't passed."); | |||
return; | return; | ||
} | } | ||
// console.log("auto passed."); | |||
reset_enabled = true; | reset_enabled = true; | ||
document.getElementById("button_reset").style.color = ""; | document.getElementById("button_reset").style.color = ""; | ||
if(flag_auto == false) | if(flag_auto == false) | ||
{ | { | ||
if (system_enabled == true) | if(system_enabled == true) | ||
{ | { | ||
if(mw.config.values.debug == true) | |||
{ | |||
txt_max = data_txt_test.length; | |||
} | |||
else | |||
{ | |||
txt_max = data_txt.length; | |||
} | |||
// console.log("txt_max=" + txt_max); | |||
system_enabled = false; | system_enabled = false; | ||
document.getElementById("txt_name").innerHTML = ""; | |||
document.getElementById("txt_output").innerHTML = ""; | |||
} | } | ||
auto_num = 1; | auto_num = 1; | ||
timer_id_auto = setInterval("auto_dynamic()",400); | timer_id_auto = setInterval("auto_dynamic()",400); | ||
flag_auto = true; | flag_auto = true; | ||
timer_id_wait = setTimeout("txt_next()", | timer_id_wait = setTimeout("txt_next()",now_txt_max*80+Math.min(now_txt_max,1)*1000); | ||
} | } | ||
else if(flag_auto == true) | else if(flag_auto == true) | ||
第357行: | 第394行: | ||
function txt_reset() | function txt_reset() | ||
{ | { | ||
system_enabled = false; | |||
setTimeout("temp1()",500); | |||
if(reset_enabled == false) | if(reset_enabled == false) | ||
{ | { | ||
第362行: | 第401行: | ||
return; | return; | ||
} | } | ||
// console.log("reset passed."); | // console.log("reset passed."); | ||
if(flag_auto == true) | if(flag_auto == true) | ||
第373行: | 第411行: | ||
} | } | ||
document.getElementById("pic_back").style.display = "none"; | document.getElementById("pic_back").style.display = "none"; | ||
document.getElementById("pic_image").style.display = "none"; | |||
document.getElementById("pic_char_1").style.display = "none"; | document.getElementById("pic_char_1").style.display = "none"; | ||
document.getElementById("pic_char_2").style.display = "none"; | document.getElementById("pic_char_2").style.display = "none"; | ||
document.getElementById("txt_name").innerHTML = "剧情模拟器"; | document.getElementById("txt_name").innerHTML = "剧情模拟器"; | ||
document.getElementById("txt_output").innerHTML = "剧情模拟已重置,单击开始剧情回顾"; | document.getElementById("txt_output").innerHTML = "剧情模拟已重置,单击开始剧情回顾"; | ||
document.getElementById("dialog_main").style.display = "block"; | |||
reset_enabled = false; | reset_enabled = false; | ||
document.getElementById("button_reset").style.color = "#808080" | document.getElementById("button_reset").style.color = "#808080" | ||
txt_num = 0; | |||
now_txt_max = 0; | |||
return; | return; | ||
} | } | ||
第397行: | 第437行: | ||
clearInterval(timer_id); | clearInterval(timer_id); | ||
flag_timer = false; | flag_timer = false; | ||
now_txt_num = 0; | |||
now_txt_temp = ""; | |||
txt_num++; | |||
} | } | ||
function auto_dynamic() | function auto_dynamic() | ||
第421行: | 第461行: | ||
function txt_dynamic(interval) | function txt_dynamic(interval) | ||
{ | { | ||
now_txt_max = now_txt.length; | |||
flag_timer = true; | flag_timer = true; | ||
timer_id = setInterval("timer1()",50); | timer_id = setInterval("timer1()",50); | ||
第427行: | 第467行: | ||
function timer1() | function timer1() | ||
{ | { | ||
if ( | if (now_txt_num < now_txt_max) | ||
{ | { | ||
now_txt_temp = now_txt_temp + now_txt.substr(now_txt_num,1); | |||
document.getElementById("txt_output").innerHTML = | document.getElementById("txt_output").innerHTML = now_txt_temp; | ||
now_txt_num++; | |||
return; | return; | ||
} | } | ||
第438行: | 第478行: | ||
if(flag_auto == true) | if(flag_auto == true) | ||
{ | { | ||
timer_id_wait = setTimeout("txt_next()", | timer_id_wait = setTimeout("txt_next()",now_txt_max*80+1000) | ||
} | } | ||
} | |||
function temp1() | |||
{ | |||
// console.log("system_enabeld has been set to true."); | |||
system_enabled = true; | |||
} | } | ||
function txt_check_test() | function txt_check_test() | ||
{ | { | ||
if( | if(data_txt_test[txt_num].match("^\\s+$")) //ONLY SPACE REGEX | ||
{ | { | ||
return -1; | return -1; | ||
} | } | ||
else if( | else if(data_txt_test[txt_num].match("^\\s*//.*$")) //COMMENT REGEX | ||
{ | { | ||
return -1; | return -1; | ||
} | } | ||
var data_command = | var data_command = data_txt_test[txt_num].match("^\\[\\s*(?:(.*)\\((.*)\\)|(?:([\\.|\\w]*)|(.*)))\\s*\\]\\s*(.*)"); //COMMAND REGEX | ||
// console.log(data_command); | |||
if (data_command[1] != undefined) | if (data_command[1] != undefined) | ||
{ | { | ||
第490行: | 第536行: | ||
break; | break; | ||
case 'Background': | case 'Background': | ||
var | var obj_back = document.getElementById("pic_back"); | ||
if(command_set.image == undefined) | if(command_set.image == undefined) | ||
{ | { | ||
第521行: | 第567行: | ||
obj_char_1 = document.getElementById("pic_char_1"); | obj_char_1 = document.getElementById("pic_char_1"); | ||
obj_char_2 = document.getElementById("pic_char_2"); | obj_char_2 = document.getElementById("pic_char_2"); | ||
obj_char = document.getElementById("pic_char"); | |||
if (command_set.name == undefined) | if (command_set.name == undefined) | ||
{ | { | ||
第528行: | 第575行: | ||
else if (command_set.name2 == undefined) | else if (command_set.name2 == undefined) | ||
{ | { | ||
if (command_set.focus == -1) | |||
{ | |||
obj_char.style.filter = "brightness(50%)" | |||
} | |||
else | |||
{ | |||
obj_char.style.filter = ""; | |||
} | |||
obj_char_1.style.display = "block"; | obj_char_1.style.display = "block"; | ||
obj_char_2.style.display = "none"; | obj_char_2.style.display = "none"; | ||
document.getElementById("pic_char").innerHTML = "<img alt=\"" + command_set.name + "\" width=\" | document.getElementById("pic_char").innerHTML = "<img alt=\"" + command_set.name + "\" width=\"400\" height=\"400\" src=\"" + data_pic_char[command_set.name] + "\">"; | ||
} | } | ||
else | else | ||
第536行: | 第591行: | ||
var char_left = document.getElementById("pic_char_left"); | var char_left = document.getElementById("pic_char_left"); | ||
var char_right = document.getElementById("pic_char_right"); | var char_right = document.getElementById("pic_char_right"); | ||
if (command_set.focus == | if (command_set.focus == 1) | ||
{ | { | ||
char_left.style. | char_left.style.filter = ""; | ||
char_right.style. | char_right.style.filter = "brightness(50%)"; | ||
} | } | ||
else if (command_set.focus == | else if(command_set.focus ==2) | ||
{ | { | ||
char_left.style. | char_left.style.filter = "brightness(50%)"; | ||
char_right.style. | char_right.style.filter = ""; | ||
} | } | ||
else | else | ||
{ | { | ||
char_left.style. | char_left.style.filter = ""; | ||
char_right.style. | char_right.style.filter = ""; | ||
} | } | ||
obj_char_1.style.display = "none"; | obj_char_1.style.display = "none"; | ||
obj_char_2.style.display = "block"; | obj_char_2.style.display = "block"; | ||
char_left.innerHTML = "<img alt=\"" + command_set.name + "\" width=\" | char_left.innerHTML = "<img alt=\"" + command_set.name + "\" width=\"400\" height=\"400\" src=\"" + data_pic_char[command_set.name] + "\">"; | ||
char_right.innerHTML = "<img alt=\"" + command_set.name2 + "\" width=\" | char_right.innerHTML = "<img alt=\"" + command_set.name2 + "\" width=\"400\" height=\"400\" src=\"" + data_pic_char[command_set.name2] + "\">"; | ||
} | } | ||
break; | break; | ||
第567行: | 第622行: | ||
{ | { | ||
case 'Dialog': | case 'Dialog': | ||
document.getElementById(" | document.getElementById("dialog_main").style.display = "none"; | ||
break; | break; | ||
case 'Background': | case 'Background': | ||
第574行: | 第628行: | ||
break; | break; | ||
case 'Image': | case 'Image': | ||
document.getElementById("pic_back").style.display = "block"; | |||
document.getElementById("pic_image").style.display = "none"; | document.getElementById("pic_image").style.display = "none"; | ||
break; | break; | ||
第587行: | 第642行: | ||
document.getElementById("txt_name").innerHTML = data_command[4].replace(/(^[^"]+)"([^"]*)"/,"$2"); | document.getElementById("txt_name").innerHTML = data_command[4].replace(/(^[^"]+)"([^"]*)"/,"$2"); | ||
now_txt = data_command[5]; | now_txt = data_command[5]; | ||
document.getElementById("dialog_main").style.display = "block"; | |||
} | } | ||
return 0; | return 0; |