1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 16:43:00 +08:00

Rename and improve xmldoc of SkinEditorOverlay

This commit is contained in:
Dean Herbert 2021-05-03 14:58:23 +09:00
parent 64b244d0ba
commit f3b305bbe6
2 changed files with 6 additions and 5 deletions

View File

@ -688,7 +688,7 @@ namespace osu.Game
var changelogOverlay = loadComponentSingleFile(new ChangelogOverlay(), overlayContent.Add, true);
loadComponentSingleFile(userProfile = new UserProfileOverlay(), overlayContent.Add, true);
loadComponentSingleFile(beatmapSetOverlay = new BeatmapSetOverlay(), overlayContent.Add, true);
loadComponentSingleFile(skinEditor = new SkinEditorContainer(screenContainer), overlayContent.Add);
loadComponentSingleFile(skinEditor = new SkinEditorOverlay(screenContainer), overlayContent.Add);
loadComponentSingleFile(new LoginOverlay
{
@ -946,7 +946,7 @@ namespace osu.Game
private ScalingContainer screenContainer;
private SkinEditorContainer skinEditor;
private SkinEditorOverlay skinEditor;
protected override bool OnExiting()
{

View File

@ -13,9 +13,10 @@ using osu.Game.Input.Bindings;
namespace osu.Game.Skinning.Editor
{
/// <summary>
/// A container which handles loading a skin editor on user request.
/// A container which handles loading a skin editor on user request for a specified target.
/// This also handles the scaling / positioning adjustment of the target.
/// </summary>
public class SkinEditorContainer : CompositeDrawable, IKeyBindingHandler<GlobalAction>
public class SkinEditorOverlay : CompositeDrawable, IKeyBindingHandler<GlobalAction>
{
private readonly ScalingContainer target;
private SkinEditor skinEditor;
@ -25,7 +26,7 @@ namespace osu.Game.Skinning.Editor
[Resolved]
private OsuColour colours { get; set; }
public SkinEditorContainer(ScalingContainer target)
public SkinEditorOverlay(ScalingContainer target)
{
this.target = target;
RelativeSizeAxes = Axes.Both;