diff -r e14c3e870754aa7718170f85cb8aa6cacdb489da -r 821e630e3e35b6249ac1579ef2bf3056fb28722b axios/Axios_WP7.csproj --- a/axios/Axios_WP7.csproj Fri Jul 20 22:38:29 2012 -0500 +++ b/axios/Axios_WP7.csproj Thu Aug 02 20:59:41 2012 -0500 @@ -173,6 +173,7 @@ + diff -r e14c3e870754aa7718170f85cb8aa6cacdb489da -r 821e630e3e35b6249ac1579ef2bf3056fb28722b axios/Axios_Windows.csproj --- a/axios/Axios_Windows.csproj Fri Jul 20 22:38:29 2012 -0500 +++ b/axios/Axios_Windows.csproj Thu Aug 02 20:59:41 2012 -0500 @@ -216,6 +216,7 @@ + diff -r e14c3e870754aa7718170f85cb8aa6cacdb489da -r 821e630e3e35b6249ac1579ef2bf3056fb28722b axios/Axios_Xbox_360.csproj --- a/axios/Axios_Xbox_360.csproj Fri Jul 20 22:38:29 2012 -0500 +++ b/axios/Axios_Xbox_360.csproj Thu Aug 02 20:59:41 2012 -0500 @@ -166,6 +166,7 @@ + diff -r e14c3e870754aa7718170f85cb8aa6cacdb489da -r 821e630e3e35b6249ac1579ef2bf3056fb28722b axios/Axios_settings.cs --- a/axios/Axios_settings.cs Fri Jul 20 22:38:29 2012 -0500 +++ b/axios/Axios_settings.cs Thu Aug 02 20:59:41 2012 -0500 @@ -112,6 +112,10 @@ * - Passing Layer to Items in Glee2D library * - Adding public virtual bool LoadTextureItem(TextureItem textureitem) to AxiosGameScreen * + * 1.0.1.7 - 7/22/2012 + * - Adding Factory for Texture2D to create from a list (ie lay a list of texture2D row by row) + * - Adding AddScreen method to ScreenManager to make the PlayerIndex optional (default of PlayerIndex.One) + * */ #endregion diff -r e14c3e870754aa7718170f85cb8aa6cacdb489da -r 821e630e3e35b6249ac1579ef2bf3056fb28722b axios/Engine/Extensions/Texture2D.cs --- a/axios/Engine/Extensions/Texture2D.cs Fri Jul 20 22:38:29 2012 -0500 +++ b/axios/Engine/Extensions/Texture2D.cs Thu Aug 02 20:59:41 2012 -0500 @@ -1,4 +1,4 @@ - +using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff -r e14c3e870754aa7718170f85cb8aa6cacdb489da -r 821e630e3e35b6249ac1579ef2bf3056fb28722b axios/Properties/AssemblyInfo.cs --- a/axios/Properties/AssemblyInfo.cs Fri Jul 20 22:38:29 2012 -0500 +++ b/axios/Properties/AssemblyInfo.cs Thu Aug 02 20:59:41 2012 -0500 @@ -31,7 +31,7 @@ // Build Number // Revision // -[assembly: AssemblyVersion("1.0.1.6")] +[assembly: AssemblyVersion("1.0.1.7")] #if DEBUG [assembly: AssemblyConfiguration("Debug")] diff -r e14c3e870754aa7718170f85cb8aa6cacdb489da -r 821e630e3e35b6249ac1579ef2bf3056fb28722b axios/ScreenSystem/ScreenManager.cs --- a/axios/ScreenSystem/ScreenManager.cs Fri Jul 20 22:38:29 2012 -0500 +++ b/axios/ScreenSystem/ScreenManager.cs Thu Aug 02 20:59:41 2012 -0500 @@ -289,6 +289,27 @@ TouchPanel.EnabledGestures = screen.EnabledGestures; } + /// + /// Adds a new screen to the screen manager with a default PlayerIndex of one + /// + public void AddScreen(GameScreen screen) + { + screen.ControllingPlayer = PlayerIndex.One; + screen.ScreenManager = this; + screen.IsExiting = false; + + // If we have a graphics device, tell the screen to load content. + if (isInitialized) + { + screen.Activate(false); + } + + screens.Add(screen); + + // update the TouchPanel to respond to gestures this screen is interested in + TouchPanel.EnabledGestures = screen.EnabledGestures; + } + /// /// Removes a screen from the screen manager. You should normally