//void OnButtonPressed(object sender, ButtonPressedEventArgs e) { // if (!Context.IsWorldReady) // return; // if (!Context.IsPlayerFree) // return; // if (e.Button.IsUseToolButton()) { // Vector2 tilePos = this.Helper.Input.GetCursorPosition().Tile; // AttemptCatchCritter(tilePos); // } //} private void OnRendered(object sender, RenderedEventArgs e) { if (!Context.IsWorldReady) { return; } if (!Context.IsPlayerFree) { return; } ICursorPosition cursorPos = this.Helper.Input.GetCursorPosition(); Critter c = GetCrittersAtPosition(cursorPos.AbsolutePixels, Game1.tileSize); string str = "Critter: None"; if (c != null) { str = "Critter: " + c.GetType().ToString(); } str += $"({cursorPos.AbsolutePixels})"; //string str = $"Mouse: {cursorPos.AbsolutePixels}"; Game1.spriteBatch.DrawString(Game1.smallFont, str, cursorPos.ScreenPixels, Color.Black); }