1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-22 00:07:19 +08:00

Rename method

This commit is contained in:
smoogipoo 2020-08-25 18:44:32 +09:00
parent 940b4acf0d
commit ff72ccabd8
3 changed files with 4 additions and 4 deletions

View File

@ -66,7 +66,7 @@ namespace osu.Game.Rulesets.Mania.Skinning
};
for (int i = 0; i < stageDefinition.Columns; i++)
columnBackgrounds.SetColumn(i, new ColumnBackground(i, i == stageDefinition.Columns - 1));
columnBackgrounds.SetContentForColumn(i, new ColumnBackground(i, i == stageDefinition.Columns - 1));
}
protected override void Update()

View File

@ -14,7 +14,7 @@ namespace osu.Game.Rulesets.Mania.UI
{
/// <summary>
/// A <see cref="Drawable"/> which flows its contents according to the <see cref="Column"/>s in a <see cref="Stage"/>.
/// Content can be added to individual columns via <see cref="SetColumn"/>.
/// Content can be added to individual columns via <see cref="SetContentForColumn"/>.
/// </summary>
/// <typeparam name="TContent">The type of content in each column.</typeparam>
public class ColumnFlow<TContent> : CompositeDrawable
@ -86,7 +86,7 @@ namespace osu.Game.Rulesets.Mania.UI
/// </summary>
/// <param name="column">The index of the column to set the content of.</param>
/// <param name="content">The content.</param>
public void SetColumn(int column, TContent content) => columns[column].Child = content;
public void SetContentForColumn(int column, TContent content) => columns[column].Child = content;
public new MarginPadding Padding
{

View File

@ -128,7 +128,7 @@ namespace osu.Game.Rulesets.Mania.UI
};
topLevelContainer.Add(column.TopLevelContainer.CreateProxy());
columnFlow.SetColumn(i, column);
columnFlow.SetContentForColumn(i, column);
AddNested(column);
}
}