mirror of
https://github.com/Mr-Wiseguy/Zelda64Recomp.git
synced 2024-11-16 19:09:15 +01:00
169155953e
* This commit adds the option to control the main volume game via a slider added to the "Sound" tab in the settings menu.
89 lines
4.6 KiB
Plaintext
89 lines
4.6 KiB
Plaintext
<template name="config-menu__sound">
|
|
<head>
|
|
</head>
|
|
<body>
|
|
<form class="config__form">
|
|
<div class="config__hz-wrapper">
|
|
<!-- Options -->
|
|
<div class="config__wrapper" data-event-mouseout="set_cur_config_index(-1)">
|
|
<div class="config-option" data-event-mouseover="set_cur_config_index(0)">
|
|
<label class="config-option__title">Main Volume</label>
|
|
<div class="config-option__range-wrapper config-option__list">
|
|
<label class="config-option__range-label">{{main_volume}}%</label>
|
|
<input
|
|
data-event-blur="set_cur_config_index(-1)"
|
|
data-event-focus="set_cur_config_index(0)"
|
|
class="nav-vert"
|
|
id="main_volume_input"
|
|
type="range"
|
|
min="0"
|
|
max="100"
|
|
style="flex: 1; margin: 0dp; nav-up: #tab_sound; nav-down: #bgm_volume_input;"
|
|
data-value="main_volume"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div class="config-option" data-event-mouseover="set_cur_config_index(1)">
|
|
<label class="config-option__title">Background Music Volume</label>
|
|
<div class="config-option__range-wrapper config-option__list">
|
|
<label class="config-option__range-label">{{bgm_volume}}%</label>
|
|
<input
|
|
data-event-blur="set_cur_config_index(-1)"
|
|
data-event-focus="set_cur_config_index(1)"
|
|
class="nav-vert"
|
|
id="bgm_volume_input"
|
|
type="range"
|
|
min="0"
|
|
max="100"
|
|
style="flex: 1; margin: 0dp; nav-up: #main_volume_input; nav-down: #lhb_on;"
|
|
data-value="bgm_volume"
|
|
/>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="config-option" data-event-mouseover="set_cur_config_index(2)">
|
|
<label class="config-option__title">Low Health Beeps</label>
|
|
<div class="config-option__list">
|
|
<input
|
|
type="radio"
|
|
data-event-blur="set_cur_config_index(-1)"
|
|
data-event-focus="set_cur_config_index(2)"
|
|
name="lhb"
|
|
data-checked="low_health_beeps_enabled"
|
|
value="1"
|
|
id="lhb_on"
|
|
style="nav-up: #bgm_volume_input"
|
|
/>
|
|
<label class="config-option__tab-label" for="lhb_on">On</label>
|
|
|
|
<input
|
|
type="radio"
|
|
data-event-blur="set_cur_config_index(-1)"
|
|
data-event-focus="set_cur_config_index(2)"
|
|
name="lhb"
|
|
data-checked="low_health_beeps_enabled"
|
|
value="0"
|
|
id="lhb_off"
|
|
style="nav-up: #bgm_volume_input"
|
|
/>
|
|
<label class="config-option__tab-label" for="lhb_off">Off</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Descriptions -->
|
|
<div class="config__wrapper">
|
|
<p data-if="cur_config_index == 0">
|
|
Controls the main volume of the game.
|
|
</p>
|
|
<p data-if="cur_config_index == 1">
|
|
Controls the overall volume of background music.
|
|
</p>
|
|
<p data-if="cur_config_index == 2">
|
|
Toggles whether or not the low-health beeping sound plays.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</template>
|
|
|