Jump to content

Menu without mouse


FuriouZ

Recommended Posts

Insert this values which you will select in table like that

table = { 
    [1] = gui-element1, 
    [2] = gui-element2, 
    ... 
    [n] = gui-elementn, 
} 

And the bind arrows and just add number to variable. Like that.

local n = 0; 
bindKey ( "arrow_d", "down", 
    function ( ) 
        n = n + 1; 
         
        table [ n ]; -- this is selected element1 
    end 
); 

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