◆少前百科是非盈利性、非官方的少女前线维基百科。 ◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!点这里 加入少前百科。 ◆有任何意见、建议、纠错,欢迎在 GFwiki:反馈与建议 提出和讨论。编辑事务讨论QQ群:597764980,微博@GFwiki少前百科 ◆To foreigners,You can use twitter to contact us. |
“Widget:AVGplayer”的版本间的差异
(更新) |
(更新) |
||
第122行: | 第122行: | ||
var bgmarray = { | var bgmarray = { | ||
− | "BGM_Battle":"http://www.gfwiki.org/images/ | + | "BGM_Battle":"http://www.gfwiki.org/images/b/b4/BGM_Battle.mp3", |
"BGM_Empty":"http://www.gfwiki.org/images/7/72/BGM_Empty.mp3", | "BGM_Empty":"http://www.gfwiki.org/images/7/72/BGM_Empty.mp3", | ||
− | "BGM_Truth":"http://www.gfwiki.org/images/b/b3/BGM_Truth. | + | "BGM_Room":"http://www.gfwiki.org/images/4/46/BGM_Room.mp3", |
− | " | + | "BGM_Sneak":"http://www.gfwiki.org/images/4/44/BGM_Sneak.mp3", |
+ | "BGM_Truth":"http://www.gfwiki.org/images/b/b3/BGM_Truth.mp3", | ||
+ | "BGM_Hello":"http://www.gfwiki.org/images/2/2a/GF_Daily_01_loop.mp3", | ||
+ | "BGM_Sunshine":"http://www.gfwiki.org/images/3/3f/Home_formation_factory.mp3", | ||
+ | "BGM_NightOPS":"http://www.gfwiki.org/images/4/4d/GUN_CineTense_loop.mp3", | ||
+ | |||
+ | "GF_EV9_Story":"http://www.gfwiki.org/images/2/29/GF_EV9_Story.mp3", | ||
+ | "GF_Memorial":"http://www.gfwiki.org/images/1/17/GF_Memorial.mp3", | ||
+ | "m_avg_casual":"http://www.gfwiki.org/images/c/cf/M_avg_casual.mp3", | ||
+ | "GF_21winter_avg_pathfinder":"http://www.gfwiki.org/images/0/05/GF_21winter_avg_pathfinder.mp3", | ||
+ | "GF_21winter_avg_mahaline":"http://www.gfwiki.org/images/c/ce/GF_21winter_avg_mahaline.mp3", | ||
+ | |||
+ | "BGM_stage1":"http://www.gfwiki.org/images/1/1d/GF_MAP1_BGM.mp3", | ||
+ | "BGM_stage10":"http://www.gfwiki.org/images/d/db/GF_MAP10_BGM.mp3", | ||
+ | "BGM_stage11":"http://www.gfwiki.org/images/d/dc/GF_MAP11_BGM.mp3", | ||
+ | |||
+ | "10213":"http://www.gfwiki.org/images/3/31/GF_EV6_90w_pt1.mp3", | ||
+ | "10209":"http://www.gfwiki.org/images/6/6f/GF_EV6_G%26K_pt3.mp3", | ||
+ | "10082":"http://www.gfwiki.org/images/d/da/GF_EV4_Map3.mp3" | ||
}; | }; | ||
var linepos = 0; | var linepos = 0; | ||
− | var endsign = 0; | + | var endsign = 0; //该剧情是否结束的标志 |
var avgtxt = ""; //avg文本 | var avgtxt = ""; //avg文本 | ||
var avgdoll = {left:0,center:0,right:0}; // 当前立绘 | var avgdoll = {left:0,center:0,right:0}; // 当前立绘 | ||
第150行: | 第168行: | ||
function avgcreat(){ | function avgcreat(){ | ||
var output = ` | var output = ` | ||
+ | <div class="avgchoice" link="http://www.gfwiki.org/images/5/51/AVG0-3-2.txt">测试</div> | ||
<div class="avgchoice" link="http://www.gfwiki.org/images/6/6a/AVG-44-B0-1.txt">0-1 塞勒涅的梦</div> | <div class="avgchoice" link="http://www.gfwiki.org/images/6/6a/AVG-44-B0-1.txt">0-1 塞勒涅的梦</div> | ||
<div class="avgchoice" link="http://www.gfwiki.org/images/1/15/AVG-44-B1-1a.txt">1-1 a 来者的路</div> | <div class="avgchoice" link="http://www.gfwiki.org/images/1/15/AVG-44-B1-1a.txt">1-1 a 来者的路</div> | ||
第179行: | 第198行: | ||
avgtxt = (this.responseText); | avgtxt = (this.responseText); | ||
endsign = 0; | endsign = 0; | ||
+ | avgnextline = ""; | ||
readline(); | readline(); | ||
firstloading(); | firstloading(); | ||
第302行: | 第322行: | ||
endsign = 0; | endsign = 0; | ||
linepos = 0; | linepos = 0; | ||
+ | avgnextline = ""; | ||
readline(); | readline(); | ||
}); | }); | ||
第393行: | 第414行: | ||
else if(avgpicstr.indexOf("<Speaker>") > avgpicstr.indexOf(";")){ | else if(avgpicstr.indexOf("<Speaker>") > avgpicstr.indexOf(";")){ | ||
the_speaker = "right"; | the_speaker = "right"; | ||
− | avgpicleft = | + | let avgpicstr_left = avgpicstr.slice(0, avgpicstr.indexOf(";") + 1); |
+ | avgpicleft = avgpicstr_left.slice(0, ((avgpicstr_left.indexOf("<") < avgpicstr_left.indexOf(";")) ? avgpicstr_left.indexOf("<") : avgpicstr_left.indexOf(";"))); | ||
avgpicrigh = avgpicstr.slice(avgpicstr.indexOf(";") + 1, avgpicstr.indexOf("<Speaker>")); | avgpicrigh = avgpicstr.slice(avgpicstr.indexOf(";") + 1, avgpicstr.indexOf("<Speaker>")); | ||
newavgdoll = {left: avgpicleft,center:0,right: avgpicrigh}; | newavgdoll = {left: avgpicleft,center:0,right: avgpicrigh}; | ||
第463行: | 第485行: | ||
$(avgdoll_div[i]).css({"z-index":((the_speaker == "left") ? "4" : "2")}); | $(avgdoll_div[i]).css({"z-index":((the_speaker == "left") ? "4" : "2")}); | ||
− | if($(avgdoll_div[i]).children(".darkmask") && (the_speaker == "left")){ | + | if($(avgdoll_div[i]).children(".darkmask").length && (the_speaker == "left")){ |
$(avgdoll_div[i]).children(".darkmask").fadeOut(150); | $(avgdoll_div[i]).children(".darkmask").fadeOut(150); | ||
$(avgdoll_div[i]).children(".darkmask").remove(); | $(avgdoll_div[i]).children(".darkmask").remove(); | ||
第483行: | 第505行: | ||
$(avgdoll_div[i]).css({"z-index":((the_speaker == "right") ? "4" : "2")}); | $(avgdoll_div[i]).css({"z-index":((the_speaker == "right") ? "4" : "2")}); | ||
− | if($(avgdoll_div[i]).children(".darkmask") && (the_speaker == "right")){ | + | if($(avgdoll_div[i]).children(".darkmask").length && (the_speaker == "right")){ |
$(avgdoll_div[i]).children(".darkmask").fadeOut(150); | $(avgdoll_div[i]).children(".darkmask").fadeOut(150); | ||
$(avgdoll_div[i]).children(".darkmask").remove(); | $(avgdoll_div[i]).children(".darkmask").remove(); | ||
第617行: | 第639行: | ||
endsign = 0; | endsign = 0; | ||
$("#avglog").click(); | $("#avglog").click(); | ||
+ | avgnextline = ""; | ||
linepos =Number( $(this).attr("avgpos")); | linepos =Number( $(this).attr("avgpos")); | ||
readline(); | readline(); | ||
第698行: | 第721行: | ||
for(i in loading.bgm){ | for(i in loading.bgm){ | ||
var audio = new Audio(); | var audio = new Audio(); | ||
− | + | audio.addEventListener("canplaythrough", function(){ | |
if($(this).attr("file") == loadingfile) loadingnow.bgm ++; | if($(this).attr("file") == loadingfile) loadingnow.bgm ++; | ||
$("#avgload").html("加载进度: PIC[" + loadingnow.doll + "/" + loadingfin.doll + "] CG[" + loadingnow.bg + "/" + loadingfin.bg + "] BGM[" + loadingnow.bgm + "/" + loadingfin.bgm + "]"); | $("#avgload").html("加载进度: PIC[" + loadingnow.doll + "/" + loadingfin.doll + "] CG[" + loadingnow.bg + "/" + loadingfin.bg + "] BGM[" + loadingnow.bgm + "/" + loadingfin.bgm + "]"); |
2021年2月18日 (四) 19:03的版本
{{剧情模拟器剧情导航}} {{#Widget:AssembledPlotOptions|title=七周年祝贺|json=AVG_Anniversary_7}} {{#Widget:AVGplayer/css}} {{#Widget:AVGplayer/js}} {{#Widget:AssembledPlotOptions/common}}