2012-05-26 23:50:49 +00:00
|
|
|
|
#if WINDOWS
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using XNACC.Console;
|
|
|
|
|
using Microsoft.Xna.Framework.Graphics;
|
2012-05-27 00:08:33 +00:00
|
|
|
|
using Microsoft.Xna.Framework.Content;
|
|
|
|
|
using Microsoft.Xna.Framework;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* The empty AxiosCommandConsole is so that when you use the comamnd console
|
|
|
|
|
* in your game you don't need #if WINDOWS/#endif precompiler - when you attempt
|
|
|
|
|
* to use it on WP7/Xbox 360 it just won't do anything.
|
|
|
|
|
*
|
|
|
|
|
* Perhaps one day we should develop a customized console that doesn't require keyboard input
|
|
|
|
|
* to still allow debugging on WP7/Xbox 360
|
|
|
|
|
* -- Nathan Adams [adamsna@datanethost.net] - 5/26/2012
|
|
|
|
|
*/
|
2012-05-26 23:50:49 +00:00
|
|
|
|
|
|
|
|
|
namespace Axios.Engine
|
|
|
|
|
{
|
|
|
|
|
class AxiosCommandConsole : CommandConsoleBase
|
|
|
|
|
{
|
|
|
|
|
public AxiosCommandConsole(AxiosGameScreen gameScreen)
|
|
|
|
|
: base(gameScreen.ScreenManager.Game)
|
|
|
|
|
{
|
|
|
|
|
Keyboard = gameScreen.ScreenManager.InputState;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public AxiosCommandConsole(AxiosGameScreen gameScreen, SpriteFont font)
|
|
|
|
|
: base(gameScreen.ScreenManager.Game, font)
|
|
|
|
|
{
|
|
|
|
|
Keyboard = gameScreen.ScreenManager.InputState;
|
|
|
|
|
}
|
2012-05-27 00:08:33 +00:00
|
|
|
|
|
|
|
|
|
protected override void LoadContent()
|
|
|
|
|
{
|
|
|
|
|
FadeColor = Color.White * 0.5f;
|
|
|
|
|
Texture2D tmp = new Texture2D(GraphicsDevice, 1, 1);
|
|
|
|
|
tmp.SetData<Color>(new Color[] { Color.Black });
|
|
|
|
|
FadeImage = tmp;
|
|
|
|
|
|
|
|
|
|
base.LoadContent();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#else
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
|
|
|
namespace Axios.Engine
|
|
|
|
|
{
|
|
|
|
|
class AxiosCommandConsole
|
|
|
|
|
{
|
|
|
|
|
public AxiosCommandConsole(AxiosGameScreen gameScreen)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public AxiosCommandConsole(AxiosGameScreen gameScreen, SpriteFont font)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
2012-05-26 23:50:49 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endif
|