mirror of
https://github.com/ppy/osu.git
synced 2025-01-29 01:22:54 +08:00
Fix ClickableText test case
This commit is contained in:
parent
2b7f657f2c
commit
421c95156b
@ -12,6 +12,7 @@ namespace osu.Game.Tests.Visual
|
|||||||
{
|
{
|
||||||
public override IReadOnlyList<Type> RequiredTypes => new[] { typeof(ClickableText), typeof(FillFlowContainer) };
|
public override IReadOnlyList<Type> RequiredTypes => new[] { typeof(ClickableText), typeof(FillFlowContainer) };
|
||||||
|
|
||||||
|
private readonly ClickableText text;
|
||||||
public TestCaseClickableText() => Child = new FillFlowContainer
|
public TestCaseClickableText() => Child = new FillFlowContainer
|
||||||
{
|
{
|
||||||
Children = new[]
|
Children = new[]
|
||||||
@ -21,7 +22,7 @@ namespace osu.Game.Tests.Visual
|
|||||||
new ClickableText { Text = "Without sounds", IsMuted = true, },
|
new ClickableText { Text = "Without sounds", IsMuted = true, },
|
||||||
new ClickableText { Text = "Without click sounds", IsClickMuted = true, },
|
new ClickableText { Text = "Without click sounds", IsClickMuted = true, },
|
||||||
new ClickableText { Text = "Without hover sounds", IsHoverMuted = true, },
|
new ClickableText { Text = "Without hover sounds", IsHoverMuted = true, },
|
||||||
new ClickableText { Text = "Disables after click (Action)", },
|
text = new ClickableText { Text = "Disables after click (Action)", Action = () => text.IsEnabled = false },
|
||||||
new ClickableText { Text = "Has tooltip", TooltipText = "Yep", },
|
new ClickableText { Text = "Has tooltip", TooltipText = "Yep", },
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user