コード例 #1
0
        private void ChangeResultTableDifficulty()
        {
            currentDifficultyRecults.Clear();
            sprite.ClearChildren();
            for (int i = 0; i < results.Length; i++)
            {
                if (selectedDifficulty == results[i].Difficulty)
                {
                    currentDifficultyRecults.Add(results[i]);
                }
            }

            int iter = 0;

            foreach (PPDFramework.ResultInfo result in currentDifficultyRecults)
            {
                var tempSprite = new SpriteObject(device)
                {
                    Position = new Vector2(0, iter * 19)
                };
                tempSprite.AddChild(new TextureString(device, result.Difficulty.ToString(), 12, true, PPDColors.White)
                {
                    Position = new Vector2(35, 2)
                });
                tempSprite.AddChild(new TextureString(device, String.Format("{0:D7}", result.Score), 12, true, PPDColors.White)
                {
                    Position = new Vector2(105, 2)
                });
                tempSprite.AddChild(new TextureString(device, result.ResultEvaluate.ToString(), 12, true, PPDColors.White)
                {
                    Position = new Vector2(180, 2)
                });
                tempSprite.AddChild(new TextureString(device, result.Date.ToShortDateString(), 12, true, PPDColors.White)
                {
                    Position = new Vector2(270, 2)
                });
                tempSprite.AddChild(new PictureObject(device, resourceManager, Utility.Path.Combine("playrecord", "recordcontent.png")));
                sprite.AddChild(tempSprite);
            }
        }
コード例 #2
0
 public void ChangeData(Vector2[] positions, float[] angles)
 {
     positionSprite.ClearChildren();
     angleSprite.ClearChildren();
     for (var i = 0; i < positions.Length; i++)
     {
         positionSprite.AddChild(new PictureObject(device, resourceManager, Utility.Path.Combine("assist", "circle.png"), true)
         {
             Position = positions[i]
         });
         angleSprite.AddChild(new PictureObject(device, resourceManager, Utility.Path.Combine("assist", "arrow.png"), true)
         {
             Rotation = -angles[i],
             Position = positions[i]
         });
         var str = $"{i + 1}";
         positionSprite.AddChild(new TextureString(device, str, FontHeight, PPDColors.Black)
         {
             Position = positions[i] - new Vector2(FontHeight * str.Length / 4, FontHeight / 2)
         });
     }
 }
コード例 #3
0
ファイル: IPSelectScene.cs プロジェクト: KHCmaster/PPD
 public void ClearUserComponent()
 {
     userSprite.ClearChildren();
 }