Template:Story: Difference between revisions

207 bytes removed ,  5 months ago
m
audio-related issues mostly fixed
m (solution found for 1 problem)
m (audio-related issues mostly fixed)
Line 12:
--></div></td></tr>
|background=<tr><td></td><td><div class{{=}}"story-background-image-container">[[File:{{{ background{{#var:index}} }}}.jpg|class=story-background-image]]</div></td></tr>
|bgm=<tr><td></td><td><div class="story-bgm-container">{{audio|src={{{ bgm{{#var:index}} }}}.ogg|name=BGM: [[File{{{ name{{#var:index}} | {{{ bgm{{#var:index}} }}} }}}|group=BGM|volume={{#expr: 0.ogg]]25 * {{{ volume{{#var:index}} | 1 }}}}} }}</div></td></tr>
|bgm-stop=<tr><td></td><td>BGM stops<span class="story-bgm-stop-button">⏹</span></td></tr>
|info=<tr><td></td><td><div class="story-info-container">{{{ text{{#var:index}} }}} {{#if:{{{ sound{{#var:index}} | }}} | [[File:{{{ sound{{#var:index}} }}}.wav|30px]] | }} </div></td></tr>
|sound=<tr><td></td><td>Sound effect: {{Audio/small|src={{{ namesound{{#var:index}} }}}.wav|name=Sound [[Fileeffect: {{{ soundname{{#var:index}} |}}}}}.wav|30px]]</td></tr>
}}
}}
Line 21:
</div></includeonly><noinclude>TODO:
#BGM
#*Create stop button
#*Stop using audio player extension in favor of [https://github.com/goldfire/howler.js howler]. Solves all the problems below.
#*Too ugly; better presentation (maybe same as Arknights in MGP?)
#*Custom stop button; current one is too small and the color is weird
#*Looping (add extra params for BGM)
#*Initially too loud compared with sound effects; default to 25% volume?
#Sound effects
#*Selectively upload SFX files since most of them are unused in the story