mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-13 18:28:52 +01:00
Updated layout to showcase multiple menus. Set first collection to default to Main.
This commit is contained in:
parent
f9edb050de
commit
a5965e0c4e
@ -3,6 +3,7 @@ Windows Setup
|
||||
Install Python 2.7
|
||||
Install sphinx with python
|
||||
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 tortoisehg
|
||||
Install 7zip
|
||||
|
||||
Binary file not shown.
@ -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="unload" src="unload.wav" />
|
||||
<sound type="highlight" src="highlight.wav" />
|
||||
@ -7,77 +7,61 @@
|
||||
<!-- background -->
|
||||
<container backgroundColor="C0392B" backgroundAlpha="1.0" x="0" y="0" height="stretch" width="stretch" layer="0"/>
|
||||
|
||||
<!-- menu -->
|
||||
<menu orientation="horizontal" algorithm="easeincircular" xOffset="500" y="10" width="center" height="1040" speed="0.05" acceleration="0.05">
|
||||
<itemDefaults spacing="10" x="center" height="35" fontSize="35" alpha="0.5" xOffset="20" yOrigin="center" layer="3"/>
|
||||
<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">
|
||||
<!-- 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=".4">
|
||||
<animate type="alpha" from="0" to="1" algorithm="easeinquadratic"/>
|
||||
<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="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>
|
||||
</onHighlightExit>
|
||||
</reloadableText>
|
||||
|
||||
<reloadableVideo width="100" height="100" imageType="title">
|
||||
</reloadableVideo>
|
||||
|
||||
<reloadableImage type="box" x="480" y="750" xOrigin="center" height="240" layer="4">
|
||||
<onHighlightEnter>
|
||||
<set duration=".4">
|
||||
<animate type="alpha" from="0" to="1" algorithm="easeinquadratic"/>
|
||||
<!-- 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 height="300" alpha="0.5" xOrigin="left" x="left">
|
||||
<onMenuExit>
|
||||
<set duration="2">
|
||||
<animate type="alpha" from="1" to="0" algorithm="easeincircular"/>
|
||||
</set>
|
||||
</onHighlightEnter>
|
||||
<onHighlightExit>
|
||||
<set duration=".2">
|
||||
<animate type="alpha" from="1" to="0" algorithm="easeinquadratic"/>
|
||||
</onMenuExit>
|
||||
</item>
|
||||
<item alpha="1" x="center" xOrigin="center" selected="true" height="700">
|
||||
<onMenuExit>
|
||||
<set duration="2">
|
||||
<animate type="alpha" from="1" to="0.25" algorithm="easeincircular"/>
|
||||
</set>
|
||||
</onHighlightExit>
|
||||
|
||||
</reloadableImage>
|
||||
|
||||
<reloadableText type="title" x="0" y="bottom" xOffset="20" yOrigin="center" yOffset="-175" height="150" width="stretch" layer="1" fontSize="50" />
|
||||
<reloadableText type="manufacturer" x="left" y="bottom" xOrigin="left" yOrigin="bottom" xOffset="10" yOffset="-10" fontSize="20" layer="0" />
|
||||
<reloadableText type="year" x="left" y="bottom" xOrigin="left" yOrigin="bottom" xOffset="10" yOffset="-30" fontSize="20" layer="0" />
|
||||
<reloadableText type="numberPlayers" x="left" y="bottom" xOrigin="left" yOrigin="bottom" xOffset="10" yOffset="-70" fontSize="20" layer="0" />
|
||||
<reloadableText type="numberButtons" x="left" y="bottom" xOrigin="left" yOrigin="bottom" xOffset="10" yOffset="-90" fontSize="20" layer="0" />
|
||||
</onMenuExit>
|
||||
<onMenuEnter>
|
||||
<set duration="2">
|
||||
<animate type="alpha" from="0.25" to="1" algorithm="easeincircular"/>
|
||||
</set>
|
||||
</onMenuEnter>
|
||||
</item>
|
||||
<item height="30" alpha="0.5" xOrigin="right" x="right">
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
@ -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>
|
||||
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -19,9 +19,8 @@ hideMouse = yes
|
||||
showParenthesis = yes
|
||||
showSquareBrackets = yes
|
||||
|
||||
# If you would like RetroFE first load a different collection other than the
|
||||
# main menu, uncomment the line below and replace it with your collection name.
|
||||
# firstCollection = Arcade
|
||||
# specify the name of the first collection to load on start
|
||||
firstCollection = Main
|
||||
|
||||
#######################################
|
||||
# Video playback settings
|
||||
|
||||
@ -252,7 +252,7 @@ void RetroFE::Run()
|
||||
splashMode = false;
|
||||
if(CurrentPage)
|
||||
{
|
||||
std::string firstCollection;
|
||||
std::string firstCollection = "Main";
|
||||
Config.GetProperty("firstCollection", firstCollection);
|
||||
|
||||
CurrentPage->Start();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user