◆少前百科是非盈利性、非官方的少女前线维基百科。
◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!点这里 加入少前百科
◆有任何意见、建议、纠错,欢迎在 GFwiki:反馈与建议 提出和讨论。编辑事务讨论QQ群:597764980,微博@GFwiki少前百科
◆To foreigners,You can use twitter to contact us.
Icon Nyto Silver.png

更改

跳转至: 导航搜索

Widget:AVGplayer

添加5,944字节2021年1月24日 (日) 20:25
更新
"M4A1(2)":"http://www.gfwiki.org/images/4/41/M4A1_SAD.png",
"AR15(2)":"http://www.gfwiki.org/images/3/39/AR15_T.png",
"M4A1(0)":"http://www.gfwiki.org/images/4/4e/Pic_M4A1.png", "RO635(0)":"http://www.gfwiki.org/images/a/ae/%E5%B0%91%E5%A5%B3%E5%89%8D%E7%BA%BF-RO635.png", "RO635(4)":"http://www.gfwiki.org/images/c/c8/Pic_RO635_4.png",  "M4 SOPMOD IIMod(0)":"http://www.gfwiki.org/images/7/70/M4_SOPMOD_IIMod.png",  "NPC-Kalin(0)":"http://www.gfwiki.org/images/2/21/Kalina.png", "NPC-Kalin(1)":"http://www.gfwiki.org/images/a/a5/Kalina_1.png", "NPC-Kalin(2)":"http://www.gfwiki.org/images/1/15/Kalina_2.png", "NPC-Kalin(3)":"http://www.gfwiki.org/images/9/95/Kalina_3.png", "NPC-Kalin(4)":"http://www.gfwiki.org/images/6/67/Kalina_4.png", "NPC-Kalin(5)":"http://www.gfwiki.org/images/0/0b/Kalina_5.png", "NPC-Kalin(6)":"http://www.gfwiki.org/images/0/0c/Kalina_6.png", "NPC-Kalin(7)":"http://www.gfwiki.org/images/1/11/Kalina_7.png", "NPC-Kalin(8)":"http://www.gfwiki.org/images/2/29/Kalina_8.png",  "NPC-Jason(0)":"http://www.gfwiki.org/images/e/e5/NPC-Jason.png",  "P22(0)":"http://www.gfwiki.org/images/7/77/Pic_P22.png", "Lewis(0)":"http://www.gfwiki.org/images/5/5d/Pic_Lewis.png",
};
"BGM_Battle":"http://www.gfwiki.org/images/f/fa/BGM_Battle.wav",
"BGM_Empty":"",
"BGM_Truth":"http://www.gfwiki.org/images/b/b3/BGM_Truth.wav",
"BGM_Room":"http://www.gfwiki.org/images/c/c2/BGM_Room.wav",
};
"8":"http://www.gfwiki.org/images/9/9a/%E4%BD%9C%E6%88%98%E5%AE%A4avg.png",
"9":"",
"15":"http://www.gfwiki.org/images/a/ab/%E5%AE%A4%E5%86%85%E6%88%98%E6%96%97.png", "82":"http://www.gfwiki.org/images/6/63/BG-Dorm.png", "85":"http://www.gfwiki.org/images/b/b8/BG_Inner.png", "166":"http://www.gfwiki.org/images/7/79/BG-Cybercity.png", "170":"http://www.gfwiki.org/images/c/c6/19WinterCG1.png",
};
var linepos = 0;
var avgtxt = "";//avg文本var avgnextline = "";//当一个场景有多个+台词时
var autosign = 0;//是否开启自动模式var autospeed = 4;var autotime = 10;//自动速度
var logallsign = 0;//log是否展示全部的标志
var printwordstr; //打印的台词var printwordnum; //打印台词的位置 var blacksign = 0; //黑幕的标志  function avgcreat(){ 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/4/4a/AVG-31-0-1.txt">纪念</div> <div class="avgchoice" link="http://www.gfwiki.org/images/9/90/AVG-31-1A1-1.txt">幻影的和平 Ⅰ</div> <div class="avgchoice" link="http://www.gfwiki.org/images/0/04/AVG-31-1A2-1.txt">幻影的和平 Ⅱ</div>`; $("#avgchosebox").html(output); $(".avgchoice").css({"border":"1px #8886 solid", "padding":"6px 4px"}); $(".avgchoice").click(function(){ var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { avgtxt = (this.responseText); readline(); } }; xmlhttp.open("GET", $(this).attr("http://wwwlink"), true); xmlhttp.send();  $("#avgbgm").attr("src", ""); $("#avgbackground").html(""); $("#avgdollcent").html(""); $("#avgdollleft").html(""); $("#avgdollrigh").html(""); $("#avgdollleftmask").css("display","none"); $("#avgdollrighmask").css("display","none"); $("#avgbackground").html(""); linepos = 0; avgnextline = 0; }); $(".avgchoice").gfwikimouseover(function(){ $(this).org/images/5/51/AVG0css({"background-3-2.txtcolor":"#eaeaeaaa", true"color":"black"}); });xmlhttp $(".avgchoice").mouseout(function(){ $(this).sendcss({"background-color":"inherit","color":"inherit"}); });}
function divcreat(){
<div id="avgauto" class="avgbutton" style="display:inline-block; user-select:none; border:1px #eaeaea solid; padding:5px 10px; cursor:pointer;">自动</div>
<div id="avgautospeed" style="display:-webkit-inline-box; border:1px #eaeaea solid; vertical-align:top;"><table><tr>
<td id="avgautominus" class="avgautobuttonavgpushbutton" style="width:30%; display:inline-block; user-select:none; border:1px #eaeaea88 solid; padding:2px 10px; cursor:pointer;">-</td>
<td id="avgautonum" style="width:40%; text-align:center;">4</td>
<td id="avgautoplus" class="avgautobuttonavgpushbutton" style="width:30%; display:inline-block; user-select:none; border:1px #eaeaea88 solid; padding:2px 10px; cursor:pointer;">+</td>
</tr></table></div>
<span style="padding:5px;"></span>
<div id="avglogall" class="avgbutton" style="display:inline-block; user-select:none; border:1px #eaeaea solid; padding:5px 10px; cursor:pointer;">全部</div>
<span style="padding:5px;"></span>
<div id="avgtobegin" class="avgautobuttonavgpushbutton" style="display:inline-block; user-select:none; border:1px #eaeaea solid; padding:5px 10px; cursor:pointer;">返回开始</div> <div id="avgchose" state="off" class="avgpushbutton" style="display:inline-block; user-select:none; border:1px #eaeaea solid; padding:5px 10px; cursor:pointer;">选择剧情</div>
</div>
<div id="avgbox" style="width:1200px; height:675px; user-select:none; background-color:#111; border:1px #8888 solid;"> <div id="avgbackground" style="position:absolute; width:1200px; height:675px; overflow:hidden; background-color:#111; z-index:1; border:1px #8888 solid;"></div>
<div id="avgdollcent" style="width:675px; height:585px; position:absolute; top:150px; left:262.5px; overflow:hidden; z-index:6;"></div>
<div id="avglogbox" style="width:1200px; height:675px; border:1px #8888 solid; overflow-y:scroll; display:none; background-color:#111; margin:10px 0px;"></div>
<div id="avgchosebox" style="width:300px; height:675px; border:1px #8888 solid; overflow-y:scroll; display:none; position:absolute; background-color:#111; left:1220px; top:40px;"></div>
<audio id="avgbgm" controls preload loop style="display:none;"></audio>`;
});
$(".avgautobuttonavgpushbutton").mousedown(function(){
$(this).css({"background-color":"#f4c430aa","color":"black"});
});
$(".avgautobuttonavgpushbutton").mouseup(function(){
$(this).css({"background-color":"#111111","color":"#eaeaea"});
});
$("#avgauto").click(function(){
autosign = 1;
setTimeout(function(){autoreadline();}, 800 * autotime printwordstr.length / autospeed);
$(this).css({"background-color":"#f4c430","color":"black"});
$("#avghand").css({"background-color":"#111111","color":"#eaeaea"});
var numnow = Number($("#avgautonum").html());
$("#avgautonum").html((numnow >= 8) ? 8 : numnow + 1);
autospeed = (numnow >= 8) ? 8 : numnow + 1;
});
$("#avgautominus").click(function(){
var numnow = Number($("#avgautonum").html());
$("#avgautonum").html((numnow <= 1) ? 1 : numnow - 1);
autospeed = (numnow <= 1) ? 1 : numnow - 1;
});
linepos = 0;
readline();
});
$("#avgchose").click(function(){
if($(this).attr("state") == "on"){
$(this).attr("state", "off");
$(this).css({"background-color":"#111111","color":"#eaeaea"});
$("#avgchosebox").css("display","none");
} else if($(this).attr("state") == "off"){
$(this).attr("state", "on");
$(this).css({"background-color":"#f4c430","color":"black"});
$("#avgchosebox").css("display","block");
avglogcreat();
}
});
}
divcreat();
avgcreat();$("#avgbox").click(function(){ if(autosign == 1) $("#avghand").click(); if(printwordstr && (printwordnum < printwordstr.length)) {printwordnum = printwordstr.length; printword();} else readline();});
function readline(){
if(avgnextline){
printwordstr = avgnextline.slice(0, (avgnextline.indexOf("+") == -1) ? avgnextline.length : avgnextline.indexOf("+")); var fontcolor = (printwordstr.indexOf("color") == -1) ? "#EAEAEA" : printwordstr.slice(7, 14); setTimeout(function(){ $("#avgline").html(avgnextline""); printword(); $("#avgline").css("color", fontcolor);}, 800); if(printwordstr.indexOf("color") != -1) printwordstr = printwordstr.slice(0"<color=#00CCFF>".length, avgnextlineprintwordstr.indexOf("+</color>"))); printwordnum = 1;
if(avgnextline.indexOf("+") == -1) avgnextline = "";
else avgnextline = avgnextline.slice(avgnextline.indexOf("+") + 1, avgnextline.length);
//black
if(thisline.indexOf("<黑屏2>") != -1&& blacksign == 0){
$("#avgdollcent").html("");
$("#avgdollleft").html(""); $("#avgdollleftmask").css("display","none"); $("#avgdollrigh").html(""); $("#avgdollleftmaskavgdollrighmask").css("display","none"); $("#avgdollrighmaskavgspeaker").html(""); $("#avgline").html(""); $("#avgbackground").html(""); $("#avgbgm").cssattr("displaysrc","none"); $("#avgdollcent").fadeOut(1000 / autospeed); $("#avgdollleft").fadeOut(1000 / autospeed); $("#avgdollrigh").fadeOut(1000 / autospeed); $("#avgbackground").htmlfadeOut(1000 / autospeed); $("#avgword").fadeOut(1000 / autospeed); blacksign = 1; return;
}
if(thisline.indexOf("<Speaker>") != -1){
var speaker = thisline.slice(thisline.indexOf("<Speaker>") + ("<Speaker>").length , thisline.indexOf("</Speaker>"));
setTimeout(function(){ $("#avgspeaker").html(speaker); }, 500);
}
else setTimeout(function(){ $("#avgspeaker").html(" "); }, 500);
//word line
if(thisline.indexOf(":") != -1 && ){ var keyword = (thisline.indexOf("+") != -1) ? "+" : "\n"; printwordstr = thisline.slice(thisline.indexOf(":") + 1, thisline.indexOf(keyword)); var fontcolor = (printwordstr.indexOf("color") == -1){? "#EAEAEA" : printwordstr.slice(7, 14);  $("#avgword").fadeOut(500); setTimeout(function(){ $("#avgline").html(thisline""); $("#avgword").fadeIn(500);}, 500); setTimeout(function(){ printword(); $("#avgline").slicecss("color", fontcolor);}, 800); if(thislineprintwordstr.indexOf(":color") + != -1) printwordstr = printwordstr.slice("<color=#00CCFF>".length, thislineprintwordstr.indexOf("\n</color>"))); autotime printwordnum = 1;  if((thisline.indexOf("+") != -1)) avgnextline = thisline.slice(thisline.indexOf(":+") + 1, thisline.indexOflength); } else { $("#avgword").fadeOut(500); setTimeout(function(){ $("#avgline").html("\n"); $("#avgword").lengthfadeIn(500);}, 500);
}
  else if(thisline.indexOf(":") !blacksign = -1 && thisline.indexOf("+") != -1){ $("#avglineavgdollcent").htmlfadeIn(thisline.slice(thisline.indexOf3200 / autospeed); $(":#avgdollleft") + 1, thisline.indexOffadeIn(3200 / autospeed); $("+#avgdollrigh")).fadeIn(3200 / autospeed); autotime = thisline.slice(thisline.indexOf$(":#avgbackground") + 1, thisline.indexOffadeIn(2000 / autospeed); $("+#avgword").fadeIn(4000 / autospeed).length; avgnextline blacksign = thisline.slice(thisline.indexOf("+") + 1, thisline.length)0;
}
else $("#avgline").html("");
//position sign
if(autosign == 0) return;
readline();
setTimeout(function(){autoreadline();}, 800 1000 + 500 * autotime printwordstr.length / autospeed);} function printword(){ $("#avgline").html(printwordstr.slice(0, printwordnum)); printwordnum ++; if(printwordnum > printwordstr.length) return; setTimeout(function(){ printword();}, 300 / autospeed);
}
24,691
个编辑

导航菜单