Jump to content

add an image to a gui window.


bartje01

Recommended Posts

Posted
guiCreateStaticImage 

Client-Sided

I thought I had to use that but. How will I use it here?

  
mainWindow = guiCreateWindow(screenWidth/2-mainWidth/2,screenHeight/2-mainHeight/2,mainWidth,mainHeight,"Login panel",false) 

Posted
parent: This is the parent that the image is attached to. If the relative argument is true, sizes and positioning will be made relative to this parent.

-

Posted

no, you put mainWindow as parent in the last argument of guiCreateStaticImage:

mainWindow = guiCreateWindow(screenWidth/2-mainWidth/2,screenHeight/2-mainHeight/2,mainWidth,mainHeight,"Login panel",false) 
myImage = guiCreateStaticImage(x, y, imageWidth, imageHeight, "path/to/image.png", false, mainWindow) 

?

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...