AxiosEngine-old 

AxiosEngine-old Commit Details


Date:2012-05-28 22:31:00 (12 years 6 months ago)
Author:Natalie Adams
Branch:default
Commit:fbbb8bf4e6ce
Parents: e6b6846e712f
Message:* - Adding axioslog command to output AxiosLog

Changes:
Maxios/Axios_settings.cs (1 diff)
Maxios/Engine/AxiosCommandConsole.cs (2 diffs)
Maxios/Engine/AxiosGameScreen.cs (1 diff)

File differences

axios/Axios_settings.cs
9595
9696
9797
98
9899
99100
100101
* - Fixed a bug where cleanup actions were being performed in Deactivate instead of Unload in AxiosGameScreen
* - Adding IsNullOrWhiteSpace extension for support for Xbox 360
* - Upon some testing - developers will need to use #if WINDOWS/#endif tags to make sure they can't use XNACC in WP7/Xbox360
* - Adding axioslog command to output AxiosLog
*
*
*/
axios/Engine/AxiosCommandConsole.cs
77
88
99
10
1011
1112
1213
......
4546
4647
4748
49
50
51
52
53
54
55
4856
57
58
59
60
61
4962
5063
5164
5265
66
5367
5468
69
5570
5671
5772
5873
74
75
76
77
78
79
5980
6081
6182
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework;
using Axios.Engine.Log;
/*
* The empty AxiosCommandConsole is so that when you use the comamnd console
FadeImage = tmp;
}
private void ShowAxiosLog()
{
AddOutputToLog("============");
foreach (string l in AxiosLog.Instance.GetLogList())
AddOutputToLog(l);
AddOutputToLog("============");
}
public override void InitializeCustomCommands()
{
AddCommand(new CmdObject("axioslog", "Displays the current Axios Log", input => { ShowAxiosLog(); }));
base.InitializeCustomCommands();
}
public override void LoadContent(ContentManager content)
{
base.LoadContent(content);
}
protected override void LoadContent()
{
if (Font == null)
Font = Game.Content.Load<SpriteFont>("Console");
base.LoadContent();
}
protected override void UnloadContent()
{
base.UnloadContent();
ms_commands.Remove("axioslog");
}
}
}
#else
axios/Engine/AxiosGameScreen.cs
431431
432432
433433
434
434435
435436
436437
{
ScreenManager.Game.Components.Remove(_console);
_console.Dispose();
_console = null;
}
#endif
}

Archive Download the corresponding diff file

Page rendered in 0.73394s using 14 queries.