1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 19:02:57 +08:00

Fix typo and warnings.

This commit is contained in:
Huo Yaoyuan 2017-03-14 21:20:38 +08:00
parent c939897a8a
commit f97e8ae97f
3 changed files with 15 additions and 5 deletions

View File

@ -10,10 +10,10 @@ namespace osu.Game.Screens.Edit
{ {
internal class Editor : ScreenWhiteBox internal class Editor : ScreenWhiteBox
{ {
private WorkingBeatmap beatmap; //private WorkingBeatmap beatmap;
public Editor(WorkingBeatmap wokringBeatmap) public Editor(WorkingBeatmap workingBeatmap)
{ {
beatmap = wokringBeatmap; //beatmap = workingBeatmap;
} }
protected override BackgroundScreen CreateBackground() => new BackgroundScreenCustom(@"Backgrounds/bg4"); protected override BackgroundScreen CreateBackground() => new BackgroundScreenCustom(@"Backgrounds/bg4");

View File

@ -36,6 +36,10 @@ namespace osu.Game.Screens.Select
public OsuLogo StartButton; public OsuLogo StartButton;
/// <param name="text">Text on the button.</param>
/// <param name="colour">Colour of the button.</param>
/// <param name="hotkey">Hotkey of the button.</param>
/// <param name="action">Action the button does.</param>
/// <param name="depth"> /// <param name="depth">
/// <para>Higher depth to be put on the left, and lower to be put on the right.</para> /// <para>Higher depth to be put on the left, and lower to be put on the right.</para>
/// <para>Notice this is different to <see cref="Options.BeatmapOptionsOverlay"/>!</para> /// <para>Notice this is different to <see cref="Options.BeatmapOptionsOverlay"/>!</para>

View File

@ -86,16 +86,22 @@ namespace osu.Game.Screens.Select.Options
}; };
} }
/// <param name="firstLine">Text in the first line.</param>
/// <param name="secondLine">Text in the second line.</param>
/// <param name="colour">Colour of the button.</param>
/// <param name="icon">Icon of the button.</param>
/// <param name="hotkey">Hotkey of the button.</param>
/// <param name="action">Action the button does.</param>
/// <param name="depth"> /// <param name="depth">
/// <para>Lower depth to be put on the left, and higher to be put on the right.</para> /// <para>Lower depth to be put on the left, and higher to be put on the right.</para>
/// <para>Notice this is different to <see cref="Footer"/>!</para> /// <para>Notice this is different to <see cref="Footer"/>!</para>
/// </param> /// </param>
public void AddButton(string firstLine, string secongLine, FontAwesome icon, Color4 colour, Action action, Key? hotkey = null, float depth = 0) public void AddButton(string firstLine, string secondLine, FontAwesome icon, Color4 colour, Action action, Key? hotkey = null, float depth = 0)
{ {
buttonsContainer.Add(new BeatmapOptionsButton buttonsContainer.Add(new BeatmapOptionsButton
{ {
FirstLineText = firstLine, FirstLineText = firstLine,
SecondLineText = secongLine, SecondLineText = secondLine,
Icon = icon, Icon = icon,
ButtonColour = colour, ButtonColour = colour,
Depth = depth, Depth = depth,