internal void SetPosition(ShowPosition showPosition)
        {
            Rectangle rectDes = new Rectangle(0, 0, this.screen.viewportSize.X, this.screen.viewportSize.Y);
            Rectangle rect = new Rectangle(0, 0, this.BackgroundSize.X, this.BackgroundSize.Y);
            switch (showPosition)
            {
                case ShowPosition.Center:
                    rect = StaticMethods.GetCenterRectangle(rectDes, rect);
                    break;

                case ShowPosition.Top:
                    rect = StaticMethods.GetTopRectangle(rectDes, rect);
                    break;

                case ShowPosition.Left:
                    rect = StaticMethods.GetLeftRectangle(rectDes, rect);
                    break;

                case ShowPosition.Right:
                    rect = StaticMethods.GetRightRectangle(rectDes, rect);
                    break;

                case ShowPosition.Bottom:
                    rect = StaticMethods.GetBottomRectangle(rectDes, rect);
                    break;

                case ShowPosition.TopLeft:
                    rect = StaticMethods.GetTopLeftRectangle(rectDes, rect);
                    break;

                case ShowPosition.TopRight:
                    rect = StaticMethods.GetTopRightRectangle(rectDes, rect);
                    break;

                case ShowPosition.BottomLeft:
                    rect = StaticMethods.GetBottomLeftRectangle(rectDes, rect);
                    break;

                case ShowPosition.BottomRight:
                    rect = StaticMethods.GetBottomRightRectangle(rectDes, rect);
                    break;
            }
            this.DisplayOffset = new Point(rect.X, rect.Y);
            foreach (LabelText text in this.LabelTexts)
            {
                text.Label.DisplayOffset = this.DisplayOffset;
                text.Text.DisplayOffset = this.DisplayOffset;
            }
            this.DescriptionText.DisplayOffset = new Point(this.DisplayOffset.X + this.DescriptionClient.X, this.DisplayOffset.Y + this.DescriptionClient.Y);
            this.InfluenceText.DisplayOffset = new Point(this.DisplayOffset.X + this.InfluenceClient.X, this.DisplayOffset.Y + this.InfluenceClient.Y);
        }
        internal void SetPosition(ShowPosition showPosition)
        {
            Rectangle rectDes = new Rectangle(0, 0, this.screen.viewportSize.X, this.screen.viewportSize.Y);
            Rectangle rect = new Rectangle(0, 0, this.BackgroundSize.X, this.BackgroundSize.Y);
            switch (showPosition)
            {
                case ShowPosition.Center:
                    rect = StaticMethods.GetCenterRectangle(rectDes, rect);
                    break;

                case ShowPosition.Top:
                    rect = StaticMethods.GetTopRectangle(rectDes, rect);
                    break;

                case ShowPosition.Left:
                    rect = StaticMethods.GetLeftRectangle(rectDes, rect);
                    break;

                case ShowPosition.Right:
                    rect = StaticMethods.GetRightRectangle(rectDes, rect);
                    break;

                case ShowPosition.Bottom:
                    rect = StaticMethods.GetBottomRectangle(rectDes, rect);
                    break;

                case ShowPosition.TopLeft:
                    rect = StaticMethods.GetTopLeftRectangle(rectDes, rect);
                    break;

                case ShowPosition.TopRight:
                    rect = StaticMethods.GetTopRightRectangle(rectDes, rect);
                    break;

                case ShowPosition.BottomLeft:
                    rect = StaticMethods.GetBottomLeftRectangle(rectDes, rect);
                    break;

                case ShowPosition.BottomRight:
                    rect = StaticMethods.GetBottomRightRectangle(rectDes, rect);
                    break;
            }
            this.DisplayOffset = new Point(rect.X, rect.Y);
            this.RichText.DisplayOffset = new Point(rect.X + this.ClientPosition.X, rect.Y + this.ClientPosition.Y);
        }
示例#3
0
 public void SetMapPosition(ShowPosition showPosition)
 {
     this.help.SetDisplayOffset(showPosition);
 }
 public void SetPosition(ShowPosition showPosition)
 {
     this.tupianwenzi.SetPosition(showPosition);
 }
示例#5
0
 public void SetPosition(ShowPosition showPosition)
 {
     this.troopDetail.SetPosition(showPosition);
 }
 public void SetPosition(ShowPosition showPosition)
 {
     this.confirmationDialog.SetPosition(showPosition);
 }
