1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 06:23:21 +08:00

Rename SkinnableElementTargetContainer to SkinnableTargetContainer

This commit is contained in:
Dean Herbert 2021-05-13 17:07:38 +09:00
parent 7921dc7ece
commit 106fa97a11
4 changed files with 8 additions and 8 deletions

View File

@ -68,7 +68,7 @@ namespace osu.Game.Screens.Play
private bool holdingForHUD;
private readonly SkinnableElementTargetContainer mainComponents;
private readonly SkinnableTargetContainer mainComponents;
private IEnumerable<Drawable> hideTargets => new Drawable[] { visibilityContainer, KeyCounter, topRightElements };
@ -97,7 +97,7 @@ namespace osu.Game.Screens.Play
RelativeSizeAxes = Axes.Both,
Children = new Drawable[]
{
mainComponents = new SkinnableElementTargetContainer(SkinnableTarget.MainHUDComponents)
mainComponents = new SkinnableTargetContainer(SkinnableTarget.MainHUDComponents)
{
RelativeSizeAxes = Axes.Both,
},

View File

@ -181,7 +181,7 @@ namespace osu.Game.Skinning.Editor
private void revert()
{
SkinnableElementTargetContainer[] targetContainers = targetScreen.ChildrenOfType<SkinnableElementTargetContainer>().ToArray();
SkinnableTargetContainer[] targetContainers = targetScreen.ChildrenOfType<SkinnableTargetContainer>().ToArray();
foreach (var t in targetContainers)
{
@ -194,7 +194,7 @@ namespace osu.Game.Skinning.Editor
private void save()
{
SkinnableElementTargetContainer[] targetContainers = targetScreen.ChildrenOfType<SkinnableElementTargetContainer>().ToArray();
SkinnableTargetContainer[] targetContainers = targetScreen.ChildrenOfType<SkinnableTargetContainer>().ToArray();
foreach (var t in targetContainers)
currentSkin.Value.UpdateDrawableTarget(t);

View File

@ -65,7 +65,7 @@ namespace osu.Game.Skinning
/// Remove all stored customisations for the provided target.
/// </summary>
/// <param name="targetContainer">The target container to reset.</param>
public void ResetDrawableTarget(SkinnableElementTargetContainer targetContainer)
public void ResetDrawableTarget(SkinnableTargetContainer targetContainer)
{
DrawableComponentInfo.Remove(targetContainer.Target);
}
@ -74,7 +74,7 @@ namespace osu.Game.Skinning
/// Update serialised information for the provided target.
/// </summary>
/// <param name="targetContainer">The target container to serialise to this skin.</param>
public void UpdateDrawableTarget(SkinnableElementTargetContainer targetContainer)
public void UpdateDrawableTarget(SkinnableTargetContainer targetContainer)
{
DrawableComponentInfo[targetContainer.Target] = targetContainer.CreateSkinnableInfo().ToArray();
}

View File

@ -11,7 +11,7 @@ using osu.Game.Screens.Play.HUD;
namespace osu.Game.Skinning
{
public class SkinnableElementTargetContainer : SkinReloadableDrawable, ISkinnableTarget
public class SkinnableTargetContainer : SkinReloadableDrawable, ISkinnableTarget
{
private SkinnableTargetWrapper content;
@ -21,7 +21,7 @@ namespace osu.Game.Skinning
private readonly BindableList<ISkinnableDrawable> components = new BindableList<ISkinnableDrawable>();
public SkinnableElementTargetContainer(SkinnableTarget target)
public SkinnableTargetContainer(SkinnableTarget target)
{
Target = target;
}