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:

 

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
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.