Exemple #1
0
 private static AButton[] GetButtons(ContentManager content, GraphicsDeviceManager graphics)
 {
     return(new AButton[]
     {
         new ActionButton(content, 620, 320, 260, 50, new[] { VideoMenu.Fullscreen + ScreenSize.IsFullScreen() }, () =>
         {
             ScreenSize.ChangeSize(graphics);     //TODO reload game HUD
         }, default, new List <Screen> {
Exemple #2
0
 private static AButton[] GetButtons(ContentManager content, GraphicsDeviceManager graphics)
 {
     return(new AButton[]
     {
         new ActionButton(content, 300, 300, 400, 100, new[] { Properties.VideoMenu.Fullscreen + ScreenSize.IsFullScreen() }, () => ScreenSize.ChangeSize(graphics), followingScreens: new List <Screen> {
             Screen.VideoMenu
         }, deletingScreens: new List <Screen> {
             Screen.VideoMenu
         }),
         new MenuButton(content, 300, 500, 400, 100, new[] { Properties.VideoMenu.Back }, new List <Screen> {
             Screen.OptionsMenu
         }, new List <Screen> {
             Screen.VideoMenu
         })
     });
 }