mirror of
https://github.com/osukey/osukey.git
synced 2025-05-06 14:17:27 +09:00
Check for new components every one second to handle late loaders
This commit is contained in:
parent
fd587a82ff
commit
4f9e1e4945
@ -23,9 +23,14 @@ namespace osu.Game.Skinning.Editor
|
|||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
|
|
||||||
ISkinnableComponent[] components = target.ChildrenOfType<ISkinnableComponent>().ToArray();
|
checkForComponents();
|
||||||
|
}
|
||||||
|
|
||||||
foreach (var c in components) AddBlueprintFor(c);
|
private void checkForComponents()
|
||||||
|
{
|
||||||
|
foreach (var c in target.ChildrenOfType<ISkinnableComponent>().ToArray()) AddBlueprintFor(c);
|
||||||
|
|
||||||
|
Scheduler.AddDelayed(checkForComponents, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override SelectionHandler<ISkinnableComponent> CreateSelectionHandler() => new SkinSelectionHandler();
|
protected override SelectionHandler<ISkinnableComponent> CreateSelectionHandler() => new SkinSelectionHandler();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user