Jump to content

guiSetInputEnabled


Wei

Recommended Posts

You could understant it...

function showSupport () 
    guiSetVisible( supportWindow, not guiGetVisible( supportWindow ) ) 
    showCursor( guiGetVisible( supportWindow ) ) 
    guiSetInputEnabled( guiGetVisible( supportWindow) ) 
end 
bindKey("f3", "down", showSupport ) 

Link to comment

Weird ... I do not think that it would help, but try: (Just for test)

function showSupport () 
    if guiGetVisible ( supportWindow ) == true then 
        guiSetVisible( supportWindow, false ) 
        showCursor( false ) 
        guiSetInputEnabled( false ) 
    else 
        guiSetVisible( supportWindow, true ) 
        showCursor( true ) 
        guiSetInputEnabled( true ) 
    end 
end 
bindKey("f3", "down", showSupport ) 

p.s. Perhaps the problem in some other script?

Link to comment
    function showSupport () 
        if guiGetVisible ( supportWindow ) == true then 
            guiSetVisible( supportWindow, false ) 
            showCursor( false ) 
            guiSetInputMode( false ) 
        else 
            guiSetVisible( supportWindow, true ) 
            showCursor( true ) 
            guiSetInputMode( true ) 
        end 
    end 
    bindKey("f3", "down", showSupport ) 
    if ( supportWindow ) == true and showCursor ( ture ) then 
    guiSetVisible (supportWindow, false) 
    showCursor ( false ) 
    guiSetInputMode ( false ) 
    guiSetVisible ( false ) 
end 

This might work.. im not sure

Edited by Guest
Link to comment
    function showSupport () 
        if guiGetVisible ( supportWindow ) == true then 
            guiSetVisible( supportWindow, false ) 
            showCursor( false ) 
            guiSetInputMode( false ) 
        else 
            guiSetVisible( supportWindow, true ) 
            showCursor( true ) 
            guiSetInputMode( true ) 
        end 
    end 
    bindKey("f3", "down", showSupport ) 
    if ( supportWindow ) == true and showCursor ( ture ) then 
    guiSetVisible (supportWindow, false) 
    showCursor ( false ) 
    guiSetInputMode ( false ) 
    guiSetVisible ( false ) 
end 

This might work.. im not sure

got kinda exited and added an extra check:

OnPlayerHitKey "f3" Check = showSupport 
    if showSupport ( true ) then check = guisetinputMode 
        if guiSetinputMode ( false ) and showSupport ( true ) then 
        showSupport ( false ) 
        showCursor ( false ) 
        guiSetInputMode ( false ) 
        guiSetVisible ( false ) 
        end 
    end 

PD: im "new" at gui scripting so idk if this works.

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...