*Forgot about FlipX control when added the Carousel stuff. This should fix the wrong navigation.

This commit is contained in:
dimok321 2009-07-12 15:17:23 +00:00
parent 58ceb5c8bb
commit 8620ab0702
2 changed files with 14 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -280,10 +280,19 @@ void GuiGameCarousel::Update(GuiTrigger * t)
btnRight->Update(t); btnRight->Update(t);
btnLeft->Update(t); btnLeft->Update(t);
if(btnRight->GetState() == STATE_CLICKED) if(btnRight->GetState() == STATE_CLICKED) {
NewOffset(listOffset, -1); if(Settings.xflip==sysmenu ||Settings.xflip==yes) {
else if(btnLeft->GetState() == STATE_CLICKED)
NewOffset(listOffset, 1); NewOffset(listOffset, 1);
} else {
NewOffset(listOffset, -1);
}
} else if(btnLeft->GetState() == STATE_CLICKED) {
if(Settings.xflip==sysmenu ||Settings.xflip==yes) {
NewOffset(listOffset, -1);
} else {
NewOffset(listOffset, 1);
}
}
int next = listOffset; int next = listOffset;