mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 22:32:55 +08:00
Disable ability to select random skin from within the skin editor
Reasoning is explained in inline comment. I knowingly only applied this to the shortcut key. It's still feasible a user can choose the option from the skin dropdown while the editor is open, but that's less of an issue (because a user won't get the same compulsion that I get to mash the key, only to be greeted with 100 new mutable skins created).
This commit is contained in:
parent
0a86bf6fb1
commit
88306a6180
@ -1061,6 +1061,12 @@ namespace osu.Game
|
||||
return true;
|
||||
|
||||
case GlobalAction.RandomSkin:
|
||||
// Don't allow random skin selection while in the skin editor.
|
||||
// This is mainly to stop many "osu! default (modified)" skins being created via the SkinManager.EnsureMutableSkin() path.
|
||||
// If people want this to work we can potentially avoid selecting default skins when the editor is open, or allow a maximum of one mutable skin somehow.
|
||||
if (skinEditor.State.Value == Visibility.Visible)
|
||||
return false;
|
||||
|
||||
SkinManager.SelectRandomSkin();
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user