-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added mic sensitivity slider [SG-122]
- Loading branch information
1 parent
dff51a3
commit e45b9ce
Showing
32 changed files
with
188 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { | ||
GameConfigurationManager | ||
} from "../../features/game-core/game-initialization/game-configuration-manager.js?v=2.1.3"; | ||
|
||
export class MicSensitivityOption { | ||
static addMicSensitivityOption() { | ||
if (!document.getElementById('mic-sensitivity-option-title') | ||
&& !document.getElementById('mic-sensitivity-option')) { | ||
document.querySelector('#config-inner-div').insertAdjacentHTML('beforeend', ` | ||
<span class="normal-font-size label-text options-title-span" id="mic-sensitivity-option-title">Mic sensitivity</span> | ||
<div id="mic-sensitivity-option"> | ||
<span>High</span> | ||
<input type="range" min="1" max="70" step="1" value="15" id="sensitivity-range-slider"/> | ||
<span>Low</span> | ||
</div> | ||
`); | ||
GameConfigurationManager.setupGameModeOptionsStateAndValue([document.querySelector('#mic-sensitivity-option')]); | ||
} | ||
} | ||
|
||
static removeMicSensitivityOption() { | ||
document.getElementById('mic-sensitivity-option-title')?.remove(); | ||
document.getElementById('mic-sensitivity-option')?.remove(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
src/components/game-modes/note-in-key/roadmap-selector/fret-shape-selector.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/components/game-modes/note-on-fretboard/note-on-fretboard-generator.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
src/components/game-modes/note-on-fretboard/note-on-fretboard-note-handler.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/components/game-modes/note-on-fretboard/note-on-fretboard-progress-updater.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/components/game-modes/note-on-fretboard/range-selector.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.