1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 14:02:55 +08:00

Don't store hideChevron

This commit is contained in:
DrabWeb 2017-05-26 16:32:46 -03:00
parent 4c127a6130
commit c9971bb490

View File

@ -24,11 +24,10 @@ namespace osu.Game.Graphics.UserInterface
var tIndex = TabContainer.IndexOf(t);
var tabIndex = TabContainer.IndexOf(TabMap[tab]);
var hide = tIndex < tabIndex;
var hideChevron = tIndex <= tabIndex;
t.FadeTo(hide ? 0f : 1f, 500, EasingTypes.OutQuint);
t.ScaleTo(new Vector2(hide ? 0.8f : 1f, 1f), 500, EasingTypes.OutQuint);
((BreadcrumbTabItem)t).Chevron.FadeTo(hideChevron ? 0f : 1f, 500, EasingTypes.OutQuint);
((BreadcrumbTabItem)t).Chevron.FadeTo(tIndex <= tabIndex ? 0f : 1f, 500, EasingTypes.OutQuint);
}
};
}