|
| MapOverlayDrawContext (Vector2 mapPosition, Vector2 mapOffset, Rectangle? clippingRect, float mapScale, float drawScale) |
|
DrawResult | Draw (Texture2D texture, Vector2 position, Alignment alignment) |
|
DrawResult | Draw (Texture2D texture, Vector2 position, Color color, SpriteFrame frame, float scaleIfNotSelected, float scaleIfSelected, Alignment alignment) |
| Draws the texture (icon) over the map using the provided arguments. Check the returned DrawResult.IsMouseOver to check if the mouse is hovering over this icon. This is usually used to assign the text parameter of ModLoader.ModMapLayer.Draw(ref MapOverlayDrawContext, ref string) to the hover text of the icon. Note that the position argument expects tile coordinates expressed as a Vector2. Don't scale tile coordinates to world coordinates by multiplying by 16. If you are working with world coordinates you'll need to divide them by 16 to convert them to tile coordinates.
|
|
DrawResult | Draw (Texture2D texture, Vector2 position, SpriteFrame frame, Alignment alignment) |
|