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

“Widget:AVGplayer”的版本间的差异

来自少前百科GFwiki
跳转至: 导航搜索
(更新)
(更新)
第17行: 第17行:
  
 
     "M4 SOPMOD IIMod(0)":"http://www.gfwiki.org/images/7/70/M4_SOPMOD_IIMod.png",
 
     "M4 SOPMOD IIMod(0)":"http://www.gfwiki.org/images/7/70/M4_SOPMOD_IIMod.png",
 +
    "M4 SOPMOD IIMod(3)":"http://www.gfwiki.org/images/8/8c/Pic_M4_SOPMOD_IIMod_2.png",
 +
    "AR15Mod(0)":"http://www.gfwiki.org/images/c/cd/Pic_AR15Mod.png",
 +
    "AR15Mod(4)":"http://www.gfwiki.org/images/c/cd/AR15Mod_%E5%BE%AE%E7%AC%91.png",
 +
    "RO635Mod(0)":"http://www.gfwiki.org/images/9/90/Pic_RO635Mod.png",
 +
    "RO635Mod(2)":"http://www.gfwiki.org/images/2/26/Pic_RO635Mod_2.png",
 +
    "RO635Mod(3)":"http://www.gfwiki.org/images/8/8c/Pic_RO635Mod_3.png",
 +
    "RO635Mod(4)":"http://www.gfwiki.org/images/7/74/Pic_RO635Mod_4.png",
 +
    "RO635Mod(5)":"http://www.gfwiki.org/images/a/a5/Pic_RO635Mod_5.png",
  
 
     "NPC-Kalin(0)":"http://www.gfwiki.org/images/2/21/Kalina.png",
 
     "NPC-Kalin(0)":"http://www.gfwiki.org/images/2/21/Kalina.png",
第27行: 第35行:
 
     "NPC-Kalin(7)":"http://www.gfwiki.org/images/1/11/Kalina_7.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-Kalin(8)":"http://www.gfwiki.org/images/2/29/Kalina_8.png",
 +
 +
    "NPC-Ange(2)":"http://www.gfwiki.org/images/8/82/Pic_NPC-Ange_2.png",
  
 
     "NPC-Jason(0)":"http://www.gfwiki.org/images/e/e5/NPC-Jason.png",
 
     "NPC-Jason(0)":"http://www.gfwiki.org/images/e/e5/NPC-Jason.png",
 
     "NPC-Helian(0)":"http://www.gfwiki.org/images/4/4b/NPC-Helian.png",
 
     "NPC-Helian(0)":"http://www.gfwiki.org/images/4/4b/NPC-Helian.png",
 +
    "NPC-Kyruger(0)":"http://www.gfwiki.org/images/c/cb/NPC-Kyruger.png",
 +
    "NPC-Griffin(0)":"http://www.gfwiki.org/images/9/9b/NPC-Griffin%280%29.png",
 +
    "NPC-Griffin(1)":"http://www.gfwiki.org/images/c/c4/NPC-Griffin%281%29.png",
 +
 +
    "NPC-Refugee(0)":"http://www.gfwiki.org/images/9/97/Pic_NPC-Refugee_0.png",
 +
    "NPC-Lilyan(0)":"http://www.gfwiki.org/images/1/13/Pic_NPC-Lilyan_0.png",
 +
    "NPC-Elijah(0)":"http://www.gfwiki.org/images/a/a8/NPC-Elijah%280%29.png",
 +
 +
    "NPC-Machlian(0)":"http://www.gfwiki.org/images/c/c7/NPC-Machlian%280%29.png",
 +
    "NPC-Machlian(1)":"http://www.gfwiki.org/images/0/03/NPC-Machlian%281%29.png",
 +
    "NPC-Machlian(2)":"http://www.gfwiki.org/images/0/0a/NPC-Machlian%282%29.png",
 +
    "NPC-Machlian(3)":"http://www.gfwiki.org/images/b/b7/NPC-Machlian%283%29.png",
 +
    "NPC-Machlian(4)":"http://www.gfwiki.org/images/f/f2/NPC-Machlian%284%29.png",
 +
    "NPC-Machlian(6)":"http://www.gfwiki.org/images/b/bc/NPC-Machlian%286%29.png",
 +
    "NPC-Machlian(7)":"http://www.gfwiki.org/images/9/97/NPC-Machlian%287%29.png",
 +
    "NPC-Machlian(8)":"http://www.gfwiki.org/images/2/2d/NPC-Machlian%288%29.png",
 +
   
 +
    /*  16 */ "M1928A1(0)":"http://www.gfwiki.org/images/f/f4/Pic_M1928A1.png",
 +
    /* 106 */ "FAL(0)":"http://www.gfwiki.org/images/d/d2/Pic_FNFALhx.png",
 +
    /* 112 */ "NEGEV(0)":"http://www.gfwiki.org/images/0/04/Pic_NEGEV.png",
 +
    /* 257 */ "M200(0)":"http://www.gfwiki.org/images/3/3e/Pic_M200.png",
 +
    /* 272 */ "DesertEagle(0)":"http://www.gfwiki.org/images/4/4b/Pic_DesertEagle.png",
 +
    /* 296 */ "SL8(0)":"http://www.gfwiki.org/images/9/92/Pic_SL8.png",
 +
    /* 296 */ "SL8(3)":"http://www.gfwiki.org/images/d/da/Pic_SL8_3.png",
 +
    /* 316 */ "GeneralLiu(0)":"http://www.gfwiki.org/images/a/a0/Pic_GeneralLiu.png",
 +
    /* 316 */ "GeneralLiu(1)":"http://www.gfwiki.org/images/d/d7/Pic_GeneralLiu_D.png",
 +
    /* 331 */ "Kolibri(0)":"http://www.gfwiki.org/images/a/a7/Pic_Kolibri.png",
 +
    /* 332 */ "Derringer(0)":"http://www.gfwiki.org/images/a/a8/Pic_Derringer.png",
 +
    /* 333 */ "VP1915(0)":"http://www.gfwiki.org/images/d/dc/Pic_VP1915.png",
 +
    /* 334 */ "Savage99(0)":"http://www.gfwiki.org/images/e/ee/Pic_Savage99.png",
 +
    /* 335 */ "Fedorov(0)":"http://www.gfwiki.org/images/e/e0/Pic_Fedorov.png",
  
 
     "P22(0)":"http://www.gfwiki.org/images/7/77/Pic_P22.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",
 
     "Lewis(0)":"http://www.gfwiki.org/images/5/5d/Pic_Lewis.png",
};
+
    "AUGPARA(0)":"http://www.gfwiki.org/images/1/11/Pic_AUGPARA.png",
 +
    "VHS(0)":"http://www.gfwiki.org/images/5/57/Pic_VHS.png",
 +
 
 +
    "Nyto(1)":"http://www.gfwiki.org/images/e/e3/Pic_Nyto_black_LL.png",
 +
    "NytoWhite(0)":"http://www.gfwiki.org/images/1/17/Pic_Nyto_white_LL.png",
 +
    "NPC-Mercurows(0)":"http://www.gfwiki.org/images/f/f4/NPC-Mercurows.png",
 +
    "NPC-Nimogen(0)":"http://www.gfwiki.org/images/b/be/NPC-Nimogen.png",
 +
 
 +
    "Narciss(4)":"http://www.gfwiki.org/images/0/07/Narciss%284%29.png",
 +
    "NytoIsomer(3)":"http://www.gfwiki.org/images/1/11/Nyto_Isomer_Shadow.png",
 +
    "NytoIsomer(8)":"http://www.gfwiki.org/images/d/d0/Nyto_Isomer_8.png",
  
