internal Game_Ranking(Game_Ranking ranking, Difficulty_Modes difficulty) : this(ranking.ChapterId, difficulty, new DataRanking(ranking.Data)) { }
public Window_Ranking(Game_Ranking ranking) { Ranking = ranking; Banner = new Sprite(Global.Content.Load <Texture2D>(@"Graphics/Pictures/Ranking_Banner")); Banner.loc = new Vector2(0, 24); Banner.visible = false; Banner.stereoscopic = Config.RANKING_BANNER_DEPTH; Black_Fill = new Sprite(Global.Content.Load <Texture2D>(@"Graphics/White_Square")); Black_Fill.dest_rect = new Rectangle(0, 0, Config.WINDOW_WIDTH, Config.WINDOW_HEIGHT); Black_Fill.tint = new Color(0, 0, 0, 0); White_Screen = new Sprite(Global.Content.Load <Texture2D>(@"Graphics/White_Square")); White_Screen.dest_rect = new Rectangle(0, 0, Config.WINDOW_WIDTH, Config.WINDOW_HEIGHT); White_Screen.tint = new Color(0, 0, 0, 0); Burst = new Ranking_Burst(); Burst.loc = new Vector2(Config.WINDOW_WIDTH / 2, Config.WINDOW_HEIGHT / 2 + 16); Burst.tint = new Color(0, 0, 0, 0); Burst.stereoscopic = Config.RANKING_BURST_DEPTH; Rank = new Icon_Sprite(); Rank.texture = Global.Content.Load <Texture2D>(@"Graphics/Pictures/Ranking_Letters"); Rank.size = new Vector2(144, 144); Rank.columns = 4; Rank.loc = new Vector2(104, 128); Rank.offset = new Vector2(72, 72); Rank.index = Ranking.ranking_index; Rank.tint = new Color(0, 0, 0, 0); Window_Img = new SystemWindowHeadered(); Window_Img.width = 120; Window_Img.set_lines(4); Window_Img.loc = new Vector2(320, 80); Window_Img.stereoscopic = Config.RANKING_WINDOW_DEPTH; Text = new List <TextSprite>(); // Chapter name and difficulty var name = new TextSprite( Config.UI_FONT, Global.Content, "Yellow", new Vector2(12, 8), Global.data_chapters[ranking.ChapterId].ShortName); name.stereoscopic = Config.RANKING_WINDOW_DEPTH; Text.Add(name); var difficulty = new RightAdjustedText( Config.UI_FONT, Global.Content, "Blue", new Vector2(Window_Img.width - 12, 8), ranking.Difficulty.ToString()); difficulty.stereoscopic = Config.RANKING_WINDOW_DEPTH; Text.Add(difficulty); for (int i = 0; i < 4; i++) { var label = new TextSprite(); label.loc = new Vector2(8, 24 + i * 16); label.SetFont(Config.UI_FONT, Global.Content, "Yellow"); label.stereoscopic = Config.RANKING_WINDOW_DEPTH; Text.Add(label); } Text[Text.Count - 4].text = "Turns"; Text[Text.Count - 3].text = "Combat"; Text[Text.Count - 2].text = "Experience"; Text[Text.Count - 1].text = "Total"; //Text[3].text = "MVP"; for (int i = 0; i < 4; i++) { var value = new RightAdjustedText(); value.loc = new Vector2(Window_Img.width - 8, 24 + i * 16); value.SetFont(Config.UI_FONT, Global.Content, "Blue"); value.stereoscopic = Config.RANKING_WINDOW_DEPTH; Text.Add(value); } Text[Text.Count - 4].text = "0"; Text[Text.Count - 3].text = "0"; Text[Text.Count - 2].text = "0"; Text[Text.Count - 1].text = "0"; update(); }
public Game_Ranking(Game_Ranking ranking) : this(ranking.ChapterId, ranking.Difficulty, new DataRanking(ranking.Data)) { }
public void SetRanking(string key, Game_Ranking value) { Data[key] = new Game_Ranking(value); }