public PlayerUIManager(PlayerShip ParentShip)
        {
            this.ParentShip = ParentShip;

            //MenuManager = new PlayerMenuManager(ParentShip);

            TurretPickerFrame = new FormFrame(ParentShip);
            TurretPickerFrame.ScreenOffset = new Vector2(0, 200);
            TurretForm.BuildAllTurrets(TurretPickerFrame);

            MenuFrame = new FormFrame(ParentShip);
            PlayerMenuBuilder.BuildPauseMenu(MenuFrame);
            PlayerMenuBuilder.BuildControllerOptions(MenuFrame);
            PlayerMenuBuilder.BuildScreenOptions(MenuFrame);

            PlayerMarker m = new PlayerMarker(ParentShip.MyProfile);

            ParentShip.ParentLevel.AddObject(m);
            m.Visible = false;
            m.MoveSpeed.set(10);
            m.ResizeSpeed.set(10);
            TurretPickerFrame.AddTarget(m);

            m = new PlayerMarker(ParentShip.MyProfile);
            ParentShip.ParentLevel.AddObject(m);
            m.MoveSpeed.set(5);
            m.ResizeSpeed.set(10);
            MenuFrame.AddTarget(m);

            TurretPickerFrame.DeActivate();
            MenuFrame.DeActivate();

            TurretPickerFrame.SetRestrictedView(ParentShip.MyProfile.PlayerNumber);
            MenuFrame.SetRestrictedView(ParentShip.MyProfile.PlayerNumber);

            AddHudBox(new HudHealthBox());
            AddHudBox(new HudScoreBox());
            AddHudBox(new HudWeaponsBox());
            AddHudBox(new HudOutline());
            AddHudBox(new HudProgressCircle());
            AddHudBox(new HudFactionFeed());
            AddHudBox(new HudTimerBox());
        }
        public static void BuildSelectedTurrets(FormFrame frame, int FactionNumber)
        {
            frame.ClearForms();
            frame.Commit("AllTurrets", true);
            for (int x = 0; x < Faction.MaxCards; x++)
            {
                TurretCard c = (TurretCard)FactionManager.Factions[FactionNumber].Cards[x];
                TurretForm t = new TurretForm();
                GameManager.GetLevel().AddObject(t);
                frame.Add(t);

                string s = c.GetUnitImagePath().Equals("") ?
                           "Textures/ShipGame/TurretPictures/" + c.GetImagePath() :
                           "Textures/ShipGame/UnitPictures/" + c.GetUnitImagePath();

                t.SetValues(AssetManager.Load <Texture2D>(s), AssetManager.Load <SpriteFont>("Fonts/ShipGame/EventFont"), c.Name,
                            c.GetColor(), new Vector2(150 * x, 0), new Vector2(125), c);
            }

            frame.Commit("AllTurrets", false);
            frame.DeActivate();
        }
        public static void BuildAllTurrets(FormFrame frame)
        {
            int x;

            for (int y = 0; y < 5; y++)
            {
                x = 0;
                foreach (TurretCard c in FactionCard.SortedTurretDeck[y])
                {
                    TurretForm t = new TurretForm();
                    GameManager.GetLevel().AddObject(t);
                    frame.Add(t);

                    string s = c.GetUnitImagePath().Equals("") ?
                               "Textures/ShipGame/TurretPictures/" + c.GetImagePath() :
                               "Textures/ShipGame/UnitPictures/" + c.GetUnitImagePath();

                    t.SetValues(AssetManager.Load <Texture2D>(s), AssetManager.Load <SpriteFont>("Fonts/ShipGame/EventFont"), c.Name,
                                c.GetColor(), new Vector2(150 * x, 150 * y), new Vector2(125), c);
                    x++;
                }
            }
            frame.Commit("AllTurrets", true);
        }