示例#7
0
        internal void SetDisplayOffset(ShowPosition showPosition)
        {
            Rectangle rectDes = new Rectangle(0, 0, this.screen.viewportSize.X, this.screen.viewportSize.Y);
            Rectangle rect = new Rectangle(0, 0, this.Width, this.Height);
            switch (showPosition)
            {
                case ShowPosition.Center:
                    rect = StaticMethods.GetCenterRectangle(rectDes, rect);
                    break;

                case ShowPosition.Top:
                    rect = StaticMethods.GetTopRectangle(rectDes, rect);
                    break;

                case ShowPosition.Left:
                    rect = StaticMethods.GetLeftRectangle(rectDes, rect);
                    break;

                case ShowPosition.Right:
                    rect = StaticMethods.GetRightRectangle(rectDes, rect);
                    break;

                case ShowPosition.Bottom:
                    rect = StaticMethods.GetBottomRectangle(rectDes, rect);
                    break;

                case ShowPosition.TopLeft:
                    rect = StaticMethods.GetTopLeftRectangle(rectDes, rect);
                    break;

                case ShowPosition.TopRight:
                    rect = StaticMethods.GetTopRightRectangle(rectDes, rect);
                    break;

                case ShowPosition.BottomLeft:
                    rect = StaticMethods.GetBottomLeftRectangle(rectDes, rect);
                    break;

                case ShowPosition.BottomRight:
                    rect = StaticMethods.GetBottomRightRectangle(rectDes, rect);
                    break;

                case ShowPosition.Mouse:
                    rect.X = this.screen.MousePosition.X;
                    rect.Y = this.screen.MousePosition.Y;
                    break;
            }
            this.OptionTextList.DisplayOffset = new Point(rect.X, rect.Y);
            this.TitleDisplayPosition = StaticMethods.GetCenterRectangle(new Rectangle(rect.X, (rect.Y - this.TitleHeight) - this.TitleMargin, this.ItemWidth, this.TitleHeight), new Rectangle(0, 0, this.TitleWidth, this.TitleHeight));
            this.TitleText.DisplayOffset = new Point(this.TitleDisplayPosition.X, this.TitleDisplayPosition.Y);
        }
示例#8
0
        internal void SetDisplayOffset(ShowPosition showPosition)
        {
            this.TileLength = this.DefaultTileLength;
            this.ResetMapSize();
            Rectangle rectDes = new Rectangle(0, 0, this.screen.viewportSize.X, this.screen.viewportSize.Y);
            Rectangle rect = new Rectangle(0, 0, this.mapSize.X, this.mapSize.Y);
            switch (showPosition)
            {
                case ShowPosition.Center:
                    rect = StaticMethods.GetCenterRectangle(rectDes, rect);
                    break;

                case ShowPosition.Top:
                    rect = StaticMethods.GetTopRectangle(rectDes, rect);
                    break;

                case ShowPosition.Left:
                    rect = StaticMethods.GetLeftRectangle(rectDes, rect);
                    break;

                case ShowPosition.Right:
                    rect = StaticMethods.GetRightRectangle(rectDes, rect);
                    break;

                case ShowPosition.Bottom:
                    rect = StaticMethods.GetBottomRectangle(rectDes, rect);
                    break;

                case ShowPosition.TopLeft:
                    rect = StaticMethods.GetTopLeftRectangle(rectDes, rect);
                    break;

                case ShowPosition.TopRight:
                    rect = StaticMethods.GetTopRightRectangle(rectDes, rect);
                    break;

                case ShowPosition.BottomLeft:
                    rect = StaticMethods.GetBottomLeftRectangle(rectDes, rect);
                    break;

                case ShowPosition.BottomRight:
                    rect = StaticMethods.GetBottomRightRectangle(rectDes, rect);
                    break;
            }
            this.MapDisplayOffset = new Point(rect.X-30, rect.Y);
        }
 public void SetPosition(ShowPosition showPosition)
 {
     this.factionTechniques.SetPosition(showPosition);
 }
示例#10
0
 public void SetMapPosition(ShowPosition showPosition)
 {
     this.airView.SetDisplayOffset(Session.MainGame.mainGameScreen, showPosition);
 }
 public void SetMapPosition(ShowPosition showPosition)
 {
     this.mapViewSelector.SetDisplayOffset(showPosition);
 }
