axiosengine 

axiosengine Commit Details


Date:2012-05-28 22:31:46 (12 years 4 months ago)
Author:Natalie Adams
Branch:master
Commit:ff32d185536bbefdbf7c2a52c05e36c91cd13b52
Parents: e31ccc4ed43391164fb6fabfe7b45a849c2f38f2
Message:* - Adding axioslog command to output AxiosLog

Changes:

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

Branches

Number of commits:
Page rendered in 0.07001s using 14 queries.