예제 #1
0
 /// <summary>
 ///     Creates the interface to select between different leaderboard sections.
 /// </summary>
 private void CreateLeaderboardSelector() => LeaderboardSelector = new LeaderboardSelector(this, new List <LeaderboardSelectorItem>()
 {
     new LeaderboardSelectorItemRankings(LeaderboardType.Local, "Local Scores"),
     new LeaderboardSelectorItemRankings(LeaderboardType.Global, "Global Scores")
 })
 {
     Parent = Container
 };
예제 #2
0
        /// <summary>
        ///     Called when the screen is exiting
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OnScreenExiting(object sender, ScreenExitingEventArgs e)
        {
            if (Screen is SelectScreen screen && !screen.IsExitingToGameplay)
            {
                return;
            }

            MapsetScrollContainer.MoveToX(MapsetScrollContainer.Width, Easing.OutQuint, 400);
            DifficultyScrollContainer.MoveToX(DifficultyScrollContainer.Width, Easing.OutQuint, 400);
            SearchContainer.MoveToX(SearchContainer.Width, Easing.OutQuint, 400);
            Banner.MoveToX(-Banner.Width, Easing.OutQuint, 400);
            LeaderboardSelector.MoveToX(-LeaderboardSelector.Width, Easing.OutQuint, 400);
            Leaderboard.MoveToX(-Leaderboard.Width, Easing.OutQuint, 400);
        }