protected void initialize_sprites() { Face = new Miniface(); Face.loc = new Vector2(24, 8); Affinity_Icon = new Icon_Sprite(); Affinity_Icon.texture = Global.Content.Load <Texture2D>(@"Graphics/Icons/Affinity Icons"); Affinity_Icon.size = new Vector2(16, 16); Affinity_Icon.loc = new Vector2(96, 8); Name = new TextSprite(); Name.loc = new Vector2(96, 8); Name.SetFont(Config.UI_FONT, Global.Content, "White"); Lvl_Label = new TextSprite(); Lvl_Label.loc = new Vector2(40, 24); Lvl_Label.SetFont(Config.UI_FONT + "L", Global.Content, "Yellow", Config.UI_FONT); Lvl_Label.text = "LV"; Exp_Label = new TextSprite(); Exp_Label.loc = new Vector2(80, 24); Exp_Label.SetFont(Config.UI_FONT + "L", Global.Content, "Yellow", Config.UI_FONT); Exp_Label.text = "E"; Lvl = new RightAdjustedText(); Lvl.loc = new Vector2(72, 24); Lvl.SetFont(Config.UI_FONT, Global.Content, "Blue"); Exp = new RightAdjustedText(); Exp.loc = new Vector2(104, 24); Exp.SetFont(Config.UI_FONT, Global.Content, "Blue"); initialize_hp(); }
protected override void initialize_sprites() { // Command Window create_command_window(Supply_Command_Window.All); base.initialize_sprites(); Banner = new Sprite(); Banner.texture = Global.Content.Load <Texture2D>(@"Graphics/White_Square"); Banner.loc = new Vector2(0, 8); Banner.draw_offset = new Vector2(Config.WINDOW_WIDTH / 2, 4); Banner.offset = new Vector2(16 / 2, 0); Banner.scale = new Vector2( (Config.WINDOW_WIDTH + Math.Abs(Config.CONVOY_BANNER_DEPTH) * 4) / 16f, 40 / 16f); Banner.tint = new Color(0, 0, 0, 128); Banner.stereoscopic = Config.CONVOY_BANNER_DEPTH; Face_Bg = new Sprite(); Face_Bg.texture = Global.Content.Load <Texture2D>(@"Graphics/Windowskins/Preparations_Screen"); Face_Bg.loc = Banner.loc + new Vector2(8, -8); Face_Bg.src_rect = new Rectangle(136, 136, 48, 64); Face_Bg.stereoscopic = Config.CONVOY_ICON_DEPTH; Convoy_Face = new Miniface(); Convoy_Face.loc = Face_Bg.loc + new Vector2(24, 8); Convoy_Face.set_actor(Global.battalion.convoy_face_name); Convoy_Face.stereoscopic = Config.CONVOY_ICON_DEPTH; Convoy_Label = new TextSprite(); Convoy_Label.loc = Face_Bg.loc + new Vector2(8, 40); Convoy_Label.SetFont(Config.UI_FONT, Global.Content, "White"); Convoy_Label.text = "Convoy"; Convoy_Label.stereoscopic = Config.CONVOY_ICON_DEPTH; Convoy_Text = new TextSprite(); Convoy_Text.loc = Face_Bg.loc + new Vector2(48, 16); Convoy_Text.SetFont(Config.UI_FONT, Global.Content, "White"); Convoy_Text.text = "What'll you do?"; Convoy_Text.one_at_a_time = true; Convoy_Text.stereoscopic = Config.CONVOY_ICON_DEPTH; Stock_Label = new TextSprite(); Stock_Label.loc = Stock_Banner.loc + new Vector2(8, 0); Stock_Label.SetFont(Config.UI_FONT, Global.Content, "White"); Stock_Label.text = "Stock"; Stock_Label.stereoscopic = Config.CONVOY_STOCK_DEPTH; Stock_Value = new RightAdjustedText(); Stock_Value.loc = Stock_Banner.loc + new Vector2(56, 0); Stock_Value.SetFont(Config.UI_FONT); Stock_Value.stereoscopic = Config.CONVOY_STOCK_DEPTH; Stock_Slash = new TextSprite(); Stock_Slash.loc = Stock_Banner.loc + new Vector2(56, 0); Stock_Slash.SetFont(Config.UI_FONT, Global.Content, "White"); Stock_Slash.text = "/"; Stock_Slash.stereoscopic = Config.CONVOY_STOCK_DEPTH; Stock_Max = new RightAdjustedText(); Stock_Max.loc = Stock_Banner.loc + new Vector2(88, 0); Stock_Max.SetFont(Config.UI_FONT); Stock_Max.stereoscopic = Config.CONVOY_STOCK_DEPTH; }
protected override void initialize_images() { Window_Img = new Unit_Window(Window_Width, Window_Height, 1); Window_Img.offset = new Vector2(5, 5); Window_Img.tint = new Color(240, 240, 240, 224); Face = new Miniface(); Face.draw_offset = new Vector2(16, 0); init_hp_gauge(); Name = new TextSprite(); Name.SetFont(Config.INFO_FONT, Global.Content); }
public Suspend_Info_Panel(bool mainMenu, IO.Suspend_Info suspend_file_info) { this.offset = new Vector2(-12, -4); create_window(mainMenu, suspend_file_info); Lord_Mini = new Miniface(); Lord_Mini.set_actor(suspend_file_info.lord_actor_face); Lord_Mini.loc = new Vector2(24, 0); Turn_Label = new TextSprite(); Turn_Label.loc = new Vector2(48, 16); Turn_Label.SetFont(Config.UI_FONT, Global.Content, "Yellow"); Units_Label = new TextSprite(); Units_Label.loc = new Vector2(112, 16); Units_Label.SetFont(Config.UI_FONT, Global.Content, "Yellow"); Units_Label.text = "Units"; Save_Label = new TextSprite(); Save_Label.loc = new Vector2(0, 48); Save_Label.SetFont(Config.UI_FONT, Global.Content, "Yellow"); Save_Label.text = "File"; Chapter = new TextSprite(); Chapter.loc = new Vector2(48, 0); Chapter.SetFont(Config.UI_FONT, Global.Content, "Yellow"); Chapter.text = !Global.data_chapters.ContainsKey(suspend_file_info.chapter_id) ? suspend_file_info.chapter_id : Global.data_chapters[suspend_file_info.chapter_id].FileSelectName; Turn = new RightAdjustedText(); Turn.loc = new Vector2(88, 16); Turn.SetFont(Config.UI_FONT, Global.Content, "Blue"); Units = new RightAdjustedText(); Units.loc = new Vector2(152, 16); Units.SetFont(Config.UI_FONT, Global.Content, "Blue"); Units.text = suspend_file_info.units.ToString(); Gold = new RightAdjustedText(); Gold.loc = new Vector2(140, 32); Gold.SetFont(Config.UI_FONT, Global.Content, "Blue"); Gold.text = suspend_file_info.gold.ToString(); Save = new RightAdjustedText(); Save.loc = new Vector2(40, 48); Save.SetFont(Config.UI_FONT, Global.Content, "Blue"); Save.text = suspend_file_info.save_id.ToString(); Mode = new TextSprite(); Mode.loc = new Vector2(80, 48); Mode.SetFont(Config.UI_FONT, Global.Content, "Blue"); Mode.text = suspend_file_info.difficulty.ToString(); Style = new TextSprite(); Style.loc = new Vector2(120, 48); Style.SetFont(Config.UI_FONT, Global.Content, "Blue"); Style.text = suspend_file_info.style.ToString();//.Substring(0, Math.Min(3, suspend_file_info.style.ToString().Length)); //Debug if (suspend_file_info.home_base) { Turn_Label.text = "Home Base"; Units_Label.visible = false; Units.visible = false; } else if (suspend_file_info.preparations) { Turn_Label.text = "Preparations"; } else { Turn_Label.text = "Turn"; Turn.text = suspend_file_info.turn.ToString(); } Counter = new Play_Time_Counter(suspend_file_info.playtime); Counter.loc = new Vector2(-4, 32); Gold_G = new Sprite(); Gold_G.texture = Global.Content.Load <Texture2D>(@"Graphics/Windowskins/Data_Screen"); Gold_G.loc = new Vector2(140, 32); Gold_G.src_rect = new Rectangle(0, 160, 16, 16); Screenshot = new Sprite(); Screenshot.texture = suspend_file_info.Screenshot; Screenshot.loc = new Vector2(0, 0); Screenshot.scale = new Vector2(0.25f, 0.25f); }
private void initialize_sprites() { // Black Screen Black_Screen = new Sprite(); Black_Screen.texture = Global.Content.Load <Texture2D>(@"Graphics/White_Square"); Black_Screen.dest_rect = new Rectangle(0, 0, Config.WINDOW_WIDTH, Config.WINDOW_HEIGHT); Black_Screen.tint = new Color(0, 0, 0, 255); // Banner Banner = new TextSprite(); string str = Global.data_chapters[Global.game_state.chapter_id].FullName; Banner.loc = new Vector2(Config.WINDOW_WIDTH, 32) / 2 - new Vector2(Font_Data.text_width(str, Config.CHAPTER_FONT) / 2, 8); Banner.SetFont(Config.CHAPTER_FONT, Global.Content, "Data"); Banner.text = str; Banner.stereoscopic = Config.DATA_BANNER_DEPTH; int alpha = 7 * 16; BannerBg = new Sprite(); BannerBg.texture = Global.Content.Load <Texture2D>(@"Graphics/Windowskins/Data_Screen"); BannerBg.loc = new Vector2(64, 0); BannerBg.src_rect = new Rectangle(0, 176, 192, 32); BannerBg.tint = new Color(alpha, alpha, alpha, 256 - alpha); BannerBg.stereoscopic = Config.DATA_BANNER_DEPTH; // Unit Bg UnitBg = new Sprite(); UnitBg.texture = Global.Content.Load <Texture2D>(@"Graphics/Windowskins/Data_Screen"); UnitBg.loc = new Vector2(132, 120); UnitBg.src_rect = new Rectangle(0, 272, 128, 72); UnitBg.tint = new Color(alpha, alpha, alpha, 256 - alpha); UnitBg.stereoscopic = Config.DATA_LEADER_DEPTH; // File Bg FileBg = new Sprite(); FileBg.texture = Global.Content.Load <Texture2D>(@"Graphics/Windowskins/Data_Screen"); FileBg.loc = new Vector2(260, 128); FileBg.src_rect = new Rectangle(0, 208, 56, 64); FileBg.tint = new Color(alpha, alpha, alpha, 256 - alpha); FileBg.stereoscopic = Config.DATA_LEADER_DEPTH; // Background Background = new Menu_Background(); Background.texture = Global.Content.Load <Texture2D>(@"Graphics/Pictures/Status_Background"); (Background as Menu_Background).vel = new Vector2(-0.25f, 0); (Background as Menu_Background).tile = new Vector2(3, 2); Background.stereoscopic = Config.MAPMENU_BG_DEPTH; // Cursor Cursor = new Data_Team_Cursor(); Cursor.stereoscopic = Config.DATA_TEAMS_DEPTH; // Objective Window Objective_Window = new Sprite(); Objective_Window.texture = Global.Content.Load <Texture2D>(@"Graphics/Windowskins/Data_Screen"); Objective_Window.loc = new Vector2(132, 32); Objective_Window.src_rect = new Rectangle(32, 0, 184, 96); Objective_Window.stereoscopic = Config.DATA_WINDOW_DEPTH; // Game Data Window Game_Data_Window = new Sprite(); Game_Data_Window.texture = Global.Content.Load <Texture2D>(@"Graphics/Windowskins/Data_Screen"); Game_Data_Window.loc = new Vector2(324, 120); Game_Data_Window.src_rect = new Rectangle(104, 96, 112, 72); Game_Data_Window.stereoscopic = Config.DATA_DATA_DEPTH; // Team Windows/Text int y = 0; for (int i = 1; i <= Constants.Team.NUM_TEAMS; i++) { if (Global.game_map.teams[i].Count > 0) { List <int> groups = new List <int>(); Dictionary <int, int> group_sizes = new Dictionary <int, int>(); foreach (int id in Global.game_map.teams[i]) { if (!groups.Contains(Global.game_map.units[id].group)) { groups.Add(Global.game_map.units[id].group); group_sizes.Add(Global.game_map.units[id].group, 0); } group_sizes[Global.game_map.units[id].group]++; } Groups.Add(new KeyValuePair <int, int>(i, groups.Count)); Team_Windows.Add(new Data_Team_Window(i, group_sizes.Count)); Team_Windows[Team_Windows.Count - 1].loc = TEAM_WINDOW_LOC + new Vector2(0, 0 + y); Team_Windows[Team_Windows.Count - 1].stereoscopic = Config.DATA_TEAMS_DEPTH; groups.Sort(); for (int j = 0; j < groups.Count; j++) { Group_Names.Add(new TextSprite()); Group_Names[Group_Names.Count - 1].loc = TEAM_WINDOW_LOC + new Vector2(4, y + 12 + j * 16); Group_Names[Group_Names.Count - 1].SetFont(Config.UI_FONT, Global.Content, "White"); Group_Names[Group_Names.Count - 1].text = Global.game_map.group_name(i, groups[j]); Group_Names[Group_Names.Count - 1].stereoscopic = Config.DATA_TEAMS_DEPTH; Group_Counts.Add(new RightAdjustedText()); Group_Counts[Group_Names.Count - 1].loc = TEAM_WINDOW_LOC + new Vector2(112, y + 12 + j * 16); Group_Counts[Group_Names.Count - 1].SetFont(Config.UI_FONT, Global.Content, "Blue"); Group_Counts[Group_Names.Count - 1].text = group_sizes[groups[j]].ToString(); Group_Counts[Group_Names.Count - 1].stereoscopic = Config.DATA_TEAMS_DEPTH; } y += (group_sizes.Count + 1) * 16; } } // Game Data Window RankingWindow = new Data_Ranking_Window(); RankingWindow.loc = new Vector2(320, 32); RankingWindow.width = 120; RankingWindow.height = 80; RankingWindow.stereoscopic = Config.DATA_TEAMS_DEPTH; // Counter Counter = new Play_Time_Counter(); Counter.loc = Game_Data_Window.loc + new Vector2(12, 48); Counter.stereoscopic = Config.DATA_DATA_DEPTH; // Labels Objective_Label = new Sprite(); Objective_Label.texture = Global.Content.Load <Texture2D>(@"Graphics/Windowskins/Data_Screen"); Objective_Label.loc = Objective_Window.loc + new Vector2(16 - 2, 12 - 2); Objective_Label.src_rect = new Rectangle(0, 96, 56, 16); Objective_Label.stereoscopic = Config.DATA_WINDOW_DEPTH; Defeat_Label = new Sprite(); Defeat_Label.texture = Global.Content.Load <Texture2D>(@"Graphics/Windowskins/Data_Screen"); Defeat_Label.loc = Objective_Window.loc + new Vector2(16 - 2, 44 - 2); Defeat_Label.src_rect = new Rectangle(56, 96, 40, 16); Defeat_Label.stereoscopic = Config.DATA_WINDOW_DEPTH; Turn_Label = new Sprite(); Turn_Label.texture = Global.Content.Load <Texture2D>(@"Graphics/Windowskins/Data_Screen"); Turn_Label.loc = Game_Data_Window.loc + new Vector2(8, 8); Turn_Label.src_rect = new Rectangle(0, 112, 32, 16); Turn_Label.stereoscopic = Config.DATA_DATA_DEPTH; Funds_Label = new Sprite(); Funds_Label.texture = Global.Content.Load <Texture2D>(@"Graphics/Windowskins/Data_Screen"); Funds_Label.loc = Game_Data_Window.loc + new Vector2(8, 24); Funds_Label.src_rect = new Rectangle(0, 128, 32, 16); Funds_Label.stereoscopic = Config.DATA_DATA_DEPTH; Gold_G = new Sprite(); Gold_G.texture = Global.Content.Load <Texture2D>(@"Graphics/Windowskins/Data_Screen"); Gold_G.loc = Game_Data_Window.loc + new Vector2(88 + 5, 24); Gold_G.src_rect = new Rectangle(0, 160, 16, 16); Gold_G.stereoscopic = Config.DATA_DATA_DEPTH; Lv_Label = new Sprite(); Lv_Label.texture = Global.Content.Load <Texture2D>(@"Graphics/Windowskins/Data_Screen"); Lv_Label.loc = UnitBg.loc + new Vector2(8, 40 + 0 - 2); Lv_Label.src_rect = new Rectangle(32, 112, 16, 16); Lv_Label.stereoscopic = Config.DATA_LEADER_DEPTH; Hp_Label = new Sprite(); Hp_Label.texture = Global.Content.Load <Texture2D>(@"Graphics/Windowskins/Data_Screen"); Hp_Label.loc = UnitBg.loc + new Vector2(8, 40 + 12 - 2); Hp_Label.src_rect = new Rectangle(48, 112, 24, 16); Hp_Label.stereoscopic = Config.DATA_LEADER_DEPTH; TextSprite hp_slash = new TextSprite(); // why is this done so //@Yeti hp_slash.loc = UnitBg.loc + new Vector2(44, 40 + 12); hp_slash.SetFont(Config.UI_FONT, Global.Content, "Yellow"); hp_slash.text = "/"; Hp_Slash = hp_slash; Hp_Slash.stereoscopic = Config.DATA_LEADER_DEPTH; RatingLabel = new Sprite(); RatingLabel.texture = Global.Content.Load <Texture2D>(@"Graphics/Windowskins/Data_Screen"); RatingLabel.loc = UnitBg.loc + new Vector2(72, 40 + 12 - 2); RatingLabel.src_rect = new Rectangle(72, 112, 24, 16); RatingLabel.stereoscopic = Config.DATA_LEADER_DEPTH; RankingLabel = new TextSprite(); RankingLabel.loc = RankingWindow.loc + new Vector2(24, 8); RankingLabel.SetFont(Config.UI_FONT, Global.Content, "Yellow"); RankingLabel.text = "Progress"; RankingLabel.stereoscopic = Config.DATA_TEAMS_DEPTH; TurnsRankLabel = new TextSprite(); TurnsRankLabel.loc = RankingWindow.loc + new Vector2(8, 24); TurnsRankLabel.SetFont(Config.UI_FONT, Global.Content, "Yellow"); TurnsRankLabel.text = "Turns"; TurnsRankLabel.stereoscopic = Config.DATA_TEAMS_DEPTH; CombatRankLabel = new TextSprite(); CombatRankLabel.loc = RankingWindow.loc + new Vector2(8, 40); CombatRankLabel.SetFont(Config.UI_FONT, Global.Content, "Yellow"); CombatRankLabel.text = "Combat"; CombatRankLabel.stereoscopic = Config.DATA_TEAMS_DEPTH; ExpRankLabel = new TextSprite(); ExpRankLabel.loc = RankingWindow.loc + new Vector2(8, 56); ExpRankLabel.SetFont(Config.UI_FONT, Global.Content, "Yellow"); ExpRankLabel.text = "Exp"; ExpRankLabel.stereoscopic = Config.DATA_TEAMS_DEPTH; FileLabel = new TextSprite(); FileLabel.loc = FileBg.loc + new Vector2(8, 40); FileLabel.SetFont(Config.UI_FONT, Global.Content, "Yellow"); FileLabel.text = "File"; FileLabel.stereoscopic = Config.DATA_LEADER_DEPTH; // Victory Text Victory_Text = new TextSprite(); Victory_Text.loc = Objective_Window.loc + new Vector2(68, 12); Victory_Text.SetFont(Config.UI_FONT, Global.Content, "White"); Victory_Text.text = Global.game_system.Victory_Text; Victory_Text.stereoscopic = Config.DATA_WINDOW_DEPTH; // Loss Text Loss_Text = new TextSprite(); Loss_Text.loc = Objective_Window.loc + new Vector2(68, 44); Loss_Text.SetFont(Config.UI_FONT, Global.Content, "White"); Loss_Text.text = Global.game_system.Loss_Text; Loss_Text.stereoscopic = Config.DATA_WINDOW_DEPTH; // Turn Text Turn = new RightAdjustedText(); Turn.loc = Game_Data_Window.loc + new Vector2(100, 8); Turn.SetFont(Config.UI_FONT, Global.Content, "Blue"); Turn.text = Global.game_system.chapter_turn.ToString(); Turn.stereoscopic = Config.DATA_DATA_DEPTH; // Funds Text Funds = new RightAdjustedText(); Funds.loc = Game_Data_Window.loc + new Vector2(92, 24); Funds.SetFont(Config.UI_FONT, Global.Content, "Blue"); Funds.text = Global.battalion.gold.ToString(); Funds.stereoscopic = Config.DATA_DATA_DEPTH; // Leader Name Leader_Name = new TextSprite(); Leader_Name.loc = UnitBg.loc + new Vector2(32 + 24, 12); Leader_Name.SetFont(Config.UI_FONT, Global.Content, "White"); Leader_Name.stereoscopic = Config.DATA_LEADER_DEPTH; // Level Lvl = new RightAdjustedText(); Lvl.loc = UnitBg.loc + new Vector2(68, 40 + 0); Lvl.SetFont(Config.UI_FONT, Global.Content, "Blue"); Lvl.stereoscopic = Config.DATA_LEADER_DEPTH; // Hp Hp = new RightAdjustedText(); Hp.loc = UnitBg.loc + new Vector2(44, 40 + 12); Hp.SetFont(Config.UI_FONT, Global.Content, "Blue"); Hp.stereoscopic = Config.DATA_LEADER_DEPTH; // Hp Max Hp_Max = new RightAdjustedText(); Hp_Max.loc = UnitBg.loc + new Vector2(68, 40 + 12); Hp_Max.SetFont(Config.UI_FONT, Global.Content, "Blue"); Hp_Max.stereoscopic = Config.DATA_LEADER_DEPTH; // Rating Rating = new RightAdjustedText(); Rating.loc = UnitBg.loc + new Vector2(120, 40 + 12); Rating.SetFont(Config.UI_FONT, Global.Content, "Blue"); Rating.stereoscopic = Config.DATA_LEADER_DEPTH; // Map Sprite Map_Sprite = new Character_Sprite(); Map_Sprite.facing_count = 3; Map_Sprite.frame_count = 3; Map_Sprite.loc = UnitBg.loc + new Vector2(20, 24); Map_Sprite.stereoscopic = Config.DATA_LEADER_DEPTH; // Miniface Face = new Miniface(); Face.loc = UnitBg.loc + new Vector2(104, 8); Face.stereoscopic = Config.DATA_LEADER_DEPTH; // Weapon LeaderWeapon = new Item_Display(); LeaderWeapon.loc = UnitBg.loc + new Vector2(8, 28); LeaderWeapon.stereoscopic = Config.DATA_LEADER_DEPTH; // File number FileNumber = new RightAdjustedText(); FileNumber.loc = FileBg.loc + new Vector2(40, 40); FileNumber.SetFont(Config.UI_FONT, Global.Content, "Blue"); FileNumber.text = Global.current_save_id.ToString(); FileNumber.stereoscopic = Config.DATA_LEADER_DEPTH; // Style StyleText = new TextSprite(); StyleText.loc = FileBg.loc + new Vector2(8, 8); StyleText.SetFont(Config.UI_FONT, Global.Content, "Blue"); StyleText.text = Global.game_system.Style.ToString(); StyleText.stereoscopic = Config.DATA_LEADER_DEPTH; // Difficulty DifficultyText = new TextSprite(); DifficultyText.loc = FileBg.loc + new Vector2(8, 24); DifficultyText.SetFont(Config.UI_FONT, Global.Content, "Blue"); DifficultyText.text = Global.game_system.Difficulty_Mode.ToString(); DifficultyText.stereoscopic = Config.DATA_LEADER_DEPTH; // Rank Letters TotalRankLetter = new TextSprite(); TotalRankLetter.loc = RankingWindow.loc + new Vector2(88, 8); TotalRankLetter.SetFont(Config.UI_FONT + "L", Global.Content, "Blue", Config.UI_FONT); TotalRankLetter.stereoscopic = Config.DATA_TEAMS_DEPTH; TurnsRankLetter = new TextSprite(); TurnsRankLetter.loc = RankingWindow.loc + new Vector2(104, 24); TurnsRankLetter.SetFont(Config.UI_FONT + "L", Global.Content, "Blue", Config.UI_FONT); TurnsRankLetter.stereoscopic = Config.DATA_TEAMS_DEPTH; CombatRankLetter = new TextSprite(); CombatRankLetter.loc = RankingWindow.loc + new Vector2(104, 40); CombatRankLetter.SetFont(Config.UI_FONT + "L", Global.Content, "Blue", Config.UI_FONT); CombatRankLetter.stereoscopic = Config.DATA_TEAMS_DEPTH; ExpRankLetter = new TextSprite(); ExpRankLetter.loc = RankingWindow.loc + new Vector2(104, 56); ExpRankLetter.SetFont(Config.UI_FONT + "L", Global.Content, "Blue", Config.UI_FONT); ExpRankLetter.stereoscopic = Config.DATA_TEAMS_DEPTH; // Rank Gauges TurnsBar = new Stat_Bar(); TurnsBar.loc = RankingWindow.loc + new Vector2(40, 32); TurnsBar.offset = new Vector2(-2, 0); TurnsBar.bar_width = RANKING_BAR_LENGTH; TurnsBar.stereoscopic = Config.DATA_TEAMS_DEPTH; CombatBar = new Stat_Bar(); CombatBar.loc = RankingWindow.loc + new Vector2(40, 48); CombatBar.offset = new Vector2(-2, 0); CombatBar.bar_width = RANKING_BAR_LENGTH; CombatBar.stereoscopic = Config.DATA_TEAMS_DEPTH; ExpBar = new Stat_Bar(); ExpBar.loc = RankingWindow.loc + new Vector2(40, 64); ExpBar.offset = new Vector2(-2, 0); ExpBar.bar_width = RANKING_BAR_LENGTH; ExpBar.stereoscopic = Config.DATA_TEAMS_DEPTH; // Page Arrows Left_Page_Arrow = new Page_Arrow(); Left_Page_Arrow.loc = new Vector2(4, 72); Left_Page_Arrow.stereoscopic = Config.DATA_BANNER_DEPTH; Right_Page_Arrow = new Page_Arrow(); Right_Page_Arrow.loc = new Vector2(Config.WINDOW_WIDTH - 4, 72); Right_Page_Arrow.mirrored = true; Right_Page_Arrow.stereoscopic = Config.DATA_BANNER_DEPTH; refresh_rank(); set_images(); }