Updated layout to use list view for sublist. Adjusted scroll speed.

This commit is contained in:
emb 2015-01-30 23:42:42 -06:00
parent a5965e0c4e
commit f5ad979f9c
2 changed files with 14 additions and 14 deletions

View File

@ -24,43 +24,43 @@
</onHighlightExit>
</reloadableText>
<reloadableVideo width="100" height="100" imageType="title">
<reloadableVideo width="200" height="200" imageType="title">
</reloadableVideo>
<!-- 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">
<set duration=".25">
<animate type="alpha" from="1" to="0" algorithm="easeincircular"/>
</set>
</onMenuExit>
</item>
<item alpha="1" x="center" xOrigin="center" selected="true" height="700">
<onMenuExit>
<set duration="2">
<set duration=".25">
<animate type="alpha" from="1" to="0.25" algorithm="easeincircular"/>
</set>
</onMenuExit>
<onMenuEnter>
<set duration="2">
<set duration=".25">
<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">
<set duration=".25">
<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 algorithm="easeincircular" x="1500" y="10" width="center" height="1040" speed="0.05" acceleration="0.05">
<itemDefaults spacing="10" x="1500" height="80" fontSize="50" alpha="0.5" layer="5" xOrigin="center"/>
<item alpha="0" index="start" height="0" />
<item alpha="1" index="first" height="100" fontSize="70" selected="true"/>
<item alpha="0" index="end" height="0" />
</menu>
</layout>

View File

@ -386,7 +386,7 @@ void ScrollingList::Update(float dt)
}
else if(CurrentScrollState == ScrollStateIdle && readyToScroll)
{
ScrollPeriod = 0.500;
ScrollPeriod = 0.250;
// check to see if requested to scroll
if(RequestedScrollDirection != ScrollDirectionIdle)
{
@ -426,10 +426,10 @@ void ScrollingList::Update(float dt)
else if(CurrentScrollState == ScrollStateActive)
{
ScrollPeriod -= 0.050f;
if(ScrollPeriod < 0.050)
ScrollPeriod -= 0.075f;
if(ScrollPeriod < 0)
{
ScrollPeriod = 0.050f;
ScrollPeriod = 0.00f;
}
Click(ScrollPeriod);