コード例 #1
0
        protected override void SetChildrenProperties()
        {
            regularBackground.Location = Location;
            regularBackground.Size     = Size;

            detailsBackground.Location = Location;
            detailsBackground.Size     = Size;

            skillIcon.Location    = new Point2D(Location.X + 5, Location.Y + 5);
            skillIcon.ContentFile = SkillIcon;

            currentLevelText.Text     = CurrentLevel.ToString();
            currentLevelText.Location = new Point2D(Location.X + 32, Location.Y + 4);

            baseLevelText.Text     = BaseLevel.ToString();
            baseLevelText.Location = new Point2D(Location.X + 44, Location.Y + 16);

            detailsText.Location = Location;
            detailsText.Size     = Size;
            detailsText.Text     = $"Xp:{Environment.NewLine}{Experience}";

            base.SetChildrenProperties();
        }