示例#12
0
 public void SetMapPosition(ShowPosition showPosition)
 {
     this.airView.SetDisplayOffset(showPosition);
 }
 public void SetPosition(ShowPosition showPosition)
 {
     this.simpleTextDialog.SetPosition(showPosition);
 }
示例#14
0
 internal void ShowOptionDialog(ShowPosition showPosition)
 {
     this.BuildOptionDialog();
     this.OptionDialogPlugin.ShowOptionDialog(showPosition);
 }
示例#15
0
 public void ShowOptionDialog(ShowPosition showPosition)
 {
     this.optionDialog.SetDisplayOffset(showPosition);
     this.optionDialog.IsShowing = true;
 }
示例#16
0
 public void SetMapPosition(ShowPosition showPosition)
 {
     this.help.SetDisplayOffset(showPosition);
 }
示例#17
0
        internal void SetPosition(ShowPosition showPosition)
        {
            Rectangle rectDes = new Rectangle(0, 0, this.screen.viewportSize.X, this.screen.viewportSize.Y);
            Rectangle rect = new Rectangle(0, 0, this.BackgroundSize.X, this.BackgroundSize.Y);
            switch (showPosition)
            {
                case ShowPosition.Center:
                    rect = StaticMethods.GetCenterRectangle(rectDes, rect);
                    break;

                case ShowPosition.Top:
                    rect = StaticMethods.GetTopRectangle(rectDes, rect);
                    break;

                case ShowPosition.Left:
                    rect = StaticMethods.GetLeftRectangle(rectDes, rect);
                    break;

                case ShowPosition.Right:
                    rect = StaticMethods.GetRightRectangle(rectDes, rect);
                    break;

                case ShowPosition.Bottom:
                    rect = StaticMethods.GetBottomRectangle(rectDes, rect);
                    break;

                case ShowPosition.TopLeft:
                    rect = StaticMethods.GetTopLeftRectangle(rectDes, rect);
                    break;

                case ShowPosition.TopRight:
                    rect = StaticMethods.GetTopRightRectangle(rectDes, rect);
                    break;

                case ShowPosition.BottomLeft:
                    rect = StaticMethods.GetBottomLeftRectangle(rectDes, rect);
                    break;

                case ShowPosition.BottomRight:
                    rect = StaticMethods.GetBottomRightRectangle(rectDes, rect);
                    break;
            }
            this.DisplayOffset = new Point(rect.X, rect.Y);
            this.SurNameText.DisplayOffset = this.DisplayOffset;
            this.GivenNameText.DisplayOffset = this.DisplayOffset;
            this.CalledNameText.DisplayOffset = this.DisplayOffset;
            foreach (LabelText text in this.LabelTexts)
            {
                text.Label.DisplayOffset = this.DisplayOffset;
                text.Text.DisplayOffset = this.DisplayOffset;
            }
            this.TitleText.DisplayOffset = new Point(this.DisplayOffset.X + this.TitleClient.X, this.DisplayOffset.Y + this.TitleClient.Y);
            this.AllSkillTexts.DisplayOffset = this.DisplayOffset;
            this.PersonSkillTexts.DisplayOffset = this.DisplayOffset;
            this.LearnableSkillTexts.DisplayOffset = this.DisplayOffset;
            this.StuntText.DisplayOffset = new Point(this.DisplayOffset.X + this.StuntClient.X, this.DisplayOffset.Y + this.StuntClient.Y);
            this.InfluenceText.DisplayOffset = new Point(this.DisplayOffset.X + this.InfluenceClient.X, this.DisplayOffset.Y + this.InfluenceClient.Y);
            this.ConditionText.DisplayOffset = new Point(this.DisplayOffset.X + this.ConditionClient.X, this.DisplayOffset.Y + this.ConditionClient.Y);
            this.BiographyText.DisplayOffset = new Point(this.DisplayOffset.X + this.BiographyClient.X, this.DisplayOffset.Y + this.BiographyClient.Y);
        }
        internal void SetDisplayOffset(ShowPosition showPosition)
        {
            Rectangle rectDes = new Rectangle(0, 0, this.screen.viewportSize.X, this.screen.viewportSize.Y);
            int num = 0;
            num += this.ReturnToListButtonText.Position.Height;
            num += this.OKButtonText.Position.Height;
            num += this.CancelButtonText.Position.Height;
            Rectangle rect = new Rectangle(0, 0, this.TitleSize.X, this.TitleSize.Y + num);
            switch (showPosition)
            {
                case ShowPosition.Center:
                    rect = StaticMethods.GetCenterRectangle(rectDes, rect);
                    break;

                case ShowPosition.Top:
                    rect = StaticMethods.GetTopRectangle(rectDes, rect);
                    break;

                case ShowPosition.Left:
                    rect = StaticMethods.GetLeftRectangle(rectDes, rect);
                    break;

                case ShowPosition.Right:
                    rect = StaticMethods.GetRightRectangle(rectDes, rect);
                    break;

                case ShowPosition.Bottom:
                    rect = StaticMethods.GetBottomRectangle(rectDes, rect);
                    break;

                case ShowPosition.TopLeft:
                    rect = StaticMethods.GetTopLeftRectangle(rectDes, rect);
                    break;

                case ShowPosition.TopRight:
                    rect = StaticMethods.GetTopRightRectangle(rectDes, rect);
                    break;

                case ShowPosition.BottomLeft:
                    rect = StaticMethods.GetBottomLeftRectangle(rectDes, rect);
                    break;

                case ShowPosition.BottomRight:
                    rect = StaticMethods.GetBottomRightRectangle(rectDes, rect);
                    break;
            }
            this.DisplayOffset = new Point(rect.X, rect.Y);
            this.ReturnToListButtonText.DisplayOffset = this.DisplayOffset;
            this.OKButtonText.DisplayOffset = this.DisplayOffset;
            this.CancelButtonText.DisplayOffset = this.DisplayOffset;
        }
