Ejemplo n.º 1
0
 public ActionScreenHumanView(PlayerInfo playerInfo, CharacterInfo selectedCharacter, ContentManager contentLoader)
     : base(playerInfo, selectedCharacter, contentLoader)
 {
     mMmoCameraDesc = new MmoCameraDesc();
     mCamera = new StaticCamera();
     mShadowViewMode = false;
     mBright = 0.1f;
     mContrast = 1.0f;
     mBrightParam = null;
     mContrastParam = null;
     mAvatarBepuEntity = null;
     mCameraSmoothingEngaged = false;
     mAimingCameraOffset = new Vector3(5.0f, 3.0f, 5.0f);
     mInputProcs = new Dictionary<Type, InputProcessor>[(int)(InputMode.COUNT)];
     mInputProcs[(int)(InputMode.Aloof)] = new Dictionary<Type, InputProcessor>();
     mInputProcs[(int)(InputMode.Aiming)] = new Dictionary<Type, InputProcessor>();
     mCrosshairs = null;
     mInventoryPanel = null;
 }
Ejemplo n.º 2
0
 public ActionScreenHumanView(PlayerInfo playerInfo, CharacterInfo selectedCharacter, ContentManager contentLoader)
     : base(playerInfo, selectedCharacter, contentLoader)
 {
     mMmoCameraDesc                       = new MmoCameraDesc();
     mCamera                              = new StaticCamera();
     mShadowViewMode                      = false;
     mBright                              = 0.1f;
     mContrast                            = 1.0f;
     mBrightParam                         = null;
     mContrastParam                       = null;
     mAvatarBepuEntity                    = null;
     mCameraSmoothingEngaged              = false;
     mAimingCameraOffset                  = new Vector3(5.0f, 3.0f, 5.0f);
     mInputProcs                          = new Dictionary <Type, InputProcessor> [(int)(InputMode.COUNT)];
     mInputProcs[(int)(InputMode.Aloof)]  = new Dictionary <Type, InputProcessor>();
     mInputProcs[(int)(InputMode.Aiming)] = new Dictionary <Type, InputProcessor>();
     mCrosshairs                          = null;
     mInventoryPanel                      = null;
 }
Ejemplo n.º 3
0
        public override void Load()
        {
            base.Load();

            mCrosshairs = new CrosshairsWidget(mContentLoader);
            //InventoryPanel.LoadContent(mContentLoader);
            mInventoryPanel = new InventoryPanel(AvatarDesc);

            if (DrawSegment.MainWindow.UIElements.Count == 0)
            {
                DrawSegment.MainWindow.UIElements.Add(UIElementDepth.STANDARD_3D_PERSP, new Standard3dPerspective());
            }

            DrawSegment.MainWindow.UIElements.Add(UIElementDepth.DEBUG_POSITION, new PositionWidget(ActorId));
            //Actor modelActor = GameResources.ActorManager.GetActorByName("Billboard");
            //BillboardRenderComponent rc = modelActor.GetComponent<BillboardRenderComponent>(ActorComponent.ComponentType.Render);
            //mBrightParam = rc.Effect.Parameters["gBright"];
            //mContrastParam = rc.Effect.Parameters["gContrast"];

            GameResources.ActorManager.PreAnimationUpdateStep += PreAnimationUpdateHandler;
        }
Ejemplo n.º 4
0
        public override void Load()
        {
            base.Load();

            mCrosshairs = new CrosshairsWidget(mContentLoader);
            //InventoryPanel.LoadContent(mContentLoader);
            mInventoryPanel = new InventoryPanel(AvatarDesc);

            if (DrawSegment.MainWindow.UIElements.Count == 0)
                DrawSegment.MainWindow.UIElements.Add(UIElementDepth.STANDARD_3D_PERSP, new Standard3dPerspective());

            DrawSegment.MainWindow.UIElements.Add(UIElementDepth.DEBUG_POSITION, new PositionWidget(ActorId));
            //Actor modelActor = GameResources.ActorManager.GetActorByName("Billboard");
            //BillboardRenderComponent rc = modelActor.GetComponent<BillboardRenderComponent>(ActorComponent.ComponentType.Render);
            //mBrightParam = rc.Effect.Parameters["gBright"];
            //mContrastParam = rc.Effect.Parameters["gContrast"];

            GameResources.ActorManager.PreAnimationUpdateStep += PreAnimationUpdateHandler;
        }