Mefisto_PL Posted March 27, 2013 Share Posted March 27, 2013 Hello guys. I have a one big problem.. I've create a gui-label which is attached to "menu1", but when I attach then it doesn't showed. When it doesn't attached then it's showed. Help me plz. ( namec is explained in code which I don't want to show you ) local menu1 = guiCreateStaticImage ( 0, 0, 1, 0.04, "images/pasek1.png", true ) guiSetVisible ( menu1, true ) local text = guiCreateLabel ( 0, 0, 0.15, 0.1, "Welcome ".. namec .. " !", true, menu1 ) guiSetFont ( text, "default-bold-small" ) Link to comment
Castillo Posted March 27, 2013 Share Posted March 27, 2013 Maybe is created on wrong position inside the image. Link to comment
xXMADEXx Posted March 28, 2013 Share Posted March 28, 2013 Try making the text, then image? Link to comment
MIKI785 Posted March 28, 2013 Share Posted March 28, 2013 try this: guiBringToFront(text) Link to comment
Mefisto_PL Posted March 31, 2013 Author Share Posted March 31, 2013 1. menu1 is from beginning to end of screen. 2. Madex I don't catch what did you say 3. If I do that when I click on menu1 then text will disappear. Link to comment
Jaysds1 Posted March 31, 2013 Share Posted March 31, 2013 try this: local menu1 = guiCreateStaticImage ( 0, 0, 1, 0.04, "images/pasek1.png", true ) guiSetVisible ( menu1, true ) local text = guiCreateLabel ( 0, 0, 0.15, 0.1, "Welcome ".. namec .. " !", true, menu1 ) guiSetFont ( text, "default-bold-small" ) guiSetVisible ( text, true ) guiMoveToBack(menu1) Link to comment
Mefisto_PL Posted March 31, 2013 Author Share Posted March 31, 2013 Maybe it's working.. but I've create an image, which move from menu1 so it must be on the top , but text must be on menu1. 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