var bgmarray = {
+
     "NPC-Doppelsoldner(0)":"http://www.gfwiki.org/images/e/e8/Pic_Doppelsoldner_LL.png",
     "BGM_Battle":"http://www.gfwiki.org/images/f/fa/BGM_Battle.wav",
+
     "NPC-Uhlan(0)":"http://www.gfwiki.org/images/4/4d/Pic_Uhlan_LL.png",
     "BGM_Empty":"",
+
     "NPC-Rodelero(0)":"http://www.gfwiki.org/images/8/88/Pic_Rodelero_LL.png",
     "BGM_Truth":"http://www.gfwiki.org/images/b/b3/BGM_Truth.wav",
+
     "NPC-Strelet(0)":"http://www.gfwiki.org/images/3/39/Pic_Strelet_LL.png",
     "BGM_Room":"http://www.gfwiki.org/images/c/c2/BGM_Room.wav",
 
 
};
 
};
  
 
var bgarray = {
 
var bgarray = {
 +
    "1":"http://www.gfwiki.org/images/0/00/%E6%A0%91%E6%9E%97.png",
 
     "8":"http://www.gfwiki.org/images/9/9a/%E4%BD%9C%E6%88%98%E5%AE%A4avg.png",
 
     "8":"http://www.gfwiki.org/images/9/9a/%E4%BD%9C%E6%88%98%E5%AE%A4avg.png",
 
     "9":"http://www.gfwiki.org/images/4/44/BG-none.png",
 
     "9":"http://www.gfwiki.org/images/4/44/BG-none.png",
 
     "15":"http://www.gfwiki.org/images/a/ab/%E5%AE%A4%E5%86%85%E6%88%98%E6%96%97.png",
 
     "15":"http://www.gfwiki.org/images/a/ab/%E5%AE%A4%E5%86%85%E6%88%98%E6%96%97.png",
 +
    "73":"http://www.gfwiki.org/images/1/17/17xh-ShootingRange.png",
 
     "82":"http://www.gfwiki.org/images/6/63/BG-Dorm.png",
 
     "82":"http://www.gfwiki.org/images/6/63/BG-Dorm.png",
 
     "85":"http://www.gfwiki.org/images/b/b8/BG_Inner.png",
 
     "85":"http://www.gfwiki.org/images/b/b8/BG_Inner.png",
 
     "160":"http://www.gfwiki.org/images/a/ac/BG-Sanatorium.png",
 
     "160":"http://www.gfwiki.org/images/a/ac/BG-Sanatorium.png",
 +
    "161":"http://www.gfwiki.org/images/d/dc/BG_Base.png",
 
     "166":"http://www.gfwiki.org/images/7/79/BG-Cybercity.png",
 
     "166":"http://www.gfwiki.org/images/7/79/BG-Cybercity.png",
 
     "170":"http://www.gfwiki.org/images/c/c6/19WinterCG1.png",
 
     "170":"http://www.gfwiki.org/images/c/c6/19WinterCG1.png",
 +
    "182":"http://www.gfwiki.org/images/d/dc/BG-Guildhall.png",
 +
    "197":"http://www.gfwiki.org/images/8/88/2019summer_3.png",
 +
    "262":"http://www.gfwiki.org/images/c/c8/GunCGlake.png",
 +
    "269":"http://www.gfwiki.org/images/4/46/2020summerFlowerfield.png",
 +
    "270":"http://www.gfwiki.org/images/6/67/2020summerOrphanage.png",
 +
    "315":"http://www.gfwiki.org/images/6/6a/2021white_Berlin.png",
 +
    "318":"http://www.gfwiki.org/images/d/df/2021white_Bernvillage.png",
 +
    "334":"http://www.gfwiki.org/images/e/e3/2021white_Virgin.png",
 +
    "335":"http://www.gfwiki.org/images/f/f0/2021white_Morridow.png",
 +
    "356":"http://www.gfwiki.org/images/6/65/2021white_Safehouse.png",
 +
    "357":"http://www.gfwiki.org/images/b/bd/2021white_GriffinSPAWAR.png",
 +
};
 +
 +
var bgmarray = {
 +
    "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",
 
};
 
};
  
