-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
2,314 additions
and
509 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using GameHost.Inputs.Systems; | ||
using SharpInputSystem; | ||
|
||
namespace PataNext.Export.Desktop.Tests | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
PataNext.Export.Desktop.Tests/Visual/GithubChangelogScene.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Net; | ||
using osu.Framework.Allocation; | ||
using osu.Framework.Graphics; | ||
using osu.Framework.Testing; | ||
using osuTK; | ||
using PataNext.Export.Desktop.Visual; | ||
using PataNext.Export.Desktop.Visual.Dependencies; | ||
|
||
namespace PataNext.Export.Desktop.Tests.Visual | ||
{ | ||
public class GithubChangelogScene : TestScene | ||
{ | ||
[BackgroundDependencyLoader] | ||
private void load() | ||
{ | ||
var changelog = new HomeChangelogControl {Size = Vector2.One, RelativeSizeAxes = Axes.Both}; | ||
Child = changelog; | ||
|
||
var provider = new WebChangelogProvider(new("https://raw.githubusercontent.com/guerro323/patanext/master/CHANGELOG.md"), Scheduler); | ||
provider.Current.BindValueChanged(ev => | ||
{ | ||
if (ev.NewValue == null) | ||
return; | ||
|
||
changelog.Set("test", ev.NewValue); | ||
}); | ||
} | ||
} | ||
} |
Oops, something went wrong.