mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:47:26 +08:00
Fix typo and warnings.
This commit is contained in:
parent
c939897a8a
commit
f97e8ae97f
@ -10,10 +10,10 @@ namespace osu.Game.Screens.Edit
|
||||
{
|
||||
internal class Editor : ScreenWhiteBox
|
||||
{
|
||||
private WorkingBeatmap beatmap;
|
||||
public Editor(WorkingBeatmap wokringBeatmap)
|
||||
//private WorkingBeatmap beatmap;
|
||||
public Editor(WorkingBeatmap workingBeatmap)
|
||||
{
|
||||
beatmap = wokringBeatmap;
|
||||
//beatmap = workingBeatmap;
|
||||
}
|
||||
|
||||
protected override BackgroundScreen CreateBackground() => new BackgroundScreenCustom(@"Backgrounds/bg4");
|
||||
|
@ -36,6 +36,10 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
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">
|
||||
/// <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>
|
||||
|
@ -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">
|
||||
/// <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>
|
||||
/// </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
|
||||
{
|
||||
FirstLineText = firstLine,
|
||||
SecondLineText = secongLine,
|
||||
SecondLineText = secondLine,
|
||||
Icon = icon,
|
||||
ButtonColour = colour,
|
||||
Depth = depth,
|
||||
|
Loading…
Reference in New Issue
Block a user