mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 03:07:19 +08:00
Rename method
This commit is contained in:
parent
940b4acf0d
commit
ff72ccabd8
@ -66,7 +66,7 @@ namespace osu.Game.Rulesets.Mania.Skinning
|
|||||||
};
|
};
|
||||||
|
|
||||||
for (int i = 0; i < stageDefinition.Columns; i++)
|
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()
|
protected override void Update()
|
||||||
|
@ -14,7 +14,7 @@ namespace osu.Game.Rulesets.Mania.UI
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A <see cref="Drawable"/> which flows its contents according to the <see cref="Column"/>s in a <see cref="Stage"/>.
|
/// 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>
|
/// </summary>
|
||||||
/// <typeparam name="TContent">The type of content in each column.</typeparam>
|
/// <typeparam name="TContent">The type of content in each column.</typeparam>
|
||||||
public class ColumnFlow<TContent> : CompositeDrawable
|
public class ColumnFlow<TContent> : CompositeDrawable
|
||||||
@ -86,7 +86,7 @@ namespace osu.Game.Rulesets.Mania.UI
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="column">The index of the column to set the content of.</param>
|
/// <param name="column">The index of the column to set the content of.</param>
|
||||||
/// <param name="content">The content.</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
|
public new MarginPadding Padding
|
||||||
{
|
{
|
||||||
|
@ -128,7 +128,7 @@ namespace osu.Game.Rulesets.Mania.UI
|
|||||||
};
|
};
|
||||||
|
|
||||||
topLevelContainer.Add(column.TopLevelContainer.CreateProxy());
|
topLevelContainer.Add(column.TopLevelContainer.CreateProxy());
|
||||||
columnFlow.SetColumn(i, column);
|
columnFlow.SetContentForColumn(i, column);
|
||||||
AddNested(column);
|
AddNested(column);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user