private void SetData() { float masterVolume = TsAudio.MasterVolume; this.m_AudioControlList[0].m_HSliderScroll.defaultValue = masterVolume; this.m_AudioControlList[0].m_HSliderScroll.Value = masterVolume; this.m_AudioControlList[0].m_TextField_TextField.Text = masterVolume.ToString(); this.m_fPrevVolume[0] = masterVolume; EAudioType[] array = Enum.GetValues(typeof(EAudioType)) as EAudioType[]; EAudioType[] array2 = array; for (int i = 0; i < array2.Length; i++) { EAudioType eAudioType = array2[i]; if (eAudioType < EAudioType.TOTAL) { float volumeScaling = TsAudio.GetVolumeScaling(eAudioType); this.m_AudioControlList[(int)(eAudioType + 1)].m_HSliderScroll.defaultValue = volumeScaling; this.m_AudioControlList[(int)(eAudioType + 1)].m_HSliderScroll.Value = volumeScaling; this.m_AudioControlList[(int)(eAudioType + 1)].m_TextField_TextField.Text = volumeScaling.ToString(); this.m_fPrevVolume[(int)(eAudioType + 1)] = volumeScaling; } } }