Add setting to toggle sound effects (#568)

* Use soundPlayer object with setting

* Style changes
This commit is contained in:
boatbomber
2022-07-02 02:12:58 -07:00
committed by GitHub
parent 0987b44e23
commit 54398d4c4b
5 changed files with 32 additions and 7 deletions

View File

@@ -210,12 +210,20 @@ function SettingsPage:render()
layoutOrder = 2,
}),
PlaySounds = e(Setting, {
id = "playSounds",
name = "Play Sounds",
description = "Toggle sound effects",
transparency = self.props.transparency,
layoutOrder = 3,
}),
TwoWaySync = e(Setting, {
id = "twoWaySync",
name = "Two-Way Sync",
description = "EXPERIMENTAL! Editing files in Studio will sync them into the filesystem",
transparency = self.props.transparency,
layoutOrder = 3,
layoutOrder = 4,
}),
Layout = e("UIListLayout", {