mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 19:03:08 +08:00
Improve explanation text and add link to wiki
This commit is contained in:
parent
18f74b2840
commit
213ccfb743
@ -45,7 +45,7 @@ namespace osu.Game.Screens.Utility
|
|||||||
|
|
||||||
public override float BackgroundParallaxAmount => 0;
|
public override float BackgroundParallaxAmount => 0;
|
||||||
|
|
||||||
private readonly OsuTextFlowContainer explanatoryText;
|
private readonly LinkFlowContainer explanatoryText;
|
||||||
|
|
||||||
private readonly Container<LatencyArea> mainArea;
|
private readonly Container<LatencyArea> mainArea;
|
||||||
|
|
||||||
@ -134,25 +134,19 @@ namespace osu.Game.Screens.Utility
|
|||||||
{
|
{
|
||||||
Name = "Settings",
|
Name = "Settings",
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
RelativeSizeAxes = Axes.X,
|
Width = 800,
|
||||||
Padding = new MarginPadding(10),
|
Padding = new MarginPadding(10),
|
||||||
Spacing = new Vector2(2),
|
Spacing = new Vector2(2),
|
||||||
Direction = FillDirection.Vertical,
|
Direction = FillDirection.Vertical,
|
||||||
Anchor = Anchor.BottomCentre,
|
Anchor = Anchor.BottomCentre,
|
||||||
Origin = Anchor.BottomCentre,
|
Origin = Anchor.BottomCentre,
|
||||||
Child = explanatoryText = new OsuTextFlowContainer(cp => cp.Font = OsuFont.Default.With(size: 20))
|
Child = explanatoryText = new LinkFlowContainer(cp => cp.Font = OsuFont.Default.With(size: 20))
|
||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
Anchor = Anchor.TopCentre,
|
Anchor = Anchor.TopCentre,
|
||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
TextAnchor = Anchor.TopCentre,
|
TextAnchor = Anchor.TopCentre,
|
||||||
Text = @"Welcome to the latency certifier!
|
|
||||||
Use the arrow keys, Z/X/F/J to control the display.
|
|
||||||
Use the Tab key to change focus.
|
|
||||||
Change display modes with Space.
|
|
||||||
Do whatever you need to try and perceive the difference in latency, then choose your best side.
|
|
||||||
",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
resultsArea = new Container
|
resultsArea = new Container
|
||||||
@ -169,6 +163,12 @@ Do whatever you need to try and perceive the difference in latency, then choose
|
|||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
explanatoryText.AddParagraph(@"Welcome to the latency certifier!");
|
||||||
|
explanatoryText.AddParagraph(@"Do whatever you need to try and perceive the difference in latency, then choose your best side. Read more about the methodology ");
|
||||||
|
explanatoryText.AddLink("here", "https://github.com/ppy/osu/wiki/Latency-and-unlimited-frame-rates");
|
||||||
|
explanatoryText.AddParagraph(@"Use the arrow keys or Z/X/F/J to control the display.");
|
||||||
|
explanatoryText.AddParagraph(@"Tab key to change focus. Space to change display mode");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnMouseMove(MouseMoveEvent e)
|
protected override bool OnMouseMove(MouseMoveEvent e)
|
||||||
|
@ -60,7 +60,7 @@ namespace osu.Game.Screens.Utility.SampleComponents
|
|||||||
box.Y = MathHelper.Clamp(box.Y - movementAmount, 0.1f, 0.9f);
|
box.Y = MathHelper.Clamp(box.Y - movementAmount, 0.1f, 0.9f);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Key.K:
|
case Key.J:
|
||||||
case Key.Down:
|
case Key.Down:
|
||||||
box.Y = MathHelper.Clamp(box.Y + movementAmount, 0.1f, 0.9f);
|
box.Y = MathHelper.Clamp(box.Y + movementAmount, 0.1f, 0.9f);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user