示例#19
0
        internal void SetDisplayOffset(ShowPosition showPosition)
        {
            Rectangle rectDes = new Rectangle(0, 0, this.screen.viewportSize.X, this.screen.viewportSize.Y);
            if (rectDes != Rectangle.Empty)
            {
                Rectangle recordBackgroundClient = this.RecordBackgroundClient;
                switch (showPosition)
                {
                    case ShowPosition.Center:
                        recordBackgroundClient = StaticMethods.GetCenterRectangle(rectDes, recordBackgroundClient);
                        break;

                    case ShowPosition.Top:
                        recordBackgroundClient = StaticMethods.GetTopRectangle(rectDes, recordBackgroundClient);
                        break;

                    case ShowPosition.Left:
                        recordBackgroundClient = StaticMethods.GetLeftRectangle(rectDes, recordBackgroundClient);
                        break;

                    case ShowPosition.Right:
                        recordBackgroundClient = StaticMethods.GetRightRectangle(rectDes, recordBackgroundClient);
                        break;

                    case ShowPosition.Bottom:
                        recordBackgroundClient = StaticMethods.GetBottomRectangle(rectDes, recordBackgroundClient);
                        break;

                    case ShowPosition.TopLeft:
                        recordBackgroundClient = StaticMethods.GetTopLeftRectangle(rectDes, recordBackgroundClient);
                        break;

                    case ShowPosition.TopRight:
                        recordBackgroundClient = StaticMethods.GetTopRightRectangle(rectDes, recordBackgroundClient);
                        break;

                    case ShowPosition.BottomLeft:
                        recordBackgroundClient = StaticMethods.GetBottomLeftRectangle(rectDes, recordBackgroundClient);
                        break;

                    case ShowPosition.BottomRight:
                        recordBackgroundClient = StaticMethods.GetBottomRightRectangle(rectDes, recordBackgroundClient);
                        break;
                }
                this.RecordDisplayOffset = new Point(recordBackgroundClient.X, recordBackgroundClient.Y);
                this.Record.DisplayOffset = this.RecordDisplayOffset;
            }
        }
 public void SetMapPosition(ShowPosition showPosition)
 {
     this.transportDialog.SetDisplayOffset(showPosition);
 }
 public void SetPosition(ShowPosition showPosition)
 {
     this.createTroop.SetPosition(showPosition);
 }
