mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 07:23:14 +08:00
Log posted notifications
To help with test failures and the likes.
This commit is contained in:
parent
c32c26dc72
commit
cdef67ccd0
@ -12,6 +12,7 @@ using osu.Framework.Allocation;
|
|||||||
using osu.Framework.Audio;
|
using osu.Framework.Audio;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Localisation;
|
using osu.Framework.Localisation;
|
||||||
|
using osu.Framework.Logging;
|
||||||
using osu.Framework.Threading;
|
using osu.Framework.Threading;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
using osu.Game.Localisation;
|
using osu.Game.Localisation;
|
||||||
@ -118,6 +119,8 @@ namespace osu.Game.Overlays
|
|||||||
{
|
{
|
||||||
++runningDepth;
|
++runningDepth;
|
||||||
|
|
||||||
|
Logger.Log($"⚠️ {notification.Text}");
|
||||||
|
|
||||||
notification.Closed += notificationClosed;
|
notification.Closed += notificationClosed;
|
||||||
|
|
||||||
if (notification is IHasCompletionTarget hasCompletionTarget)
|
if (notification is IHasCompletionTarget hasCompletionTarget)
|
||||||
|
@ -11,6 +11,7 @@ using osu.Framework.Graphics.Effects;
|
|||||||
using osu.Framework.Graphics.Shapes;
|
using osu.Framework.Graphics.Shapes;
|
||||||
using osu.Framework.Graphics.Sprites;
|
using osu.Framework.Graphics.Sprites;
|
||||||
using osu.Framework.Input.Events;
|
using osu.Framework.Input.Events;
|
||||||
|
using osu.Framework.Localisation;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
using osu.Game.Graphics.Containers;
|
using osu.Game.Graphics.Containers;
|
||||||
using osuTK;
|
using osuTK;
|
||||||
@ -25,6 +26,8 @@ namespace osu.Game.Overlays.Notifications
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public event Action Closed;
|
public event Action Closed;
|
||||||
|
|
||||||
|
public abstract LocalisableString Text { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether this notification should forcefully display itself.
|
/// Whether this notification should forcefully display itself.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -25,7 +25,7 @@ namespace osu.Game.Overlays.Notifications
|
|||||||
|
|
||||||
private LocalisableString text;
|
private LocalisableString text;
|
||||||
|
|
||||||
public LocalisableString Text
|
public override LocalisableString Text
|
||||||
{
|
{
|
||||||
get => text;
|
get => text;
|
||||||
set
|
set
|
||||||
|
@ -18,7 +18,7 @@ namespace osu.Game.Overlays.Notifications
|
|||||||
{
|
{
|
||||||
private LocalisableString text;
|
private LocalisableString text;
|
||||||
|
|
||||||
public LocalisableString Text
|
public override LocalisableString Text
|
||||||
{
|
{
|
||||||
get => text;
|
get => text;
|
||||||
set
|
set
|
||||||
|
Loading…
Reference in New Issue
Block a user