1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:07:52 +08:00

Standardise all local SkinComponentsContainerLookup variables to containerLookup

This commit is contained in:
Dean Herbert 2023-02-16 15:33:56 +09:00
parent eea0cd3cf8
commit 76f7accd13
6 changed files with 12 additions and 12 deletions

View File

@ -28,9 +28,9 @@ namespace osu.Game.Rulesets.Catch.Skinning.Legacy
public override Drawable? GetDrawableComponent(ISkinComponentLookup lookup)
{
if (lookup is SkinComponentsContainerLookup componentLookup)
if (lookup is SkinComponentsContainerLookup containerLookup)
{
switch (componentLookup.Target)
switch (containerLookup.Target)
{
case SkinComponentsContainerLookup.TargetArea.MainHUDComponents:
var components = base.GetDrawableComponent(lookup) as Container;

View File

@ -90,8 +90,8 @@ namespace osu.Game.Skinning
switch (lookup)
{
case SkinComponentsContainerLookup componentLookup:
switch (componentLookup.Target)
case SkinComponentsContainerLookup containerLookup:
switch (containerLookup.Target)
{
case SkinComponentsContainerLookup.TargetArea.SongSelect:
var songSelectComponents = new DefaultSkinComponentsContainer(_ =>

View File

@ -45,9 +45,9 @@ namespace osu.Game.Skinning
public override Drawable? GetDrawableComponent(ISkinComponentLookup lookup)
{
if (lookup is SkinComponentsContainerLookup targetComponent)
if (lookup is SkinComponentsContainerLookup containerLookup)
{
switch (targetComponent.Target)
switch (containerLookup.Target)
{
case SkinComponentsContainerLookup.TargetArea.MainHUDComponents:
// this should exist in LegacySkin instead, but there isn't a fallback skin for LegacySkins yet.

View File

@ -343,8 +343,8 @@ namespace osu.Game.Skinning
switch (lookup)
{
case SkinComponentsContainerLookup componentLookup:
switch (componentLookup.Target)
case SkinComponentsContainerLookup containerLookup:
switch (containerLookup.Target)
{
case SkinComponentsContainerLookup.TargetArea.MainHUDComponents:
var skinnableTargetWrapper = new DefaultSkinComponentsContainer(container =>

View File

@ -165,8 +165,8 @@ namespace osu.Game.Skinning
case SkinnableSprite.SpriteComponentLookup sprite:
return this.GetAnimation(sprite.LookupName, false, false);
case SkinComponentsContainerLookup componentLookup:
if (!DrawableComponentInfo.TryGetValue(componentLookup.Target, out var skinnableInfo))
case SkinComponentsContainerLookup containerLookup:
if (!DrawableComponentInfo.TryGetValue(containerLookup.Target, out var skinnableInfo))
return null;
var components = new List<Drawable>();

View File

@ -68,8 +68,8 @@ namespace osu.Game.Skinning
switch (lookup)
{
case SkinComponentsContainerLookup componentLookup:
switch (componentLookup.Target)
case SkinComponentsContainerLookup containerLookup:
switch (containerLookup.Target)
{
case SkinComponentsContainerLookup.TargetArea.SongSelect:
var songSelectComponents = new DefaultSkinComponentsContainer(_ =>