Mefisto_PL Posted December 29, 2012 Posted December 29, 2012 I have an image and I want to move that to down. ( And If you can show me how to hide it , but in first that must be showed >.< ) local bg_up = guiCreateStaticImage ( 0, -0.001, 1, 0.15, "menu/images/up.png", true ) bindKey("F7", "down", function () if panel then showCursor ( false ) panel = false else Animation.createAndPlay(bg_up, Animation.presets.guiMove( 0, -0.001 )) showCursor ( true ) panel = true end end )
Anderl Posted December 29, 2012 Posted December 29, 2012 Well, I don't use that library anymore neither I'm playing MTA:SA. I don't remember which parameters they are but I'm sure there are at least 2 parameters missing.
Castillo Posted December 30, 2012 Posted December 30, 2012 What is the exact problem? because you aren't saying.
Mefisto_PL Posted December 30, 2012 Author Posted December 30, 2012 This image doesn't appears. Nothing in debugscript .
Castillo Posted December 30, 2012 Posted December 30, 2012 Maybe because you are moving it to the same position as it is already?
manve1 Posted December 30, 2012 Posted December 30, 2012 local bg_up = guiCreateStaticImage ( 0, 0.01, 1, 0.15, "menu/images/up.png", true ) bindKey("F7", "down", function () if panel then showCursor ( false ) panel = false else Animation.createAndPlay(bg_up, Animation.presets.guiMove( 0, 0.1 )) showCursor ( true ) panel = true end end ) try this
Mefisto_PL Posted December 30, 2012 Author Posted December 30, 2012 It's simple for me with setTimer, but it's bugged
Raahim Posted December 30, 2012 Posted December 30, 2012 I don't get what you asking. Maybe explain it in details? Like, what you want to do, what is causing in the middle, give examples maybe?
Mefisto_PL Posted December 30, 2012 Author Posted December 30, 2012 I don't get what you asking. Maybe explain it in details? Like, what you want to do, what is causing in the middle, give examples maybe? I want to move my image to down lol.. but I can't see an image .
3NAD Posted December 30, 2012 Posted December 30, 2012 use guiGetPosition guiSetPosition setTimer ex. setTimer ( function ( ) local x, y = guiGetPosition ( theWindow, false ) guiSetPosition ( theWindow, x, y - 8, false ) end , 80, 25 )
TAPL Posted December 30, 2012 Posted December 30, 2012 Make sure that you have define the image in the meta.xml and the path is correct.
Mefisto_PL Posted December 30, 2012 Author Posted December 30, 2012 It's correct, but I found this: local label = guiCreateLabel(10, 100, 150, 20, 'Test', false) Animation.createAndPlay(label, Animation.presets.guiMove(200, 100, 2000)) Here is 3 paramaters, but which?
Castillo Posted December 30, 2012 Posted December 30, 2012 It's correct, but I found this: local label = guiCreateLabel(10, 100, 150, 20, 'Test', false) Animation.createAndPlay(label, Animation.presets.guiMove(200, 100, 2000)) Here is 3 paramaters, but which? 3rd argument is the time.
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