public TestSceneReplaySettingsOverlay() { ExampleContainer container; Add(new PlayerSettingsOverlay { Anchor = Anchor.TopRight, Origin = Anchor.TopRight, }); Add(container = new ExampleContainer()); AddStep(@"Add button", () => container.Add(new TriangleButton { RelativeSizeAxes = Axes.X, Text = @"Button", })); AddStep(@"Add checkbox", () => container.Add(new PlayerCheckbox { LabelText = "Checkbox", })); AddStep(@"Add textbox", () => container.Add(new FocusedTextBox { RelativeSizeAxes = Axes.X, Height = 30, PlaceholderText = "Textbox", HoldFocus = false, })); }
public override void Reset() { base.Reset(); Add(new ReplaySettingsOverlay() { Anchor = Anchor.TopRight, Origin = Anchor.TopRight, }); Add(container = new ExampleContainer()); AddStep(@"Add button", () => container.Add(new OsuButton { RelativeSizeAxes = Axes.X, Text = @"Button", })); AddStep(@"Add checkbox", () => container.Add(new ReplayCheckbox { LabelText = "Checkbox", })); AddStep(@"Add textbox", () => container.Add(new FocusedTextBox { RelativeSizeAxes = Axes.X, Height = 30, PlaceholderText = "Textbox", HoldFocus = false, })); }