Mefisto_PL Posted March 27, 2013 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" )
Castillo Posted March 27, 2013 Posted March 27, 2013 Maybe is created on wrong position inside the image.
Mefisto_PL Posted March 31, 2013 Author 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.
Jaysds1 Posted March 31, 2013 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)
Mefisto_PL Posted March 31, 2013 Author 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.
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