* - 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)
This commit is contained in:
		@@ -173,6 +173,7 @@
 | 
				
			|||||||
    <Compile Include="Engine\Extensions\InputState.cs" />
 | 
					    <Compile Include="Engine\Extensions\InputState.cs" />
 | 
				
			||||||
    <Compile Include="Engine\Extensions\String.cs" />
 | 
					    <Compile Include="Engine\Extensions\String.cs" />
 | 
				
			||||||
    <Compile Include="Engine\Extensions\Texture2D.cs" />
 | 
					    <Compile Include="Engine\Extensions\Texture2D.cs" />
 | 
				
			||||||
 | 
					    <Compile Include="Engine\Factories\Texture2D.cs" />
 | 
				
			||||||
    <Compile Include="Engine\File\AxiosFile.cs" />
 | 
					    <Compile Include="Engine\File\AxiosFile.cs" />
 | 
				
			||||||
    <Compile Include="Engine\File\AxiosIsolatedFile.cs" />
 | 
					    <Compile Include="Engine\File\AxiosIsolatedFile.cs" />
 | 
				
			||||||
    <Compile Include="Engine\File\AxiosRegularFile.cs" />
 | 
					    <Compile Include="Engine\File\AxiosRegularFile.cs" />
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -216,6 +216,7 @@
 | 
				
			|||||||
    <Compile Include="Engine\Extensions\Double.cs" />
 | 
					    <Compile Include="Engine\Extensions\Double.cs" />
 | 
				
			||||||
    <Compile Include="Engine\Extensions\String.cs" />
 | 
					    <Compile Include="Engine\Extensions\String.cs" />
 | 
				
			||||||
    <Compile Include="Engine\Extensions\Texture2D.cs" />
 | 
					    <Compile Include="Engine\Extensions\Texture2D.cs" />
 | 
				
			||||||
 | 
					    <Compile Include="Engine\Factories\Texture2D.cs" />
 | 
				
			||||||
    <Compile Include="Engine\File\AxiosFile.cs" />
 | 
					    <Compile Include="Engine\File\AxiosFile.cs" />
 | 
				
			||||||
    <Compile Include="Engine\File\AxiosIsolatedFile.cs" />
 | 
					    <Compile Include="Engine\File\AxiosIsolatedFile.cs" />
 | 
				
			||||||
    <Compile Include="Engine\File\AxiosRegularFile.cs" />
 | 
					    <Compile Include="Engine\File\AxiosRegularFile.cs" />
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -166,6 +166,7 @@
 | 
				
			|||||||
    <Compile Include="Engine\Extensions\InputState.cs" />
 | 
					    <Compile Include="Engine\Extensions\InputState.cs" />
 | 
				
			||||||
    <Compile Include="Engine\Extensions\String.cs" />
 | 
					    <Compile Include="Engine\Extensions\String.cs" />
 | 
				
			||||||
    <Compile Include="Engine\Extensions\Texture2D.cs" />
 | 
					    <Compile Include="Engine\Extensions\Texture2D.cs" />
 | 
				
			||||||
 | 
					    <Compile Include="Engine\Factories\Texture2D.cs" />
 | 
				
			||||||
    <Compile Include="Engine\File\AxiosFile.cs" />
 | 
					    <Compile Include="Engine\File\AxiosFile.cs" />
 | 
				
			||||||
    <Compile Include="Engine\File\AxiosIsolatedFile.cs" />
 | 
					    <Compile Include="Engine\File\AxiosIsolatedFile.cs" />
 | 
				
			||||||
    <Compile Include="Engine\File\AxiosRegularFile.cs" />
 | 
					    <Compile Include="Engine\File\AxiosRegularFile.cs" />
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -112,6 +112,10 @@
 | 
				
			|||||||
 * - Passing Layer to Items in Glee2D library
 | 
					 * - Passing Layer to Items in Glee2D library
 | 
				
			||||||
 * - Adding public virtual bool LoadTextureItem(TextureItem textureitem) to AxiosGameScreen
 | 
					 * - 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
 | 
					#endregion
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
 | 
					using System.Collections.Generic;
 | 
				
			||||||
using Microsoft.Xna.Framework;
 | 
					using Microsoft.Xna.Framework;
 | 
				
			||||||
using Microsoft.Xna.Framework.Graphics;
 | 
					using Microsoft.Xna.Framework.Graphics;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -31,7 +31,7 @@ using System.Runtime.InteropServices;
 | 
				
			|||||||
//      Build Number
 | 
					//      Build Number
 | 
				
			||||||
//      Revision
 | 
					//      Revision
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
[assembly: AssemblyVersion("1.0.1.6")]
 | 
					[assembly: AssemblyVersion("1.0.1.7")]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if DEBUG
 | 
					#if DEBUG
 | 
				
			||||||
[assembly: AssemblyConfiguration("Debug")]
 | 
					[assembly: AssemblyConfiguration("Debug")]
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -289,6 +289,27 @@ namespace GameStateManagement
 | 
				
			|||||||
            TouchPanel.EnabledGestures = screen.EnabledGestures;
 | 
					            TouchPanel.EnabledGestures = screen.EnabledGestures;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        /// <summary>
 | 
				
			||||||
 | 
					        /// Adds a new screen to the screen manager with a default PlayerIndex of one
 | 
				
			||||||
 | 
					        /// </summary>
 | 
				
			||||||
 | 
					        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;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// Removes a screen from the screen manager. You should normally
 | 
					        /// Removes a screen from the screen manager. You should normally
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user