1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 12:30:11 +08:00

Dynamically change placeholder to convey how to activate search

This commit is contained in:
Bartłomiej Dach
2023-06-18 15:53:49 +02:00
Unverified
parent 75300ca229
commit b87acfa66f
3 changed files with 21 additions and 2 deletions
@@ -10,6 +10,7 @@ using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.UserInterface;
using osu.Framework.Localisation;
using osu.Game.Graphics.Sprites;
using osu.Game.Overlays;
using osu.Game.Overlays.Mods;
@@ -37,6 +38,12 @@ namespace osu.Game.Graphics.UserInterface
set => textBox.HoldFocus = value;
}
public LocalisableString PlaceholderText
{
get => textBox.PlaceholderText;
set => textBox.PlaceholderText = value;
}
public new bool HasFocus => textBox.HasFocus;
public void TakeFocus() => textBox.TakeFocus();