Displaying Images in a GUI

Started by MoodyBlues, Wed 04/02/2009 22:52:16

Previous topic - Next topic

MoodyBlues

Is there a way to display an image in the GUI when the user clicks a button?

Note:  I don't want just a background image.  I'd like the GUI to support having multiple copies of the same image in the GUI at a time.
Atapi - A Fantasy Adventure
Now available!: http://www.afwcon.org/

GarageGothic

Buttons is probably the easiest way to go. Just make as many buttons as you want images displayed at the same time, make them non-clickable and change the button's Graphic property to display the image on it. You can use the Button.Visible property to hide the buttons that aren't currently used to display images.

Khris

Alternatively, you can compose the image using a DynamicSprite and its DrawingSurface, then set it as GUIBackground.

MoodyBlues

Hey, thanks!  I've been messing around in the GUI editor, and using buttons seems like the easiest route.
Atapi - A Fantasy Adventure
Now available!: http://www.afwcon.org/

SMF spam blocked by CleanTalk