第67行: 第138行:
  
 
var blacksign = 0; //黑幕的标志
 
var blacksign = 0; //黑幕的标志
 +
 +
var loadingfile = "";
 
var loadingfin = {doll:0, bg:0, bgm:0};
 
var loadingfin = {doll:0, bg:0, bgm:0};
 
var loadingnow = {doll:0, bg:0, bgm:0};
 
var loadingnow = {doll:0, bg:0, bgm:0};
  
 
function avgcreat(){
 
function avgcreat(){
     var output = `<div class="avgchoice" link="http://www.gfwiki.org/images/5/51/AVG0-3-2.txt">测试</div>
+
     var output = `
 +
    <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/3/30/AVG-44-B1-1b.txt">1-1 b 生存指南</div>
 +
    <div class="avgchoice" link="http://www.gfwiki.org/images/b/bf/AVG-44-B1-1First.txt">1-1 与蛇缠斗 Ⅰ 作战前</div>
 +
    <div class="avgchoice" link="http://www.gfwiki.org/images/6/62/AVG-44-B1-1-1point.txt">1-1 与蛇缠斗 Ⅰ 作战中1</div>
 +
    <div class="avgchoice" link="http://www.gfwiki.org/images/d/d4/AVG-44-B1-1-2point.txt">1-1 与蛇缠斗 Ⅰ 作战中2</div>
 +
    <div class="avgchoice" link="http://www.gfwiki.org/images/7/79/AVG-44-B1-1-2.txt">1-1 与蛇缠斗 Ⅱ</div>
 +
    <div class="avgchoice" link="http://www.gfwiki.org/images/8/8e/AVG-44-B1-2a.txt">1-2 a 匿伏</div>
 +
    <div class="avgchoice" link="http://www.gfwiki.org/images/a/a2/AVG-44-B1-2-1.txt">1-2 阿帕忒的诞生 Ⅰ</div>
 +
    <div class="avgchoice" link="http://www.gfwiki.org/images/d/dd/AVG-44-B1-2First.txt">1-2 阿帕忒的诞生 Ⅱ 作战中</div>
 +
    <div class="avgchoice" link="http://www.gfwiki.org/images/9/93/AVG-44-B1-2End.txt">1-2 阿帕忒的诞生 Ⅱ 作战后</div>
 +
    <div class="avgchoice" link="http://www.gfwiki.org/images/2/20/AVG-44-B1-3First.txt">1-3 赫墨拉指向光明 Ⅰ</div>
 +
    <div class="avgchoice" link="http://www.gfwiki.org/images/b/b8/AVG-44-B1-3-1.txt">1-3 赫墨拉指向光明 Ⅱ 作战前</div>
 +
    <div class="avgchoice" link="http://www.gfwiki.org/images/3/34/AVG-44-B1-3-2.txt">1-3 赫墨拉指向光明 Ⅲ</div>
 +
    <div class="avgchoice" link="http://www.gfwiki.org/images/d/dc/AVG-44-B1-4-1.txt">1-4 狮鹫之肩 Ⅰ</div>
 +
    <div class="avgchoice" link="http://www.gfwiki.org/images/4/42/AVG-44-B1-4-2.txt">1-4 狮鹫之肩 Ⅲ</div>`;   
 +
   
 +
    /*<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/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/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>
+
     <div class="avgchoice" link="http://www.gfwiki.org/images/0/04/AVG-31-1A2-1.txt">幻影的和平 Ⅱ</div>*/
    <div class="avgchoice" link="http://www.gfwiki.org/images/6/6a/AVG-44-B0-1.txt">测试2</div>`;   
 
 
 
 
     $("#avgchosebox").html(output);
 
     $("#avgchosebox").html(output);
     $(".avgchoice").css({"border":"1px #8886 solid", "padding":"6px 4px"});
+
     $(".avgchoice").css({"border":"1px #8886 solid", "padding":"6px 4px", "user-select":"none", "cursor":"pointer"});
 
     $(".avgchoice").click(function(){
 
     $(".avgchoice").click(function(){
 
         var xmlhttp = new XMLHttpRequest();
 
         var xmlhttp = new XMLHttpRequest();
 
         xmlhttp.onreadystatechange = function() {
 
         xmlhttp.onreadystatechange = function() {
             if (this.readyState == 4 && this.status == 200) { avgtxt = (this.responseText); readline(); firstloading(); }
+
             if (this.readyState == 4 && this.status == 200) {  
 +
                avgtxt = (this.responseText);  
 +
                readline();  
 +
                firstloading();  
 +
            }
 
         };
 
         };
 
         xmlhttp.open("GET", $(this).attr("link"), true);
 
         xmlhttp.open("GET", $(this).attr("link"), true);
 
         xmlhttp.send();
 
         xmlhttp.send();
  
 +
        loadingfile = $(this).attr("link");
 
         $("#avgbgm").attr("src", "");
 
         $("#avgbgm").attr("src", "");
 
         $("#avgbackground").html("");
 
         $("#avgbackground").html("");
第94行: 第188行:
 
     });
 
     });
 
     $(".avgchoice").mouseover(function(){
 
     $(".avgchoice").mouseover(function(){
         $(this).css({"background-color":"#eaeaeaaa","color":"black"});
+
         $(this).css({"background-color":"#f4c430","color":"black"});
 
     });
 
     });
 
     $(".avgchoice").mouseout(function(){
 
     $(".avgchoice").mouseout(function(){
第123行: 第217行:
 
         <div id="avgbox" style="width:1200px; height:675px; user-select:none; background-color:#111; border:1px #8888 solid;">
 
         <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;"></div>
 
             <div id="avgbackground" style="position:absolute; width:1200px; height:675px; overflow:hidden; background-color:#111; z-index:1;"></div>
             <div id="avgword" style="width:600px; height:120px; position:absolute; top:584px; left:300px; z-index:7; background-image:url(http://www.gfwiki.org/images/3/3e/Avglinebg.png); background-size:7px; border: 1px #8888 solid; box-shadow: 0px 0px 3px #8888;">
+
             <div id="avgword" style="width:600px; height:120px; position:absolute; top:584px; left:300px; z-index:7; background-image:url(http://www.gfwiki.org/images/3/3e/Avglinebg.png); background-size:7px; border: 1px #8888 solid; box-shadow: 0px 0px 3px #8888; overflow:hidden;">
 
                 <div id="avgspeaker" style="margin:2px 8px; font-size:120%;"></div>
 
                 <div id="avgspeaker" style="margin:2px 8px; font-size:120%;"></div>
 
                 <div id="avgline" style="margin:4px 15px; font-size:110%; position:absolute; top:26px;"></div>
 
                 <div id="avgline" style="margin:4px 15px; font-size:110%; position:absolute; top:26px;"></div>
第129行: 第223行:
 
         </div>
 
         </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="avglogbox" style="width:1200px; height:675px; border:1px #8888 solid; overflow-y:scroll; display:none; background-color:#111;"></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>
 
         <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>`;
 
         <audio id="avgbgm" controls preload loop style="display:none;"></audio>`;
第151行: 第245行:
 
     $("#avgauto").click(function(){
 
     $("#avgauto").click(function(){
 
         autosign = 1;
 
         autosign = 1;
         setTimeout(function(){autoreadline();}, 800 * printwordstr.length / autospeed);  
+
         setTimeout(function(){ autoreadline(); }, 4000 / autospeed);  
 
         $(this).css({"background-color":"#f4c430","color":"black"});
 
         $(this).css({"background-color":"#f4c430","color":"black"});
 
         $("#avghand").css({"background-color":"#111111","color":"#eaeaea"});
 
         $("#avghand").css({"background-color":"#111111","color":"#eaeaea"});
第176行: 第270行:
 
             $(this).attr("state", "off");
 
             $(this).attr("state", "off");
 
             $(this).css({"background-color":"#111111","color":"#eaeaea"});
 
             $(this).css({"background-color":"#111111","color":"#eaeaea"});
             $("#avglogbox").css("display","none");
+
             $("#avglogbox").fadeOut(300);
 +
            setTimeout(function(){ $("#avgbox").fadeIn(300); }, 300);
 
         } else if($(this).attr("state") == "off"){
 
         } else if($(this).attr("state") == "off"){
 
             $(this).attr("state", "on");
 
             $(this).attr("state", "on");
 
             $(this).css({"background-color":"#f4c430","color":"black"});
 
             $(this).css({"background-color":"#f4c430","color":"black"});
             $("#avglogbox").css("display","block");
+
             $("#avgbox").fadeOut(300);
 +
            setTimeout(function(){ $("#avglogbox").fadeIn(300); }, 300);
 
             avglogcreat();
 
             avglogcreat();
 
         }
 
         }
第223行: 第319行:
  
 
function readline(){
 
function readline(){
 +
    if(blacksign == 1) return;
 +
 
     if(avgnextline){
 
     if(avgnextline){
 
         printwordstr = avgnextline.slice(0, (avgnextline.indexOf("+") == -1) ? avgnextline.length : avgnextline.indexOf("+"));  
 
         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(""); printword(); }, 400);
         setTimeout(function(){ $("#avgline").html(""); printword(); $("#avgline").css("color", fontcolor);}, 800);
+
 
        if(printwordstr.indexOf("color") != -1) printwordstr = printwordstr.slice("<color=#00CCFF>".length, printwordstr.indexOf("</color>"));
 
 
         printwordnum = 1;
 
         printwordnum = 1;
 
         if(avgnextline.indexOf("+") == -1) avgnextline = "";
 
         if(avgnextline.indexOf("+") == -1) avgnextline = "";
第238行: 第335行:
 
     //black
 
     //black
 
     if(thisline.indexOf("<黑屏2>") != -1 && blacksign == 0){
 
     if(thisline.indexOf("<黑屏2>") != -1 && blacksign == 0){
         $(".avgdollpic").remove();
+
         $(".avgdollpic").fadeOut(1000 / autospeed);
        $("#avgspeaker").html(""); $("#avgline").html("");
 
        $("#avgbackground").html(""); $("#avgbgm").attr("src", "");
 
 
         $("#avgbackground").fadeOut(1000 / autospeed); $("#avgword").fadeOut(1000 / autospeed);
 
         $("#avgbackground").fadeOut(1000 / autospeed); $("#avgword").fadeOut(1000 / autospeed);
 +
        setTimeout(function(){
 +
            $(".avgdollpic").remove(); $("#avgbackground").html(""); $("#avgbgm").attr("src", "");
 +
            $("#avgspeaker").html(""); $("#avgline").html("");
 +
            setTimeout(function(){
 +
                blacksign = 2;
 +
                readline();
 +
                $(".avgdollpic").fadeIn(3000 / autospeed); $("#avgbackground").fadeIn(3000 / autospeed); $("#avgword").fadeIn(2000 / autospeed);
 +
            }, 3000 / autospeed);
 +
        }, 1000 / autospeed);
 
         blacksign = 1;
 
         blacksign = 1;
 
         return;
 
         return;
 +
    } else if(blacksign == 2){
 +
        blacksign = 0;
 
     }
 
     }
  
第279行: 第385行:
 
         else if(avgpicstr.indexOf("<Speaker>") > avgpicstr.indexOf(";")){
 
         else if(avgpicstr.indexOf("<Speaker>") > avgpicstr.indexOf(";")){
 
             the_speaker = "right";
 
             the_speaker = "right";
             avgpicleft = avgpicstr.slice(0, avgpicstr.indexOf(";"));
+
             avgpicleft = avgpicstr.slice(0, ((avgpicstr.indexOf("<") < avgpicstr.indexOf(";")) ? avgpicstr.indexOf(";") : avgpicstr.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};
 
         }
 
         }
  
 +
        // the same - none - changed
 
         if(newavgdoll == avgdoll) {}
 
         if(newavgdoll == avgdoll) {}
 
         else if(newavgdoll == {left:0,center:0,right:0}) {
 
         else if(newavgdoll == {left:0,center:0,right:0}) {
第289行: 第396行:
 
             setTimeout(function(){ $(".avgdollpic").remove();}, 150);
 
             setTimeout(function(){ $(".avgdollpic").remove();}, 150);
 
         } else {
 
         } else {
             let telemask = `<div class="telemaskdiv" style="background-image:url(http://www.gfwiki.org/images/3/38/Telephonebg.png); position:absolute; top:37px; left:262px; width:264px; height:382px; background-size:5px; opacity:0.6; border:8px double #eaeaea;"></div>`;
+
            // telephone frame mask - not speaker dark mask
 +
            // if telephone frame mask exist , not speaker dark mask won't exist
 +
             let telemask = `<div class="telemaskdiv" style="background-image:url(http://www.gfwiki.org/images/3/38/Telephonebg.png); position:absolute; top:37px; left:262px; width:264px; height:382px; background-size:5px; opacity:0.6; border:8px double #0690ef;"></div>`;
 
             let darkmask_a = `<div class="darkmask" style="position:absolute; top:0px; width:800px; height:800px; -webkit-mask-image:url(`;
 
             let darkmask_a = `<div class="darkmask" style="position:absolute; top:0px; width:800px; height:800px; -webkit-mask-image:url(`;
 
             let darkmask_b = `); overflow:hidden; background-color:#0008; -webkit-mask-size:cover; display:none;"></div>`;
 
             let darkmask_b = `); overflow:hidden; background-color:#0008; -webkit-mask-size:cover; display:none;"></div>`;
第346行: 第455行:
 
                         $(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(".telemaskdiv").length){
+
                         if($(avgdoll_div[i]).children(".darkmask") && (the_speaker == "left")){
                        } else if($(avgdoll_div[i]).children(".darkmask") && (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();
第367行: 第475行:
 
                         $(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(".telemaskdiv").length){
+
                         if($(avgdoll_div[i]).children(".darkmask") && (the_speaker == "right")){
                        } else if($(avgdoll_div[i]).children(".darkmask") && (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();
第423行: 第530行:
 
     if(thisline.indexOf("<Speaker>") != -1){
 
     if(thisline.indexOf("<Speaker>") != -1){
 
         var speaker = thisline.slice(thisline.indexOf("<Speaker>") + ("<Speaker>").length , thisline.indexOf("</Speaker>"));
 
         var speaker = thisline.slice(thisline.indexOf("<Speaker>") + ("<Speaker>").length , thisline.indexOf("</Speaker>"));
         setTimeout(function(){ $("#avgspeaker").html(speaker); }, 300);
+
         setTimeout(function(){ $("#avgspeaker").html(speaker); }, 400);
     }
+
     } else setTimeout(function(){ $("#avgspeaker").html(" "); }, 400);
    else setTimeout(function(){ $("#avgspeaker").html(" "); }, 300);
 
  
     //word line
+
     //word line - color & size handler
 
     if(thisline.indexOf(":") != -1){
 
     if(thisline.indexOf(":") != -1){
         var keyword = (thisline.indexOf("+") != -1) ? "+" : "\n";
+
         let keyword = (thisline.indexOf("+") != -1) ? "+" : "\n";
         printwordstr = thisline.slice(thisline.indexOf(":") + 1, thisline.indexOf(keyword));  
+
         let line = thisline.slice(thisline.indexOf(":") + 1, thisline.length);
         var fontcolor = (printwordstr.indexOf("color") == -1) ? "#EAEAEA" : printwordstr.slice(7, 14);
+
        // color & size
 +
        line = line.replace(/<\/color>/g, "</span").replace(/<\/Size>/g, "</span");
 +
         line = line.replace(/<color=/g, "<span style=\"color:").replace(/<Size=/g, "<span style=\"font-size:1");
 +
        for(let j = 0; j < line.length; j++){
 +
            if(line.slice(j - ("font-size:1").length, j) == "font-size:1") line = line.slice(0, j+2)  + "%" + line.slice(j+2, line.length);
 +
        }
 +
        line = line.replace(/>/g, "\">").replace(/<\/span/g, "<\/span>");
 +
 
 +
        printwordstr = line.slice(0, line.indexOf(keyword));
  
         $("#avgword").fadeOut(300);
+
         $("#avgword").animate({opacity:"0.0"}, 400, "swing");
         setTimeout(function(){ $("#avgline").html(""); $("#avgword").fadeIn(300);}, 300);
+
         setTimeout(function(){ $("#avgline").html(""); $("#avgword").animate({opacity:"1.0"}, 400, "swing");}, 400);
         setTimeout(function(){ printword(); $("#avgline").css("color", fontcolor);}, 400);
+
         setTimeout(function(){ printword();}, 800);
        if(printwordstr.indexOf("color") != -1) printwordstr = printwordstr.slice("<color=#00CCFF>".length, printwordstr.indexOf("</color>"));
 
 
         printwordnum = 1;
 
         printwordnum = 1;
  
         if((thisline.indexOf("+") != -1)) avgnextline = thisline.slice(thisline.indexOf("+") + 1, thisline.length);
+
         if((line.indexOf("+") != -1)) avgnextline = line.slice(line.indexOf("+") + 1, line.length);
 
     } else {
 
     } else {
         $("#avgword").fadeOut(300);
+
         $("#avgword").animate({opacity:"0.0"}, 400, "swing");
         setTimeout(function(){ $("#avgline").html(""); $("#avgword").fadeIn(300);}, 300);
+
         setTimeout(function(){ $("#avgline").html(""); $("#avgword").animate({opacity:"1.0"}, 400, "swing");}, 400);
    }
 
 
 
    if(blacksign == 1){
 
        $(".avgdollpic").fadeIn(3200 / autospeed); $("#avgbackground").fadeIn(2000 / autospeed); $("#avgword").fadeIn(4000 / autospeed);
 
        blacksign = 0;
 
 
     }
 
     }
  
第458行: 第566行:
 
     if(autosign == 0) return;
 
     if(autosign == 0) return;
 
     readline();
 
     readline();
     setTimeout(function(){autoreadline();}, 1000 + 500 * printwordstr.length / autospeed);
+
     setTimeout(function(){
 +
        autoreadline();
 +
    }, 1000 + 600 * printwordstr.replace(/<\/span>/g, "").replace(/<span style="color:#[0-9A-Z]{6};">/g, "").replace(/<span style="font-size:1[0-9]{2}%;">/g, "").length / autospeed);  
 
}
 
}
  
 
function printword(){
 
function printword(){
     $("#avgline").html(printwordstr.slice(0, printwordnum));
+
     if(printwordstr[printwordnum - 1] == "<") printwordnum = printwordstr.indexOf(">", printwordnum - 1) + 2;
 +
    let thisprint = printwordstr.slice(0, printwordnum);
 +
    if(thisprint.indexOf("<span") != -1 && ((thisprint.indexOf("</span") == -1) || (thisprint.lastIndexOf("</span") < thisprint.lastIndexOf("<span")))) $("#avgline").html(thisprint + "</span>");
 +
    else $("#avgline").html(thisprint);
 +
 
 
     printwordnum ++;
 
     printwordnum ++;
 
     if(printwordnum > printwordstr.length) return;
 
     if(printwordnum > printwordstr.length) return;
     setTimeout(function(){ printword();}, 300 / autospeed);
+
     setTimeout(function(){ printword();}, 200 / autospeed);
 
}
 
}
  
第476行: 第590行:
 
         var thisline = (avgtxt.indexOf("\n", logpos) == -1) ? avgtxt.slice(logpos, avgtxt.length) : avgtxt.slice(logpos, avgtxt.indexOf("\n", logpos));
 
         var thisline = (avgtxt.indexOf("\n", logpos) == -1) ? avgtxt.slice(logpos, avgtxt.length) : avgtxt.slice(logpos, avgtxt.indexOf("\n", logpos));
  
         output += `<div style="border:1px #8886 solid; padding:6px 4px;"><table style="width:100%;"><tr><td avgpos="` + logpos + `"`;
+
         output += `<div style="border-top:1px #8886 dashed; padding:7px 4px;"><table style="width:100%;"><tr><td avgpos="` + logpos + `"`;
         if(thisline.indexOf("<黑屏2>") != -1) output += ` class="avglogtd" style="background-color: #eaeaeaaa; color:black; cursor:alias;`;
+
         if(thisline.indexOf("<黑屏2>") != -1) output += ` class="avglogtd" style="border:1px dashed #f4c430; cursor:zoom-in;`;
         else output += ` style="background-color: inherit; color:inherit;`;
+
         else output += ` style="border:none;`;
 
         output += `width:5%; text-align:center; vertical-align:baseline;">` + logline + `</td>`;
 
         output += `width:5%; text-align:center; vertical-align:baseline;">` + logline + `</td>`;
 
         output += `<td style="width:15%; text-align:center; vertical-align:baseline;">` + ((thisline.indexOf("<Speaker>") != -1) ? thisline.slice(thisline.indexOf("<Speaker>") + ("<Speaker>").length , thisline.indexOf("</Speaker>")) : "");
 
         output += `<td style="width:15%; text-align:center; vertical-align:baseline;">` + ((thisline.indexOf("<Speaker>") != -1) ? thisline.slice(thisline.indexOf("<Speaker>") + ("<Speaker>").length , thisline.indexOf("</Speaker>")) : "");
第492行: 第606行:
  
 
     $(".avglogtd").click(function(){
 
     $(".avglogtd").click(function(){
 +
        $("#avglog").click();
 
         linepos =Number( $(this).attr("avgpos"));
 
         linepos =Number( $(this).attr("avgpos"));
 
         readline();
 
         readline();
第507行: 第622行:
 
         var thisline = (avgtxt.indexOf("\n", logpos) == -1) ? avgtxt.slice(logpos, avgtxt.length) : avgtxt.slice(logpos, avgtxt.indexOf("\n", logpos));
 
         var thisline = (avgtxt.indexOf("\n", logpos) == -1) ? avgtxt.slice(logpos, avgtxt.length) : avgtxt.slice(logpos, avgtxt.indexOf("\n", logpos));
  
         if(thisline.indexOf("<Speaker>") != -1){
+
         if(thisline.indexOf("<Speaker>") != -1 && thisline.indexOf("()<Speaker>") == -1){
 
             let avgpicstr = thisline.slice(0, thisline.indexOf("||"));
 
             let avgpicstr = thisline.slice(0, thisline.indexOf("||"));
 
             let newavgdoll = [];
 
             let newavgdoll = [];
第517行: 第632行:
 
                 newavgdoll.push(avgpicstr.slice(avgpicstr.indexOf(";") + 1, avgpicstr.length));
 
                 newavgdoll.push(avgpicstr.slice(avgpicstr.indexOf(";") + 1, avgpicstr.length));
 
             } else if(avgpicstr.indexOf("<Speaker>") > avgpicstr.indexOf(";")){
 
             } else if(avgpicstr.indexOf("<Speaker>") > avgpicstr.indexOf(";")){
                 newavgdoll.push(avgpicstr.slice(0, avgpicstr.indexOf(";")));
+
                 avgpicleft = avgpicstr.slice(0, ((avgpicstr.indexOf("<") < avgpicstr.indexOf(";")) ? avgpicstr.indexOf(";") : avgpicstr.indexOf("<")));
 
                 newavgdoll.push(avgpicstr.slice(avgpicstr.indexOf(";") + 1, avgpicstr.indexOf("<Speaker>")));
 
                 newavgdoll.push(avgpicstr.slice(avgpicstr.indexOf(";") + 1, avgpicstr.indexOf("<Speaker>")));
 
             }
 
             }
第556行: 第671行:
 
         var img = new Image();
 
         var img = new Image();
 
         $(img).load(function(){  
 
         $(img).load(function(){  
             loadingnow.doll ++;  
+
             if($(this).attr("file") == loadingfile) loadingnow.doll ++;  
 
             $("#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 + "]");
 
             $(this).remove();
 
             $(this).remove();
 
         });  
 
         });  
         $(img).attr("src", dollarray[loading.doll[i]]);
+
         $(img).attr({"src":dollarray[loading.doll[i]], "file":loadingfile});
 
     }
 
     }
 
     for(i in loading.bg){
 
     for(i in loading.bg){
 
         var img = new Image();
 
         var img = new Image();
 
         $(img).load(function(){  
 
         $(img).load(function(){  
             loadingnow.bg ++;  
+
             if($(this).attr("file") == loadingfile) loadingnow.bg ++;  
 
             $("#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 + "]");
 
             $(this).remove();
 
             $(this).remove();
 
         });  
 
         });  
         $(img).attr("src", bgarray[loading.bg[i]]);
+
         $(img).attr({"src":bgarray[loading.bg[i]], "file":loadingfile});
 
     }
 
     }
 
     for(i in loading.bgm){
 
     for(i in loading.bgm){
 
         var audio = new Audio();
 
         var audio = new Audio();
 
         $(audio).load(function(){  
 
         $(audio).load(function(){  
             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 + "]");
 
             $(this).remove();
 
             $(this).remove();
 
         });  
 
         });  
         $(audio).attr({"src":bgmarray[loading.bgm[i]], "preload":"preload", "controls":"controls"});
+
         $(audio).attr({"src":bgmarray[loading.bgm[i]], "file":loadingfile, "preload":"preload", "controls":"controls"});
 
     }
 
     }
 
}
 
}
 
})</script></includeonly><noinclude>{{#Widget:AVGplayer}}</noinclude>
 
})</script></includeonly><noinclude>{{#Widget:AVGplayer}}</noinclude>

2021年2月17日 (三) 20:57的版本

{{剧情模拟器剧情导航}} {{#Widget:AssembledPlotOptions|title=七周年祝贺|json=AVG_Anniversary_7}} {{#Widget:AVGplayer/css}} {{#Widget:AVGplayer/js}} {{#Widget:AssembledPlotOptions/common}}