bartje01 Posted October 15, 2012 Share Posted October 15, 2012 Hey everyone, just one question. How can I implend an image to a gui window? Link to comment
Baseplate Posted October 15, 2012 Share Posted October 15, 2012 guiCreateStaticImage Client-Sided Link to comment
bartje01 Posted October 15, 2012 Author Share 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) Link to comment
DiSaMe Posted October 15, 2012 Share 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. Link to comment
bartje01 Posted October 15, 2012 Author Share Posted October 15, 2012 So instead of the width and height I just put the .img name? Link to comment
Aibo Posted October 15, 2012 Share 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) Link to comment
bartje01 Posted October 15, 2012 Author Share Posted October 15, 2012 Thanks, but now my buttons are behind the img. how can I get them infront of it? Link to comment
Baseplate Posted October 15, 2012 Share Posted October 15, 2012 try to put the buttons above the image in the lua Link to comment
bartje01 Posted October 15, 2012 Author Share Posted October 15, 2012 Awesome, thanks anderl. It has a great effect. Link to comment
skyturk.sgf Posted October 17, 2012 Share Posted October 17, 2012 go to my dxwindow tut http://www.mta-tr.com/index.php?topic=15572.0 Link to comment
denny199 Posted October 17, 2012 Share Posted October 17, 2012 Not everyone can speak turkish. Link to comment
skyturk.sgf Posted October 18, 2012 Share Posted October 18, 2012 translate it use code Link to comment
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