File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22<XnaContent xmlns : Graphics =" Microsoft.Xna.Framework.Content.Pipeline.Graphics" >
33 <Asset Type =" Graphics:FontDescription" >
44 <FontName >Atari</FontName >
5- <Size >26 </Size >
5+ <Size >24 </Size >
66 <Spacing >9</Spacing >
77 <Style >Regular</Style >
88 <CharacterRegions >
Original file line number Diff line number Diff line change 1515// along with this program.If not, see<https://www.gnu.org/licenses/>.
1616
1717using GameManagement ;
18+ using Microsoft . Xna . Framework ;
1819
1920namespace I_Robot
2021{
@@ -37,6 +38,23 @@ public MainMenuScreen(ScreenManager screenManager)
3738 MenuItems . Add ( new MenuItem ( "QUIT" , QuitMenuSelected , 1 ) ) ;
3839 }
3940
41+ public override void Draw ( GameTime gameTime )
42+ {
43+ base . Draw ( gameTime ) ;
44+
45+ SpriteBatch . Begin ( ) ;
46+ SpriteBatch . DrawString (
47+ MenuFont ,
48+ $ "v1.01 Copyright 2020 John Manfreda [email protected] ", 49+ new Vector2 ( 50 , ScreenManager . GraphicsDevice . Viewport . Height - MenuFont . LineSpacing ) ,
50+ Color . CornflowerBlue ,
51+ 0 ,
52+ Vector2 . Zero ,
53+ 0.3F ,
54+ Microsoft . Xna . Framework . Graphics . SpriteEffects . None , 0 ) ;
55+ SpriteBatch . End ( ) ;
56+ }
57+
4058 string SoundString => $ "SOUND: { ( Settings . SoundEnabled ? "ENABLED" : "DISABLED" ) } ";
4159
4260 void SoundMenuSelected ( object ? sender , PlayerIndexEventArgs e )
You can’t perform that action at this time.
0 commit comments