public void set_mode(Difficulty_Modes difficulty, bool arrowsVisible) { // Mode Mode.text = difficulty.ToString();// == Difficulty_Modes.Hard ? "Hard" : "Normal"; //Yeti // Arrows Left_Arrow.visible = Right_Arrow.visible = arrowsVisible; }
protected 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); // 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; // Cancel Button CancelButton = Button_Description.button(Inputs.B, 32); CancelButton.loc = new Vector2(32, Config.WINDOW_HEIGHT - 24); CancelButton.description = "Cancel"; CancelButton.stereoscopic = Config.MAPCOMMAND_HELP_DEPTH; RankingIcons = new Sprite(); RankingIcons.texture = Global.Content.Load <Texture2D>( @"Graphics/Pictures/RankingIcons"); RankingIcons.loc = DATA_OFFSET + new Vector2(48, -16); DataBackground = new Sprite(); DataBackground.texture = Global.Content.Load <Texture2D>( @"Graphics/White_Square"); DataBackground.dest_rect = new Rectangle( 0, (int)DATA_OFFSET.Y, Config.WINDOW_WIDTH, ROWS * 16); DataBackground.tint = new Color(0, 0, 0, 128); // Style StyleText = new TextSprite(); StyleText.loc = new Vector2( Config.WINDOW_WIDTH - 112, Config.WINDOW_HEIGHT - 24); 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 = new Vector2( Config.WINDOW_WIDTH - 56, Config.WINDOW_HEIGHT - 24); DifficultyText.SetFont(Config.UI_FONT, Global.Content, "Blue"); DifficultyText.text = Difficulty.ToString(); DifficultyText.stereoscopic = Config.DATA_LEADER_DEPTH; refresh_rankings(Chapter); }
public Difficulty_Info_Panel(Difficulty_Modes difficulty) { var window = new System_Color_Window(); window.width = WIDTH; window.height = 48; window.color_override = Constants.Difficulty.DIFFICULTY_COLOR_REDIRECT[difficulty]; window.small = true; Window = window; Size = new Vector2(WIDTH, Window.height); Difficulty = new TextSprite(); Difficulty.loc = new Vector2(24, -8); Difficulty.SetFont(Config.UI_FONT, Global.Content, "Yellow"); Difficulty.text = difficulty.ToString(); Description = new TextSprite(); Description.loc = new Vector2(16, 8); Description.SetFont(Config.UI_FONT, Global.Content, "Blue"); Description.text = Global.system_text["Difficulty " + difficulty.ToString()]; active = false; }