Updated layout to showcase multiple menus. Set first collection to default to Main.

This commit is contained in:
emb 2015-01-30 23:28:00 -06:00
parent f9edb050de
commit a5965e0c4e
11 changed files with 50 additions and 104 deletions

View File

@ -3,6 +3,7 @@ Windows Setup
Install Python 2.7 Install Python 2.7
Install sphinx with python Install sphinx with python
Install visual studio 2012 Install visual studio 2012
Install Microsoft Windows SDK for Windows 7 and .net Framework 4 http://www.microsoft.com/en-us/download/details.aspx?id=8279
Install cmake Install cmake
Install tortoisehg Install tortoisehg
Install 7zip Install 7zip

View File

@ -1,4 +1,4 @@
<layout width="1920" height="1080" font="Age.otf" loadFontSize="32" fontColor="eeeeee"> <layout width="1920" height="1080" font="opensans_hebrew_condensed_regular.ttf" loadFontSize="32" fontColor="eeeeee">
<sound type="load" src="load.wav" /> <sound type="load" src="load.wav" />
<sound type="unload" src="unload.wav" /> <sound type="unload" src="unload.wav" />
<sound type="highlight" src="highlight.wav" /> <sound type="highlight" src="highlight.wav" />
@ -7,77 +7,61 @@
<!-- background --> <!-- background -->
<container backgroundColor="C0392B" backgroundAlpha="1.0" x="0" y="0" height="stretch" width="stretch" layer="0"/> <container backgroundColor="C0392B" backgroundAlpha="1.0" x="0" y="0" height="stretch" width="stretch" layer="0"/>
<!-- menu --> <!-- Item name and border -->
<menu orientation="horizontal" algorithm="easeincircular" xOffset="500" y="10" width="center" height="1040" speed="0.05" acceleration="0.05"> <container backgroundColor="FFFFFF" backgroundAlpha="0.3" x="0" y="bottom" yOrigin="center" yOffset="-100" height="100" width="stretch" layer="4"/>
<itemDefaults spacing="10" x="center" height="35" fontSize="35" alpha="0.5" xOffset="20" yOrigin="center" layer="3"/> <reloadableText type="title" x="20" y="bottom" yOrigin="center" yOffset="-90" height="80" layer="5">
<item index="start" height="0" spacing="0" alpha="0"/>
<item index="2" spacing="0" height="60" fontSize="60" alpha="1" selected="true"/>
<item index="end" height="0" spacing="0" alpha="0"/>
</menu>
<!-- logo -->
<image x="30" y="20" height="80" src="logo.png" layer="1" alpha="0.3">
<onEnter>
<set duration=".5">
<animate type="y" from="top" to="20" algorithm="easeinquadratic"/>
<animate type="yOrigin" from="bottom" to="top" algorithm="easeincircular"/>
</set>
</onEnter>
<onExit>
<set duration=".25">
<animate type="y" from="20" to="top" algorithm="easeinquadratic"/>
<animate type="yOrigin" from="top" to="bottom" algorithm="easeincircular"/>
</set>
</onExit>
</image>
<container backgroundColor="FFFFFF" backgroundAlpha="0.3" x="480" y="160" xOrigin="center" height="500" width="660" layer="4">
<onEnter>
<set duration=".4">
<animate type="backgroundAlpha" from="0" to="0.3" algorithm="easeinquadratic"/>
</set>
</onEnter>
<onExit>
<set duration=".2">
<animate type="backgroundAlpha" from="0.3" to="0" algorithm="easeinquadratic"/>
</set>
</onExit>
</container>
<!-- video (or snapshot if video doesn't exist)-->
<reloadableVideo imageType="snap" x="480" y="170" xOrigin="center" height="480" width="640" layer="5">
<onHighlightEnter> <onHighlightEnter>
<set duration=".4"> <set duration=".2">
<animate type="alpha" from="0" to="1" algorithm="easeinquadratic"/> <animate type="x" from="right" to="20" algorithm="easeinquadratic"/>
<animate type="xOrigin" from="right" to="left" algorithm="easeinquadratic"/>
</set> </set>
</onHighlightEnter> </onHighlightEnter>
<onHighlightExit> <onHighlightExit>
<set duration=".2"> <set duration=".2">
<animate type="alpha" from="1" to="0" algorithm="easeinquadratic"/> <animate type="x" from="20" to="left" algorithm="easeinquadratic"/>
<animate type="xOrigin" from="left" to="right" algorithm="easeinquadratic"/>
</set> </set>
</onHighlightExit> </onHighlightExit>
</reloadableText>
<reloadableVideo width="100" height="100" imageType="title">
</reloadableVideo> </reloadableVideo>
<!-- menu -->
<reloadableImage type="box" x="480" y="750" xOrigin="center" height="240" layer="4"> <menu type="custom" imageType="title" algorithm="easeincircular" xOffset="500" y="10" width="center" height="1040" speed="0.05" acceleration="0.05">
<onHighlightEnter> <itemDefaults spacing="10" y="center" yOrigin="center" fontSize="35" alpha="0.5" layer="5"/>
<set duration=".4"> <item height="300" alpha="0.5" xOrigin="left" x="left">
<animate type="alpha" from="0" to="1" algorithm="easeinquadratic"/> <onMenuExit>
<set duration="2">
<animate type="alpha" from="1" to="0" algorithm="easeincircular"/>
</set> </set>
</onHighlightEnter> </onMenuExit>
<onHighlightExit> </item>
<set duration=".2"> <item alpha="1" x="center" xOrigin="center" selected="true" height="700">
<animate type="alpha" from="1" to="0" algorithm="easeinquadratic"/> <onMenuExit>
<set duration="2">
<animate type="alpha" from="1" to="0.25" algorithm="easeincircular"/>
</set> </set>
</onHighlightExit> </onMenuExit>
<onMenuEnter>
</reloadableImage> <set duration="2">
<animate type="alpha" from="0.25" to="1" algorithm="easeincircular"/>
<reloadableText type="title" x="0" y="bottom" xOffset="20" yOrigin="center" yOffset="-175" height="150" width="stretch" layer="1" fontSize="50" /> </set>
<reloadableText type="manufacturer" x="left" y="bottom" xOrigin="left" yOrigin="bottom" xOffset="10" yOffset="-10" fontSize="20" layer="0" /> </onMenuEnter>
<reloadableText type="year" x="left" y="bottom" xOrigin="left" yOrigin="bottom" xOffset="10" yOffset="-30" fontSize="20" layer="0" /> </item>
<reloadableText type="numberPlayers" x="left" y="bottom" xOrigin="left" yOrigin="bottom" xOffset="10" yOffset="-70" fontSize="20" layer="0" /> <item height="30" alpha="0.5" xOrigin="right" x="right">
<reloadableText type="numberButtons" x="left" y="bottom" xOrigin="left" yOrigin="bottom" xOffset="10" yOffset="-90" fontSize="20" layer="0" /> <onMenuExit>
<set duration="2">
<animate type="alpha" from="1" to="0" algorithm="easeincircular"/>
</set>
</onMenuExit>
</item>
</menu>
<menu type="custom" imageType="title" algorithm="easeincircular" xOffset="500" y="10" width="center" height="1040" speed="0.05" acceleration="0.05">
<itemDefaults spacing="10" y="80" yOrigin="center" fontSize="50" alpha="0.5" layer="5"/>
<item alpha="0" xOrigin="left" x="right" />
<item alpha="1" x="center" xOrigin="center" selected="true" height="700"/>
<item alpha="0" xOrigin="right" x="left" />
</menu>
</layout> </layout>

View File

@ -1,38 +0,0 @@
<layout width="1920" height="1080" font="Age.otf" loadFontSize="32" fontColor="eeeeee">
<sound type="load" src="load.wav" />
<sound type="unload" src="unload.wav" />
<sound type="highlight" src="highlight.wav" />
<sound type="select" src="select.wav" />
<!-- background -->
<container backgroundColor="C0392B" backgroundAlpha="1.0" x="0" y="0" height="stretch" width="stretch" layer="0"/>
<!-- Item name and border -->
<container backgroundColor="FFFFFF" backgroundAlpha="0.3" x="0" y="bottom" yOrigin="center" yOffset="-100" height="100" width="stretch" layer="4"/>
<reloadableText type="title" x="20" y="bottom" yOrigin="center" yOffset="-90" height="80" layer="5">
<onHighlightEnter>
<set duration=".2">
<animate type="x" from="right" to="20" algorithm="easeinquadratic"/>
<animate type="xOrigin" from="right" to="left" algorithm="easeinquadratic"/>
</set>
</onHighlightEnter>
<onHighlightExit>
<set duration=".2">
<animate type="x" from="20" to="left" algorithm="easeinquadratic"/>
<animate type="xOrigin" from="left" to="right" algorithm="easeinquadratic"/>
</set>
</onHighlightExit>
</reloadableText>
<!-- menu -->
<menu type="custom" imageType="title" algorithm="easeincircular" xOffset="500" y="10" width="center" height="1040" speed="0.05" acceleration="0.05">
<itemDefaults spacing="10" y="center" yOrigin="center" fontSize="35" alpha="0.5" layer="5"/>
<item alpha="0" xOrigin="left" x="right" />
<item alpha="1" x="center" xOrigin="center" selected="true" height="700"/>
<item alpha="0" xOrigin="right" x="left" />
</menu>
</layout>

View File

@ -19,9 +19,8 @@ hideMouse = yes
showParenthesis = yes showParenthesis = yes
showSquareBrackets = yes showSquareBrackets = yes
# If you would like RetroFE first load a different collection other than the # specify the name of the first collection to load on start
# main menu, uncomment the line below and replace it with your collection name. firstCollection = Main
# firstCollection = Arcade
####################################### #######################################
# Video playback settings # Video playback settings

View File

@ -252,7 +252,7 @@ void RetroFE::Run()
splashMode = false; splashMode = false;
if(CurrentPage) if(CurrentPage)
{ {
std::string firstCollection; std::string firstCollection = "Main";
Config.GetProperty("firstCollection", firstCollection); Config.GetProperty("firstCollection", firstCollection);
CurrentPage->Start(); CurrentPage->Start();