Jump to content

GUI Animations


Mefisto_PL

Recommended Posts

I have an image and I want to move that to down. ( And If you can show me how to hide it :D, 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 
) 

Link to comment
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

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...