private void ShowMedalMessage(Medal medal) { if (null == medal) return; var gotAMedal = new GotAMedal(medal); Items.Add(gotAMedal); gotAMedal.水平方向に中央揃え(); gotAMedal.垂直方向に中央揃え(); DrawingPreparers.Add(gotAMedal.GetDrawingPreparer()); }
public GotAMedal(Medal medal) { Text = string.Format("{0}メダルを獲得しました!!", medal.Difficulty == Difficulty.Normal ? "銀" : "金"); LifeTime = TimeSpan.FromSeconds(2d); Color = Color.White; Width = 500; Height = 30; }