Xyphos

How do I display an image using the new Dialog GUI?

Recommended Posts

I want to display a quick-reference guide for one of my mods when the user toggles the toolbar, I know toolbar code, but I don't know how to display an image

Share this post


Link to post
Share on other sites

Here's a previous discussion, I think we settled on DialogGUISprite as the best option:

 

  • Like 2

Share this post


Link to post
Share on other sites

from that thread, I've gathered the info required:

new DialogGUIImage( new Vector2(0.0f, 0.0f), // image size, in pixels; (-1, -1) would stretch to fit, (0,0) would be a zero-pixel size (hidden)
					new Vector2(0.0f, 0.0f), // image location in pixel coordinates
					Color.red, // color mask
					loadedImage)

thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now