Show InputSettings on the PlayerLoader screen

This commit is contained in:
Roman Kapustin 2018-05-09 17:31:52 +03:00
parent 6676c55fe0
commit ccf82cacb0
2 changed files with 15 additions and 7 deletions

View File

@ -7,15 +7,15 @@
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Input;
using osu.Framework.Localisation;
using osu.Framework.Screens;
using osu.Framework.Threading;
using osu.Game.Beatmaps;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
using OpenTK;
using osu.Framework.Localisation;
using osu.Framework.Threading;
using osu.Game.Screens.Menu;
using osu.Game.Screens.Play.PlayerSettings;
using OpenTK;
namespace osu.Game.Screens.Play
{
@ -51,11 +51,19 @@ private void load()
Origin = Anchor.Centre,
});
Add(new VisualSettings
Add(new FillFlowContainer<PlayerSettingsGroup>
{
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
Margin = new MarginPadding(25)
AutoSizeAxes = Axes.Both,
Direction = FillDirection.Vertical,
Spacing = new Vector2(0, 20),
Margin = new MarginPadding { Top = 100, Right = 10 },
Children = new PlayerSettingsGroup[]
{
new VisualSettings(),
new InputSettings()
}
});
loadTask = LoadComponentAsync(player);

View File

@ -20,11 +20,11 @@ public InputSettings()
{
mouseWheelCheckbox = new PlayerCheckbox
{
LabelText = "Disable mouse wheel during gameplay"
LabelText = "Disable mouse wheel"
},
mouseButtonsCheckbox = new PlayerCheckbox
{
LabelText = "Disable mouse buttons during gameplay"
LabelText = "Disable mouse buttons"
}
};
}