mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 06:52:53 +08:00
use checkbox label instead of tooltip
This commit is contained in:
parent
7d26f178c6
commit
77f5ec3a4e
@ -3,24 +3,23 @@
|
|||||||
|
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Cursor;
|
|
||||||
using osu.Framework.Localisation;
|
|
||||||
using osu.Game.Graphics.UserInterface;
|
using osu.Game.Graphics.UserInterface;
|
||||||
using osu.Game.Overlays;
|
using osu.Game.Overlays;
|
||||||
|
using osuTK;
|
||||||
using osuTK.Graphics;
|
using osuTK.Graphics;
|
||||||
|
|
||||||
namespace osu.Game.Graphics.UserInterfaceV2
|
namespace osu.Game.Graphics.UserInterfaceV2
|
||||||
{
|
{
|
||||||
internal class OsuDirectorySelectorHiddenToggle : OsuCheckbox, IHasTooltip
|
internal class OsuDirectorySelectorHiddenToggle : OsuCheckbox
|
||||||
{
|
{
|
||||||
public LocalisableString TooltipText => @"Show hidden items";
|
|
||||||
|
|
||||||
public OsuDirectorySelectorHiddenToggle()
|
public OsuDirectorySelectorHiddenToggle()
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.None;
|
RelativeSizeAxes = Axes.None;
|
||||||
AutoSizeAxes = Axes.Both;
|
AutoSizeAxes = Axes.None;
|
||||||
|
Size = new Vector2(100, 50);
|
||||||
Anchor = Anchor.CentreLeft;
|
Anchor = Anchor.CentreLeft;
|
||||||
Origin = Anchor.CentreLeft;
|
Origin = Anchor.CentreLeft;
|
||||||
|
LabelText = "Show hidden items";
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader(true)]
|
[BackgroundDependencyLoader(true)]
|
||||||
|
Loading…
Reference in New Issue
Block a user