public override void LoadContent(ContentManager Content, GraphicsDevice graph, ref string level, ref string next, GraphicsDeviceManager graphics) { width = graphics.PreferredBackBufferWidth; height = graphics.PreferredBackBufferHeight; button = new Button(1, 3, width, height, 0.07f, 0.1f, 0); button.LoadContent(Content); button.activate(0, 0, 0.1f, 0.1f, "Last", LocalizedString.Replay ); button.activate(0, 1, 0.1f, 0.2f, "", LocalizedString.Menu ); button.activate(0, 2, 0.1f, 0.3f, "Exit", LocalizedString.Exit ); background = Content.Load<Texture2D>("Menu//game_over"); }
public override void LoadContent(ContentManager Content, GraphicsDevice graph, ref string level, ref string next, GraphicsDeviceManager graphics) { width = graphics.PreferredBackBufferWidth; height = graphics.PreferredBackBufferHeight; titre_P = new Vector2(width * 0.8f, height * 0.1f); button = new Button(1, 3, width, height, 0.1f, 0.05f, 0); button.LoadContent(Content); button.activate(0, 0, 0.1f, 0.1f,"SEU", "1","SEU1"); button.activate(0, 1, 0.1f, 0.2f,"Level2" , "2","level1"); button.activate(0, 2, 0.1f, 0.3f, "", LocalizedString.Back ); background = Content.Load<Texture2D>("Menu//background menu"); titre = Content.Load<Texture2D>("Menu//pause//Menu"); }
public override void LoadContent(ContentManager Content, GraphicsDevice graph, ref string level, ref string next, GraphicsDeviceManager graphics) { width = graphics.PreferredBackBufferWidth; height = graphics.PreferredBackBufferHeight; titre_P = new Vector2(width * 0.8f, height * 0.1f); button = new Button(1, 4, width, height, 0.1f, 0.05f, 0); button.LoadContent(Content); button.activate(0, 0, 0.1f, 0.1f, "LevelSelect", LocalizedString.Play ); button.activate(0, 1, 0.1f, 0.2f, "LevelSelect_P", LocalizedString.Map_Editor ); button.activate(0, 2, 0.1f, 0.3f, "Option2", LocalizedString.Option ); button.activate(0, 3, 0.1f, 0.4f, "Exit", LocalizedString.Exit ); background = Content.Load<Texture2D>("Menu//background menu"); titre = Content.Load<Texture2D>("Menu//pause//Menu"); }