mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 08:32:57 +08:00
Standardise all local SkinComponentsContainerLookup
variables to containerLookup
This commit is contained in:
parent
eea0cd3cf8
commit
76f7accd13
@ -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;
|
||||
|
@ -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(_ =>
|
||||
|
@ -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.
|
||||
|
@ -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 =>
|
||||
|
@ -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>();
|
||||
|
@ -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(_ =>
|
||||
|
Loading…
Reference in New Issue
Block a user