Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: jedione on May 19, 2019, 11:06:41 AM

Title: houston we have a problem....
Post by: jedione on May 19, 2019, 11:06:41 AM
can anyone confirm this,,,

that, fe.layout.orient=RotateScreen.Right;

is not working in latest, AM build....thanks

it,s throwing a wrench in a vertical theme.... :-\
Title: Re: houston we have a problem....
Post by: qqplayer on May 19, 2019, 12:15:42 PM
https://github.com/mickelson/attract/blob/master/config/plugins/RotationControl.nut


Code: [Select]
fe.layout.base_rotation = RotateScreen.Left;

https://github.com/mickelson/attract/blob/master/Layouts.md

Code: [Select]
base_rotation - Get/set the base (i.e the default) orientation of the layout. This can be one of the following values:

    RotateScreen.None (default)
    RotateScreen.Right
    RotateScreen.Flip
    RotateScreen.Left

toggle_rotation - Get/set the "toggle" orientation of the layout. The toggle rotation is added to the base_rotation to determine what the actual rotation is at any given time. The user can change this value using the Rotation Toggle inputs. This can be one of the following values:

    RotateScreen.None (default)
    RotateScreen.Right
    RotateScreen.Flip
    RotateScreen.Left


Not tested.
Title: Re: houston we have a problem....
Post by: jedione on May 19, 2019, 01:41:53 PM
well, ,     it works.....hot dam thanks alot..

dont know why,  the old way by just adding,  a quick line vs  enabling a plugin and all is necessary

its a vertical cab so ill just set-it and forget-it :P