Esempio n. 1
0
        private void BrowseButton_Click(object sender, EventArgs e)
        {
            var folderBrowseDialog = new FolderBrowserDialog();
            folderBrowseDialog.ShowNewFolderButton = false;
            folderBrowseDialog.Description = "Select the root Osu! folder";

            if(folderBrowseDialog.ShowDialog() == DialogResult.OK)
            {
                loader = new RankLoader(folderBrowseDialog.SelectedPath);

                DirectoryText.Text = folderBrowseDialog.SelectedPath;
                LoadBTN.Enabled = true;
                SaveBTN.Enabled = true;
            }
        }
Esempio n. 2
0
        public static void LoadOnlineData(ref RankLoader.ExtendedScoreType data)
        {
            var webClient = new WebClient();
            var response = webClient.DownloadString(string.Format(OnlineURI, data.MapHash, PlayerUsername, PlayerHash));
            var onlineData = OnlineData.ParseData(response);

            data.Online = onlineData;
        }
Esempio n. 3
0
 private RankLoader.DisplayExtendedScoreType[] ToDisplay(RankLoader.ExtendedScoreType[] scores)
 {
     var output = new RankLoader.DisplayExtendedScoreType[scores.Length];
     for(var i = 0; i < scores.Length; i++)
         output[i] = RankLoader.ParseDisplay(scores[i]);
     return output;
 }