public CreditObject(string item, string author) : base(24, 4) { Text = item; Author = new Makinas(18, 4) { Text = author, Position = new Vector2DF(15, 30) }; }
public OptionScene(Score selected_score, int sound_id) { // コンポーネントを追加 AddComponent(new BackgroundComponent("Shader/OpenGL/Option.glsl"), "Background"); AddComponent(new InputManageComponent(), "Input"); AddComponent(new FixedUIComponent("Play Option"), "FixedUI"); // 譜面の情報を保存 SelectedScore = selected_score; PSetLayer = new PlaySettingLayer { DrawingPriority = 1 }; VSetLayer = new VisualSettingLayer { DrawingPriority = 1 }; ASetLayer = new AudioSettingLayer { DrawingPriority = 1 }; var center = new Vector2DF(0.5f, 0.0f); ItemDescription = new Makinas(32, 4, center) { Position = new Vector2DF(480, 550) }; LeftMode = new HeadUpDaisy(24, 4, center) { Position = new Vector2DF(100, 40) }; RightMode = new HeadUpDaisy(24, 4, center) { Position = new Vector2DF(860, 40) }; Configuration = Configuration.Load(); // BGMの情報を保存 PlayingSoundID = sound_id; }
public ResultLayer(Score score, Difficulty difficulty, Result result) { // コンポーネントを作成・追加 AddComponent(new UIComponent(), "UI"); switch (difficulty) { case Difficulty.Casual: DiffColor = new Color(166, 226, 46); break; case Difficulty.Stylish: DiffColor = new Color(253, 151, 31); break; case Difficulty.Freaky: DiffColor = new Color(249, 38, 114); break; case Difficulty.Psychic: DiffColor = new Color(174, 129, 255); break; } // 曲名・サブタイトル・ジャケット・難易度 //-------------------------------------------------- var center = new Vector2DF(0.5f, 0); Jacket = new TextureObject2D { Texture = Graphics.CreateTexture(score.JacketPath), Scale = new Vector2DF(0.5f, 0.5f), Position = new Vector2DF(50, 270) }; Title = new Makinas(48, 4, center) { Text = score.Title, Position = new Vector2DF(480, 130) }; Subtitle = new Makinas(32, 4, center) { Text = score.Subtitle, Position = new Vector2DF(480, 190) }; LevelValue = new GridGazer(72, DiffColor, 4, new Color(), center) { Text = "Lv." + score[difficulty].Level, Position = new Vector2DF(178, 550) }; LevelLabel = new GridGazer(48, DiffColor, 4, new Color(), center) { Text = difficulty.ToString().ToUpper(), Position = new Vector2DF(178, 620) }; //-------------------------------------------------- // 得点その他詳細 //-------------------------------------------------- ScoreLabel = new ScoreDozer(36, 4) { Text = "SCORE", Position = new Vector2DF(350, 260), IsDrawn = false }; ScoreValue = new ScoreDozer(100, 4) { Text = result.Score.ToString(), Position = new Vector2DF(350, 300), IsDrawn = false }; Just = new ScoreDozer(28, new Color(230, 219, 116), 1, new Color(255, 255, 0)) { Text = "JUST : " + string.Format("{0:D4}", result.Just), Position = new Vector2DF(350, 420), IsDrawn = false }; Cool = new ScoreDozer(28, new Color(249, 38, 114), 1, new Color(255, 0, 255)) { Text = "COOL : " + string.Format("{0:D4}", result.Cool), Position = new Vector2DF(350, 460), IsDrawn = false }; Good = new ScoreDozer(28, new Color(166, 226, 46), 1, new Color(0, 255, 0)) { Text = "GOOD : " + string.Format("{0:D4}", result.Good), Position = new Vector2DF(350, 500), IsDrawn = false }; Near = new ScoreDozer(28, new Color(49, 137, 211), 1, new Color(0, 255, 255)) { Text = "NEAR : " + string.Format("{0:D4}", result.Near), Position = new Vector2DF(350, 540), IsDrawn = false }; Miss = new ScoreDozer(28, new Color(0, 0, 0), 1, new Color(255, 0, 0)) { Text = "MISS : " + string.Format("{0:D4}", result.Miss), Position = new Vector2DF(350, 580), IsDrawn = false }; Combo = new ScoreDozer(28, new Color(255, 255, 255), 1, new Color(0, 0, 0)) { Text = "COMBO : " + string.Format("{0:D4}", result.BestCombo), Position = new Vector2DF(350, 630), IsDrawn = false }; RankObject = new TextureObject2D { Texture = Graphics.CreateTexture("Image/Rank_" + result.Rank + ".png"), CenterPosition = new Vector2DF(165, 105), Position = new Vector2DF(765, 540), IsDrawn = false }; RankImpact = new TextureObject2D { Texture = Graphics.CreateTexture("Image/Rank_" + result.Rank + ".png"), CenterPosition = new Vector2DF(165, 105), Position = new Vector2DF(765, 540), IsDrawn = false }; //-------------------------------------------------- }