mxew / firetable-user

client side front end for firetable, a virtual music listening room powered by firebase.

Home Page:https://thompsn.com/log/about/firetable

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Promote / Convert / Split Screen Controls

andrewtibbetts opened this issue · comments

Right now, User must choose between sync, always or never in Settings. I suggest we separate concerns into: 1) a Settings checkbox for sync with !screen commands that would only come into play when 2) a button that toggles always/on and never/off the screen, specifically for User, is turned off. So, the system would always check like so:

if ( ft.screenPos ) { // user has button depressed ("always")
    ft.screenDown();
}
else { // user does not have button depressed ("never", but not anymore, now "never" is "refer to sync" )
    if ( ft.screenSync ) { // user has "sync" checked in settings
        if ( ft.screenSyncPos ) { // room currently has !screen
            ft.screenDown();
        }
        else { // room currently has !screenup
            ft.screenUp();
        }
    }
    else { // user does not have "sync" checked in settings
        ft.screenUp();
    }
}