示例#22
0
        internal void SetPosition(ShowPosition showPosition)
        {
            Rectangle rectDes = new Rectangle(0, 0, this.screen.viewportSize.X, this.screen.viewportSize.Y);
            Rectangle rect    = new Rectangle(0, 0, this.BackgroundSize.X, this.BackgroundSize.Y);

            switch (showPosition)
            {
            case ShowPosition.Center:
                rect = StaticMethods.GetCenterRectangle(rectDes, rect);
                break;

            case ShowPosition.Top:
                rect = StaticMethods.GetTopRectangle(rectDes, rect);
                break;

            case ShowPosition.Left:
                rect = StaticMethods.GetLeftRectangle(rectDes, rect);
                break;

            case ShowPosition.Right:
                rect = StaticMethods.GetRightRectangle(rectDes, rect);
                break;

            case ShowPosition.Bottom:
                rect = StaticMethods.GetBottomRectangle(rectDes, rect);
                break;

            case ShowPosition.TopLeft:
                rect = StaticMethods.GetTopLeftRectangle(rectDes, rect);
                break;

            case ShowPosition.TopRight:
                rect = StaticMethods.GetTopRightRectangle(rectDes, rect);
                break;

            case ShowPosition.BottomLeft:
                rect = StaticMethods.GetBottomLeftRectangle(rectDes, rect);
                break;

            case ShowPosition.BottomRight:
                rect = StaticMethods.GetBottomRightRectangle(rectDes, rect);
                break;
            }
            this.DisplayOffset                = new Point(rect.X, rect.Y);
            this.SurNameText.DisplayOffset    = this.DisplayOffset;
            this.GivenNameText.DisplayOffset  = this.DisplayOffset;
            this.CalledNameText.DisplayOffset = this.DisplayOffset;
            foreach (LabelText text in this.LabelTexts)
            {
                text.Label.DisplayOffset = this.DisplayOffset;
                text.Text.DisplayOffset  = this.DisplayOffset;
            }
            this.PersonalTitleLabelText.Label.DisplayOffset = this.DisplayOffset;
            this.PersonalTitleLabelText.Text.DisplayOffset  = this.DisplayOffset;
            this.CombatTitleLabelText.Label.DisplayOffset   = this.DisplayOffset;
            this.CombatTitleLabelText.Text.DisplayOffset    = this.DisplayOffset;
            this.AllSkillTexts.DisplayOffset       = this.DisplayOffset;
            this.PersonSkillTexts.DisplayOffset    = this.DisplayOffset;
            this.LearnableSkillTexts.DisplayOffset = this.DisplayOffset;
            this.StuntText.DisplayOffset           = new Point(this.DisplayOffset.X + this.StuntClient.X, this.DisplayOffset.Y + this.StuntClient.Y);
            this.InfluenceText.DisplayOffset       = new Point(this.DisplayOffset.X + this.InfluenceClient.X, this.DisplayOffset.Y + this.InfluenceClient.Y);
            this.ConditionText.DisplayOffset       = new Point(this.DisplayOffset.X + this.ConditionClient.X, this.DisplayOffset.Y + this.ConditionClient.Y);
            this.BiographyText.DisplayOffset       = new Point(this.DisplayOffset.X + this.BiographyClient.X, this.DisplayOffset.Y + this.BiographyClient.Y);
        }
 public void SetPosition(ShowPosition showPosition)
 {
     this.architectureDetail.SetPosition(showPosition);
 }
示例#24
0
 public void SetPosition(ShowPosition showPosition)
 {
     this.factionTechniques.SetPosition(showPosition);
 }
示例#25
0
 public void SetPosition(ShowPosition showPosition)
 {
     this.confirmationDialog.SetPosition(showPosition);
 }
示例#26
0
 public void SetMapPosition(ShowPosition showPosition)
 {
     this.numberInputer.SetDisplayOffset(showPosition);
 }
示例#27
0
 public void SetPosition(ShowPosition showPosition)
 {
     this.personDetail.SetPosition(showPosition);
 }
示例#28
0
 public void SetPosition(ShowPosition showPosition)
 {
     this.simpleTextDialog.SetPosition(showPosition);
 }
 public void SetPosition(ShowPosition showPosition)
 {
     this.personTextDialog.SetPosition(showPosition);
 }
