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; }
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; }
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; }
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; }