Beispiel #1
0
    // GUIVIEW INTERFACE

    protected override void OnViewInit()
    {
        base.OnViewInit();

        m_SliderSoundVolume = GuiBaseUtils.GetControl <GUIBase_Slider>(Layout, SLIDER_SOUND_VOLUME);
        m_SliderMusicVolume = GuiBaseUtils.GetControl <GUIBase_Slider>(Layout, SLIDER_MUSIC_VOLUME);
        m_SwitchMusic       = GuiBaseUtils.GetControl <GUIBase_Switch>(Layout, SWITCH_MUSIC);
    }
Beispiel #2
0
    //---------------------------------------------------------
    public static GUIBase_Slider RegisterSliderDelegate(GUIBase_Layout layout, string sliderName, GUIBase_Slider.ChangeValueDelegate d)
    {
        GUIBase_Slider control = GetControl <GUIBase_Slider>(layout, sliderName);

        if (control != null)
        {
            control.RegisterChangeValueDelegate(d);
        }
        else
        {
            Debug.LogError("Can't find slider '" + sliderName + "'");
        }
        return(control);
    }
Beispiel #3
0
    // GUIVIEW INTERFACE

    protected override void OnViewInit()
    {
#if MADFINGER_KEYBOARD_MOUSE
        m_ScreenLayout   = GetLayout("MainOpt", "00Controls_Layout_PC");
        m_KeyboardButton = GuiBaseUtils.GetControl <GUIBase_Button>(Layout, KEYBOARD_BUTTON);
#else
        if (GamepadInputManager.Instance.IsNvidiaShield())
        {
            m_ScreenLayout = GetLayout("MainOpt", "00Controls_Layout_Shield");
        }
        else
        {
            m_ControlSchemeEnum = GuiBaseUtils.GetControl <GUIBase_Enum>(Layout, CONTROLS_SCHEME);
            m_FireButtonSize    = GuiBaseUtils.GetControl <GUIBase_Slider>(Layout, FIRE_BUTTON_SIZE);
            m_SwitchLefthanded  = GuiBaseUtils.GetControl <GUIBase_Switch>(Layout, SWITCH_LEFT_HANDED);
            m_CustomizeButton   = GuiBaseUtils.GetControl <GUIBase_Button>(Layout, CUSTOMIZE_BUTTON);
            m_MogaHelpButton    = GuiBaseUtils.GetControl <GUIBase_Button>(Layout, MOGA_HELP_BUTTON);
        }
#endif
        m_SliderSensitivity = GuiBaseUtils.GetControl <GUIBase_Slider>(Layout, SLIDER_SENSITIVITY);
        m_SwitchYAxis       = GuiBaseUtils.GetControl <GUIBase_Switch>(Layout, SWITCH_INVERT_Y);
        m_GamepadButton     = GuiBaseUtils.GetControl <GUIBase_Button>(Layout, GAMEPAD_BUTTON);
    }