Вот он скрипт :
white = Color.new(255,255,255)
red = Color.new(255,0,0)
current = 1 -- выбор равняеться 1
oldpad = Controls.read()-- читаем клав.
while true do -- начало
pad = Controls.read()
screen:clear()--чистим екран
screen:print(20,100,"1 menu",white)--пункт
screen:print(20,110,"2 menu",white)--пункт
screen:print(20,120,"3 menu",white)--пункт
if current == 1 then
screen:print(20,100,"1 menu",red)-- есле мы виберём пункт он будет светиться красным
end
if current == 2 then
screen:print(20,110,"2 menu",red)-- есле мы виберём пункт он будет светиться красным
end
if current == 3 then
screen:print(20,120,"3 menu",red)-- есле мы виберём пункт он будет светиться красным
end
if pad:up() and oldpad:up() ~= pad:up() then --перелистываем меню
current = current - 1
end
if pad:down() and oldpad:down() ~= pad:down() then --перелистываем меню
current = current + 1
end
if current == 4 then --Условие при котором есле нажать вниз на 3 пункте он перенесет на 1
current = 1
end
if current == 0 then --Условие при котором есле нажать вверх на 1 пункте он перенесет на 3
current = 4
end
screen.waitVblankStart()
screen.flip()--выводим на екран
oldpad = pad
end
жду "+"
.