New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fe.signal prev_game/next_game/prev_page/next_page should trigger EndNavigation? #394

liquid8d opened this Issue Dec 10, 2017 · 0 comments


None yet
1 participant

liquid8d commented Dec 10, 2017

If you use fe.signal to manually trigger previous or next game or page, I believe that should trigger Transition.EndNavigation right?

local title = fe.add_text("[Title]", 0, 0, fe.layout.width, 30);
local art = fe.add_artwork("flyer", 0, 30, 320, 240);
art.preserve_aspect_ratio = true;
art.trigger = Transition.EndNavigation;

fe.add_transition_callback(this, "on_transition");

function on_transition(ttype, var, ttime) {
    if ( ttype == Transition.StartLayout ) fe.signal("next_game");
    if ( ttype == Transition.EndNavigation ) print("EndNavigation\n");
    return false;

fe.add_signal_handler(this, "on_signal");
function on_signal(str) {
    if ( str == "up" || str == "down" || str == "left" || str == "right" )
        return true;
    return false;

However, if a signal is received that does nothing and a button is pressed, EndNavigation occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment