mirror of
https://github.com/osukey/osukey.git
synced 2025-05-17 11:37:32 +09:00
Merge branch 'master' of https://github.com/ppy/osu
This commit is contained in:
commit
a8271d02d8
1
.gitignore
vendored
1
.gitignore
vendored
@ -256,3 +256,4 @@ paket-files/
|
|||||||
# Python Tools for Visual Studio (PTVS)
|
# Python Tools for Visual Studio (PTVS)
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.pyc
|
*.pyc
|
||||||
|
Staging/
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit eae237f6a7e2a6e7d7c621b2382bb08de2b470b8
|
Subproject commit 1cd7a165ec42cd1eeb4eee06b5a4a6cdd8c280da
|
@ -1 +1 @@
|
|||||||
Subproject commit 2a3dd3f3dd68fe52b779d0fdded3ce444897efee
|
Subproject commit 51f2b9b37f38cd349a3dd728a78f8fffcb3a54f5
|
28
osu.Desktop.Deploy/App.config
Normal file
28
osu.Desktop.Deploy/App.config
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<configuration>
|
||||||
|
<appSettings>
|
||||||
|
<add key="StagingFolder" value="Staging" />
|
||||||
|
<add key="ReleasesFolder" value="Releases" />
|
||||||
|
<add key="GitHubAccessToken" value="" />
|
||||||
|
<add key="GitHubUsername" value="ppy" />
|
||||||
|
<add key="GitHubRepoName" value="osu" />
|
||||||
|
<add key="ProjectName" value="osu.Desktop" />
|
||||||
|
<add key="NuSpecName" value="osu.Desktop\osu.nuspec" />
|
||||||
|
<add key="SolutionName" value="osu" />
|
||||||
|
<add key="TargetName" value="Client\osu.Desktop" />
|
||||||
|
<add key="PackageName" value="osulazer" />
|
||||||
|
<add key="IconName" value="lazer.ico" />
|
||||||
|
<add key="CodeSigningCertificate" value="" />
|
||||||
|
</appSettings>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
|
||||||
|
</startup>
|
||||||
|
<runtime>
|
||||||
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
</assemblyBinding>
|
||||||
|
</runtime>
|
||||||
|
</configuration>
|
13
osu.Desktop.Deploy/GitHubObject.cs
Normal file
13
osu.Desktop.Deploy/GitHubObject.cs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace osu.Desktop.Deploy
|
||||||
|
{
|
||||||
|
internal class GitHubObject
|
||||||
|
{
|
||||||
|
[JsonProperty(@"id")]
|
||||||
|
public int Id;
|
||||||
|
|
||||||
|
[JsonProperty(@"name")]
|
||||||
|
public string Name;
|
||||||
|
}
|
||||||
|
}
|
25
osu.Desktop.Deploy/GitHubRelease.cs
Normal file
25
osu.Desktop.Deploy/GitHubRelease.cs
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace osu.Desktop.Deploy
|
||||||
|
{
|
||||||
|
internal class GitHubRelease
|
||||||
|
{
|
||||||
|
[JsonProperty(@"id")]
|
||||||
|
public int Id;
|
||||||
|
|
||||||
|
[JsonProperty(@"tag_name")]
|
||||||
|
public string TagName => $"v{Name}";
|
||||||
|
|
||||||
|
[JsonProperty(@"name")]
|
||||||
|
public string Name;
|
||||||
|
|
||||||
|
[JsonProperty(@"draft")]
|
||||||
|
public bool Draft;
|
||||||
|
|
||||||
|
[JsonProperty(@"prerelease")]
|
||||||
|
public bool PreRelease;
|
||||||
|
|
||||||
|
[JsonProperty(@"upload_url")]
|
||||||
|
public string UploadUrl;
|
||||||
|
}
|
||||||
|
}
|
417
osu.Desktop.Deploy/Program.cs
Normal file
417
osu.Desktop.Deploy/Program.cs
Normal file
@ -0,0 +1,417 @@
|
|||||||
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
// Licensed under the MIT Licence - https://raw.GitHubusercontent.com/ppy/osu-framework/master/LICENCE
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Net;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using osu.Framework.IO.Network;
|
||||||
|
using FileWebRequest = osu.Framework.IO.Network.FileWebRequest;
|
||||||
|
using WebRequest = osu.Framework.IO.Network.WebRequest;
|
||||||
|
|
||||||
|
namespace osu.Desktop.Deploy
|
||||||
|
{
|
||||||
|
internal static class Program
|
||||||
|
{
|
||||||
|
private const string nuget_path = @"packages\NuGet.CommandLine.3.5.0\tools\NuGet.exe";
|
||||||
|
private const string squirrel_path = @"packages\squirrel.windows.1.5.2\tools\Squirrel.exe";
|
||||||
|
private const string msbuild_path = @"C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe";
|
||||||
|
|
||||||
|
public static string StagingFolder = ConfigurationManager.AppSettings["StagingFolder"];
|
||||||
|
public static string ReleasesFolder = ConfigurationManager.AppSettings["ReleasesFolder"];
|
||||||
|
public static string GitHubAccessToken = ConfigurationManager.AppSettings["GitHubAccessToken"];
|
||||||
|
public static string GitHubUsername = ConfigurationManager.AppSettings["GitHubUsername"];
|
||||||
|
public static string GitHubRepoName = ConfigurationManager.AppSettings["GitHubRepoName"];
|
||||||
|
public static string SolutionName = ConfigurationManager.AppSettings["SolutionName"];
|
||||||
|
public static string ProjectName = ConfigurationManager.AppSettings["ProjectName"];
|
||||||
|
public static string NuSpecName = ConfigurationManager.AppSettings["NuSpecName"];
|
||||||
|
public static string TargetName = ConfigurationManager.AppSettings["TargetName"];
|
||||||
|
public static string PackageName = ConfigurationManager.AppSettings["PackageName"];
|
||||||
|
public static string IconName = ConfigurationManager.AppSettings["IconName"];
|
||||||
|
public static string CodeSigningCertificate = ConfigurationManager.AppSettings["CodeSigningCertificate"];
|
||||||
|
|
||||||
|
public static string GitHubApiEndpoint => $"https://api.github.com/repos/{GitHubUsername}/{GitHubRepoName}/releases";
|
||||||
|
public static string GitHubReleasePage => $"https://github.com/{GitHubUsername}/{GitHubRepoName}/releases";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// How many previous build deltas we want to keep when publishing.
|
||||||
|
/// </summary>
|
||||||
|
const int keep_delta_count = 3;
|
||||||
|
|
||||||
|
private static string codeSigningCmd => string.IsNullOrEmpty(codeSigningPassword) ? "" : $"-n \"/a /f {codeSigningCertPath} /p {codeSigningPassword} /t http://timestamp.comodoca.com/authenticode\"";
|
||||||
|
|
||||||
|
private static string homeDir => Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
|
||||||
|
private static string codeSigningCertPath => Path.Combine(homeDir, CodeSigningCertificate);
|
||||||
|
private static string solutionPath => Environment.CurrentDirectory;
|
||||||
|
private static string stagingPath => Path.Combine(solutionPath, StagingFolder);
|
||||||
|
private static string iconPath => Path.Combine(solutionPath, ProjectName, IconName);
|
||||||
|
|
||||||
|
private static string nupkgFilename(string ver) => $"{PackageName}.{ver}.nupkg";
|
||||||
|
private static string nupkgDistroFilename(string ver) => $"{PackageName}-{ver}-full.nupkg";
|
||||||
|
|
||||||
|
private static Stopwatch sw = new Stopwatch();
|
||||||
|
|
||||||
|
private static string codeSigningPassword;
|
||||||
|
|
||||||
|
public static void Main(string[] args)
|
||||||
|
{
|
||||||
|
displayHeader();
|
||||||
|
|
||||||
|
findSolutionPath();
|
||||||
|
|
||||||
|
if (!Directory.Exists(ReleasesFolder))
|
||||||
|
{
|
||||||
|
write("WARNING: No release directory found. Make sure you want this!", ConsoleColor.Yellow);
|
||||||
|
Directory.CreateDirectory(ReleasesFolder);
|
||||||
|
}
|
||||||
|
|
||||||
|
checkGitHubReleases();
|
||||||
|
|
||||||
|
refreshDirectory(StagingFolder);
|
||||||
|
|
||||||
|
//increment build number until we have a unique one.
|
||||||
|
string verBase = DateTime.Now.ToString("yyyy.Md.");
|
||||||
|
int increment = 0;
|
||||||
|
while (Directory.GetFiles(ReleasesFolder, $"*{verBase}{increment}*").Any())
|
||||||
|
increment++;
|
||||||
|
|
||||||
|
string version = $"{verBase}{increment}";
|
||||||
|
|
||||||
|
Console.ForegroundColor = ConsoleColor.White;
|
||||||
|
Console.Write($"Ready to deploy {version}: ");
|
||||||
|
Console.ReadLine();
|
||||||
|
|
||||||
|
sw.Start();
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(CodeSigningCertificate))
|
||||||
|
{
|
||||||
|
Console.Write("Enter code signing password: ");
|
||||||
|
codeSigningPassword = readLineMasked();
|
||||||
|
}
|
||||||
|
|
||||||
|
write("Restoring NuGet packages...");
|
||||||
|
runCommand(nuget_path, "restore " + solutionPath);
|
||||||
|
|
||||||
|
write("Updating AssemblyInfo...");
|
||||||
|
updateAssemblyInfo(version);
|
||||||
|
|
||||||
|
write("Running build process...");
|
||||||
|
runCommand(msbuild_path, $"/v:quiet /m /t:{TargetName.Replace('.', '_')} /p:OutputPath={stagingPath};Configuration=Release {SolutionName}.sln");
|
||||||
|
|
||||||
|
write("Creating NuGet deployment package...");
|
||||||
|
runCommand(nuget_path, $"pack {NuSpecName} -Version {version} -Properties Configuration=Deploy -OutputDirectory {stagingPath} -BasePath {stagingPath}");
|
||||||
|
|
||||||
|
//prune once before checking for files so we can avoid erroring on files which aren't even needed for this build.
|
||||||
|
pruneReleases();
|
||||||
|
|
||||||
|
checkReleaseFiles();
|
||||||
|
|
||||||
|
write("Running squirrel build...");
|
||||||
|
runCommand(squirrel_path, $"--releasify {stagingPath}\\{nupkgFilename(version)} --setupIcon {iconPath} --icon {iconPath} {codeSigningCmd} --no-msi");
|
||||||
|
|
||||||
|
//prune again to clean up before upload.
|
||||||
|
pruneReleases();
|
||||||
|
|
||||||
|
//rename setup to install.
|
||||||
|
File.Copy(Path.Combine(ReleasesFolder, "Setup.exe"), Path.Combine(ReleasesFolder, "install.exe"), true);
|
||||||
|
File.Delete(Path.Combine(ReleasesFolder, "Setup.exe"));
|
||||||
|
|
||||||
|
uploadBuild(version);
|
||||||
|
|
||||||
|
write("Done!", ConsoleColor.White);
|
||||||
|
Console.ReadLine();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void displayHeader()
|
||||||
|
{
|
||||||
|
Console.ForegroundColor = ConsoleColor.Red;
|
||||||
|
Console.WriteLine();
|
||||||
|
Console.WriteLine(" Please note that OSU! and PPY are registered trademarks and as such covered by trademark law.");
|
||||||
|
Console.WriteLine(" Do not distribute builds of this project publicly that make use of these.");
|
||||||
|
Console.ResetColor();
|
||||||
|
Console.WriteLine();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Ensure we have all the files in the release directory which are expected to be there.
|
||||||
|
/// This should have been accounted for in earlier steps, and just serves as a verification step.
|
||||||
|
/// </summary>
|
||||||
|
private static void checkReleaseFiles()
|
||||||
|
{
|
||||||
|
var releaseLines = getReleaseLines();
|
||||||
|
|
||||||
|
//ensure we have all files necessary
|
||||||
|
foreach (var l in releaseLines)
|
||||||
|
if (!File.Exists(Path.Combine(ReleasesFolder, l.Filename)))
|
||||||
|
error($"Local file missing {l.Filename}");
|
||||||
|
}
|
||||||
|
|
||||||
|
private static IEnumerable<ReleaseLine> getReleaseLines() => File.ReadAllLines(Path.Combine(ReleasesFolder, "RELEASES")).Select(l => new ReleaseLine(l));
|
||||||
|
|
||||||
|
private static void pruneReleases()
|
||||||
|
{
|
||||||
|
write("Pruning RELEASES...");
|
||||||
|
|
||||||
|
var releaseLines = getReleaseLines().ToList();
|
||||||
|
|
||||||
|
var fulls = releaseLines.Where(l => l.Filename.Contains("-full")).Reverse().Skip(1);
|
||||||
|
|
||||||
|
//remove any FULL releases (except most recent)
|
||||||
|
foreach (var l in fulls)
|
||||||
|
{
|
||||||
|
write($"- Removing old release {l.Filename}", ConsoleColor.Yellow);
|
||||||
|
File.Delete(Path.Combine(ReleasesFolder, l.Filename));
|
||||||
|
releaseLines.Remove(l);
|
||||||
|
}
|
||||||
|
|
||||||
|
//remove excess deltas
|
||||||
|
var deltas = releaseLines.Where(l => l.Filename.Contains("-delta"));
|
||||||
|
if (deltas.Count() > keep_delta_count)
|
||||||
|
{
|
||||||
|
foreach (var l in deltas.Take(deltas.Count() - keep_delta_count))
|
||||||
|
{
|
||||||
|
write($"- Removing old delta {l.Filename}", ConsoleColor.Yellow);
|
||||||
|
File.Delete(Path.Combine(ReleasesFolder, l.Filename));
|
||||||
|
releaseLines.Remove(l);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var lines = new List<string>();
|
||||||
|
releaseLines.ForEach(l => lines.Add(l.ToString()));
|
||||||
|
File.WriteAllLines(Path.Combine(ReleasesFolder, "RELEASES"), lines);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void uploadBuild(string version)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(GitHubAccessToken) || string.IsNullOrEmpty(codeSigningCertPath))
|
||||||
|
return;
|
||||||
|
|
||||||
|
write("Publishing to GitHub...");
|
||||||
|
|
||||||
|
write($"- Creating release {version}...", ConsoleColor.Yellow);
|
||||||
|
var req = new JsonWebRequest<GitHubRelease>($"{GitHubApiEndpoint}")
|
||||||
|
{
|
||||||
|
Method = HttpMethod.POST
|
||||||
|
};
|
||||||
|
req.AddRaw(JsonConvert.SerializeObject(new GitHubRelease
|
||||||
|
{
|
||||||
|
Name = version,
|
||||||
|
Draft = true,
|
||||||
|
PreRelease = true
|
||||||
|
}));
|
||||||
|
req.AuthenticatedBlockingPerform();
|
||||||
|
|
||||||
|
var assetUploadUrl = req.ResponseObject.UploadUrl.Replace("{?name,label}", "?name={0}");
|
||||||
|
foreach (var a in Directory.GetFiles(ReleasesFolder).Reverse()) //reverse to upload RELEASES first.
|
||||||
|
{
|
||||||
|
write($"- Adding asset {a}...", ConsoleColor.Yellow);
|
||||||
|
var upload = new WebRequest(assetUploadUrl, Path.GetFileName(a))
|
||||||
|
{
|
||||||
|
Method = HttpMethod.POST,
|
||||||
|
ContentType = "application/octet-stream",
|
||||||
|
};
|
||||||
|
|
||||||
|
upload.AddRaw(File.ReadAllBytes(a));
|
||||||
|
upload.AuthenticatedBlockingPerform();
|
||||||
|
}
|
||||||
|
|
||||||
|
openGitHubReleasePage();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void openGitHubReleasePage() => Process.Start(GitHubReleasePage);
|
||||||
|
|
||||||
|
private static void checkGitHubReleases()
|
||||||
|
{
|
||||||
|
write("Checking GitHub releases...");
|
||||||
|
var req = new JsonWebRequest<List<GitHubRelease>>($"{GitHubApiEndpoint}");
|
||||||
|
req.AuthenticatedBlockingPerform();
|
||||||
|
|
||||||
|
var lastRelease = req.ResponseObject.FirstOrDefault();
|
||||||
|
|
||||||
|
if (lastRelease == null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (lastRelease.Draft)
|
||||||
|
{
|
||||||
|
openGitHubReleasePage();
|
||||||
|
error("There's a pending draft release! You probably don't want to push a build with this present.");
|
||||||
|
}
|
||||||
|
|
||||||
|
//there's a previous release for this project.
|
||||||
|
var assetReq = new JsonWebRequest<List<GitHubObject>>($"{GitHubApiEndpoint}/{lastRelease.Id}/assets");
|
||||||
|
assetReq.AuthenticatedBlockingPerform();
|
||||||
|
var assets = assetReq.ResponseObject;
|
||||||
|
|
||||||
|
//make sure our RELEASES file is the same as the last build on the server.
|
||||||
|
var releaseAsset = assets.FirstOrDefault(a => a.Name == "RELEASES");
|
||||||
|
|
||||||
|
//if we don't have a RELEASES asset then the previous release likely wasn't a Squirrel one.
|
||||||
|
if (releaseAsset == null) return;
|
||||||
|
|
||||||
|
write($"Last GitHub release was {lastRelease.Name}.");
|
||||||
|
|
||||||
|
bool requireDownload = false;
|
||||||
|
|
||||||
|
if (!File.Exists(Path.Combine(ReleasesFolder, nupkgDistroFilename(lastRelease.Name))))
|
||||||
|
{
|
||||||
|
write("Last verion's package not found locally.", ConsoleColor.Red);
|
||||||
|
requireDownload = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
var lastReleases = new RawFileWebRequest($"{GitHubApiEndpoint}/assets/{releaseAsset.Id}");
|
||||||
|
lastReleases.AuthenticatedBlockingPerform();
|
||||||
|
if (File.ReadAllText(Path.Combine(ReleasesFolder, "RELEASES")) != lastReleases.ResponseString)
|
||||||
|
{
|
||||||
|
write("Server's RELEASES differed from ours.", ConsoleColor.Red);
|
||||||
|
requireDownload = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!requireDownload) return;
|
||||||
|
|
||||||
|
write("Refreshing local releases directory...");
|
||||||
|
refreshDirectory(ReleasesFolder);
|
||||||
|
|
||||||
|
foreach (var a in assets)
|
||||||
|
{
|
||||||
|
write($"- Downloading {a.Name}...", ConsoleColor.Yellow);
|
||||||
|
new FileWebRequest(Path.Combine(ReleasesFolder, a.Name), $"{GitHubApiEndpoint}/assets/{a.Id}").AuthenticatedBlockingPerform();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void refreshDirectory(string directory)
|
||||||
|
{
|
||||||
|
if (Directory.Exists(directory))
|
||||||
|
Directory.Delete(directory, true);
|
||||||
|
Directory.CreateDirectory(directory);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void updateAssemblyInfo(string version)
|
||||||
|
{
|
||||||
|
string file = Path.Combine(ProjectName, "Properties", "AssemblyInfo.cs");
|
||||||
|
|
||||||
|
var l1 = File.ReadAllLines(file);
|
||||||
|
List<string> l2 = new List<string>();
|
||||||
|
foreach (var l in l1)
|
||||||
|
{
|
||||||
|
if (l.StartsWith("[assembly: AssemblyVersion("))
|
||||||
|
l2.Add($"[assembly: AssemblyVersion(\"{version}\")]");
|
||||||
|
else if (l.StartsWith("[assembly: AssemblyFileVersion("))
|
||||||
|
l2.Add($"[assembly: AssemblyFileVersion(\"{version}\")]");
|
||||||
|
else
|
||||||
|
l2.Add(l);
|
||||||
|
}
|
||||||
|
|
||||||
|
File.WriteAllLines(file, l2);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Find the base path of the active solution (git checkout location)
|
||||||
|
/// </summary>
|
||||||
|
private static void findSolutionPath()
|
||||||
|
{
|
||||||
|
string path = Path.GetDirectoryName(Environment.CommandLine.Replace("\"", "").Trim());
|
||||||
|
|
||||||
|
if (string.IsNullOrEmpty(path))
|
||||||
|
path = Environment.CurrentDirectory;
|
||||||
|
|
||||||
|
while (!File.Exists(Path.Combine(path, $"{SolutionName}.sln")))
|
||||||
|
path = path.Remove(path.LastIndexOf('\\'));
|
||||||
|
path += "\\";
|
||||||
|
|
||||||
|
Environment.CurrentDirectory = path;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static bool runCommand(string command, string args)
|
||||||
|
{
|
||||||
|
var psi = new ProcessStartInfo(command, args)
|
||||||
|
{
|
||||||
|
WorkingDirectory = solutionPath,
|
||||||
|
CreateNoWindow = true,
|
||||||
|
RedirectStandardOutput = true,
|
||||||
|
UseShellExecute = false,
|
||||||
|
WindowStyle = ProcessWindowStyle.Hidden
|
||||||
|
};
|
||||||
|
|
||||||
|
Process p = Process.Start(psi);
|
||||||
|
string output = p.StandardOutput.ReadToEnd();
|
||||||
|
if (p.ExitCode == 0) return true;
|
||||||
|
|
||||||
|
write(output);
|
||||||
|
error($"Command {command} {args} failed!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static string readLineMasked()
|
||||||
|
{
|
||||||
|
var fg = Console.ForegroundColor;
|
||||||
|
Console.ForegroundColor = Console.BackgroundColor;
|
||||||
|
var ret = Console.ReadLine();
|
||||||
|
Console.ForegroundColor = fg;
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void error(string message)
|
||||||
|
{
|
||||||
|
Console.ForegroundColor = ConsoleColor.Red;
|
||||||
|
Console.WriteLine($"FATAL ERROR: {message}");
|
||||||
|
|
||||||
|
Console.ReadLine();
|
||||||
|
Environment.Exit(-1);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void write(string message, ConsoleColor col = ConsoleColor.Gray)
|
||||||
|
{
|
||||||
|
if (sw.ElapsedMilliseconds > 0)
|
||||||
|
{
|
||||||
|
Console.ForegroundColor = ConsoleColor.Green;
|
||||||
|
Console.Write(sw.ElapsedMilliseconds.ToString().PadRight(8));
|
||||||
|
}
|
||||||
|
Console.ForegroundColor = col;
|
||||||
|
Console.WriteLine(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void AuthenticatedBlockingPerform(this WebRequest r)
|
||||||
|
{
|
||||||
|
r.AddHeader("Authorization", $"token {GitHubAccessToken}");
|
||||||
|
r.BlockingPerform();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
internal class RawFileWebRequest : WebRequest
|
||||||
|
{
|
||||||
|
public RawFileWebRequest(string url) : base(url)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override HttpWebRequest CreateWebRequest(string requestString = null)
|
||||||
|
{
|
||||||
|
var req = base.CreateWebRequest(requestString);
|
||||||
|
req.Accept = "application/octet-stream";
|
||||||
|
return req;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
internal class ReleaseLine
|
||||||
|
{
|
||||||
|
public string Hash;
|
||||||
|
public string Filename;
|
||||||
|
public int Filesize;
|
||||||
|
|
||||||
|
public ReleaseLine(string line)
|
||||||
|
{
|
||||||
|
var split = line.Split(' ');
|
||||||
|
Hash = split[0];
|
||||||
|
Filename = split[1];
|
||||||
|
Filesize = int.Parse(split[2]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override string ToString() => $"{Hash} {Filename} {Filesize}";
|
||||||
|
}
|
||||||
|
}
|
36
osu.Desktop.Deploy/Properties/AssemblyInfo.cs
Normal file
36
osu.Desktop.Deploy/Properties/AssemblyInfo.cs
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
using System.Reflection;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
// General Information about an assembly is controlled through the following
|
||||||
|
// set of attributes. Change these attribute values to modify the information
|
||||||
|
// associated with an assembly.
|
||||||
|
[assembly: AssemblyTitle("osu.Desktop.Deploy")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("osu.Desktop.Deploy")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © 2017")]
|
||||||
|
[assembly: AssemblyTrademark("")]
|
||||||
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
// Setting ComVisible to false makes the types in this assembly not visible
|
||||||
|
// to COM components. If you need to access a type in this assembly from
|
||||||
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
|
[assembly: Guid("baea2f74-0315-4667-84e0-acac0b4bf785")]
|
||||||
|
|
||||||
|
// Version information for an assembly consists of the following four values:
|
||||||
|
//
|
||||||
|
// Major Version
|
||||||
|
// Minor Version
|
||||||
|
// Build Number
|
||||||
|
// Revision
|
||||||
|
//
|
||||||
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
|
// by using the '*' as shown below:
|
||||||
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
125
osu.Desktop.Deploy/osu.Desktop.Deploy.csproj
Normal file
125
osu.Desktop.Deploy/osu.Desktop.Deploy.csproj
Normal file
@ -0,0 +1,125 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{BAEA2F74-0315-4667-84E0-ACAC0B4BF785}</ProjectGuid>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>osu.Desktop.Deploy</RootNamespace>
|
||||||
|
<AssemblyName>osu.Desktop.Deploy</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<StartupObject>osu.Desktop.Deploy.Program</StartupObject>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="DeltaCompressionDotNet, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1d14d6e5194e7f4a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\DeltaCompressionDotNet.1.0.0\lib\net45\DeltaCompressionDotNet.dll</HintPath>
|
||||||
|
<Private>True</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="DeltaCompressionDotNet.MsDelta, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46b2138a390abf55, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\DeltaCompressionDotNet.1.0.0\lib\net45\DeltaCompressionDotNet.MsDelta.dll</HintPath>
|
||||||
|
<Private>True</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="DeltaCompressionDotNet.PatchApi, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3e8888ee913ed789, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\DeltaCompressionDotNet.1.0.0\lib\net45\DeltaCompressionDotNet.PatchApi.dll</HintPath>
|
||||||
|
<Private>True</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\squirrel.windows.1.5.2\lib\Net45\ICSharpCode.SharpZipLib.dll</HintPath>
|
||||||
|
<Private>True</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Mono.Cecil, Version=0.9.6.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\Mono.Cecil.0.9.6.1\lib\net45\Mono.Cecil.dll</HintPath>
|
||||||
|
<Private>True</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Mono.Cecil.Mdb, Version=0.9.6.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\Mono.Cecil.0.9.6.1\lib\net45\Mono.Cecil.Mdb.dll</HintPath>
|
||||||
|
<Private>True</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Mono.Cecil.Pdb, Version=0.9.6.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\Mono.Cecil.0.9.6.1\lib\net45\Mono.Cecil.Pdb.dll</HintPath>
|
||||||
|
<Private>True</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Mono.Cecil.Rocks, Version=0.9.6.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\Mono.Cecil.0.9.6.1\lib\net45\Mono.Cecil.Rocks.dll</HintPath>
|
||||||
|
<Private>True</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||||
|
<Private>True</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="NuGet.Squirrel, Version=3.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\squirrel.windows.1.5.2\lib\Net45\NuGet.Squirrel.dll</HintPath>
|
||||||
|
<Private>True</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Splat, Version=1.6.2.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\Splat.1.6.2\lib\Net45\Splat.dll</HintPath>
|
||||||
|
<Private>True</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Squirrel, Version=1.5.2.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\squirrel.windows.1.5.2\lib\Net45\Squirrel.dll</HintPath>
|
||||||
|
<Private>True</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Configuration" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="GitHubObject.cs" />
|
||||||
|
<Compile Include="GitHubRelease.cs" />
|
||||||
|
<Compile Include="Program.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="App.config" />
|
||||||
|
<None Include="packages.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\osu-framework\osu.Framework.Desktop\osu.Framework.Desktop.csproj">
|
||||||
|
<Project>{65dc628f-a640-4111-ab35-3a5652bc1e17}</Project>
|
||||||
|
<Name>osu.Framework.Desktop</Name>
|
||||||
|
</ProjectReference>
|
||||||
|
<ProjectReference Include="..\osu-framework\osu.Framework\osu.Framework.csproj">
|
||||||
|
<Project>{C76BF5B3-985E-4D39-95FE-97C9C879B83A}</Project>
|
||||||
|
<Name>osu.Framework</Name>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
<Target Name="BeforeBuild">
|
||||||
|
</Target>
|
||||||
|
<Target Name="AfterBuild">
|
||||||
|
</Target>
|
||||||
|
-->
|
||||||
|
</Project>
|
9
osu.Desktop.Deploy/packages.config
Normal file
9
osu.Desktop.Deploy/packages.config
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<packages>
|
||||||
|
<package id="DeltaCompressionDotNet" version="1.0.0" targetFramework="net452" />
|
||||||
|
<package id="Mono.Cecil" version="0.9.6.1" targetFramework="net452" />
|
||||||
|
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net452" />
|
||||||
|
<package id="NuGet.CommandLine" version="3.5.0" targetFramework="net452" developmentDependency="true" />
|
||||||
|
<package id="Splat" version="1.6.2" targetFramework="net452" />
|
||||||
|
<package id="squirrel.windows" version="1.5.2" targetFramework="net452" />
|
||||||
|
</packages>
|
@ -1,4 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
-->
|
||||||
<configuration>
|
<configuration>
|
||||||
<runtime>
|
<runtime>
|
||||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
|
@ -100,6 +100,9 @@
|
|||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<None Include="..\osu.licenseheader">
|
||||||
|
<Link>osu.licenseheader</Link>
|
||||||
|
</None>
|
||||||
<None Include="app.config" />
|
<None Include="app.config" />
|
||||||
<None Include="packages.config" />
|
<None Include="packages.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
-->
|
||||||
<packages>
|
<packages>
|
||||||
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net45" />
|
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net45" />
|
||||||
<package id="NUnit" version="3.5.0" targetFramework="net45" />
|
<package id="NUnit" version="3.5.0" targetFramework="net45" />
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<dllmap os="linux" dll="opengl32.dll" target="libGL.so.1"/>
|
<dllmap os="linux" dll="opengl32.dll" target="libGL.so.1"/>
|
||||||
<dllmap os="linux" dll="glu32.dll" target="libGLU.so.1"/>
|
<dllmap os="linux" dll="glu32.dll" target="libGLU.so.1"/>
|
||||||
|
@ -71,7 +71,7 @@ namespace osu.Desktop.VisualTests.Tests
|
|||||||
Add(flow = new FlowContainer
|
Add(flow = new FlowContainer
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Direction = FlowDirection.VerticalOnly
|
Direction = FlowDirections.Vertical
|
||||||
});
|
});
|
||||||
|
|
||||||
SpriteText loading;
|
SpriteText loading;
|
||||||
|
@ -26,8 +26,6 @@ namespace osu.Desktop.VisualTests.Tests
|
|||||||
|
|
||||||
progressingNotifications.Clear();
|
progressingNotifications.Clear();
|
||||||
|
|
||||||
AddInternal(new BackgroundModeDefault() { Depth = 10 });
|
|
||||||
|
|
||||||
Content.Add(manager = new NotificationManager
|
Content.Add(manager = new NotificationManager
|
||||||
{
|
{
|
||||||
Anchor = Anchor.TopRight,
|
Anchor = Anchor.TopRight,
|
||||||
|
@ -11,6 +11,7 @@ using System.Reflection;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
|
using osu.Game.Screens.Backgrounds;
|
||||||
|
|
||||||
namespace osu.Desktop.VisualTests
|
namespace osu.Desktop.VisualTests
|
||||||
{
|
{
|
||||||
@ -20,6 +21,8 @@ namespace osu.Desktop.VisualTests
|
|||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
|
|
||||||
|
(new BackgroundModeDefault() { Depth = 10 }).Preload(this, AddInternal);
|
||||||
|
|
||||||
// Have to construct this here, rather than in the constructor, because
|
// Have to construct this here, rather than in the constructor, because
|
||||||
// we depend on some dependencies to be loaded within OsuGameBase.load().
|
// we depend on some dependencies to be loaded within OsuGameBase.load().
|
||||||
Add(new TestBrowser());
|
Add(new TestBrowser());
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<runtime>
|
<runtime>
|
||||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
-->
|
-->
|
||||||
<packages>
|
<packages>
|
||||||
|
@ -20,27 +20,22 @@ namespace osu.Desktop.Beatmaps.IO
|
|||||||
public static void Register() => AddReader<LegacyFilesystemReader>((storage, path) => Directory.Exists(path));
|
public static void Register() => AddReader<LegacyFilesystemReader>((storage, path) => Directory.Exists(path));
|
||||||
|
|
||||||
private string basePath { get; set; }
|
private string basePath { get; set; }
|
||||||
private string[] beatmaps { get; set; }
|
|
||||||
private Beatmap firstMap { get; set; }
|
private Beatmap firstMap { get; set; }
|
||||||
|
|
||||||
public LegacyFilesystemReader(string path)
|
public LegacyFilesystemReader(string path)
|
||||||
{
|
{
|
||||||
basePath = path;
|
basePath = path;
|
||||||
beatmaps = Directory.GetFiles(basePath, @"*.osu").Select(f => Path.GetFileName(f)).ToArray();
|
BeatmapFilenames = Directory.GetFiles(basePath, @"*.osu").Select(f => Path.GetFileName(f)).ToArray();
|
||||||
if (beatmaps.Length == 0)
|
if (BeatmapFilenames.Length == 0)
|
||||||
throw new FileNotFoundException(@"This directory contains no beatmaps");
|
throw new FileNotFoundException(@"This directory contains no beatmaps");
|
||||||
using (var stream = new StreamReader(GetStream(beatmaps[0])))
|
StoryboardFilename = Directory.GetFiles(basePath, @"*.osb").Select(f => Path.GetFileName(f)).FirstOrDefault();
|
||||||
|
using (var stream = new StreamReader(GetStream(BeatmapFilenames[0])))
|
||||||
{
|
{
|
||||||
var decoder = BeatmapDecoder.GetDecoder(stream);
|
var decoder = BeatmapDecoder.GetDecoder(stream);
|
||||||
firstMap = decoder.Decode(stream);
|
firstMap = decoder.Decode(stream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string[] ReadBeatmaps()
|
|
||||||
{
|
|
||||||
return beatmaps;
|
|
||||||
}
|
|
||||||
|
|
||||||
public override Stream GetStream(string name)
|
public override Stream GetStream(string name)
|
||||||
{
|
{
|
||||||
return File.OpenRead(Path.Combine(basePath, name));
|
return File.OpenRead(Path.Combine(basePath, name));
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
using osu.Framework.Allocation;
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Game.Graphics.Sprites;
|
using osu.Game.Graphics.Sprites;
|
||||||
@ -6,6 +9,10 @@ using osu.Game.Overlays;
|
|||||||
using osu.Game.Overlays.Notifications;
|
using osu.Game.Overlays.Notifications;
|
||||||
using Squirrel;
|
using Squirrel;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
using osu.Framework.Graphics.Sprites;
|
||||||
|
using osu.Framework.Graphics.Textures;
|
||||||
|
using osu.Game.Graphics;
|
||||||
|
using OpenTK;
|
||||||
|
|
||||||
namespace osu.Desktop.Overlays
|
namespace osu.Desktop.Overlays
|
||||||
{
|
{
|
||||||
@ -14,20 +21,65 @@ namespace osu.Desktop.Overlays
|
|||||||
private UpdateManager updateManager;
|
private UpdateManager updateManager;
|
||||||
private NotificationManager notification;
|
private NotificationManager notification;
|
||||||
|
|
||||||
|
protected override bool HideOnEscape => false;
|
||||||
|
|
||||||
|
public override bool HandleInput => false;
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(NotificationManager notification)
|
private void load(NotificationManager notification, OsuColour colours, TextureStore textures)
|
||||||
{
|
{
|
||||||
this.notification = notification;
|
this.notification = notification;
|
||||||
|
|
||||||
AutoSizeAxes = Axes.Both;
|
AutoSizeAxes = Axes.Both;
|
||||||
Anchor = Anchor.BottomCentre;
|
Anchor = Anchor.BottomCentre;
|
||||||
Origin = Anchor.BottomCentre;
|
Origin = Anchor.BottomCentre;
|
||||||
|
Alpha = 0;
|
||||||
|
|
||||||
var asm = Assembly.GetEntryAssembly().GetName();
|
var asm = Assembly.GetEntryAssembly().GetName();
|
||||||
Add(new OsuSpriteText
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
Text = $@"osu!lazer v{asm.Version}"
|
new FlowContainer
|
||||||
});
|
{
|
||||||
|
AutoSizeAxes = Axes.Both,
|
||||||
|
Direction = FlowDirections.Vertical,
|
||||||
|
Children = new Drawable[]
|
||||||
|
{
|
||||||
|
new FlowContainer
|
||||||
|
{
|
||||||
|
AutoSizeAxes = Axes.Both,
|
||||||
|
Direction = FlowDirections.Horizontal,
|
||||||
|
Anchor = Anchor.TopCentre,
|
||||||
|
Origin = Anchor.TopCentre,
|
||||||
|
Spacing = new Vector2(5),
|
||||||
|
Children = new Drawable[]
|
||||||
|
{
|
||||||
|
new OsuSpriteText
|
||||||
|
{
|
||||||
|
Font = @"Exo2.0-Bold",
|
||||||
|
Text = $@"osu!lazer"
|
||||||
|
},
|
||||||
|
new OsuSpriteText
|
||||||
|
{
|
||||||
|
Text = $@"{asm.Version.Major}.{asm.Version.Minor}.{asm.Version.Build}"
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
new OsuSpriteText
|
||||||
|
{
|
||||||
|
Anchor = Anchor.TopCentre,
|
||||||
|
Origin = Anchor.TopCentre,
|
||||||
|
TextSize = 12,
|
||||||
|
Colour = colours.Yellow,
|
||||||
|
Font = @"Venera",
|
||||||
|
Text = $@"Development Build"
|
||||||
|
},
|
||||||
|
new Sprite
|
||||||
|
{
|
||||||
|
Texture = textures.Get(@"Menu/dev-build-footer"),
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
updateChecker();
|
updateChecker();
|
||||||
}
|
}
|
||||||
@ -75,6 +127,7 @@ namespace osu.Desktop.Overlays
|
|||||||
|
|
||||||
protected override void PopIn()
|
protected override void PopIn()
|
||||||
{
|
{
|
||||||
|
FadeIn(1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void PopOut()
|
protected override void PopOut()
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
using System.Reflection;
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
@ -22,5 +25,5 @@ using System.Runtime.InteropServices;
|
|||||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
[assembly: Guid("55e28cb2-7b6c-4595-8dcc-9871d8aad7e9")]
|
[assembly: Guid("55e28cb2-7b6c-4595-8dcc-9871d8aad7e9")]
|
||||||
|
|
||||||
[assembly: AssemblyVersion("0.0.5")]
|
[assembly: AssemblyVersion("2017.212.0")]
|
||||||
[assembly: AssemblyFileVersion("0.0.5")]
|
[assembly: AssemblyFileVersion("2017.212.0")]
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
-->
|
||||||
<configuration>
|
<configuration>
|
||||||
<runtime>
|
<runtime>
|
||||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
|
25
osu.Desktop/osu.nuspec
Normal file
25
osu.Desktop/osu.nuspec
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
||||||
|
<metadata>
|
||||||
|
<id>osulazer</id>
|
||||||
|
<version>0.0.0</version>
|
||||||
|
<title>osulazer</title>
|
||||||
|
<authors>ppy Pty Ltd</authors>
|
||||||
|
<owners>Dean Herbert</owners>
|
||||||
|
<projectUrl>https://osu.ppy.sh/</projectUrl>
|
||||||
|
<iconUrl>https://puu.sh/tYyXZ/9a01a5d1b0.ico</iconUrl>
|
||||||
|
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||||
|
<description>click the circles. to the beat.</description>
|
||||||
|
<summary>click the circles.</summary>
|
||||||
|
<releaseNotes>testing</releaseNotes>
|
||||||
|
<copyright>Copyright ppy Pty Ltd 2007-2017</copyright>
|
||||||
|
<language>en-AU</language>
|
||||||
|
</metadata>
|
||||||
|
<files>
|
||||||
|
<file src="*.exe" target="lib\net45\" exclude="**vshost**"/>
|
||||||
|
<file src="*.dll" target="lib\net45\"/>
|
||||||
|
<file src="x86\*.dll" target="lib\net45\x86\"/>
|
||||||
|
<file src="x64\*.dll" target="lib\net45\x64\"/>
|
||||||
|
</files>
|
||||||
|
</package>
|
||||||
|
|
@ -1,4 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
-->
|
||||||
<packages>
|
<packages>
|
||||||
<package id="DeltaCompressionDotNet" version="1.0.0" targetFramework="net45" />
|
<package id="DeltaCompressionDotNet" version="1.0.0" targetFramework="net45" />
|
||||||
<package id="Mono.Cecil" version="0.9.6.1" targetFramework="net45" />
|
<package id="Mono.Cecil" version="0.9.6.1" targetFramework="net45" />
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<dllmap os="linux" dll="opengl32.dll" target="libGL.so.1"/>
|
<dllmap os="linux" dll="opengl32.dll" target="libGL.so.1"/>
|
||||||
<dllmap os="linux" dll="glu32.dll" target="libGLU.so.1"/>
|
<dllmap os="linux" dll="glu32.dll" target="libGLU.so.1"/>
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<packages>
|
<packages>
|
||||||
<package id="ppy.OpenTK" version="2.0.50727.1339" targetFramework="net45" />
|
<package id="ppy.OpenTK" version="2.0.50727.1339" targetFramework="net45" />
|
||||||
</packages>
|
</packages>
|
@ -1,8 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<dllmap os="linux" dll="opengl32.dll" target="libGL.so.1"/>
|
<dllmap os="linux" dll="opengl32.dll" target="libGL.so.1"/>
|
||||||
<dllmap os="linux" dll="glu32.dll" target="libGLU.so.1"/>
|
<dllmap os="linux" dll="glu32.dll" target="libGLU.so.1"/>
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<runtime>
|
<runtime>
|
||||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<packages>
|
<packages>
|
||||||
<package id="ppy.OpenTK" version="2.0.50727.1339" targetFramework="net45" />
|
<package id="ppy.OpenTK" version="2.0.50727.1339" targetFramework="net45" />
|
||||||
</packages>
|
</packages>
|
@ -0,0 +1,21 @@
|
|||||||
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
|
using osu.Framework.Graphics.Containers;
|
||||||
|
using osu.Game.Modes.Objects;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace osu.Game.Modes.Osu.Objects.Drawables.Connections
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Connects hit objects visually, for example with follow points.
|
||||||
|
/// </summary>
|
||||||
|
public abstract class ConnectionRenderer<T> : Container
|
||||||
|
where T : HitObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Hit objects to create connections for
|
||||||
|
/// </summary>
|
||||||
|
public abstract IEnumerable<T> HitObjects { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,67 @@
|
|||||||
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
|
using OpenTK;
|
||||||
|
using OpenTK.Graphics;
|
||||||
|
using osu.Framework.Graphics;
|
||||||
|
using osu.Framework.Graphics.Containers;
|
||||||
|
using osu.Framework.Graphics.Sprites;
|
||||||
|
using osu.Framework.Graphics.Transformations;
|
||||||
|
using osu.Game.Graphics;
|
||||||
|
|
||||||
|
namespace osu.Game.Modes.Osu.Objects.Drawables.Connections
|
||||||
|
{
|
||||||
|
public class FollowPoint : Container
|
||||||
|
{
|
||||||
|
public double StartTime;
|
||||||
|
public double EndTime;
|
||||||
|
public Vector2 EndPosition;
|
||||||
|
|
||||||
|
const float width = 8;
|
||||||
|
|
||||||
|
public FollowPoint()
|
||||||
|
{
|
||||||
|
Origin = Anchor.Centre;
|
||||||
|
Alpha = 0;
|
||||||
|
|
||||||
|
Masking = true;
|
||||||
|
AutoSizeAxes = Axes.Both;
|
||||||
|
CornerRadius = width / 2;
|
||||||
|
EdgeEffect = new EdgeEffect
|
||||||
|
{
|
||||||
|
Type = EdgeEffectType.Glow,
|
||||||
|
Colour = Color4.White.Opacity(0.2f),
|
||||||
|
Radius = 4,
|
||||||
|
};
|
||||||
|
|
||||||
|
Children = new Drawable[]
|
||||||
|
{
|
||||||
|
new Box
|
||||||
|
{
|
||||||
|
Size = new Vector2(width),
|
||||||
|
BlendingMode = BlendingMode.Additive,
|
||||||
|
Origin = Anchor.Centre,
|
||||||
|
Anchor = Anchor.Centre,
|
||||||
|
Alpha = 0.5f,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void LoadComplete()
|
||||||
|
{
|
||||||
|
base.LoadComplete();
|
||||||
|
|
||||||
|
Delay(StartTime);
|
||||||
|
FadeIn(DrawableOsuHitObject.TIME_FADEIN);
|
||||||
|
ScaleTo(1.5f);
|
||||||
|
ScaleTo(1, DrawableOsuHitObject.TIME_FADEIN, EasingTypes.Out);
|
||||||
|
MoveTo(EndPosition, DrawableOsuHitObject.TIME_FADEIN, EasingTypes.Out);
|
||||||
|
|
||||||
|
Delay(EndTime - StartTime);
|
||||||
|
FadeOut(DrawableOsuHitObject.TIME_FADEIN);
|
||||||
|
|
||||||
|
Delay(DrawableOsuHitObject.TIME_FADEIN);
|
||||||
|
Expire(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,97 @@
|
|||||||
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
|
using OpenTK;
|
||||||
|
using osu.Game.Modes.Osu.Objects.Drawables.Connections;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace osu.Game.Modes.Osu.Objects.Drawables
|
||||||
|
{
|
||||||
|
public class FollowPointRenderer : ConnectionRenderer<OsuHitObject>
|
||||||
|
{
|
||||||
|
private int pointDistance = 32;
|
||||||
|
/// <summary>
|
||||||
|
/// Determines how much space there is between points.
|
||||||
|
/// </summary>
|
||||||
|
public int PointDistance
|
||||||
|
{
|
||||||
|
get { return pointDistance; }
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (pointDistance == value) return;
|
||||||
|
pointDistance = value;
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private int preEmpt = 800;
|
||||||
|
/// <summary>
|
||||||
|
/// Follow points to the next hitobject start appearing for this many milliseconds before an hitobject's end time.
|
||||||
|
/// </summary>
|
||||||
|
public int PreEmpt
|
||||||
|
{
|
||||||
|
get { return preEmpt; }
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (preEmpt == value) return;
|
||||||
|
preEmpt = value;
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private IEnumerable<OsuHitObject> hitObjects;
|
||||||
|
public override IEnumerable<OsuHitObject> HitObjects
|
||||||
|
{
|
||||||
|
get { return hitObjects; }
|
||||||
|
set
|
||||||
|
{
|
||||||
|
hitObjects = value;
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void update()
|
||||||
|
{
|
||||||
|
Clear();
|
||||||
|
if (hitObjects == null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
OsuHitObject prevHitObject = null;
|
||||||
|
foreach (var currHitObject in hitObjects)
|
||||||
|
{
|
||||||
|
if (prevHitObject != null && !currHitObject.NewCombo && !(prevHitObject is Spinner) && !(currHitObject is Spinner))
|
||||||
|
{
|
||||||
|
Vector2 startPosition = prevHitObject.EndPosition;
|
||||||
|
Vector2 endPosition = currHitObject.Position;
|
||||||
|
double startTime = prevHitObject.EndTime;
|
||||||
|
double endTime = currHitObject.StartTime;
|
||||||
|
|
||||||
|
Vector2 distanceVector = endPosition - startPosition;
|
||||||
|
int distance = (int)distanceVector.Length;
|
||||||
|
float rotation = (float)Math.Atan2(distanceVector.Y, distanceVector.X);
|
||||||
|
double duration = endTime - startTime;
|
||||||
|
|
||||||
|
for (int d = (int)(PointDistance * 1.5); d < distance - PointDistance; d += PointDistance)
|
||||||
|
{
|
||||||
|
float fraction = ((float)d / distance);
|
||||||
|
Vector2 pointStartPosition = startPosition + (fraction - 0.1f) * distanceVector;
|
||||||
|
Vector2 pointEndPosition = startPosition + fraction * distanceVector;
|
||||||
|
double fadeOutTime = startTime + fraction * duration;
|
||||||
|
double fadeInTime = fadeOutTime - PreEmpt;
|
||||||
|
|
||||||
|
Add(new FollowPoint()
|
||||||
|
{
|
||||||
|
StartTime = fadeInTime,
|
||||||
|
EndTime = fadeOutTime,
|
||||||
|
Position = pointStartPosition,
|
||||||
|
EndPosition = pointEndPosition,
|
||||||
|
Rotation = rotation,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
prevHitObject = currHitObject;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -24,7 +24,7 @@ namespace osu.Game.Modes.Osu.Objects.Drawables
|
|||||||
AutoSizeAxes = Axes.Both;
|
AutoSizeAxes = Axes.Both;
|
||||||
Origin = Anchor.Centre;
|
Origin = Anchor.Centre;
|
||||||
|
|
||||||
Direction = FlowDirection.VerticalOnly;
|
Direction = FlowDirections.Vertical;
|
||||||
Spacing = new Vector2(0, 2);
|
Spacing = new Vector2(0, 2);
|
||||||
Position = (h?.StackedEndPosition ?? Vector2.Zero) + judgement.PositionOffset;
|
Position = (h?.StackedEndPosition ?? Vector2.Zero) + judgement.PositionOffset;
|
||||||
|
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<dllmap os="linux" dll="opengl32.dll" target="libGL.so.1"/>
|
<dllmap os="linux" dll="opengl32.dll" target="libGL.so.1"/>
|
||||||
<dllmap os="linux" dll="glu32.dll" target="libGLU.so.1"/>
|
<dllmap os="linux" dll="glu32.dll" target="libGLU.so.1"/>
|
||||||
|
@ -1,13 +1,15 @@
|
|||||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
|
using OpenTK;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Game.Modes.Objects.Drawables;
|
using osu.Game.Modes.Objects.Drawables;
|
||||||
using osu.Game.Modes.Osu.Objects;
|
using osu.Game.Modes.Osu.Objects;
|
||||||
using osu.Game.Modes.Osu.Objects.Drawables;
|
using osu.Game.Modes.Osu.Objects.Drawables;
|
||||||
|
using osu.Game.Modes.Osu.Objects.Drawables.Connections;
|
||||||
using osu.Game.Modes.UI;
|
using osu.Game.Modes.UI;
|
||||||
using OpenTK;
|
using System.Linq;
|
||||||
|
|
||||||
namespace osu.Game.Modes.Osu.UI
|
namespace osu.Game.Modes.Osu.UI
|
||||||
{
|
{
|
||||||
@ -15,6 +17,7 @@ namespace osu.Game.Modes.Osu.UI
|
|||||||
{
|
{
|
||||||
private Container approachCircles;
|
private Container approachCircles;
|
||||||
private Container judgementLayer;
|
private Container judgementLayer;
|
||||||
|
private ConnectionRenderer<OsuHitObject> connectionLayer;
|
||||||
|
|
||||||
public override Vector2 Size
|
public override Vector2 Size
|
||||||
{
|
{
|
||||||
@ -36,6 +39,11 @@ namespace osu.Game.Modes.Osu.UI
|
|||||||
|
|
||||||
Add(new Drawable[]
|
Add(new Drawable[]
|
||||||
{
|
{
|
||||||
|
connectionLayer = new FollowPointRenderer
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Depth = 2,
|
||||||
|
},
|
||||||
judgementLayer = new Container
|
judgementLayer = new Container
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
@ -63,6 +71,13 @@ namespace osu.Game.Modes.Osu.UI
|
|||||||
base.Add(h);
|
base.Add(h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void PostProcess()
|
||||||
|
{
|
||||||
|
connectionLayer.HitObjects = HitObjects.Children
|
||||||
|
.Select(d => (OsuHitObject)d.HitObject)
|
||||||
|
.OrderBy(h => h.StartTime);
|
||||||
|
}
|
||||||
|
|
||||||
private void judgement(DrawableHitObject h, JudgementInfo j)
|
private void judgement(DrawableHitObject h, JudgementInfo j)
|
||||||
{
|
{
|
||||||
HitExplosion explosion = new HitExplosion((OsuJudgementInfo)j, (OsuHitObject)h.HitObject);
|
HitExplosion explosion = new HitExplosion((OsuJudgementInfo)j, (OsuHitObject)h.HitObject);
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<runtime>
|
<runtime>
|
||||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
|
@ -46,9 +46,12 @@
|
|||||||
<Compile Include="Objects\BezierApproximator.cs" />
|
<Compile Include="Objects\BezierApproximator.cs" />
|
||||||
<Compile Include="Objects\CircularArcApproximator.cs" />
|
<Compile Include="Objects\CircularArcApproximator.cs" />
|
||||||
<Compile Include="Objects\Drawables\DrawableOsuHitObject.cs" />
|
<Compile Include="Objects\Drawables\DrawableOsuHitObject.cs" />
|
||||||
|
<Compile Include="Objects\Drawables\Connections\ConnectionRenderer.cs" />
|
||||||
|
<Compile Include="Objects\Drawables\Connections\FollowPointRenderer.cs" />
|
||||||
<Compile Include="Objects\Drawables\Pieces\ApproachCircle.cs" />
|
<Compile Include="Objects\Drawables\Pieces\ApproachCircle.cs" />
|
||||||
<Compile Include="Objects\Drawables\Pieces\CirclePiece.cs" />
|
<Compile Include="Objects\Drawables\Pieces\CirclePiece.cs" />
|
||||||
<Compile Include="Objects\Drawables\DrawableSlider.cs" />
|
<Compile Include="Objects\Drawables\DrawableSlider.cs" />
|
||||||
|
<Compile Include="Objects\Drawables\Connections\FollowPoint.cs" />
|
||||||
<Compile Include="Objects\Drawables\Pieces\ExplodePiece.cs" />
|
<Compile Include="Objects\Drawables\Pieces\ExplodePiece.cs" />
|
||||||
<Compile Include="Objects\Drawables\Pieces\FlashPiece.cs" />
|
<Compile Include="Objects\Drawables\Pieces\FlashPiece.cs" />
|
||||||
<Compile Include="Objects\Drawables\Pieces\GlowPiece.cs" />
|
<Compile Include="Objects\Drawables\Pieces\GlowPiece.cs" />
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<packages>
|
<packages>
|
||||||
<package id="ppy.OpenTK" version="2.0.50727.1339" targetFramework="net452" />
|
<package id="ppy.OpenTK" version="2.0.50727.1339" targetFramework="net452" />
|
||||||
</packages>
|
</packages>
|
@ -1,8 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<dllmap os="linux" dll="opengl32.dll" target="libGL.so.1"/>
|
<dllmap os="linux" dll="opengl32.dll" target="libGL.so.1"/>
|
||||||
<dllmap os="linux" dll="glu32.dll" target="libGLU.so.1"/>
|
<dllmap os="linux" dll="glu32.dll" target="libGLU.so.1"/>
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<packages>
|
<packages>
|
||||||
<package id="ppy.OpenTK" version="2.0.50727.1339" targetFramework="net45" />
|
<package id="ppy.OpenTK" version="2.0.50727.1339" targetFramework="net45" />
|
||||||
</packages>
|
</packages>
|
@ -1,4 +1,7 @@
|
|||||||
using System;
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using OpenTK;
|
using OpenTK;
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
using System;
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
using System;
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using osu.Game.Beatmaps.IO;
|
using osu.Game.Beatmaps.IO;
|
||||||
@ -39,7 +42,7 @@ namespace osu.Game.Tests.Beatmaps.IO
|
|||||||
"Soleily - Renatus (MMzz) [Muzukashii].osu",
|
"Soleily - Renatus (MMzz) [Muzukashii].osu",
|
||||||
"Soleily - Renatus (MMzz) [Oni].osu"
|
"Soleily - Renatus (MMzz) [Oni].osu"
|
||||||
};
|
};
|
||||||
var maps = reader.ReadBeatmaps();
|
var maps = reader.BeatmapFilenames;
|
||||||
foreach (var map in expected)
|
foreach (var map in expected)
|
||||||
Assert.Contains(map, maps);
|
Assert.Contains(map, maps);
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
<!--
|
||||||
|
Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
-->
|
||||||
<configuration>
|
<configuration>
|
||||||
<dllmap os="linux" dll="opengl32.dll" target="libGL.so.1"/>
|
<dllmap os="linux" dll="opengl32.dll" target="libGL.so.1"/>
|
||||||
<dllmap os="linux" dll="glu32.dll" target="libGLU.so.1"/>
|
<dllmap os="linux" dll="glu32.dll" target="libGLU.so.1"/>
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
using System;
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
-->
|
||||||
<configuration>
|
<configuration>
|
||||||
<runtime>
|
<runtime>
|
||||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
|
@ -55,6 +55,9 @@
|
|||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<None Include="..\osu.licenseheader">
|
||||||
|
<Link>osu.licenseheader</Link>
|
||||||
|
</None>
|
||||||
<None Include="app.config" />
|
<None Include="app.config" />
|
||||||
<None Include="packages.config" />
|
<None Include="packages.config" />
|
||||||
<None Include="OpenTK.dll.config" />
|
<None Include="OpenTK.dll.config" />
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
-->
|
||||||
<packages>
|
<packages>
|
||||||
<package id="NUnit" version="3.5.0" targetFramework="net45" />
|
<package id="NUnit" version="3.5.0" targetFramework="net45" />
|
||||||
<package id="ppy.OpenTK" version="2.0.50727.1339" targetFramework="net45" />
|
<package id="ppy.OpenTK" version="2.0.50727.1339" targetFramework="net45" />
|
||||||
|
@ -77,7 +77,7 @@ namespace osu.Game.Beatmaps.Drawables
|
|||||||
new FlowContainer
|
new FlowContainer
|
||||||
{
|
{
|
||||||
Padding = new MarginPadding(5),
|
Padding = new MarginPadding(5),
|
||||||
Direction = FlowDirection.HorizontalOnly,
|
Direction = FlowDirections.Horizontal,
|
||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
Anchor = Anchor.CentreLeft,
|
Anchor = Anchor.CentreLeft,
|
||||||
Origin = Anchor.CentreLeft,
|
Origin = Anchor.CentreLeft,
|
||||||
@ -93,13 +93,13 @@ namespace osu.Game.Beatmaps.Drawables
|
|||||||
{
|
{
|
||||||
Padding = new MarginPadding { Left = 5 },
|
Padding = new MarginPadding { Left = 5 },
|
||||||
Spacing = new Vector2(0, 5),
|
Spacing = new Vector2(0, 5),
|
||||||
Direction = FlowDirection.VerticalOnly,
|
Direction = FlowDirections.Vertical,
|
||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new FlowContainer
|
new FlowContainer
|
||||||
{
|
{
|
||||||
Direction = FlowDirection.HorizontalOnly,
|
Direction = FlowDirections.Horizontal,
|
||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
Spacing = new Vector2(4, 0),
|
Spacing = new Vector2(4, 0),
|
||||||
Children = new[]
|
Children = new[]
|
||||||
|
@ -39,7 +39,7 @@ namespace osu.Game.Beatmaps.Drawables
|
|||||||
},
|
},
|
||||||
new FlowContainer
|
new FlowContainer
|
||||||
{
|
{
|
||||||
Direction = FlowDirection.VerticalOnly,
|
Direction = FlowDirections.Vertical,
|
||||||
Padding = new MarginPadding { Top = 5, Left = 18, Right = 10, Bottom = 10 },
|
Padding = new MarginPadding { Top = 5, Left = 18, Right = 10, Bottom = 10 },
|
||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
Children = new[]
|
Children = new[]
|
||||||
@ -113,7 +113,7 @@ namespace osu.Game.Beatmaps.Drawables
|
|||||||
new FlowContainer
|
new FlowContainer
|
||||||
{
|
{
|
||||||
Depth = -1,
|
Depth = -1,
|
||||||
Direction = FlowDirection.HorizontalOnly,
|
Direction = FlowDirections.Horizontal,
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
// This makes the gradient not be perfectly horizontal, but diagonal at a ~40° angle
|
// This makes the gradient not be perfectly horizontal, but diagonal at a ~40° angle
|
||||||
Shear = new Vector2(0.8f, 0),
|
Shear = new Vector2(0.8f, 0),
|
||||||
|
@ -7,6 +7,8 @@ using System.IO;
|
|||||||
using osu.Game.Modes.Objects;
|
using osu.Game.Modes.Objects;
|
||||||
using OpenTK.Graphics;
|
using OpenTK.Graphics;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
|
using osu.Game.Beatmaps.Timing;
|
||||||
|
using osu.Game.Database;
|
||||||
|
|
||||||
namespace osu.Game.Beatmaps.Formats
|
namespace osu.Game.Beatmaps.Formats
|
||||||
{
|
{
|
||||||
@ -34,6 +36,11 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public virtual void Decode(TextReader stream, Beatmap beatmap)
|
||||||
|
{
|
||||||
|
ParseFile(stream, beatmap);
|
||||||
|
}
|
||||||
|
|
||||||
public virtual Beatmap Process(Beatmap beatmap)
|
public virtual Beatmap Process(Beatmap beatmap)
|
||||||
{
|
{
|
||||||
ApplyColours(beatmap);
|
ApplyColours(beatmap);
|
||||||
@ -41,7 +48,23 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
return beatmap;
|
return beatmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected abstract Beatmap ParseFile(TextReader stream);
|
protected virtual Beatmap ParseFile(TextReader stream)
|
||||||
|
{
|
||||||
|
var beatmap = new Beatmap
|
||||||
|
{
|
||||||
|
HitObjects = new List<HitObject>(),
|
||||||
|
ControlPoints = new List<ControlPoint>(),
|
||||||
|
ComboColors = new List<Color4>(),
|
||||||
|
BeatmapInfo = new BeatmapInfo
|
||||||
|
{
|
||||||
|
Metadata = new BeatmapMetadata(),
|
||||||
|
BaseDifficulty = new BaseDifficulty(),
|
||||||
|
},
|
||||||
|
};
|
||||||
|
ParseFile(stream, beatmap);
|
||||||
|
return beatmap;
|
||||||
|
}
|
||||||
|
protected abstract void ParseFile(TextReader stream, Beatmap beatmap);
|
||||||
|
|
||||||
public virtual void ApplyColours(Beatmap b)
|
public virtual void ApplyColours(Beatmap b)
|
||||||
{
|
{
|
||||||
|
@ -12,7 +12,7 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
{
|
{
|
||||||
public class ConstructableBeatmapDecoder : BeatmapDecoder
|
public class ConstructableBeatmapDecoder : BeatmapDecoder
|
||||||
{
|
{
|
||||||
protected override Beatmap ParseFile(TextReader stream)
|
protected override void ParseFile(TextReader stream, Beatmap beatmap)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
|
@ -233,20 +233,8 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override Beatmap ParseFile(TextReader stream)
|
protected override void ParseFile(TextReader stream, Beatmap beatmap)
|
||||||
{
|
{
|
||||||
var beatmap = new Beatmap
|
|
||||||
{
|
|
||||||
HitObjects = new List<HitObject>(),
|
|
||||||
ControlPoints = new List<ControlPoint>(),
|
|
||||||
ComboColors = new List<Color4>(),
|
|
||||||
BeatmapInfo = new BeatmapInfo
|
|
||||||
{
|
|
||||||
Metadata = new BeatmapMetadata(),
|
|
||||||
BaseDifficulty = new BaseDifficulty(),
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
HitObjectParser parser = null;
|
HitObjectParser parser = null;
|
||||||
|
|
||||||
var section = Section.None;
|
var section = Section.None;
|
||||||
@ -309,8 +297,6 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return beatmap;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,10 +39,17 @@ namespace osu.Game.Beatmaps.IO
|
|||||||
/// Reads the beatmap metadata from this archive.
|
/// Reads the beatmap metadata from this archive.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public abstract BeatmapMetadata ReadMetadata();
|
public abstract BeatmapMetadata ReadMetadata();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets a list of beatmap file names.
|
/// Gets a list of beatmap file names.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public abstract string[] ReadBeatmaps();
|
public string[] BeatmapFilenames { get; protected set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The storyboard filename. Null if no storyboard is present.
|
||||||
|
/// </summary>
|
||||||
|
public string StoryboardFilename { get; protected set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Opens a stream for reading a specific file from this archive.
|
/// Opens a stream for reading a specific file from this archive.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -25,29 +25,25 @@ namespace osu.Game.Beatmaps.IO
|
|||||||
|
|
||||||
private Stream archiveStream;
|
private Stream archiveStream;
|
||||||
private ZipFile archive;
|
private ZipFile archive;
|
||||||
private string[] beatmaps;
|
|
||||||
private Beatmap firstMap;
|
private Beatmap firstMap;
|
||||||
|
|
||||||
public OszArchiveReader(Stream archiveStream)
|
public OszArchiveReader(Stream archiveStream)
|
||||||
{
|
{
|
||||||
this.archiveStream = archiveStream;
|
this.archiveStream = archiveStream;
|
||||||
archive = ZipFile.Read(archiveStream);
|
archive = ZipFile.Read(archiveStream);
|
||||||
beatmaps = archive.Entries.Where(e => e.FileName.EndsWith(@".osu"))
|
BeatmapFilenames = archive.Entries.Where(e => e.FileName.EndsWith(@".osu"))
|
||||||
.Select(e => e.FileName).ToArray();
|
.Select(e => e.FileName).ToArray();
|
||||||
if (beatmaps.Length == 0)
|
if (BeatmapFilenames.Length == 0)
|
||||||
throw new FileNotFoundException(@"This directory contains no beatmaps");
|
throw new FileNotFoundException(@"This directory contains no beatmaps");
|
||||||
using (var stream = new StreamReader(GetStream(beatmaps[0])))
|
StoryboardFilename = archive.Entries.Where(e => e.FileName.EndsWith(@".osb"))
|
||||||
|
.Select(e => e.FileName).FirstOrDefault();
|
||||||
|
using (var stream = new StreamReader(GetStream(BeatmapFilenames[0])))
|
||||||
{
|
{
|
||||||
var decoder = BeatmapDecoder.GetDecoder(stream);
|
var decoder = BeatmapDecoder.GetDecoder(stream);
|
||||||
firstMap = decoder.Decode(stream);
|
firstMap = decoder.Decode(stream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string[] ReadBeatmaps()
|
|
||||||
{
|
|
||||||
return beatmaps;
|
|
||||||
}
|
|
||||||
|
|
||||||
public override Stream GetStream(string name)
|
public override Stream GetStream(string name)
|
||||||
{
|
{
|
||||||
ZipEntry entry = archive.Entries.SingleOrDefault(e => e.FileName == name);
|
ZipEntry entry = archive.Entries.SingleOrDefault(e => e.FileName == name);
|
||||||
|
@ -18,6 +18,8 @@ namespace osu.Game.Beatmaps
|
|||||||
public readonly BeatmapSetInfo BeatmapSetInfo;
|
public readonly BeatmapSetInfo BeatmapSetInfo;
|
||||||
private readonly BeatmapDatabase database;
|
private readonly BeatmapDatabase database;
|
||||||
|
|
||||||
|
public readonly bool WithStoryboard;
|
||||||
|
|
||||||
private ArchiveReader getReader() => database?.GetReader(BeatmapSetInfo);
|
private ArchiveReader getReader() => database?.GetReader(BeatmapSetInfo);
|
||||||
|
|
||||||
private Texture background;
|
private Texture background;
|
||||||
@ -58,8 +60,19 @@ namespace osu.Game.Beatmaps
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (var reader = getReader())
|
using (var reader = getReader())
|
||||||
using (var stream = new StreamReader(reader.GetStream(BeatmapInfo.Path)))
|
{
|
||||||
beatmap = BeatmapDecoder.GetDecoder(stream)?.Decode(stream);
|
BeatmapDecoder decoder;
|
||||||
|
using (var stream = new StreamReader(reader.GetStream(BeatmapInfo.Path)))
|
||||||
|
{
|
||||||
|
decoder = BeatmapDecoder.GetDecoder(stream);
|
||||||
|
beatmap = decoder?.Decode(stream);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (WithStoryboard && beatmap != null && BeatmapSetInfo.StoryboardFile != null)
|
||||||
|
using (var stream = new StreamReader(reader.GetStream(BeatmapSetInfo.StoryboardFile)))
|
||||||
|
decoder?.Decode(stream, beatmap);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch { }
|
catch { }
|
||||||
|
|
||||||
@ -103,11 +116,12 @@ namespace osu.Game.Beatmaps
|
|||||||
this.beatmap = beatmap;
|
this.beatmap = beatmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public WorkingBeatmap(BeatmapInfo beatmapInfo, BeatmapSetInfo beatmapSetInfo, BeatmapDatabase database)
|
public WorkingBeatmap(BeatmapInfo beatmapInfo, BeatmapSetInfo beatmapSetInfo, BeatmapDatabase database, bool withStoryboard = false)
|
||||||
{
|
{
|
||||||
BeatmapInfo = beatmapInfo;
|
BeatmapInfo = beatmapInfo;
|
||||||
BeatmapSetInfo = beatmapSetInfo;
|
BeatmapSetInfo = beatmapSetInfo;
|
||||||
this.database = database;
|
this.database = database;
|
||||||
|
this.WithStoryboard = withStoryboard;
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool isDisposed;
|
private bool isDisposed;
|
||||||
|
@ -14,144 +14,148 @@ namespace osu.Game.Configuration
|
|||||||
{
|
{
|
||||||
#pragma warning disable CS0612 // Type or member is obsolete
|
#pragma warning disable CS0612 // Type or member is obsolete
|
||||||
|
|
||||||
Set(OsuConfig.MouseSpeed, 1.0);
|
|
||||||
|
|
||||||
Set(OsuConfig.Username, string.Empty);
|
Set(OsuConfig.Username, string.Empty);
|
||||||
Set(OsuConfig.Token, string.Empty);
|
Set(OsuConfig.Token, string.Empty);
|
||||||
|
|
||||||
Set(OsuConfig.PlayMode, PlayMode.Osu);
|
Set(OsuConfig.PlayMode, PlayMode.Osu);
|
||||||
|
|
||||||
Set(OsuConfig.BeatmapDirectory, @"Songs"); // TODO: use this
|
|
||||||
|
|
||||||
Set(OsuConfig.AllowPublicInvites, true);
|
|
||||||
Set(OsuConfig.AutoChatHide, true);
|
|
||||||
Set(OsuConfig.AutomaticDownload, true);
|
|
||||||
Set(OsuConfig.AutomaticDownloadNoVideo, false);
|
|
||||||
Set(OsuConfig.BlockNonFriendPM, false);
|
|
||||||
Set(OsuConfig.BloomSoftening, false);
|
|
||||||
Set(OsuConfig.BossKeyFirstActivation, true);
|
|
||||||
Set(OsuConfig.ChatAudibleHighlight, true);
|
|
||||||
Set(OsuConfig.ChatChannels, string.Empty);
|
|
||||||
Set(OsuConfig.ChatFilter, false);
|
|
||||||
Set(OsuConfig.ChatHighlightName, true);
|
|
||||||
Set(OsuConfig.ChatMessageNotification, true);
|
|
||||||
Set(OsuConfig.ChatLastChannel, string.Empty);
|
|
||||||
Set(OsuConfig.ChatRemoveForeign, false);
|
|
||||||
//Set(OsuConfig.ChatSortMode, UserSortMode.Rank);
|
|
||||||
Set(OsuConfig.ComboBurst, true);
|
|
||||||
Set(OsuConfig.ComboFire, false);
|
|
||||||
Set(OsuConfig.ComboFireHeight, 3);
|
|
||||||
Set(OsuConfig.ConfirmExit, false);
|
|
||||||
Set(OsuConfig.AutoSendNowPlaying, true);
|
|
||||||
Set(OsuConfig.CursorSize, 1.0, 0.5f, 2);
|
|
||||||
Set(OsuConfig.AutomaticCursorSizing, false);
|
|
||||||
Set(OsuConfig.DimLevel, 30, 0, 100);
|
|
||||||
Set(OsuConfig.Display, 1);
|
|
||||||
Set(OsuConfig.DisplayCityLocation, false);
|
|
||||||
Set(OsuConfig.DistanceSpacingEnabled, true);
|
|
||||||
Set(OsuConfig.EditorTip, 0);
|
|
||||||
Set(OsuConfig.VideoEditor, true);
|
|
||||||
Set(OsuConfig.EditorDefaultSkin, false);
|
|
||||||
Set(OsuConfig.EditorSnakingSliders, true);
|
|
||||||
Set(OsuConfig.EditorHitAnimations, false);
|
|
||||||
Set(OsuConfig.EditorFollowPoints, true);
|
|
||||||
Set(OsuConfig.EditorStacking, true);
|
|
||||||
Set(OsuConfig.ForceSliderRendering, false);
|
|
||||||
Set(OsuConfig.FpsCounter, false);
|
|
||||||
Set(OsuConfig.FrameTimeDisplay, false);
|
|
||||||
Set(OsuConfig.GuideTips, @"");
|
|
||||||
Set(OsuConfig.CursorRipple, false);
|
|
||||||
Set(OsuConfig.HighlightWords, string.Empty);
|
|
||||||
Set(OsuConfig.HighResolution, false);
|
|
||||||
Set(OsuConfig.HitLighting, true);
|
|
||||||
Set(OsuConfig.IgnoreBarline, false);
|
|
||||||
Set(OsuConfig.IgnoreBeatmapSamples, false);
|
|
||||||
Set(OsuConfig.IgnoreBeatmapSkins, false);
|
|
||||||
Set(OsuConfig.IgnoreList, string.Empty);
|
|
||||||
Set(OsuConfig.KeyOverlay, false);
|
|
||||||
Set(OsuConfig.Language, @"unknown");
|
|
||||||
Set(OsuConfig.AllowNowPlayingHighlights, false);
|
|
||||||
Set(OsuConfig.LastVersion, string.Empty);
|
|
||||||
Set(OsuConfig.LastVersionPermissionsFailed, string.Empty);
|
|
||||||
Set(OsuConfig.LoadSubmittedThread, true);
|
|
||||||
Set(OsuConfig.LobbyPlayMode, -1);
|
|
||||||
Set(OsuConfig.ShowInterface, true);
|
|
||||||
Set(OsuConfig.ShowInterfaceDuringRelax, false);
|
|
||||||
Set(OsuConfig.LobbyShowExistingOnly, false);
|
|
||||||
Set(OsuConfig.LobbyShowFriendsOnly, false);
|
|
||||||
Set(OsuConfig.LobbyShowFull, false);
|
|
||||||
Set(OsuConfig.LobbyShowInProgress, true);
|
|
||||||
Set(OsuConfig.LobbyShowPassworded, true);
|
|
||||||
Set(OsuConfig.LogPrivateMessages, false);
|
|
||||||
Set(OsuConfig.LowResolution, false);
|
|
||||||
//Set(OsuConfig.ManiaSpeed, SpeedMania.SPEED_DEFAULT, SpeedMania.SPEED_MIN, SpeedMania.SPEED_MAX);
|
|
||||||
Set(OsuConfig.UsePerBeatmapManiaSpeed, true);
|
|
||||||
Set(OsuConfig.ManiaSpeedBPMScale, true);
|
|
||||||
Set(OsuConfig.MenuTip, 0);
|
|
||||||
Set(OsuConfig.MouseDisableButtons, false);
|
|
||||||
Set(OsuConfig.MouseDisableWheel, false);
|
|
||||||
Set(OsuConfig.MouseSpeed, 1, 0.4, 6);
|
|
||||||
Set(OsuConfig.Offset, 0, -300, 300);
|
|
||||||
Set(OsuConfig.ScoreMeterScale, 1, 0.5, 2);
|
|
||||||
//Set(OsuConfig.ScoreMeterScale, 1, 0.5, OsuGame.Tournament ? 10 : 2);
|
|
||||||
Set(OsuConfig.DistanceSpacing, 0.8, 0.1, 6);
|
|
||||||
Set(OsuConfig.EditorBeatDivisor, 1, 1, 16);
|
|
||||||
Set(OsuConfig.EditorGridSize, 32, 4, 32);
|
|
||||||
Set(OsuConfig.EditorGridSizeDesign, 32, 4, 32);
|
|
||||||
Set(OsuConfig.CustomFrameLimit, 240, 240, 999);
|
|
||||||
Set(OsuConfig.MsnIntegration, false);
|
|
||||||
Set(OsuConfig.MyPcSucks, false);
|
|
||||||
Set(OsuConfig.NotifyFriends, true);
|
|
||||||
Set(OsuConfig.NotifySubmittedThread, true);
|
|
||||||
Set(OsuConfig.PopupDuringGameplay, true);
|
|
||||||
Set(OsuConfig.ProgressBarType, ProgressBarType.Pie);
|
|
||||||
Set(OsuConfig.RankType, RankingType.Top);
|
|
||||||
Set(OsuConfig.RefreshRate, 60);
|
|
||||||
Set(OsuConfig.OverrideRefreshRate, Get<int>(OsuConfig.RefreshRate) != 60);
|
|
||||||
//Set(OsuConfig.ScaleMode, ScaleMode.WidescreenConservative);
|
|
||||||
Set(OsuConfig.ScoreboardVisible, true);
|
|
||||||
Set(OsuConfig.ScoreMeter, ScoreMeterType.Error);
|
|
||||||
//Set(OsuConfig.ScoreMeter, OsuGame.Tournament ? ScoreMeterType.Colour : ScoreMeterType.Error);
|
|
||||||
Set(OsuConfig.ScreenshotId, 0);
|
|
||||||
Set(OsuConfig.MenuSnow, false);
|
|
||||||
Set(OsuConfig.MenuTriangles, true);
|
|
||||||
Set(OsuConfig.SongSelectThumbnails, true);
|
|
||||||
Set(OsuConfig.ScreenshotFormat, ScreenshotFormat.Jpg);
|
|
||||||
Set(OsuConfig.ShowReplayComments, true);
|
|
||||||
Set(OsuConfig.ShowSpectators, true);
|
|
||||||
Set(OsuConfig.ShowStoryboard, true);
|
|
||||||
//Set(OsuConfig.Skin, SkinManager.DEFAULT_SKIN);
|
|
||||||
Set(OsuConfig.SkinSamples, true);
|
|
||||||
Set(OsuConfig.SkipTablet, false);
|
|
||||||
Set(OsuConfig.SnakingInSliders, true);
|
|
||||||
Set(OsuConfig.SnakingOutSliders, false);
|
|
||||||
Set(OsuConfig.Tablet, false);
|
|
||||||
Set(OsuConfig.UpdatePending, false);
|
|
||||||
Set(OsuConfig.UseSkinCursor, false);
|
|
||||||
Set(OsuConfig.UseTaikoSkin, false);
|
|
||||||
Set(OsuConfig.Video, true);
|
|
||||||
Set(OsuConfig.Wiimote, false);
|
|
||||||
Set(OsuConfig.YahooIntegration, false);
|
|
||||||
Set(OsuConfig.ForceFrameFlush, false);
|
|
||||||
Set(OsuConfig.DetectPerformanceIssues, true);
|
|
||||||
Set(OsuConfig.MenuMusic, true);
|
|
||||||
Set(OsuConfig.MenuVoice, true);
|
|
||||||
Set(OsuConfig.MenuParallax, true);
|
|
||||||
Set(OsuConfig.RawInput, false);
|
|
||||||
Set(OsuConfig.AbsoluteToOsuWindow, Get<bool>(OsuConfig.RawInput));
|
|
||||||
Set(OsuConfig.ShowMenuTips, true);
|
|
||||||
Set(OsuConfig.HiddenShowFirstApproach, true);
|
|
||||||
Set(OsuConfig.ComboColourSliderBall, true);
|
|
||||||
Set(OsuConfig.AlternativeChatFont, false);
|
|
||||||
Set(OsuConfig.DisplayStarsMaximum, 10.0, 0.0, 10.0);
|
|
||||||
Set(OsuConfig.DisplayStarsMinimum, 0.0, 0.0, 10.0);
|
|
||||||
Set(OsuConfig.AudioDevice, string.Empty);
|
Set(OsuConfig.AudioDevice, string.Empty);
|
||||||
Set(OsuConfig.ReleaseStream, ReleaseStream.Lazer);
|
|
||||||
Set(OsuConfig.UpdateFailCount, 0);
|
|
||||||
Set(OsuConfig.SavePassword, false);
|
Set(OsuConfig.SavePassword, false);
|
||||||
Set(OsuConfig.SaveUsername, true);
|
Set(OsuConfig.SaveUsername, true);
|
||||||
//Set(OsuConfig.TreeSortMode, TreeGroupMode.Show_All);
|
|
||||||
//Set(OsuConfig.TreeSortMode2, TreeSortMode.Title);
|
Set(OsuConfig.CursorSize, 1.0, 0.5f, 2);
|
||||||
|
Set(OsuConfig.DimLevel, 30, 0, 100);
|
||||||
|
|
||||||
|
Set(OsuConfig.MouseDisableButtons, false);
|
||||||
|
|
||||||
|
Set(OsuConfig.SnakingInSliders, true);
|
||||||
|
Set(OsuConfig.SnakingOutSliders, false);
|
||||||
|
|
||||||
|
//todo: implement all settings below this line (remove the Disabled set when doing so).
|
||||||
|
|
||||||
|
Set(OsuConfig.MouseSpeed, 1.0).Disabled = true;
|
||||||
|
Set(OsuConfig.BeatmapDirectory, @"Songs").Disabled = true; // TODO: use thi.Disabled = trues
|
||||||
|
Set(OsuConfig.AllowPublicInvites, true).Disabled = true;
|
||||||
|
Set(OsuConfig.AutoChatHide, true).Disabled = true;
|
||||||
|
Set(OsuConfig.AutomaticDownload, true).Disabled = true;
|
||||||
|
Set(OsuConfig.AutomaticDownloadNoVideo, false).Disabled = true;
|
||||||
|
Set(OsuConfig.BlockNonFriendPM, false).Disabled = true;
|
||||||
|
Set(OsuConfig.BloomSoftening, false).Disabled = true;
|
||||||
|
Set(OsuConfig.BossKeyFirstActivation, true).Disabled = true;
|
||||||
|
Set(OsuConfig.ChatAudibleHighlight, true).Disabled = true;
|
||||||
|
Set(OsuConfig.ChatChannels, string.Empty).Disabled = true;
|
||||||
|
Set(OsuConfig.ChatFilter, false).Disabled = true;
|
||||||
|
Set(OsuConfig.ChatHighlightName, true).Disabled = true;
|
||||||
|
Set(OsuConfig.ChatMessageNotification, true).Disabled = true;
|
||||||
|
Set(OsuConfig.ChatLastChannel, string.Empty).Disabled = true;
|
||||||
|
Set(OsuConfig.ChatRemoveForeign, false).Disabled = true;
|
||||||
|
//Set(OsuConfig.ChatSortMode, UserSortMode.Rank).Disabled = true;
|
||||||
|
Set(OsuConfig.ComboBurst, true).Disabled = true;
|
||||||
|
Set(OsuConfig.ComboFire, false).Disabled = true;
|
||||||
|
Set(OsuConfig.ComboFireHeight, 3).Disabled = true;
|
||||||
|
Set(OsuConfig.ConfirmExit, false).Disabled = true;
|
||||||
|
Set(OsuConfig.AutoSendNowPlaying, true).Disabled = true;
|
||||||
|
Set(OsuConfig.AutomaticCursorSizing, false).Disabled = true;
|
||||||
|
Set(OsuConfig.Display, 1).Disabled = true;
|
||||||
|
Set(OsuConfig.DisplayCityLocation, false).Disabled = true;
|
||||||
|
Set(OsuConfig.DistanceSpacingEnabled, true).Disabled = true;
|
||||||
|
Set(OsuConfig.EditorTip, 0).Disabled = true;
|
||||||
|
Set(OsuConfig.VideoEditor, true).Disabled = true;
|
||||||
|
Set(OsuConfig.EditorDefaultSkin, false).Disabled = true;
|
||||||
|
Set(OsuConfig.EditorSnakingSliders, true).Disabled = true;
|
||||||
|
Set(OsuConfig.EditorHitAnimations, false).Disabled = true;
|
||||||
|
Set(OsuConfig.EditorFollowPoints, true).Disabled = true;
|
||||||
|
Set(OsuConfig.EditorStacking, true).Disabled = true;
|
||||||
|
Set(OsuConfig.ForceSliderRendering, false).Disabled = true;
|
||||||
|
Set(OsuConfig.FpsCounter, false).Disabled = true;
|
||||||
|
Set(OsuConfig.FrameTimeDisplay, false).Disabled = true;
|
||||||
|
Set(OsuConfig.GuideTips, @"").Disabled = true;
|
||||||
|
Set(OsuConfig.CursorRipple, false).Disabled = true;
|
||||||
|
Set(OsuConfig.HighlightWords, string.Empty).Disabled = true;
|
||||||
|
Set(OsuConfig.HighResolution, false).Disabled = true;
|
||||||
|
Set(OsuConfig.HitLighting, true).Disabled = true;
|
||||||
|
Set(OsuConfig.IgnoreBarline, false).Disabled = true;
|
||||||
|
Set(OsuConfig.IgnoreBeatmapSamples, false).Disabled = true;
|
||||||
|
Set(OsuConfig.IgnoreBeatmapSkins, false).Disabled = true;
|
||||||
|
Set(OsuConfig.IgnoreList, string.Empty).Disabled = true;
|
||||||
|
Set(OsuConfig.KeyOverlay, false).Disabled = true;
|
||||||
|
Set(OsuConfig.Language, @"unknown").Disabled = true;
|
||||||
|
Set(OsuConfig.AllowNowPlayingHighlights, false).Disabled = true;
|
||||||
|
Set(OsuConfig.LastVersion, string.Empty).Disabled = true;
|
||||||
|
Set(OsuConfig.LastVersionPermissionsFailed, string.Empty).Disabled = true;
|
||||||
|
Set(OsuConfig.LoadSubmittedThread, true).Disabled = true;
|
||||||
|
Set(OsuConfig.LobbyPlayMode, -1).Disabled = true;
|
||||||
|
Set(OsuConfig.ShowInterface, true).Disabled = true;
|
||||||
|
Set(OsuConfig.ShowInterfaceDuringRelax, false).Disabled = true;
|
||||||
|
Set(OsuConfig.LobbyShowExistingOnly, false).Disabled = true;
|
||||||
|
Set(OsuConfig.LobbyShowFriendsOnly, false).Disabled = true;
|
||||||
|
Set(OsuConfig.LobbyShowFull, false).Disabled = true;
|
||||||
|
Set(OsuConfig.LobbyShowInProgress, true).Disabled = true;
|
||||||
|
Set(OsuConfig.LobbyShowPassworded, true).Disabled = true;
|
||||||
|
Set(OsuConfig.LogPrivateMessages, false).Disabled = true;
|
||||||
|
Set(OsuConfig.LowResolution, false).Disabled = true;
|
||||||
|
//Set(OsuConfig.ManiaSpeed, SpeedMania.SPEED_DEFAULT, SpeedMania.SPEED_MIN, SpeedMania.SPEED_MAX).Disabled = true;
|
||||||
|
Set(OsuConfig.UsePerBeatmapManiaSpeed, true).Disabled = true;
|
||||||
|
Set(OsuConfig.ManiaSpeedBPMScale, true).Disabled = true;
|
||||||
|
Set(OsuConfig.MenuTip, 0).Disabled = true;
|
||||||
|
Set(OsuConfig.MouseDisableWheel, false).Disabled = true;
|
||||||
|
Set(OsuConfig.MouseSpeed, 1, 0.4, 6).Disabled = true;
|
||||||
|
Set(OsuConfig.Offset, 0, -300, 300).Disabled = true;
|
||||||
|
Set(OsuConfig.ScoreMeterScale, 1, 0.5, 2).Disabled = true;
|
||||||
|
//Set(OsuConfig.ScoreMeterScale, 1, 0.5, OsuGame.Tournament ? 10 : 2).Disabled = true;
|
||||||
|
Set(OsuConfig.DistanceSpacing, 0.8, 0.1, 6).Disabled = true;
|
||||||
|
Set(OsuConfig.EditorBeatDivisor, 1, 1, 16).Disabled = true;
|
||||||
|
Set(OsuConfig.EditorGridSize, 32, 4, 32).Disabled = true;
|
||||||
|
Set(OsuConfig.EditorGridSizeDesign, 32, 4, 32).Disabled = true;
|
||||||
|
Set(OsuConfig.CustomFrameLimit, 240, 240, 999).Disabled = true;
|
||||||
|
Set(OsuConfig.MsnIntegration, false).Disabled = true;
|
||||||
|
Set(OsuConfig.MyPcSucks, false).Disabled = true;
|
||||||
|
Set(OsuConfig.NotifyFriends, true).Disabled = true;
|
||||||
|
Set(OsuConfig.NotifySubmittedThread, true).Disabled = true;
|
||||||
|
Set(OsuConfig.PopupDuringGameplay, true).Disabled = true;
|
||||||
|
Set(OsuConfig.ProgressBarType, ProgressBarType.Pie).Disabled = true;
|
||||||
|
Set(OsuConfig.RankType, RankingType.Top).Disabled = true;
|
||||||
|
Set(OsuConfig.RefreshRate, 60).Disabled = true;
|
||||||
|
Set(OsuConfig.OverrideRefreshRate, Get<int>(OsuConfig.RefreshRate) != 60).Disabled = true;
|
||||||
|
//Set(OsuConfig.ScaleMode, ScaleMode.WidescreenConservative).Disabled = true;
|
||||||
|
Set(OsuConfig.ScoreboardVisible, true).Disabled = true;
|
||||||
|
Set(OsuConfig.ScoreMeter, ScoreMeterType.Error).Disabled = true;
|
||||||
|
//Set(OsuConfig.ScoreMeter, OsuGame.Tournament ? ScoreMeterType.Colour : ScoreMeterType.Error).Disabled = true;
|
||||||
|
Set(OsuConfig.ScreenshotId, 0).Disabled = true;
|
||||||
|
Set(OsuConfig.MenuSnow, false).Disabled = true;
|
||||||
|
Set(OsuConfig.MenuTriangles, true).Disabled = true;
|
||||||
|
Set(OsuConfig.SongSelectThumbnails, true).Disabled = true;
|
||||||
|
Set(OsuConfig.ScreenshotFormat, ScreenshotFormat.Jpg).Disabled = true;
|
||||||
|
Set(OsuConfig.ShowReplayComments, true).Disabled = true;
|
||||||
|
Set(OsuConfig.ShowSpectators, true).Disabled = true;
|
||||||
|
Set(OsuConfig.ShowStoryboard, true).Disabled = true;
|
||||||
|
//Set(OsuConfig.Skin, SkinManager.DEFAULT_SKIN).Disabled = true;
|
||||||
|
Set(OsuConfig.SkinSamples, true).Disabled = true;
|
||||||
|
Set(OsuConfig.SkipTablet, false).Disabled = true;
|
||||||
|
Set(OsuConfig.Tablet, false).Disabled = true;
|
||||||
|
Set(OsuConfig.UpdatePending, false).Disabled = true;
|
||||||
|
Set(OsuConfig.UseSkinCursor, false).Disabled = true;
|
||||||
|
Set(OsuConfig.UseTaikoSkin, false).Disabled = true;
|
||||||
|
Set(OsuConfig.Video, true).Disabled = true;
|
||||||
|
Set(OsuConfig.Wiimote, false).Disabled = true;
|
||||||
|
Set(OsuConfig.YahooIntegration, false).Disabled = true;
|
||||||
|
Set(OsuConfig.ForceFrameFlush, false).Disabled = true;
|
||||||
|
Set(OsuConfig.DetectPerformanceIssues, true).Disabled = true;
|
||||||
|
Set(OsuConfig.MenuMusic, true).Disabled = true;
|
||||||
|
Set(OsuConfig.MenuVoice, true).Disabled = true;
|
||||||
|
Set(OsuConfig.MenuParallax, true).Disabled = true;
|
||||||
|
Set(OsuConfig.RawInput, false).Disabled = true;
|
||||||
|
Set(OsuConfig.AbsoluteToOsuWindow, Get<bool>(OsuConfig.RawInput)).Disabled = true;
|
||||||
|
Set(OsuConfig.ShowMenuTips, true).Disabled = true;
|
||||||
|
Set(OsuConfig.HiddenShowFirstApproach, true).Disabled = true;
|
||||||
|
Set(OsuConfig.ComboColourSliderBall, true).Disabled = true;
|
||||||
|
Set(OsuConfig.AlternativeChatFont, false).Disabled = true;
|
||||||
|
Set(OsuConfig.DisplayStarsMaximum, 10.0, 0.0, 10.0).Disabled = true;
|
||||||
|
Set(OsuConfig.DisplayStarsMinimum, 0.0, 0.0, 10.0).Disabled = true;
|
||||||
|
Set(OsuConfig.ReleaseStream, ReleaseStream.Lazer).Disabled = true;
|
||||||
|
Set(OsuConfig.UpdateFailCount, 0).Disabled = true;
|
||||||
|
//Set(OsuConfig.TreeSortMode, TreeGroupMode.Show_All).Disabled = true;
|
||||||
|
//Set(OsuConfig.TreeSortMode2, TreeSortMode.Title).Disabled = true;
|
||||||
bool unicodeDefault = false;
|
bool unicodeDefault = false;
|
||||||
switch (Get<string>(OsuConfig.Language))
|
switch (Get<string>(OsuConfig.Language))
|
||||||
{
|
{
|
||||||
@ -162,12 +166,12 @@ namespace osu.Game.Configuration
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Set(OsuConfig.ShowUnicode, unicodeDefault);
|
Set(OsuConfig.ShowUnicode, unicodeDefault);
|
||||||
Set(OsuConfig.PermanentSongInfo, false);
|
Set(OsuConfig.PermanentSongInfo, false).Disabled = true;
|
||||||
Set(OsuConfig.Ticker, false);
|
Set(OsuConfig.Ticker, false).Disabled = true;
|
||||||
Set(OsuConfig.CompatibilityContext, false);
|
Set(OsuConfig.CompatibilityContext, false).Disabled = true;
|
||||||
Set(OsuConfig.CanForceOptimusCompatibility, true);
|
Set(OsuConfig.CanForceOptimusCompatibility, true).Disabled = true;
|
||||||
Set(OsuConfig.ConfineMouse, Get<bool>(OsuConfig.ConfineMouseToFullscreen) ?
|
Set(OsuConfig.ConfineMouse, Get<bool>(OsuConfig.ConfineMouseToFullscreen) ?
|
||||||
ConfineMouseMode.Fullscreen : ConfineMouseMode.Never);
|
ConfineMouseMode.Fullscreen : ConfineMouseMode.Never).Disabled = true;
|
||||||
|
|
||||||
|
|
||||||
GetBindable<bool>(OsuConfig.SavePassword).ValueChanged += delegate
|
GetBindable<bool>(OsuConfig.SavePassword).ValueChanged += delegate
|
||||||
|
@ -125,7 +125,7 @@ namespace osu.Game.Database
|
|||||||
|
|
||||||
using (var reader = ArchiveReader.GetReader(storage, path))
|
using (var reader = ArchiveReader.GetReader(storage, path))
|
||||||
{
|
{
|
||||||
string[] mapNames = reader.ReadBeatmaps();
|
string[] mapNames = reader.BeatmapFilenames;
|
||||||
foreach (var name in mapNames)
|
foreach (var name in mapNames)
|
||||||
{
|
{
|
||||||
using (var stream = new StreamReader(reader.GetStream(name)))
|
using (var stream = new StreamReader(reader.GetStream(name)))
|
||||||
@ -139,6 +139,7 @@ namespace osu.Game.Database
|
|||||||
|
|
||||||
beatmapSet.Beatmaps.Add(beatmap.BeatmapInfo);
|
beatmapSet.Beatmaps.Add(beatmap.BeatmapInfo);
|
||||||
}
|
}
|
||||||
|
beatmapSet.StoryboardFile = reader.StoryboardFilename;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -171,7 +172,7 @@ namespace osu.Game.Database
|
|||||||
return Query<BeatmapSetInfo>().FirstOrDefault(s => s.OnlineBeatmapSetID == id);
|
return Query<BeatmapSetInfo>().FirstOrDefault(s => s.OnlineBeatmapSetID == id);
|
||||||
}
|
}
|
||||||
|
|
||||||
public WorkingBeatmap GetWorkingBeatmap(BeatmapInfo beatmapInfo, WorkingBeatmap previous = null)
|
public WorkingBeatmap GetWorkingBeatmap(BeatmapInfo beatmapInfo, WorkingBeatmap previous = null, bool withStoryboard = false)
|
||||||
{
|
{
|
||||||
var beatmapSetInfo = Query<BeatmapSetInfo>().FirstOrDefault(s => s.ID == beatmapInfo.BeatmapSetInfoID);
|
var beatmapSetInfo = Query<BeatmapSetInfo>().FirstOrDefault(s => s.ID == beatmapInfo.BeatmapSetInfoID);
|
||||||
|
|
||||||
@ -184,7 +185,7 @@ namespace osu.Game.Database
|
|||||||
if (beatmapInfo.Metadata == null)
|
if (beatmapInfo.Metadata == null)
|
||||||
beatmapInfo.Metadata = beatmapSetInfo.Metadata;
|
beatmapInfo.Metadata = beatmapSetInfo.Metadata;
|
||||||
|
|
||||||
var working = new WorkingBeatmap(beatmapInfo, beatmapSetInfo, this);
|
var working = new WorkingBeatmap(beatmapInfo, beatmapSetInfo, this, withStoryboard);
|
||||||
|
|
||||||
previous?.TransferTo(working);
|
previous?.TransferTo(working);
|
||||||
|
|
||||||
|
@ -27,6 +27,8 @@ namespace osu.Game.Database
|
|||||||
public string Hash { get; set; }
|
public string Hash { get; set; }
|
||||||
|
|
||||||
public string Path { get; set; }
|
public string Path { get; set; }
|
||||||
|
|
||||||
|
public string StoryboardFile { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,6 +20,8 @@ namespace osu.Game.Graphics.Backgrounds
|
|||||||
|
|
||||||
public Background(string textureName = @"")
|
public Background(string textureName = @"")
|
||||||
{
|
{
|
||||||
|
CacheDrawnFrameBuffer = true;
|
||||||
|
|
||||||
this.textureName = textureName;
|
this.textureName = textureName;
|
||||||
RelativeSizeAxes = Axes.Both;
|
RelativeSizeAxes = Axes.Both;
|
||||||
Depth = float.MaxValue;
|
Depth = float.MaxValue;
|
||||||
|
@ -32,10 +32,15 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
Font = @"Exo2.0-Bold",
|
Font = @"Exo2.0-Bold",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
public override bool HandleInput => Action != null;
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OsuColour colours)
|
private void load(OsuColour colours)
|
||||||
{
|
{
|
||||||
Colour = colours.BlueDark;
|
if (Action == null)
|
||||||
|
Colour = OsuColour.Gray(0.5f);
|
||||||
|
|
||||||
|
BackgroundColour = colours.BlueDark;
|
||||||
|
|
||||||
Content.Masking = true;
|
Content.Masking = true;
|
||||||
Content.CornerRadius = 5;
|
Content.CornerRadius = 5;
|
||||||
|
@ -39,6 +39,9 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
State = bindable.Value ? CheckBoxState.Checked : CheckBoxState.Unchecked;
|
State = bindable.Value ? CheckBoxState.Checked : CheckBoxState.Unchecked;
|
||||||
bindable.ValueChanged += bindableValueChanged;
|
bindable.ValueChanged += bindableValueChanged;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (bindable?.Disabled ?? true)
|
||||||
|
Alpha = 0.3f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -123,20 +126,20 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
|
|
||||||
protected override void OnChecked()
|
protected override void OnChecked()
|
||||||
{
|
{
|
||||||
if (bindable != null)
|
|
||||||
bindable.Value = true;
|
|
||||||
|
|
||||||
sampleChecked?.Play();
|
sampleChecked?.Play();
|
||||||
nub.State = CheckBoxState.Checked;
|
nub.State = CheckBoxState.Checked;
|
||||||
|
|
||||||
|
if (bindable != null)
|
||||||
|
bindable.Value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnUnchecked()
|
protected override void OnUnchecked()
|
||||||
{
|
{
|
||||||
if (bindable != null)
|
|
||||||
bindable.Value = false;
|
|
||||||
|
|
||||||
sampleUnchecked?.Play();
|
sampleUnchecked?.Play();
|
||||||
nub.State = CheckBoxState.Unchecked;
|
nub.State = CheckBoxState.Unchecked;
|
||||||
|
|
||||||
|
if (bindable != null)
|
||||||
|
bindable.Value = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
{
|
{
|
||||||
new FlowContainer
|
new FlowContainer
|
||||||
{
|
{
|
||||||
Direction = FlowDirection.HorizontalOnly,
|
Direction = FlowDirections.Horizontal,
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
|
@ -83,6 +83,7 @@ namespace osu.Game.Modes.UI
|
|||||||
|
|
||||||
Playfield.Add(drawableObject);
|
Playfield.Add(drawableObject);
|
||||||
}
|
}
|
||||||
|
Playfield.PostProcess();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onJudgement(DrawableHitObject o, JudgementInfo j) => TriggerOnJudgement(j);
|
private void onJudgement(DrawableHitObject o, JudgementInfo j) => TriggerOnJudgement(j);
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
|
using OpenTK;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Game.Modes.Objects.Drawables;
|
using osu.Game.Modes.Objects.Drawables;
|
||||||
using OpenTK;
|
|
||||||
|
|
||||||
namespace osu.Game.Modes.UI
|
namespace osu.Game.Modes.UI
|
||||||
{
|
{
|
||||||
@ -32,6 +32,10 @@ namespace osu.Game.Modes.UI
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public virtual void PostProcess()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
public class ScaledContainer : Container
|
public class ScaledContainer : Container
|
||||||
{
|
{
|
||||||
protected override Vector2 DrawScale => new Vector2(DrawSize.X / 512);
|
protected override Vector2 DrawScale => new Vector2(DrawSize.X / 512);
|
||||||
|
@ -42,7 +42,7 @@ namespace osu.Game.Online.Chat.Drawables
|
|||||||
{
|
{
|
||||||
flow = new FlowContainer
|
flow = new FlowContainer
|
||||||
{
|
{
|
||||||
Direction = FlowDirection.VerticalOnly,
|
Direction = FlowDirections.Vertical,
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
Spacing = new Vector2(1, 1)
|
Spacing = new Vector2(1, 1)
|
||||||
|
@ -45,7 +45,7 @@ namespace osu.Game.Overlays
|
|||||||
{
|
{
|
||||||
sections = new FlowContainer<NotificationSection>
|
sections = new FlowContainer<NotificationSection>
|
||||||
{
|
{
|
||||||
Direction = FlowDirection.VerticalOnly,
|
Direction = FlowDirections.Vertical,
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
Children = new []
|
Children = new []
|
||||||
|
@ -60,7 +60,7 @@ namespace osu.Game.Overlays.Notifications
|
|||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
AutoSizeAxes = Axes.Y;
|
AutoSizeAxes = Axes.Y;
|
||||||
Direction = FlowDirection.VerticalOnly;
|
Direction = FlowDirections.Vertical;
|
||||||
|
|
||||||
Padding = new MarginPadding
|
Padding = new MarginPadding
|
||||||
{
|
{
|
||||||
|
@ -34,29 +34,32 @@ namespace osu.Game.Overlays.Options
|
|||||||
set
|
set
|
||||||
{
|
{
|
||||||
if (bindable != null)
|
if (bindable != null)
|
||||||
bindable.ValueChanged -= Bindable_ValueChanged;
|
bindable.ValueChanged -= bindable_ValueChanged;
|
||||||
bindable = value;
|
bindable = value;
|
||||||
bindable.ValueChanged += Bindable_ValueChanged;
|
bindable.ValueChanged += bindable_ValueChanged;
|
||||||
Bindable_ValueChanged(null, null);
|
bindable_ValueChanged(null, null);
|
||||||
|
|
||||||
|
if (bindable?.Disabled ?? true)
|
||||||
|
Alpha = 0.3f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private Bindable<T> bindable;
|
private Bindable<T> bindable;
|
||||||
|
|
||||||
void Bindable_ValueChanged(object sender, EventArgs e)
|
void bindable_ValueChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
dropdown.SelectedValue = bindable.Value;
|
dropdown.SelectedValue = bindable.Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Dropdown_ValueChanged(object sender, EventArgs e)
|
void dropdown_ValueChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
bindable.Value = dropdown.SelectedValue;
|
bindable.Value = dropdown.SelectedValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Dispose(bool isDisposing)
|
protected override void Dispose(bool isDisposing)
|
||||||
{
|
{
|
||||||
bindable.ValueChanged -= Bindable_ValueChanged;
|
bindable.ValueChanged -= bindable_ValueChanged;
|
||||||
dropdown.ValueChanged -= Dropdown_ValueChanged;
|
dropdown.ValueChanged -= dropdown_ValueChanged;
|
||||||
base.Dispose(isDisposing);
|
base.Dispose(isDisposing);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -86,7 +89,7 @@ namespace osu.Game.Overlays.Options
|
|||||||
{
|
{
|
||||||
Items = new KeyValuePair<string, T>[0];
|
Items = new KeyValuePair<string, T>[0];
|
||||||
|
|
||||||
Direction = FlowDirection.VerticalOnly;
|
Direction = FlowDirections.Vertical;
|
||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
AutoSizeAxes = Axes.Y;
|
AutoSizeAxes = Axes.Y;
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
@ -101,7 +104,7 @@ namespace osu.Game.Overlays.Options
|
|||||||
Items = this.Items,
|
Items = this.Items,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
dropdown.ValueChanged += Dropdown_ValueChanged;
|
dropdown.ValueChanged += dropdown_ValueChanged;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
using System;
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
|
using System;
|
||||||
using osu.Framework.Configuration;
|
using osu.Framework.Configuration;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
|
using OpenTK.Graphics;
|
||||||
using osu.Framework.Configuration;
|
using osu.Framework.Configuration;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
@ -30,12 +31,17 @@ namespace osu.Game.Overlays.Options
|
|||||||
public BindableNumber<T> Bindable
|
public BindableNumber<T> Bindable
|
||||||
{
|
{
|
||||||
get { return slider.Bindable; }
|
get { return slider.Bindable; }
|
||||||
set { slider.Bindable = value; }
|
set
|
||||||
|
{
|
||||||
|
slider.Bindable = value;
|
||||||
|
if (value?.Disabled ?? true)
|
||||||
|
Alpha = 0.3f;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public OptionSlider()
|
public OptionSlider()
|
||||||
{
|
{
|
||||||
Direction = FlowDirection.VerticalOnly;
|
Direction = FlowDirections.Vertical;
|
||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
AutoSizeAxes = Axes.Y;
|
AutoSizeAxes = Axes.Y;
|
||||||
Padding = new MarginPadding { Right = 5 };
|
Padding = new MarginPadding { Right = 5 };
|
||||||
|
@ -24,6 +24,9 @@ namespace osu.Game.Overlays.Options
|
|||||||
base.Text = bindable.Value;
|
base.Text = bindable.Value;
|
||||||
bindable.ValueChanged += bindableValueChanged;
|
bindable.ValueChanged += bindableValueChanged;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (bindable?.Disabled ?? true)
|
||||||
|
Alpha = 0.3f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ namespace osu.Game.Overlays.Options
|
|||||||
FlowContent = new FlowContainer
|
FlowContent = new FlowContainer
|
||||||
{
|
{
|
||||||
Margin = new MarginPadding { Top = header_size + header_margin },
|
Margin = new MarginPadding { Top = header_size + header_margin },
|
||||||
Direction = FlowDirection.VerticalOnly,
|
Direction = FlowDirections.Vertical,
|
||||||
Spacing = new Vector2(0, 30),
|
Spacing = new Vector2(0, 30),
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
|
@ -21,7 +21,7 @@ namespace osu.Game.Overlays.Options
|
|||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
AutoSizeAxes = Axes.Y;
|
AutoSizeAxes = Axes.Y;
|
||||||
Direction = FlowDirection.VerticalOnly;
|
Direction = FlowDirections.Vertical;
|
||||||
AddInternal(new Drawable[]
|
AddInternal(new Drawable[]
|
||||||
{
|
{
|
||||||
new OsuSpriteText
|
new OsuSpriteText
|
||||||
@ -32,7 +32,7 @@ namespace osu.Game.Overlays.Options
|
|||||||
},
|
},
|
||||||
content = new FlowContainer
|
content = new FlowContainer
|
||||||
{
|
{
|
||||||
Direction = FlowDirection.VerticalOnly,
|
Direction = FlowDirections.Vertical,
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
Spacing = new Vector2(0, 5),
|
Spacing = new Vector2(0, 5),
|
||||||
|
@ -101,7 +101,7 @@ namespace osu.Game.Overlays.Options.Sections.General
|
|||||||
private void load(APIAccess api, OsuConfigManager config)
|
private void load(APIAccess api, OsuConfigManager config)
|
||||||
{
|
{
|
||||||
this.api = api;
|
this.api = api;
|
||||||
Direction = FlowDirection.VerticalOnly;
|
Direction = FlowDirections.Vertical;
|
||||||
AutoSizeAxes = Axes.Y;
|
AutoSizeAxes = Axes.Y;
|
||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
Spacing = new Vector2(0, 5);
|
Spacing = new Vector2(0, 5);
|
||||||
|
@ -42,7 +42,7 @@ namespace osu.Game.Overlays.Options
|
|||||||
Anchor = Anchor.CentreLeft,
|
Anchor = Anchor.CentreLeft,
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
Direction = FlowDirection.VerticalOnly
|
Direction = FlowDirections.Vertical
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -82,7 +82,7 @@ namespace osu.Game.Overlays
|
|||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
Direction = FlowDirection.VerticalOnly,
|
Direction = FlowDirections.Vertical,
|
||||||
|
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
@ -103,7 +103,7 @@ namespace osu.Game.Overlays
|
|||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
Direction = FlowDirection.VerticalOnly,
|
Direction = FlowDirections.Vertical,
|
||||||
Children = sections,
|
Children = sections,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -141,7 +141,7 @@ namespace osu.Game.Overlays
|
|||||||
|
|
||||||
foreach (OptionsSection section in sections)
|
foreach (OptionsSection section in sections)
|
||||||
{
|
{
|
||||||
float distance = Math.Abs(scrollContainer.GetChildYInContent(section) - currentScroll);
|
float distance = Math.Abs(scrollContainer.GetChildPosInContent(section) - currentScroll);
|
||||||
if (distance < bestDistance)
|
if (distance < bestDistance)
|
||||||
{
|
{
|
||||||
bestDistance = distance;
|
bestDistance = distance;
|
||||||
|
@ -104,7 +104,7 @@ namespace osu.Game.Overlays.Pause
|
|||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
Direction = FlowDirection.VerticalOnly,
|
Direction = FlowDirections.Vertical,
|
||||||
Spacing = new Vector2(0f, 50f),
|
Spacing = new Vector2(0f, 50f),
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
@ -113,7 +113,7 @@ namespace osu.Game.Overlays.Pause
|
|||||||
new FlowContainer
|
new FlowContainer
|
||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
Direction = FlowDirection.VerticalOnly,
|
Direction = FlowDirections.Vertical,
|
||||||
Spacing = new Vector2(0f, 20f),
|
Spacing = new Vector2(0f, 20f),
|
||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
Anchor = Anchor.TopCentre,
|
Anchor = Anchor.TopCentre,
|
||||||
|
@ -43,7 +43,7 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
new ToolbarBackground(),
|
new ToolbarBackground(),
|
||||||
new FlowContainer
|
new FlowContainer
|
||||||
{
|
{
|
||||||
Direction = FlowDirection.HorizontalOnly,
|
Direction = FlowDirections.Horizontal,
|
||||||
RelativeSizeAxes = Axes.Y,
|
RelativeSizeAxes = Axes.Y,
|
||||||
AutoSizeAxes = Axes.X,
|
AutoSizeAxes = Axes.X,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
@ -63,7 +63,7 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
{
|
{
|
||||||
Anchor = Anchor.TopRight,
|
Anchor = Anchor.TopRight,
|
||||||
Origin = Anchor.TopRight,
|
Origin = Anchor.TopRight,
|
||||||
Direction = FlowDirection.HorizontalOnly,
|
Direction = FlowDirections.Horizontal,
|
||||||
RelativeSizeAxes = Axes.Y,
|
RelativeSizeAxes = Axes.Y,
|
||||||
AutoSizeAxes = Axes.X,
|
AutoSizeAxes = Axes.X,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
|
@ -84,7 +84,7 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
},
|
},
|
||||||
Flow = new FlowContainer
|
Flow = new FlowContainer
|
||||||
{
|
{
|
||||||
Direction = FlowDirection.HorizontalOnly,
|
Direction = FlowDirections.Horizontal,
|
||||||
Anchor = Anchor.TopCentre,
|
Anchor = Anchor.TopCentre,
|
||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
Padding = new MarginPadding { Left = Toolbar.HEIGHT / 2, Right = Toolbar.HEIGHT / 2 },
|
Padding = new MarginPadding { Left = Toolbar.HEIGHT / 2, Right = Toolbar.HEIGHT / 2 },
|
||||||
@ -107,7 +107,7 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
},
|
},
|
||||||
tooltipContainer = new FlowContainer
|
tooltipContainer = new FlowContainer
|
||||||
{
|
{
|
||||||
Direction = FlowDirection.VerticalOnly,
|
Direction = FlowDirections.Vertical,
|
||||||
RelativeSizeAxes = Axes.Both, //stops us being considered in parent's autosize
|
RelativeSizeAxes = Axes.Both, //stops us being considered in parent's autosize
|
||||||
Anchor = (TooltipAnchor & Anchor.x0) > 0 ? Anchor.BottomLeft : Anchor.BottomRight,
|
Anchor = (TooltipAnchor & Anchor.x0) > 0 ? Anchor.BottomLeft : Anchor.BottomRight,
|
||||||
Origin = TooltipAnchor,
|
Origin = TooltipAnchor,
|
||||||
|
@ -38,7 +38,7 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Y,
|
RelativeSizeAxes = Axes.Y,
|
||||||
AutoSizeAxes = Axes.X,
|
AutoSizeAxes = Axes.X,
|
||||||
Direction = FlowDirection.HorizontalOnly,
|
Direction = FlowDirections.Horizontal,
|
||||||
Anchor = Anchor.TopCentre,
|
Anchor = Anchor.TopCentre,
|
||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
Padding = new MarginPadding { Left = padding, Right = padding },
|
Padding = new MarginPadding { Left = padding, Right = padding },
|
||||||
|
@ -78,7 +78,6 @@ namespace osu.Game.Screens.Backgrounds
|
|||||||
public BeatmapBackground(WorkingBeatmap beatmap)
|
public BeatmapBackground(WorkingBeatmap beatmap)
|
||||||
{
|
{
|
||||||
this.beatmap = beatmap;
|
this.beatmap = beatmap;
|
||||||
CacheDrawnFrameBuffer = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
|
@ -126,7 +126,7 @@ namespace osu.Game.Screens
|
|||||||
},
|
},
|
||||||
childModeButtons = new FlowContainer
|
childModeButtons = new FlowContainer
|
||||||
{
|
{
|
||||||
Direction = FlowDirection.VerticalOnly,
|
Direction = FlowDirections.Vertical,
|
||||||
Anchor = Anchor.TopRight,
|
Anchor = Anchor.TopRight,
|
||||||
Origin = Anchor.TopRight,
|
Origin = Anchor.TopRight,
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
@ -145,7 +145,7 @@ namespace osu.Game.Screens
|
|||||||
Size = new Vector2(1, 40),
|
Size = new Vector2(1, 40),
|
||||||
Anchor = Anchor.BottomRight,
|
Anchor = Anchor.BottomRight,
|
||||||
Origin = Anchor.BottomRight,
|
Origin = Anchor.BottomRight,
|
||||||
Colour = getColourFor(t),
|
BackgroundColour = getColourFor(t),
|
||||||
Action = delegate
|
Action = delegate
|
||||||
{
|
{
|
||||||
Push(Activator.CreateInstance(t) as GameMode);
|
Push(Activator.CreateInstance(t) as GameMode);
|
||||||
|
@ -114,7 +114,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
new OsuSpriteText
|
new OsuSpriteText
|
||||||
{
|
{
|
||||||
Shadow = true,
|
Shadow = true,
|
||||||
Direction = FlowDirection.HorizontalOnly,
|
Direction = FlowDirections.Horizontal,
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
TextSize = 16,
|
TextSize = 16,
|
||||||
|
@ -81,7 +81,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
},
|
},
|
||||||
buttonFlow = new FlowContainerWithOrigin
|
buttonFlow = new FlowContainerWithOrigin
|
||||||
{
|
{
|
||||||
Direction = FlowDirection.HorizontalOnly,
|
Direction = FlowDirections.Horizontal,
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
Spacing = new Vector2(-WEDGE_WIDTH, 0),
|
Spacing = new Vector2(-WEDGE_WIDTH, 0),
|
||||||
|
@ -12,7 +12,7 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
public KeyCounterCollection()
|
public KeyCounterCollection()
|
||||||
{
|
{
|
||||||
Direction = FlowDirection.HorizontalOnly;
|
Direction = FlowDirections.Horizontal;
|
||||||
AutoSizeAxes = Axes.Both;
|
AutoSizeAxes = Axes.Both;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ namespace osu.Game.Screens.Play
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (Beatmap == null)
|
if (Beatmap == null)
|
||||||
Beatmap = beatmaps.GetWorkingBeatmap(BeatmapInfo);
|
Beatmap = beatmaps.GetWorkingBeatmap(BeatmapInfo, withStoryboard: true);
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
@ -237,11 +237,10 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
|
|
||||||
Delay(250, true);
|
Content.Delay(250);
|
||||||
Content.FadeIn(250);
|
Content.FadeIn(250);
|
||||||
|
|
||||||
Delay(500, true);
|
Delay(750);
|
||||||
|
|
||||||
Schedule(() =>
|
Schedule(() =>
|
||||||
{
|
{
|
||||||
sourceClock.Start();
|
sourceClock.Start();
|
||||||
|
@ -69,7 +69,7 @@ namespace osu.Game.Screens.Ranking
|
|||||||
new FlowContainer
|
new FlowContainer
|
||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
Direction = FlowDirection.VerticalOnly,
|
Direction = FlowDirections.Vertical,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new OsuSpriteText
|
new OsuSpriteText
|
||||||
|
@ -127,7 +127,7 @@ namespace osu.Game.Screens.Select
|
|||||||
{
|
{
|
||||||
Anchor = Anchor.BottomLeft,
|
Anchor = Anchor.BottomLeft,
|
||||||
Origin = Anchor.BottomLeft,
|
Origin = Anchor.BottomLeft,
|
||||||
Direction = FlowDirection.VerticalOnly,
|
Direction = FlowDirections.Vertical,
|
||||||
Margin = new MarginPadding { Top = 10, Left = 25, Right = 10, Bottom = 20 },
|
Margin = new MarginPadding { Top = 10, Left = 25, Right = 10, Bottom = 20 },
|
||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
@ -149,7 +149,7 @@ namespace osu.Game.Screens.Select
|
|||||||
new FlowContainer
|
new FlowContainer
|
||||||
{
|
{
|
||||||
Margin = new MarginPadding { Top = 10 },
|
Margin = new MarginPadding { Top = 10 },
|
||||||
Direction = FlowDirection.HorizontalOnly,
|
Direction = FlowDirections.Horizontal,
|
||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
Children = new []
|
Children = new []
|
||||||
{
|
{
|
||||||
|
@ -43,7 +43,7 @@ namespace osu.Game.Screens.Select
|
|||||||
Anchor = Anchor.TopRight,
|
Anchor = Anchor.TopRight,
|
||||||
Origin = Anchor.TopRight,
|
Origin = Anchor.TopRight,
|
||||||
Width = 0.4f, // TODO: InnerWidth property or something
|
Width = 0.4f, // TODO: InnerWidth property or something
|
||||||
Direction = FlowDirection.VerticalOnly,
|
Direction = FlowDirections.Vertical,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
searchTextBox = new SearchTextBox { RelativeSizeAxes = Axes.X },
|
searchTextBox = new SearchTextBox { RelativeSizeAxes = Axes.X },
|
||||||
@ -175,7 +175,7 @@ namespace osu.Game.Screens.Select
|
|||||||
new FlowContainer
|
new FlowContainer
|
||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
Direction = FlowDirection.HorizontalOnly,
|
Direction = FlowDirections.Horizontal,
|
||||||
Spacing = new Vector2(10, 0),
|
Spacing = new Vector2(10, 0),
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
@ -207,7 +207,7 @@ namespace osu.Game.Screens.Select
|
|||||||
new FlowContainer
|
new FlowContainer
|
||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
Direction = FlowDirection.HorizontalOnly,
|
Direction = FlowDirections.Horizontal,
|
||||||
Spacing = new Vector2(10, 0),
|
Spacing = new Vector2(10, 0),
|
||||||
Origin = Anchor.TopRight,
|
Origin = Anchor.TopRight,
|
||||||
Anchor = Anchor.TopRight,
|
Anchor = Anchor.TopRight,
|
||||||
|
@ -94,14 +94,14 @@ namespace osu.Game.Screens.Select
|
|||||||
Position = new Vector2(BackButton.SIZE_EXTENDED.X + padding, 0),
|
Position = new Vector2(BackButton.SIZE_EXTENDED.X + padding, 0),
|
||||||
RelativeSizeAxes = Axes.Y,
|
RelativeSizeAxes = Axes.Y,
|
||||||
AutoSizeAxes = Axes.X,
|
AutoSizeAxes = Axes.X,
|
||||||
Direction = FlowDirection.HorizontalOnly,
|
Direction = FlowDirections.Horizontal,
|
||||||
Spacing = new Vector2(padding, 0),
|
Spacing = new Vector2(padding, 0),
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
|
|
||||||
buttons = new FlowContainer
|
buttons = new FlowContainer
|
||||||
{
|
{
|
||||||
Direction = FlowDirection.HorizontalOnly,
|
Direction = FlowDirections.Horizontal,
|
||||||
Spacing = new Vector2(0.2f, 0),
|
Spacing = new Vector2(0.2f, 0),
|
||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<packages>
|
<packages>
|
||||||
<package id="DotNetZip" version="1.10.1" targetFramework="net45" />
|
<package id="DotNetZip" version="1.10.1" targetFramework="net45" />
|
||||||
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net45" />
|
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net45" />
|
||||||
|
@ -4,6 +4,6 @@
|
|||||||
|
|
||||||
extensions: .xml .config .xsd
|
extensions: .xml .config .xsd
|
||||||
<!--
|
<!--
|
||||||
Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
-->
|
-->
|
7
osu.sln
7
osu.sln
@ -31,6 +31,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "osu.Game.Modes.Mania", "osu
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "osu.Desktop.Tests", "osu.Desktop.Tests\osu.Desktop.Tests.csproj", "{230AC4F3-7783-49FB-9AEC-B83CDA3B9F3D}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "osu.Desktop.Tests", "osu.Desktop.Tests\osu.Desktop.Tests.csproj", "{230AC4F3-7783-49FB-9AEC-B83CDA3B9F3D}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "osu.Desktop.Deploy", "osu.Desktop.Deploy\osu.Desktop.Deploy.csproj", "{BAEA2F74-0315-4667-84E0-ACAC0B4BF785}"
|
||||||
|
EndProject
|
||||||
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tools", "Tools", "{6EAD7610-89D8-48A2-8BE0-E348297E4D8B}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
@ -85,6 +89,8 @@ Global
|
|||||||
{230AC4F3-7783-49FB-9AEC-B83CDA3B9F3D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{230AC4F3-7783-49FB-9AEC-B83CDA3B9F3D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{230AC4F3-7783-49FB-9AEC-B83CDA3B9F3D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{230AC4F3-7783-49FB-9AEC-B83CDA3B9F3D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{230AC4F3-7783-49FB-9AEC-B83CDA3B9F3D}.Release|Any CPU.Build.0 = Release|Any CPU
|
{230AC4F3-7783-49FB-9AEC-B83CDA3B9F3D}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{BAEA2F74-0315-4667-84E0-ACAC0B4BF785}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{BAEA2F74-0315-4667-84E0-ACAC0B4BF785}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
@ -102,6 +108,7 @@ Global
|
|||||||
{F167E17A-7DE6-4AF5-B920-A5112296C695} = {0D37A2AD-80A4-464F-A1DE-1560B70F1CE3}
|
{F167E17A-7DE6-4AF5-B920-A5112296C695} = {0D37A2AD-80A4-464F-A1DE-1560B70F1CE3}
|
||||||
{48F4582B-7687-4621-9CBE-5C24197CB536} = {0D37A2AD-80A4-464F-A1DE-1560B70F1CE3}
|
{48F4582B-7687-4621-9CBE-5C24197CB536} = {0D37A2AD-80A4-464F-A1DE-1560B70F1CE3}
|
||||||
{230AC4F3-7783-49FB-9AEC-B83CDA3B9F3D} = {0D37A2AD-80A4-464F-A1DE-1560B70F1CE3}
|
{230AC4F3-7783-49FB-9AEC-B83CDA3B9F3D} = {0D37A2AD-80A4-464F-A1DE-1560B70F1CE3}
|
||||||
|
{BAEA2F74-0315-4667-84E0-ACAC0B4BF785} = {6EAD7610-89D8-48A2-8BE0-E348297E4D8B}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(MonoDevelopProperties) = preSolution
|
GlobalSection(MonoDevelopProperties) = preSolution
|
||||||
Policies = $0
|
Policies = $0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user