mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-01-26 17:54:46 +01:00
Changing menu list offsets (edited online with Bitbucket)
This commit is contained in:
parent
54e954efcc
commit
bf7a347511
@ -628,6 +628,7 @@ void PageBuilder::BuildVerticalMenu(ScrollingList *menu, xml_node<> *menuXml, xm
|
||||
ViewInfo *viewInfo = CreateMenuItemInfo(component, itemDefaults, menu->GetBaseViewInfo()->GetY() + height);
|
||||
points->push_back(viewInfo);
|
||||
tweenPoints->push_back(CreateTweenInstance(component));
|
||||
height += viewInfo->GetHeight();
|
||||
}
|
||||
while(!end)
|
||||
{
|
||||
@ -662,11 +663,11 @@ void PageBuilder::BuildVerticalMenu(ScrollingList *menu, xml_node<> *menuXml, xm
|
||||
nextHeight = height + viewInfo->GetHeight() + itemSpacing;
|
||||
}
|
||||
|
||||
height = nextHeight;
|
||||
viewInfo->SetY(menu->GetBaseViewInfo()->GetY() + (float)height);
|
||||
points->push_back(viewInfo);
|
||||
tweenPoints->push_back(CreateTweenInstance(component));
|
||||
index++;
|
||||
height = nextHeight;
|
||||
}
|
||||
|
||||
//menu end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user