1
0
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:
Drew DeVault 2016-11-02 22:49:26 -04:00
parent 6c0cef894e
commit 7e77efcfdc
9 changed files with 131 additions and 8 deletions

View 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" }
};
}
}
}

View File

@ -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(),
};
}
}
}

View File

@ -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" },
};
}
}

View 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" },
};
}
}
}

View 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" },
};
}
}
}

View 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" },
};
}
}
}

View 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" }
};
}
}
}

View File

@ -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,

View File

@ -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">