OptionPanel
  OptionCheckBox
    id: enableAudio
    !text: tr('Enable audio')

  OptionCheckBox
    id: enableMusicSound
    !text: tr('Enable music sound')

  Label
    id: musicSoundVolumeLabel
    !text: tr('Music volume: %d', 100)
    @onSetup: |
      local value = modules.client_options.getOption('musicSoundVolume')
      self:setText(tr('Music volume: %d', value))

  OptionScrollbar
    id: musicSoundVolume
    minimum: 0
    maximum: 100

  OptionCheckBox
    id: enableAmbientSound
    !text: tr('Enable ambient sound')

  Label
    id: ambientSoundVolumeLabel
    !text: tr('Ambient volume: %d', 100)
    @onSetup: |
      local value = modules.client_options.getOption('ambientSoundVolume')
      self:setText(tr('Ambient volume: %d', value))

  OptionScrollbar
    id: ambientSoundVolume
    minimum: 0
    maximum: 100

  OptionCheckBox
    id: enableSfxSound
    !text: tr('Enable sound effects')

  Label
    id: sfxSoundVolumeLabel
    !text: tr('Sound effects volume: %d', 100)
    @onSetup: |
      local value = modules.client_options.getOption('sfxSoundVolume')
      self:setText(tr('Sound effects volume: %d', value))

  OptionScrollbar
    id: sfxSoundVolume
    minimum: 0
    maximum: 100
