public void Initialize(string Path, Game.Kinect.Kinect kinect, Vector2 Position) { texturePath = Path; this.kinect = kinect; position = Position; textureBoundsSet = false; hoverColor = new Color(255, 255, 255, 220); }
public void Initialize(string Path, Game.Kinect.Kinect kinect, Vector2 Position, int buttonWidth, int buttonHeight) { texturePath = Path; this.kinect = kinect; position = Position; textureWidth = buttonWidth; textureHeight = buttonHeight; textureBoundsSet = true; hoverColor = new Color(255, 255, 255, 220); }
/// <summary> /// Class constructor for 1 player mode. /// </summary> /// <remarks> /// <para>AUTHOR: Khaled Salah </para> /// </remarks> public UserAvatar(Game.Kinect.Kinect kinect, ContentManager content, GraphicsDevice graphicsDevice, SpriteBatch spriteBatch) { this.kinect = kinect; this.graphics = graphicsDevice; screenWidth = graphics.Viewport.Width; screenHeight = graphics.Viewport.Height; this.spriteBatch = spriteBatch; this.content = content; allAvatars = new Texture2D[4]; }
public override void Initialize() { showAvatar = true; newGame = new Button(); instructions = new Button(); highscores = new Button(); exit = new Button(); Hand = new HandCursor(); kinect = ScreenManager.Kinect; Hand.Initialize(ScreenManager.Kinect); newGame.Clicked += new Button.ClickedEventHandler(newGame_Clicked); instructions.Clicked += new Button.ClickedEventHandler(instructions_Clicked); highscores.Clicked += new Button.ClickedEventHandler(highscores_Clicked); exit.Clicked += new Button.ClickedEventHandler(exit_Clicked); base.Initialize(); }