示例#30
0
        internal void SetDisplayOffset(ShowPosition showPosition)
        {
            Rectangle rectDes = new Rectangle(0, 0, this.screen.viewportSize.X, this.screen.viewportSize.Y);
            Rectangle rect = new Rectangle(0, 0, this.BackgroundSize.X, this.BackgroundSize.Y);
            switch (showPosition)
            {
                case ShowPosition.Center:
                    rect = StaticMethods.GetCenterRectangle(rectDes, rect);
                    break;

                case ShowPosition.Top:
                    rect = StaticMethods.GetTopRectangle(rectDes, rect);
                    break;

                case ShowPosition.Left:
                    rect = StaticMethods.GetLeftRectangle(rectDes, rect);
                    break;

                case ShowPosition.Right:
                    rect = StaticMethods.GetRightRectangle(rectDes, rect);
                    break;

                case ShowPosition.Bottom:
                    rect = StaticMethods.GetBottomRectangle(rectDes, rect);
                    break;

                case ShowPosition.TopLeft:
                    rect = StaticMethods.GetTopLeftRectangle(rectDes, rect);
                    break;

                case ShowPosition.TopRight:
                    rect = StaticMethods.GetTopRightRectangle(rectDes, rect);
                    break;

                case ShowPosition.BottomLeft:
                    rect = StaticMethods.GetBottomLeftRectangle(rectDes, rect);
                    break;

                case ShowPosition.BottomRight:
                    rect = StaticMethods.GetBottomRightRectangle(rectDes, rect);
                    break;
            }
            this.DisplayOffset = new Point(rect.X, rect.Y);
            this.RangeText.DisplayOffset = this.DisplayOffset;
            if (this.Max >= 0)
            {
                this.RangeText.Text = "0 - " + this.Max.ToString() + this.unit;
            }
            else
            {
                this.RangeText.Text = "0 - 任意";
            }
            this.FrameText.DisplayOffset = this.DisplayOffset;
            this.FrameText.Text = this.Num.ToString();
        }
 public void ShowOptionDialog(ShowPosition showPosition)
 {
     this.optionDialog.SetDisplayOffset(showPosition);
     this.optionDialog.IsShowing = true;
 }
 public void SetMapPosition(ShowPosition showPosition)
 {
     this.marshalSectionDialog.SetDisplayOffset(showPosition);
 }
示例#33
0
 public void SetMapPosition(ShowPosition showPosition)
 {
     this.marshalSectionDialog.SetDisplayOffset(showPosition);
 }
示例#34
0
 public void SetPosition(ShowPosition showPosition, Screen screen)
 {
     this.tupianwenzi.SetPosition(showPosition, screen);
 }
 public void SetPosition(ShowPosition showPosition)
 {
     this.treasureDetail.SetPosition(showPosition);
 }
 public void ShowOptionDialog(ShowPosition showPosition)
 {
     this.gameSystem.ShowOptionDialog(showPosition);
 }
 public void SetMapPosition(ShowPosition showPosition)
 {
     this.transportDialog.SetDisplayOffset(showPosition);
 }
        internal void SetPosition(ShowPosition showPosition)
        {
            Microsoft.Xna.Framework.Rectangle rectDes = new Microsoft.Xna.Framework.Rectangle(0, 0, this.screen.viewportSize.X, this.screen.viewportSize.Y);
            Microsoft.Xna.Framework.Rectangle rect = new Microsoft.Xna.Framework.Rectangle(0, 0, this.BackgroundSize.X, this.BackgroundSize.Y);
            switch (showPosition)
            {
                case ShowPosition.Center:
                    rect = StaticMethods.GetCenterRectangle(rectDes, rect);
                    break;

                case ShowPosition.Top:
                    rect = StaticMethods.GetTopRectangle(rectDes, rect);
                    break;

                case ShowPosition.Left:
                    rect = StaticMethods.GetLeftRectangle(rectDes, rect);
                    break;

                case ShowPosition.Right:
                    rect = StaticMethods.GetRightRectangle(rectDes, rect);
                    break;

                case ShowPosition.Bottom:
                    rect = StaticMethods.GetBottomRectangle(rectDes, rect);
                    break;

                case ShowPosition.TopLeft:
                    rect = StaticMethods.GetTopLeftRectangle(rectDes, rect);
                    break;

                case ShowPosition.TopRight:
                    rect = StaticMethods.GetTopRightRectangle(rectDes, rect);
                    break;

                case ShowPosition.BottomLeft:
                    rect = StaticMethods.GetBottomLeftRectangle(rectDes, rect);
                    break;

                case ShowPosition.BottomRight:
                    rect = StaticMethods.GetBottomRightRectangle(rectDes, rect);
                    break;
            }
            this.DisplayOffset = new Microsoft.Xna.Framework.Point(rect.X, rect.Y);
            foreach (LabelText text in this.LabelTexts)
            {
                text.Label.DisplayOffset = this.DisplayOffset;
                text.Text.DisplayOffset = this.DisplayOffset;
            }
            foreach (TechniqueItem item in this.AllTechniques)
            {
                item.Text.DisplayOffset = new Microsoft.Xna.Framework.Point(this.ButtonStartPosition.X + this.DisplayOffset.X, this.ButtonStartPosition.Y + this.DisplayOffset.Y);
            }
            this.CommentsText.DisplayOffset = new Microsoft.Xna.Framework.Point(this.DisplayOffset.X + this.CommentsClient.X, this.DisplayOffset.Y + this.CommentsClient.Y);
        }
 public void SetMapPosition(ShowPosition showPosition)
 {
     this.numberInputer.SetDisplayOffset(showPosition);
 }
