mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 08:43:01 +08:00
Add setting skin on notification click
This commit is contained in:
parent
257ff1c9d0
commit
35bc0a29d8
@ -87,6 +87,15 @@ namespace osu.Game.Skinning
|
|||||||
skinImporter = new SkinImporter(storage, realm, this)
|
skinImporter = new SkinImporter(storage, realm, this)
|
||||||
{
|
{
|
||||||
PostNotification = obj => PostNotification?.Invoke(obj),
|
PostNotification = obj => PostNotification?.Invoke(obj),
|
||||||
|
PresentImport = skins =>
|
||||||
|
{
|
||||||
|
switch (skins.Count())
|
||||||
|
{
|
||||||
|
case 1:
|
||||||
|
CurrentSkinInfo.Value = skins.Last();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
var defaultSkins = new[]
|
var defaultSkins = new[]
|
||||||
|
Loading…
Reference in New Issue
Block a user