Skip to content
Permalink
Browse files

v1.0.30:chg:アルバム画面で動画再生をスクリプト主導にし、動画再生中はBGM音量を0にする

  • Loading branch information...
famibee committed Aug 1, 2019
1 parent 22fbf39 commit 8b8874ecd8f3f900332d67c89a54cca4c8f11865
Showing with 37 additions and 14 deletions.
  1. +2 −0 CHANGELOG.md
  2. +10 −11 prj/album/_album.htm
  3. +24 −2 prj/album/_album.sn
  4. BIN prj/album/nc10889_th.jpg
  5. +1 −1 prj/path.json
@@ -1,5 +1,7 @@
# Change Log

## v1.0.30
- chg:アルバム画面で動画再生をスクリプト主導にし、動画再生中はBGM音量を0にするように
## v1.0.29
- chg:const.sn.sLogをconst.sn.log.jsonに変名
## v1.0.28
@@ -14,7 +14,7 @@
{"type": "pic", "fn": "../bg/yun_2352.jpg", "title": "桜1", "enabled": "true"},
{"type": "pic", "fn": "../bg/yun_2384.jpg", "title": "桜2", "enabled": "true"},
{"type": "pic", "fn": "../image/F_kuchimoto.jpg", "title": "語り手", "enabled": "true"},
{"type": "mov", "fn": "nc10889.mp4", "title": "", "enabled": "true"},
{"type": "mov", "fn": "nc10889", "title": "", "enabled": "true"},
{"type": "bgm", "fn": "free32", "title": "free32(BGM)", "enabled": "true"},
{"type": "bgm", "fn": "free49", "title": "free49(BGM)", "enabled": "true"},
{"type": "bgm", "fn": "free61", "title": "free61(BGM)", "enabled": "true"},
@@ -43,24 +43,23 @@
let elm = '';
switch (v.type) {
case 'pic': elm = `
case 'bgm': elm = `
<div class="card">
<div class="card-image"><img src="${v.fn}" class="materialboxed"></div>`;
<div class="card-image waves-effect waves-block waves-light">
<img src="thbgm.jpg" class="bgm" data-arg="${v.fn}">
</div>`;
break;
case 'mov': elm = `
<div class="card" style="margin-bottom: 0px;">
<video class="responsive-video" controls>
<source src="${v.fn}" type="video/mp4"/>
</video>`;
break;
default: elm = `
<div class="card">
<div class="card-image waves-effect waves-block waves-light">
<img src="thbgm.jpg" class="bgm" data-arg="${v.fn}">
<img src="${v.fn}_th.jpg" class="mov" data-arg="${v.fn}">
</div>`;
break;
default: elm = `
<div class="card">
<div class="card-image"><img src="${v.fn}" class="materialboxed"></div>`;
}
lst.insertAdjacentHTML('beforeend', `
<div class="col s6 m4 l3 hoverable sld2dsp grey lighten-2">${elm}
@@ -3,6 +3,7 @@

[add_frame id=album src="album/_album.htm" visible=false]
[event key='dom=album:#close' label=*exit global=true]
[add_lay layer=album class=grp]


[macro name="アルバム解放"]
@@ -23,7 +24,7 @@
{"type": "pic", "fn": "../bg/yun_2384.jpg", "title": "桜2", "enabled": "#{!!sys:album.yun_2384}"},
{"type": "pic", "fn": "../image/F_kuchimoto.jpg", "title": "語り手", "enabled": "#{!!sys:album.F_kuchimoto}"},
{"type": "pic", "fn": "_album_miken.jpg", "title": "???", "enabled": "false", "enabled": "#{!!sys:album._album_miken}"},
{"type": "mov", "fn": "nc10889.mp4", "title": "桜", "enabled": "#{!!sys:album.nc10889}"},
{"type": "mov", "fn": "nc10889", "title": "桜", "enabled": "#{!!sys:album.nc10889}"},
{"type": "bgm", "fn": "free32", "title": "free32(BGM)", "enabled": "#{!!sys:album.free32}"},
{"type": "bgm", "fn": "free49", "title": "free49(BGM)", "enabled": "#{!!sys:album.free49}"},
{"type": "bgm", "fn": "free61", "title": "free61(BGM)", "enabled": "#{!!sys:album.free61}"},
@@ -33,6 +34,7 @@
[set_frame id=album var_name=val_dic text=&dic]
[let_frame id=album var_name=init function=true]
[event key='dom=album:.bgm' label=*bgm global=true call=true need_err=false]
[event key='dom=album:.mov' label=*mov global=true need_err=false]

[set_frame id=album var_name=val_fnBgm text=&save:const.sn.sound.BGM.fn|'(No BGM)']
[let_frame id=album var_name=val2ctrl function=true]
@@ -50,7 +52,7 @@
[frame id=album visible=true y=&const.sn.frm.album.height]
[tsy_frame id=album time=500 y=0]
[wait_tsy id=album]

*wait
[event key=rightclick label=*exit]
[event key=command label=*exit]
[event key=control label=*exit]
@@ -66,6 +68,26 @@
[call label=*val2ctrl]
[return]

; 動画再生
*mov
&vol = sys:const.sn.sound.BGM.volume
&fn = save:const.sn.sound.BGM.fn
[fadeoutbgm time=400]
[wait time=400]
[wf buf=BGM]

[lay layer=album fn=black face=&sn.event.domdata.arg visible=true float=true left=0 top=0]
[frame id=album visible=false]
[wv fn=&sn.event.domdata.arg]

[frame id=album visible=true]
[lay layer=album fn=black visible=false]

[volume buf=BGM volume=&vol]
[playbgm fn=&fn cond='fn!=""']
[jump label=*wait]


;*********************************************************
*exit
[se fn=&sysse_cancel buf=SYS]
Binary file not shown.
@@ -1 +1 @@
{"_album":{":cnt":3,"htm":"album/_album.htm","jpg":"album/_album.jpg","sn":"album/_album.sn"},"_album_miken":{":cnt":1,"jpg":"album/_album_miken.jpg"},"nc10889":{":cnt":1,"mp4":"album/nc10889.mp4"},"thbgm":{":cnt":1,"jpg":"album/thbgm.jpg"},"_archive":{":cnt":2,"htm":"archive/_archive.htm","sn":"archive/_archive.sn"},"_archiveBtn_nouse":{":cnt":1,"png":"archive/_archiveBtn_nouse.png"},"_archive_browser":{":cnt":1,"jpg":"archive/_archive_browser.jpg"},"_archive_resume":{":cnt":1,"jpg":"archive/_archive_resume.jpg"},"BellA_16":{":cnt":1,"mp3":"audio/BellA_16.mp3"},"BellB_11":{":cnt":1,"mp3":"audio/BellB_11.mp3"},"BurstB_11":{":cnt":1,"mp3":"audio/BurstB_11.mp3"},"PageD_16":{":cnt":1,"mp3":"audio/PageD_16.mp3"},"bell05":{":cnt":1,"mp3":"audio/bell05.mp3"},"free0509":{":cnt":1,"mp3":"audio/free0509.mp3"},"free32":{":cnt":1,"mp3":"audio/free32.mp3"},"free49":{":cnt":1,"mp3":"audio/free49.mp3"},"free61":{":cnt":1,"mp3":"audio/free61.mp3"},"wood04":{":cnt":1,"mp3":"audio/wood04.mp3"},"black":{":cnt":1,"png":"bg/black.png"},"white":{":cnt":1,"png":"bg/white.png"},"yun_1184":{":cnt":1,"jpg":"bg/yun_1184.jpg"},"yun_1317":{":cnt":1,"jpg":"bg/yun_1317.jpg"},"yun_2352":{":cnt":1,"jpg":"bg/yun_2352.jpg"},"yun_2384":{":cnt":1,"jpg":"bg/yun_2384.jpg"},"ThBackAlpha":{":cnt":1,"jpg":"config/ThBackAlpha.jpg"},"_config":{":cnt":2,"htm":"config/_config.htm","sn":"config/_config.sn"},"F_1024a":{":cnt":1,"png":"image/F_1024a.png"},"F_1024aFull":{":cnt":1,"png":"image/F_1024aFull.png"},"F_1024b":{":cnt":1,"png":"image/F_1024b.png"},"F_kuchimoto":{":cnt":1,"jpg":"image/F_kuchimoto.jpg"},"kagero":{":cnt":1,"jpg":"image/kagero.jpg"},"materialize.min":{":cnt":2,"css":"lib/materialize.min.css","js":"lib/materialize.min.js"},"_log":{":cnt":2,"htm":"log/_log.htm","sn":"log/_log.sn"},"_c2p":{":cnt":1,"svg":"other/_c2p.svg"},"_hidetext":{":cnt":1,"sn":"other/_hidetext.sn"},"_submenu":{":cnt":2,"png":"other/_submenu.png","sn":"other/_submenu.sn"},"_submenuBtn":{":cnt":1,"png":"other/_submenuBtn.png"},"_yesno":{":cnt":2,"png":"other/_yesno.png","sn":"other/_yesno.sn"},"breakline":{":cnt":1,"json":"other/breakline.json"},"breakpage":{":cnt":1,"json":"other/breakpage.json"},"breakpage_b":{":cnt":1,"png":"other/breakpage_b.png"},"ext_fg":{":cnt":1,"sn":"other/ext_fg.sn"},"ext_for_call":{":cnt":1,"sn":"other/ext_for_call.sn"},"title":{":cnt":1,"jpg":"other/title.jpg"},"r_uzumaki":{":cnt":1,"png":"rule/r_uzumaki.png"},"ipamjm":{":cnt":1,"woff2":"script/ipamjm.woff2"},"main":{":cnt":1,"sn":"script/main.sn"},"ss_000":{":cnt":1,"sn":"script/ss_000.sn"},"sub":{":cnt":1,"sn":"script/sub.sn"},"wafuu1":{":cnt":1,"png":"script/wafuu1.png"},"wafuu1w":{":cnt":1,"png":"script/wafuu1w.png"}}
{"_album":{":cnt":3,"htm":"album/_album.htm","jpg":"album/_album.jpg","sn":"album/_album.sn"},"_album_miken":{":cnt":1,"jpg":"album/_album_miken.jpg"},"nc10889":{":cnt":1,"mp4":"album/nc10889.mp4"},"nc10889_th":{":cnt":1,"jpg":"album/nc10889_th.jpg"},"thbgm":{":cnt":1,"jpg":"album/thbgm.jpg"},"_archive":{":cnt":2,"htm":"archive/_archive.htm","sn":"archive/_archive.sn"},"_archiveBtn_nouse":{":cnt":1,"png":"archive/_archiveBtn_nouse.png"},"_archive_browser":{":cnt":1,"jpg":"archive/_archive_browser.jpg"},"_archive_resume":{":cnt":1,"jpg":"archive/_archive_resume.jpg"},"BellA_16":{":cnt":1,"mp3":"audio/BellA_16.mp3"},"BellB_11":{":cnt":1,"mp3":"audio/BellB_11.mp3"},"BurstB_11":{":cnt":1,"mp3":"audio/BurstB_11.mp3"},"PageD_16":{":cnt":1,"mp3":"audio/PageD_16.mp3"},"bell05":{":cnt":1,"mp3":"audio/bell05.mp3"},"free0509":{":cnt":1,"mp3":"audio/free0509.mp3"},"free32":{":cnt":1,"mp3":"audio/free32.mp3"},"free49":{":cnt":1,"mp3":"audio/free49.mp3"},"free61":{":cnt":1,"mp3":"audio/free61.mp3"},"wood04":{":cnt":1,"mp3":"audio/wood04.mp3"},"black":{":cnt":1,"png":"bg/black.png"},"white":{":cnt":1,"png":"bg/white.png"},"yun_1184":{":cnt":1,"jpg":"bg/yun_1184.jpg"},"yun_1317":{":cnt":1,"jpg":"bg/yun_1317.jpg"},"yun_2352":{":cnt":1,"jpg":"bg/yun_2352.jpg"},"yun_2384":{":cnt":1,"jpg":"bg/yun_2384.jpg"},"ThBackAlpha":{":cnt":1,"jpg":"config/ThBackAlpha.jpg"},"_config":{":cnt":2,"htm":"config/_config.htm","sn":"config/_config.sn"},"F_1024a":{":cnt":1,"png":"image/F_1024a.png"},"F_1024aFull":{":cnt":1,"png":"image/F_1024aFull.png"},"F_1024b":{":cnt":1,"png":"image/F_1024b.png"},"F_kuchimoto":{":cnt":1,"jpg":"image/F_kuchimoto.jpg"},"kagero":{":cnt":1,"jpg":"image/kagero.jpg"},"materialize.min":{":cnt":2,"css":"lib/materialize.min.css","js":"lib/materialize.min.js"},"_log":{":cnt":2,"htm":"log/_log.htm","sn":"log/_log.sn"},"_c2p":{":cnt":1,"svg":"other/_c2p.svg"},"_hidetext":{":cnt":1,"sn":"other/_hidetext.sn"},"_submenu":{":cnt":2,"png":"other/_submenu.png","sn":"other/_submenu.sn"},"_submenuBtn":{":cnt":1,"png":"other/_submenuBtn.png"},"_yesno":{":cnt":2,"png":"other/_yesno.png","sn":"other/_yesno.sn"},"breakline":{":cnt":1,"json":"other/breakline.json"},"breakpage":{":cnt":1,"json":"other/breakpage.json"},"breakpage_b":{":cnt":1,"png":"other/breakpage_b.png"},"ext_fg":{":cnt":1,"sn":"other/ext_fg.sn"},"ext_for_call":{":cnt":1,"sn":"other/ext_for_call.sn"},"title":{":cnt":1,"jpg":"other/title.jpg"},"r_uzumaki":{":cnt":1,"png":"rule/r_uzumaki.png"},"ipamjm":{":cnt":1,"woff2":"script/ipamjm.woff2"},"main":{":cnt":1,"sn":"script/main.sn"},"ss_000":{":cnt":1,"sn":"script/ss_000.sn"},"sub":{":cnt":1,"sn":"script/sub.sn"},"wafuu1":{":cnt":1,"png":"script/wafuu1.png"},"wafuu1w":{":cnt":1,"png":"script/wafuu1w.png"}}

0 comments on commit 8b8874e

Please sign in to comment.
You can’t perform that action at this time.