mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Delete ClickableText class, use OsuHoverContainer instead
This commit is contained in:
@ -1,30 +0,0 @@
|
||||
// Copyright (c) 2007-2018 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.Graphics.UserInterface;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace osu.Game.Tests.Visual
|
||||
{
|
||||
public class TestCaseClickableText : OsuTestCase
|
||||
{
|
||||
public override IReadOnlyList<Type> RequiredTypes => new[] { typeof(ClickableText), typeof(FillFlowContainer) };
|
||||
|
||||
private readonly ClickableText text;
|
||||
public TestCaseClickableText() => Child = new FillFlowContainer
|
||||
{
|
||||
Children = new[]
|
||||
{
|
||||
new ClickableText { Text = "Default", },
|
||||
new ClickableText { IsEnabled = false, Text = "Disabled", },
|
||||
new ClickableText { Text = "Without sounds", IsMuted = true, },
|
||||
new ClickableText { Text = "Without click sounds", IsClickMuted = true, },
|
||||
new ClickableText { Text = "Without hover sounds", IsHoverMuted = true, },
|
||||
text = new ClickableText { Text = "Disables after click (Action)", Action = () => text.IsEnabled = false },
|
||||
new ClickableText { Text = "Has tooltip", TooltipText = "Yep", },
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user