コード例 #1
0
 public TestSceneDeleteLocalScore()
 {
     Children = new Drawable[]
     {
         contextMenuContainer = new OsuContextMenuContainer
         {
             RelativeSizeAxes = Axes.Both,
             Child            = leaderboard = new BeatmapLeaderboard
             {
                 Origin  = Anchor.Centre,
                 Anchor  = Anchor.Centre,
                 Size    = new Vector2(550f, 450f),
                 Scope   = BeatmapLeaderboardScope.Local,
                 Beatmap = new BeatmapInfo
                 {
                     ID       = 1,
                     Metadata = new BeatmapMetadata
                     {
                         ID     = 1,
                         Title  = "TestSong",
                         Artist = "TestArtist",
                         Author = new User
                         {
                             Username = "******"
                         },
                     },
                     Version = "Insane"
                 },
             }
         },
         dialogOverlay = new DialogOverlay()
     };
 }
コード例 #2
0
 public TestSceneDeleteLocalScore()
 {
     Children = new Drawable[]
     {
         contextMenuContainer = new OsuContextMenuContainer
         {
             RelativeSizeAxes = Axes.Both,
             Child            = leaderboard = new BeatmapLeaderboard
             {
                 Origin      = Anchor.Centre,
                 Anchor      = Anchor.Centre,
                 Size        = new Vector2(550f, 450f),
                 Scope       = BeatmapLeaderboardScope.Local,
                 BeatmapInfo = TestResources.CreateTestBeatmapSetInfo().Beatmaps.First()
             }
         },
         dialogOverlay = new DialogOverlay()
     };
 }