protected override void InitializeImages() { Background = new Title_Background(); Background.stereoscopic = Config.TITLE_BG_DEPTH; Sword = new Sprite(); Sword.texture = Global.Content.Load <Texture2D>( @"Graphics/Titles/TitleSword"); Sword.loc = new Vector2(SWORD_BASE_X, SWORD_BASE_Y); Sword.offset = new Vector2(0, Sword.texture.Height / 2); Sword.stereoscopic = Config.TITLE_SWORD_DEPTH; ISLogo = new Sprite(); ISLogo.texture = Global.Content.Load <Texture2D>( @"Graphics/Titles/TitleScreenLogo"); ISLogo.loc = new Vector2(Config.WINDOW_WIDTH / 2, Config.WINDOW_HEIGHT / 2); ISLogo.offset = new Vector2(ISLogo.texture.Width / 2, ISLogo.texture.Height / 2); ISLogo.stereoscopic = Config.TITLE_LOGO_DEPTH; SubLogo = new Sprite(); SubLogo.texture = Global.Content.Load <Texture2D>( @"Graphics/Titles/TitleSubLogo"); SubLogo.loc = new Vector2(SUB_LOGO_X, 96); SubLogo.offset = new Vector2(0, SubLogo.texture.Height / 2); SubLogo.stereoscopic = Config.TITLE_LOGO_DEPTH; StartImage = new Press_Start(Global.Content.Load <Texture2D>( @"Graphics/Pictures/Press Start")); StartImage.loc = new Vector2(Config.WINDOW_WIDTH / 2, Config.WINDOW_HEIGHT - 48); StartImage.visible = false; StartImage.stereoscopic = Config.TITLE_CHOICE_DEPTH; Flash = new Sprite(); Flash.texture = Global.Content.Load <Texture2D>(@"Graphics/White_Square"); Flash.tint = new Color(255, 255, 255, 255); Flash.dest_rect = new Rectangle( 0, 0, Config.WINDOW_WIDTH, Config.WINDOW_HEIGHT); }
public void DisposeTexture() { Title_Background.Dispose(); Title_Menu.Dispose(); }