Skip to content

Commit

Permalink
+CHANGELOG.md +Launcher visual
Browse files Browse the repository at this point in the history
  • Loading branch information
guerro323 committed May 4, 2021
1 parent 07f5e3c commit 90d1ce7
Show file tree
Hide file tree
Showing 35 changed files with 1,830 additions and 42 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# 2021.05.04.1640
## Launcher
+ Launcher Visual overhaul (work in progress)
+ Added Settings pages
+ Updates are now not downloaded automatically, the users need to manually click on a notification to download it.
+ Update Channels (release, beta)

## Game
+ Masterserver connection added throught the launcher (work in progress)
• (Temporary) Removed 64 Yarida gamemode to have a simple gamemode with simple enemies and destructible stuff.

## Client
+ The client is now integrated in the game window. (there are still some optimizations to make since the launcher is also getting rendered along with the client)

## Framework
+ Upgraded to NET 5.0
24 changes: 24 additions & 0 deletions PataNext.Export.Desktop.Tests/PataNext.Export.Desktop.Tests.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>

<IsPackable>false</IsPackable>

<OutputType>WinExe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<GenerateProgramFile>false</GenerateProgramFile>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NUnit" Version="3.13.1" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
<PackageReference Include="ppy.osu.Framework" Version="2021.424.1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\PataNext.Export.Desktop\PataNext.Export.Desktop.csproj" />
</ItemGroup>

</Project>
17 changes: 17 additions & 0 deletions PataNext.Export.Desktop.Tests/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System.Threading;
using System.Threading.Tasks;
using osu.Framework;
using osu.Framework.Platform;

namespace PataNext.Export.Desktop.Tests
{
public static class Program
{
public static void Main()
{
using (osu.Framework.Platform.GameHost host = Host.GetSuitableHost("visual-tests"))
using (var game = new TestGameBrowser())
host.Run(game);
}
}
}
72 changes: 72 additions & 0 deletions PataNext.Export.Desktop.Tests/TestBrowser.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
using System;
using System.Linq;
using System.Reflection;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Cursor;
using osu.Framework.IO.Stores;
using osu.Framework.Platform;
using osu.Framework.Testing;
using osuTK;
using PataNext.Export.Desktop.Visual;

namespace PataNext.Export.Desktop.Tests
{
public class TestGameBrowser : VisualGameBase
{
protected override Container<Drawable> Content { get; }

public TestGameBrowser()
{
// Ensure game and tests scale with window size and screen DPI.
base.Content.Add(Content = new DrawSizePreservingFillContainer
{
// You may want to change TargetDrawSize to your "default" resolution, which will decide how things scale and position when using absolute coordinates.
TargetDrawSize = new Vector2(1366, 768)
});
}

protected override void LoadComplete()
{
base.LoadComplete();

AddRange(new Drawable[]
{
new TestBrowser("PataNext"),
new CursorContainer()
});

/*Assembly wA = null;
foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies())
{
Console.WriteLine(assembly.FullName);
if (assembly.FullName?.Contains("Win32") == true)
wA = assembly;
}
if (wA != null)
{
Console.WriteLine("WindowsAssembly Found: " + wA.FullName);
foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies())
{
if (assembly != wA)
{
foreach (var asm in assembly.GetReferencedAssemblies())
if (asm.Name.Contains(wA.GetName().Name) || asm.Name.Contains("Windows") || asm.Name.Contains("Win32"))
Console.WriteLine($"\t{assembly.FullName} contains wA ({asm.Name})");
}
}
foreach (var refe in wA.GetReferencedAssemblies())
Console.WriteLine("reference to " + refe.FullName);
}*/
}

public override void SetHost(osu.Framework.Platform.GameHost host)
{
base.SetHost(host);
host.Window.CursorState |= CursorState.Hidden;
}
}
}
18 changes: 18 additions & 0 deletions PataNext.Export.Desktop.Tests/UnitTest1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using NUnit.Framework;

namespace PataNext.Export.Desktop.Tests
{
public class Tests
{
[SetUp]
public void Setup()
{
}

[Test]
public void Test1()
{
Assert.Pass();
}
}
}
Loading

0 comments on commit 90d1ce7

Please sign in to comment.