-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
31 changed files
with
797 additions
and
174 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
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
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
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
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 |
---|---|---|
@@ -1,42 +1,12 @@ | ||
// Copyright (c) VolcanicArts. Licensed under the GPL-3.0 License. | ||
// See the LICENSE file in the repository root for full license text. | ||
|
||
using osu.Framework.Allocation; | ||
using osu.Framework.Graphics; | ||
using osu.Framework.Graphics.Containers; | ||
using osu.Framework.Graphics.Sprites; | ||
using osuTK; | ||
using VRCOSC.Game.Graphics.Screen; | ||
using VRCOSC.Game.Graphics.Themes; | ||
using VRCOSC.Game.Graphics.UI.Button; | ||
|
||
namespace VRCOSC.Game.Graphics.ModuleListing; | ||
|
||
public sealed partial class ModulesHeader : BaseHeader | ||
{ | ||
[Resolved] | ||
private ModulesScreen modulesScreen { get; set; } = null!; | ||
|
||
protected override string Title => "Modules"; | ||
protected override string SubTitle => "Select modules and edit settings/parameters"; | ||
|
||
// protected override Drawable CreateRightShoulder() => new Container | ||
// { | ||
// Anchor = Anchor.Centre, | ||
// Origin = Anchor.Centre, | ||
// RelativeSizeAxes = Axes.Both, | ||
// Child = new IconButton | ||
// { | ||
// Anchor = Anchor.Centre, | ||
// Origin = Anchor.Centre, | ||
// RelativeSizeAxes = Axes.Both, | ||
// FillMode = FillMode.Fit, | ||
// Size = new Vector2(0.8f), | ||
// Icon = FontAwesome.Solid.Download, | ||
// IconShadow = true, | ||
// CornerRadius = 10, | ||
// BackgroundColour = ThemeManager.Current[ThemeAttribute.Action], | ||
// Action = () => modulesScreen.ShowRepoListing() | ||
// } | ||
// }; | ||
} |
11 changes: 10 additions & 1 deletion
11
VRCOSC.Game/Graphics/Notifications/ExceptionNotification.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 |
---|---|---|
@@ -1,18 +1,27 @@ | ||
// Copyright (c) VolcanicArts. Licensed under the GPL-3.0 License. | ||
// See the LICENSE file in the repository root for full license text. | ||
|
||
using osu.Framework.Allocation; | ||
using osu.Framework.Graphics.Sprites; | ||
using osu.Framework.Platform; | ||
using VRCOSC.Game.Graphics.Themes; | ||
|
||
namespace VRCOSC.Game.Graphics.Notifications; | ||
|
||
public partial class ExceptionNotification : BasicNotification | ||
{ | ||
[Resolved] | ||
private GameHost host { get; set; } = null!; | ||
|
||
[Resolved] | ||
private Storage storage { get; set; } = null!; | ||
|
||
public ExceptionNotification(string message) | ||
{ | ||
Title = "Exception Detected"; | ||
Description = message; | ||
Description = message + ".\nClick to open logs"; | ||
Icon = FontAwesome.Solid.ExclamationTriangle; | ||
Colour = ThemeManager.Current[ThemeAttribute.Failure]; | ||
ClickCallback += () => host.OpenFileExternally(storage.GetStorageForDirectory("logs").GetFullPath("runtime.log")); | ||
} | ||
} |
Oops, something went wrong.