示例#40
0
 public void SetPosition(ShowPosition showPosition)
 {
     this.treasureDetail.SetPosition(showPosition);
 }
示例#41
0
 internal void ShowOptionDialog(ShowPosition showPosition)
 {
     this.BuildOptionDialog();
     this.OptionDialogPlugin.ShowOptionDialog(showPosition);
 }
示例#42
0
 public void SetMapPosition(ShowPosition showPosition)
 {
     this.airView.SetDisplayOffset(showPosition);
 }
示例#43
0
		internal void SetPosition(ShowPosition showPosition)
		{
			Rectangle rectangle = new Rectangle(0, 0, this.screen.viewportSize.X, this.screen.viewportSize.Y);
			Rectangle centerRectangle = new Rectangle(0, 0, this.BackgroundSize.X, this.BackgroundSize.Y);
			ShowPosition showPosition1 = showPosition;
			switch (showPosition1)
			{
				case ShowPosition.Center:
				{
					centerRectangle = StaticMethods.GetCenterRectangle(rectangle, centerRectangle);
					break;
				}
				case ShowPosition.Top:
				{
					centerRectangle = StaticMethods.GetTopRectangle(rectangle, centerRectangle);
					break;
				}
                case ShowPosition.Left:
				{
					centerRectangle = StaticMethods.GetLeftRectangle(rectangle, centerRectangle);
					break;
				}
                case ShowPosition.Right:
				{
					centerRectangle = StaticMethods.GetRightRectangle(rectangle, centerRectangle);
					break;
				}
                case ShowPosition.Bottom:
				{
					centerRectangle = StaticMethods.GetBottomRectangle(rectangle, centerRectangle);
					break;
				}
                case ShowPosition.TopLeft:
				{
					centerRectangle = StaticMethods.GetTopLeftRectangle(rectangle, centerRectangle);
					break;
				}
                case ShowPosition.TopRight:
				{
					centerRectangle = StaticMethods.GetTopRightRectangle(rectangle, centerRectangle);
					break;
				}
                case ShowPosition.BottomLeft:
				{
					centerRectangle = StaticMethods.GetBottomLeftRectangle(rectangle, centerRectangle);
					break;
				}
                case ShowPosition.BottomRight:
				{
					centerRectangle = StaticMethods.GetBottomRightRectangle(rectangle, centerRectangle);
					break;
				}
			}
			this.DisplayOffset = new Point(centerRectangle.X, centerRectangle.Y);
			this.TroopNameText.DisplayOffset = this.DisplayOffset;
			List<LabelText>.Enumerator enumerator = this.LabelTexts.GetEnumerator();
			try
			{
				while (true)
				{
					bool flag = enumerator.MoveNext();
					if (!flag)
					{
						break;
					}
					LabelText current = enumerator.Current;
					current.Label.DisplayOffset = this.DisplayOffset;
					current.Text.DisplayOffset = this.DisplayOffset;
				}
			}
			finally
			{
				enumerator.Dispose();
			}
			this.OtherPersonText.DisplayOffset = new Point(this.DisplayOffset.X + this.OtherPersonClient.X, this.DisplayOffset.Y + this.OtherPersonClient.Y);
			this.CombatMethodText.DisplayOffset = new Point(this.DisplayOffset.X + this.CombatMethodClient.X, this.DisplayOffset.Y + this.CombatMethodClient.Y);
			this.StuntText.DisplayOffset = new Point(this.DisplayOffset.X + this.StuntClient.X, this.DisplayOffset.Y + this.StuntClient.Y);
			this.InfluenceText.DisplayOffset = new Point(this.DisplayOffset.X + this.InfluenceClient.X, this.DisplayOffset.Y + this.InfluenceClient.Y);
		}
