mirror of
https://github.com/osukey/osukey.git
synced 2025-05-05 21:57:24 +09:00
Revert "Remove PopoverButton class"
This reverts commit 6b712be97d08de140bd6d3b0cb81d8d90412194b.
This commit is contained in:
parent
34a367b369
commit
547418e47e
@ -79,7 +79,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
ClickButtonWhenEnabled<CountdownButton>();
|
ClickButtonWhenEnabled<CountdownButton>();
|
||||||
AddStep("click the first countdown button", () =>
|
AddStep("click the first countdown button", () =>
|
||||||
{
|
{
|
||||||
var popoverButton = this.ChildrenOfType<CountdownButton>().Single().ChildrenOfType<OsuButton>().First();
|
var popoverButton = this.ChildrenOfType<CountdownButton.PopoverButton>().First();
|
||||||
InputManager.MoveMouseTo(popoverButton);
|
InputManager.MoveMouseTo(popoverButton);
|
||||||
InputManager.Click(MouseButton.Left);
|
InputManager.Click(MouseButton.Left);
|
||||||
});
|
});
|
||||||
@ -97,7 +97,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
ClickButtonWhenEnabled<CountdownButton>();
|
ClickButtonWhenEnabled<CountdownButton>();
|
||||||
AddStep("click the first countdown button", () =>
|
AddStep("click the first countdown button", () =>
|
||||||
{
|
{
|
||||||
var popoverButton = this.ChildrenOfType<CountdownButton>().Single().ChildrenOfType<OsuButton>().First();
|
var popoverButton = this.ChildrenOfType<CountdownButton.PopoverButton>().First();
|
||||||
InputManager.MoveMouseTo(popoverButton);
|
InputManager.MoveMouseTo(popoverButton);
|
||||||
InputManager.Click(MouseButton.Left);
|
InputManager.Click(MouseButton.Left);
|
||||||
});
|
});
|
||||||
@ -150,7 +150,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
ClickButtonWhenEnabled<CountdownButton>();
|
ClickButtonWhenEnabled<CountdownButton>();
|
||||||
AddStep("click the first countdown button", () =>
|
AddStep("click the first countdown button", () =>
|
||||||
{
|
{
|
||||||
var popoverButton = this.ChildrenOfType<CountdownButton>().Single().ChildrenOfType<OsuButton>().First();
|
var popoverButton = this.ChildrenOfType<CountdownButton.PopoverButton>().First();
|
||||||
InputManager.MoveMouseTo(popoverButton);
|
InputManager.MoveMouseTo(popoverButton);
|
||||||
InputManager.Click(MouseButton.Left);
|
InputManager.Click(MouseButton.Left);
|
||||||
});
|
});
|
||||||
@ -173,7 +173,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
ClickButtonWhenEnabled<CountdownButton>();
|
ClickButtonWhenEnabled<CountdownButton>();
|
||||||
AddStep("click the first countdown button", () =>
|
AddStep("click the first countdown button", () =>
|
||||||
{
|
{
|
||||||
var popoverButton = this.ChildrenOfType<CountdownButton>().Single().ChildrenOfType<OsuButton>().First();
|
var popoverButton = this.ChildrenOfType<CountdownButton.PopoverButton>().First();
|
||||||
InputManager.MoveMouseTo(popoverButton);
|
InputManager.MoveMouseTo(popoverButton);
|
||||||
InputManager.Click(MouseButton.Left);
|
InputManager.Click(MouseButton.Left);
|
||||||
});
|
});
|
||||||
|
@ -64,7 +64,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
|
|||||||
|
|
||||||
foreach (var duration in available_delays)
|
foreach (var duration in available_delays)
|
||||||
{
|
{
|
||||||
flow.Add(new OsuButton
|
flow.Add(new PopoverButton
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
Text = $"Start match in {duration.Humanize()}",
|
Text = $"Start match in {duration.Humanize()}",
|
||||||
@ -79,5 +79,9 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
|
|||||||
|
|
||||||
return new OsuPopover { Child = flow };
|
return new OsuPopover { Child = flow };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class PopoverButton : OsuButton
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user