mirror of
https://github.com/osukey/osukey.git
synced 2025-05-09 23:57:18 +09:00
add showParentPage method
This commit is contained in:
parent
bc1cad0963
commit
1578b0462d
@ -1,6 +1,7 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
|
using System.Linq;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
@ -62,6 +63,12 @@ namespace osu.Game.Overlays
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void showParentPage()
|
||||||
|
{
|
||||||
|
var parentPath = string.Join("/", path.Value.Split('/').SkipLast(1));
|
||||||
|
ShowPage(parentPath);
|
||||||
|
}
|
||||||
|
|
||||||
public void ShowPage(string pagePath = index_path)
|
public void ShowPage(string pagePath = index_path)
|
||||||
{
|
{
|
||||||
path.Value = pagePath.Trim('/');
|
path.Value = pagePath.Trim('/');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user