コード例 #1
0
    protected override void OnViewReset()
    {
#if !MADFINGER_KEYBOARD_MOUSE
        if (!GamepadInputManager.Instance.IsNvidiaShield())
        {
            m_ControlSchemeEnum.Selection = (int)GuiOptions.m_ControlScheme;
            m_FireButtonSize.SetValue(GuiOptions.fireButtonScale - 0.5f);             // offset scale by 0.5 so the final range is 0.5-1.5
            m_SwitchLefthanded.SetValue(GuiOptions.leftHandAiming);
        }
#endif
        m_SliderSensitivity.SetValue(GuiOptions.sensitivity);
        m_SwitchYAxis.SetValue(GuiOptions.invertYAxis);
    }
コード例 #2
0
 protected override void OnViewReset()
 {
     m_SliderSoundVolume.SetValue(GuiOptions.soundVolume);
     m_SliderMusicVolume.SetValue(GuiOptions.musicVolume);
     m_SwitchMusic.SetValue(GuiOptions.musicOn);
 }