示例#44
0
 public void SetPosition(ShowPosition showPosition)
 {
     this.architectureDetail.SetPosition(showPosition);
 }
 public void SetPosition(ShowPosition showPosition)
 {
     this.personDetail.SetPosition(showPosition);
 }
示例#46
0
 public void SetPosition(ShowPosition showPosition)
 {
     this.createTroop.SetPosition(showPosition);
 }
		public void SetPosition(ShowPosition showPosition)
		{
			this.troopDetail.SetPosition(showPosition);
		}
示例#48
0
        internal void SetPosition(ShowPosition showPosition)
        {
            Rectangle    rectangle       = new Rectangle(0, 0, Session.MainGame.mainGameScreen.viewportSize.X, Session.MainGame.mainGameScreen.viewportSize.Y);
            Rectangle    centerRectangle = new Rectangle(0, 0, this.BackgroundSize.X, this.BackgroundSize.Y);
            ShowPosition showPosition1   = showPosition;

            switch (showPosition1)
            {
            case ShowPosition.Center:
            {
                centerRectangle = StaticMethods.GetCenterRectangle(rectangle, centerRectangle);
                break;
            }

            case ShowPosition.Top:
            {
                centerRectangle = StaticMethods.GetTopRectangle(rectangle, centerRectangle);
                break;
            }

            case ShowPosition.Left:
            {
                centerRectangle = StaticMethods.GetLeftRectangle(rectangle, centerRectangle);
                break;
            }

            case ShowPosition.Right:
            {
                centerRectangle = StaticMethods.GetRightRectangle(rectangle, centerRectangle);
                break;
            }

            case ShowPosition.Bottom:
            {
                centerRectangle = StaticMethods.GetBottomRectangle(rectangle, centerRectangle);
                break;
            }

            case ShowPosition.TopLeft:
            {
                centerRectangle = StaticMethods.GetTopLeftRectangle(rectangle, centerRectangle);
                break;
            }

            case ShowPosition.TopRight:
            {
                centerRectangle = StaticMethods.GetTopRightRectangle(rectangle, centerRectangle);
                break;
            }

            case ShowPosition.BottomLeft:
            {
                centerRectangle = StaticMethods.GetBottomLeftRectangle(rectangle, centerRectangle);
                break;
            }

            case ShowPosition.BottomRight:
            {
                centerRectangle = StaticMethods.GetBottomRightRectangle(rectangle, centerRectangle);
                break;
            }
            }
            this.DisplayOffset = new Point(centerRectangle.X, centerRectangle.Y);
            this.TroopNameText.DisplayOffset = this.DisplayOffset;
            List <LabelText> .Enumerator enumerator = this.LabelTexts.GetEnumerator();
            try
            {
                while (true)
                {
                    bool flag = enumerator.MoveNext();
                    if (!flag)
                    {
                        break;
                    }
                    LabelText current = enumerator.Current;
                    current.Label.DisplayOffset = this.DisplayOffset;
                    current.Text.DisplayOffset  = this.DisplayOffset;
                }
            }
            finally
            {
                enumerator.Dispose();
            }
            this.OtherPersonText.DisplayOffset  = new Point(this.DisplayOffset.X + this.OtherPersonClient.X, this.DisplayOffset.Y + this.OtherPersonClient.Y);
            this.CombatMethodText.DisplayOffset = new Point(this.DisplayOffset.X + this.CombatMethodClient.X, this.DisplayOffset.Y + this.CombatMethodClient.Y);
            this.StuntText.DisplayOffset        = new Point(this.DisplayOffset.X + this.StuntClient.X, this.DisplayOffset.Y + this.StuntClient.Y);
            this.InfluenceText.DisplayOffset    = new Point(this.DisplayOffset.X + this.InfluenceClient.X, this.DisplayOffset.Y + this.InfluenceClient.Y);
        }
 public void SetPosition(ShowPosition showPosition)
 {
     this.tupianwenzi.SetPosition(showPosition);
 }
 public void SetPosition(ShowPosition showPosition)
 {
     this.personTextDialog.SetPosition(showPosition);
 }