mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
Add Graphics options
This commit is contained in:
parent
6c0cef894e
commit
7e77efcfdc
26
osu.Game/Overlays/Options/DetailSettings.cs
Normal file
26
osu.Game/Overlays/Options/DetailSettings.cs
Normal file
@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Sprites;
|
||||
using osu.Framework.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Overlays.Options
|
||||
{
|
||||
public class DetailSettings : OptionsSubsection
|
||||
{
|
||||
public DetailSettings()
|
||||
{
|
||||
Header = "Detail Settings";
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new BasicCheckBox { LabelText = "Snaking sliders" },
|
||||
new BasicCheckBox { LabelText = "Background video" },
|
||||
new BasicCheckBox { LabelText = "Storyboards" },
|
||||
new BasicCheckBox { LabelText = "Combo bursts" },
|
||||
new BasicCheckBox { LabelText = "Hit lighting" },
|
||||
new BasicCheckBox { LabelText = "Shaders" },
|
||||
new BasicCheckBox { LabelText = "Softening filter" },
|
||||
new SpriteText { Text = "Screenshot format TODO: dropdown" }
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
@ -1,4 +1,6 @@
|
||||
using System;
|
||||
using osu.Framework.Graphics;
|
||||
|
||||
namespace osu.Game.Overlays.Options
|
||||
{
|
||||
public class GraphicsOptions : OptionsSection
|
||||
@ -6,6 +8,14 @@ namespace osu.Game.Overlays.Options
|
||||
public GraphicsOptions()
|
||||
{
|
||||
Header = "Graphics";
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new RendererOptions(),
|
||||
new LayoutOptions(),
|
||||
new DetailSettings(),
|
||||
new MainMenuOptions(),
|
||||
new SongSelectGraphicsOptions(),
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -13,14 +13,8 @@ namespace osu.Game.Overlays.Options
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new SpriteText { Text = "TODO: Dropdown" },
|
||||
new BasicCheckBox
|
||||
{
|
||||
Children = new[] { new SpriteText { Text = "Prefer metadata in original language" } }
|
||||
},
|
||||
new BasicCheckBox
|
||||
{
|
||||
Children = new[] { new SpriteText { Text = "Use alternative font for chat display" } }
|
||||
},
|
||||
new BasicCheckBox { LabelText = "Prefer metadata in original language" },
|
||||
new BasicCheckBox { LabelText = "Use alternative font for chat display" },
|
||||
};
|
||||
}
|
||||
}
|
||||
|
25
osu.Game/Overlays/Options/LayoutOptions.cs
Normal file
25
osu.Game/Overlays/Options/LayoutOptions.cs
Normal file
@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Sprites;
|
||||
using osu.Framework.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Overlays.Options
|
||||
{
|
||||
public class LayoutOptions : OptionsSubsection
|
||||
{
|
||||
public LayoutOptions()
|
||||
{
|
||||
Header = "Layout";
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new SpriteText { Text = "Resolution: TODO dropdown" },
|
||||
new BasicCheckBox { LabelText = "Fullscreen mode" },
|
||||
new BasicCheckBox { LabelText = "Letterboxing" },
|
||||
new SpriteText { Text = "Horizontal position" },
|
||||
new SpriteText { Text = "TODO: slider" },
|
||||
new SpriteText { Text = "Vertical position" },
|
||||
new SpriteText { Text = "TODO: slider" },
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
21
osu.Game/Overlays/Options/MainMenuOptions.cs
Normal file
21
osu.Game/Overlays/Options/MainMenuOptions.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using osu.Framework.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Overlays.Options
|
||||
{
|
||||
public class MainMenuOptions : OptionsSubsection
|
||||
{
|
||||
public MainMenuOptions()
|
||||
{
|
||||
Header = "Main Menu";
|
||||
Children = new[]
|
||||
{
|
||||
new BasicCheckBox { LabelText = "Snow" },
|
||||
new BasicCheckBox { LabelText = "Parallax" },
|
||||
new BasicCheckBox { LabelText = "Menu tips" },
|
||||
new BasicCheckBox { LabelText = "Interface voices" },
|
||||
new BasicCheckBox { LabelText = "osu! music theme" },
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
23
osu.Game/Overlays/Options/RendererOptions.cs
Normal file
23
osu.Game/Overlays/Options/RendererOptions.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Sprites;
|
||||
using osu.Framework.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Overlays.Options
|
||||
{
|
||||
public class RendererOptions : OptionsSubsection
|
||||
{
|
||||
public RendererOptions()
|
||||
{
|
||||
Header = "Renderer";
|
||||
// NOTE: Compatability mode omitted
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new SpriteText { Text = "Frame limiter: TODO dropdown" },
|
||||
new BasicCheckBox { LabelText = "Show FPS counter" },
|
||||
new BasicCheckBox { LabelText = "Reduce dropped frames" },
|
||||
new BasicCheckBox { LabelText = "Detect performance issues" },
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
17
osu.Game/Overlays/Options/SongSelectGraphicsOptions.cs
Normal file
17
osu.Game/Overlays/Options/SongSelectGraphicsOptions.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using osu.Framework.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Overlays.Options
|
||||
{
|
||||
public class SongSelectGraphicsOptions : OptionsSubsection
|
||||
{
|
||||
public SongSelectGraphicsOptions()
|
||||
{
|
||||
Header = "Song Select";
|
||||
Children = new[]
|
||||
{
|
||||
new BasicCheckBox { LabelText = "Show thumbnails" }
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
@ -82,6 +82,7 @@ namespace osu.Game.Overlays
|
||||
Margin = new MarginPadding { Left = SideMargins, Bottom = 30 },
|
||||
},
|
||||
new GeneralOptions(storage, api),
|
||||
new GraphicsOptions(),
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -146,6 +147,7 @@ namespace osu.Game.Overlays
|
||||
Top = 10 + borderSize,
|
||||
Left = OptionsOverlay.SideMargins,
|
||||
Right = OptionsOverlay.SideMargins,
|
||||
Bottom = 10,
|
||||
},
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
|
@ -202,6 +202,11 @@
|
||||
<Compile Include="Overlays\Options\UpdateOptions.cs" />
|
||||
<Compile Include="Overlays\Options\GraphicsOptions.cs" />
|
||||
<Compile Include="Graphics\UserInterface\OsuButton.cs" />
|
||||
<Compile Include="Overlays\Options\RendererOptions.cs" />
|
||||
<Compile Include="Overlays\Options\LayoutOptions.cs" />
|
||||
<Compile Include="Overlays\Options\DetailSettings.cs" />
|
||||
<Compile Include="Overlays\Options\MainMenuOptions.cs" />
|
||||
<Compile Include="Overlays\Options\SongSelectGraphicsOptions.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="$(SolutionDir)\osu-framework\osu.Framework\osu.Framework.csproj">
|
||||
|
Loading…
Reference in New Issue
Block a user