Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GMCM] #464

Open
Digus opened this issue May 16, 2024 · 0 comments
Open

[GMCM] #464

Digus opened this issue May 16, 2024 · 0 comments

Comments

@Digus
Copy link
Contributor

Digus commented May 16, 2024

/// <summary>Add an image at the current position in the form.</summary> /// <param name="mod">The mod's manifest.</param> /// <param name="texture">The image texture to display.</param> /// <param name="texturePixelArea">The pixel area within the texture to display, or <c>null</c> to show the entire image.</param> /// <param name="scale">The zoom factor to apply to the image.</param> void AddImage(IManifest mod, Func<Texture2D> texture, Rectangle? texturePixelArea = null, int scale = Game1.pixelZoom);

Couldn't texturePixelArea also be a function? I wanted to show NPC sprites based on a input filed. The way it works I could load a different texture but can't change the frame since the Rectangle is fixed when the menu is created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant