mirror of
https://github.com/ppy/osu.git
synced 2025-03-04 02:03:00 +08:00
Save skin editor changes on forced exit
This commit is contained in:
parent
494a1b01a5
commit
9df08560b6
@ -108,7 +108,7 @@ namespace osu.Game.Skinning.Editor
|
|||||||
{
|
{
|
||||||
Text = "Save Changes",
|
Text = "Save Changes",
|
||||||
Width = 140,
|
Width = 140,
|
||||||
Action = save,
|
Action = Save,
|
||||||
},
|
},
|
||||||
new DangerousTriangleButton
|
new DangerousTriangleButton
|
||||||
{
|
{
|
||||||
@ -192,7 +192,7 @@ namespace osu.Game.Skinning.Editor
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void save()
|
public void Save()
|
||||||
{
|
{
|
||||||
SkinnableElementTargetContainer[] targetContainers = targetScreen.ChildrenOfType<SkinnableElementTargetContainer>().ToArray();
|
SkinnableElementTargetContainer[] targetContainers = targetScreen.ChildrenOfType<SkinnableElementTargetContainer>().ToArray();
|
||||||
|
|
||||||
|
@ -92,8 +92,10 @@ namespace osu.Game.Skinning.Editor
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void Reset()
|
public void Reset()
|
||||||
{
|
{
|
||||||
|
skinEditor?.Save();
|
||||||
skinEditor?.Hide();
|
skinEditor?.Hide();
|
||||||
skinEditor?.Expire();
|
skinEditor?.Expire();
|
||||||
|
|
||||||
skinEditor = null;
|
skinEditor = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user