Exemplo n.º 1
0
        public override void ChangeValueDown()
        {
            if (MyGuiScreenGamePlay.Static.DetachingForbidden)
            {
                return;
            }

            if (MySession.Is25DSector)
            {
                m_current = MyViewModeTypesEnum.ThirdPerson;
            }
            else
            {
                switch (m_current)
                {
                case MyViewModeTypesEnum.CockpitOn:
                    m_current = MyViewModeTypesEnum.ThirdPerson;
                    break;

                case MyViewModeTypesEnum.ThirdPerson:
                    m_current = MyViewModeTypesEnum.CockpitOff;
                    break;

                case MyViewModeTypesEnum.CockpitOff:
                    m_current = MyViewModeTypesEnum.CockpitOn;
                    break;
                }
            }

            OnValueChange();
            base.ChangeValueDown();
        }
Exemplo n.º 2
0
        public void SetValue(MyViewModeTypesEnum value)
        {
            m_current = value;

            // we dont wanna change camera mode in editor, change camera only in gameplay
            if (MyGuiScreenGamePlay.Static != null && MyGuiScreenGamePlay.Static.IsGameActive() && !MyGuiScreenGamePlay.Static.DetachingForbidden)
            {
                OnValueChange(false);
            }
        }
Exemplo n.º 3
0
        public void SetValue(MyViewModeTypesEnum value)
        {
            m_current = value;

            // we dont wanna change camera mode in editor, change camera only in gameplay
            if (MyGuiScreenGamePlay.Static != null && MyGuiScreenGamePlay.Static.IsGameActive() && !MyGuiScreenGamePlay.Static.DetachingForbidden)
            {
                OnValueChange(false);
            }
        }
Exemplo n.º 4
0
        public override void ChangeValueDown()
        {
            if (MyGuiScreenGamePlay.Static.DetachingForbidden)
            {
                return;
            }

            if (MySession.Is25DSector)
            {
                m_current = MyViewModeTypesEnum.ThirdPerson;
            }
            else
            {
                switch (m_current)
                {
                    case MyViewModeTypesEnum.CockpitOn:
                        m_current = MyViewModeTypesEnum.ThirdPerson;
                        break;
                    case MyViewModeTypesEnum.ThirdPerson:
                        m_current = MyViewModeTypesEnum.CockpitOff;
                        break;
                    case MyViewModeTypesEnum.CockpitOff:
                        m_current = MyViewModeTypesEnum.CockpitOn;
                        break;
                }
            }

            OnValueChange();
            base.ChangeValueDown();
        }
Exemplo n.º 5
0
 public MyPhysObjectSmallShipConfigItemViewMode()
     : base(MyTextsWrapper.Get(MyTextsWrapperEnum.ViewMode), null, null, MyGameControlEnums.VIEW_MODE)
 {
     m_current = MyViewModeTypesEnum.CockpitOn;
 }
Exemplo n.º 6
0
 public MyPhysObjectSmallShipConfigItemViewMode()
     : base(MyTextsWrapper.Get(MyTextsWrapperEnum.ViewMode), null, null, MyGameControlEnums.VIEW_MODE)
 {
     m_current = MyViewModeTypesEnum.CockpitOn;
 }