bartje01 Posted October 15, 2012 Posted October 15, 2012 Hey everyone, just one question. How can I implend an image to a gui window?
bartje01 Posted October 15, 2012 Author Posted October 15, 2012 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)
DiSaMe Posted October 15, 2012 Posted October 15, 2012 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.
bartje01 Posted October 15, 2012 Author Posted October 15, 2012 So instead of the width and height I just put the .img name?
Aibo Posted October 15, 2012 Posted October 15, 2012 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)
bartje01 Posted October 15, 2012 Author Posted October 15, 2012 Thanks, but now my buttons are behind the img. how can I get them infront of it?
Baseplate Posted October 15, 2012 Posted October 15, 2012 try to put the buttons above the image in the lua
bartje01 Posted October 15, 2012 Author Posted October 15, 2012 Awesome, thanks anderl. It has a great effect.
skyturk.sgf Posted October 17, 2012 Posted October 17, 2012 go to my dxwindow tut http://www.mta-tr.com/index.php?topic=15572.0
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now