mirror of
https://github.com/ppy/osu
synced 2025-01-09 07:39:46 +00: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)
|
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:
|
case SkinComponentsContainerLookup.TargetArea.MainHUDComponents:
|
||||||
var components = base.GetDrawableComponent(lookup) as Container;
|
var components = base.GetDrawableComponent(lookup) as Container;
|
||||||
|
@ -90,8 +90,8 @@ namespace osu.Game.Skinning
|
|||||||
|
|
||||||
switch (lookup)
|
switch (lookup)
|
||||||
{
|
{
|
||||||
case SkinComponentsContainerLookup componentLookup:
|
case SkinComponentsContainerLookup containerLookup:
|
||||||
switch (componentLookup.Target)
|
switch (containerLookup.Target)
|
||||||
{
|
{
|
||||||
case SkinComponentsContainerLookup.TargetArea.SongSelect:
|
case SkinComponentsContainerLookup.TargetArea.SongSelect:
|
||||||
var songSelectComponents = new DefaultSkinComponentsContainer(_ =>
|
var songSelectComponents = new DefaultSkinComponentsContainer(_ =>
|
||||||
|
@ -45,9 +45,9 @@ namespace osu.Game.Skinning
|
|||||||
|
|
||||||
public override Drawable? GetDrawableComponent(ISkinComponentLookup lookup)
|
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:
|
case SkinComponentsContainerLookup.TargetArea.MainHUDComponents:
|
||||||
// this should exist in LegacySkin instead, but there isn't a fallback skin for LegacySkins yet.
|
// 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)
|
switch (lookup)
|
||||||
{
|
{
|
||||||
case SkinComponentsContainerLookup componentLookup:
|
case SkinComponentsContainerLookup containerLookup:
|
||||||
switch (componentLookup.Target)
|
switch (containerLookup.Target)
|
||||||
{
|
{
|
||||||
case SkinComponentsContainerLookup.TargetArea.MainHUDComponents:
|
case SkinComponentsContainerLookup.TargetArea.MainHUDComponents:
|
||||||
var skinnableTargetWrapper = new DefaultSkinComponentsContainer(container =>
|
var skinnableTargetWrapper = new DefaultSkinComponentsContainer(container =>
|
||||||
|
@ -165,8 +165,8 @@ namespace osu.Game.Skinning
|
|||||||
case SkinnableSprite.SpriteComponentLookup sprite:
|
case SkinnableSprite.SpriteComponentLookup sprite:
|
||||||
return this.GetAnimation(sprite.LookupName, false, false);
|
return this.GetAnimation(sprite.LookupName, false, false);
|
||||||
|
|
||||||
case SkinComponentsContainerLookup componentLookup:
|
case SkinComponentsContainerLookup containerLookup:
|
||||||
if (!DrawableComponentInfo.TryGetValue(componentLookup.Target, out var skinnableInfo))
|
if (!DrawableComponentInfo.TryGetValue(containerLookup.Target, out var skinnableInfo))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
var components = new List<Drawable>();
|
var components = new List<Drawable>();
|
||||||
|
@ -68,8 +68,8 @@ namespace osu.Game.Skinning
|
|||||||
|
|
||||||
switch (lookup)
|
switch (lookup)
|
||||||
{
|
{
|
||||||
case SkinComponentsContainerLookup componentLookup:
|
case SkinComponentsContainerLookup containerLookup:
|
||||||
switch (componentLookup.Target)
|
switch (containerLookup.Target)
|
||||||
{
|
{
|
||||||
case SkinComponentsContainerLookup.TargetArea.SongSelect:
|
case SkinComponentsContainerLookup.TargetArea.SongSelect:
|
||||||
var songSelectComponents = new DefaultSkinComponentsContainer(_ =>
|
var songSelectComponents = new DefaultSkinComponentsContainer(_ =>
|
||||||
|
Loading…
Reference in New Issue
Block a user