From 27abce74ce772cddbdca0d6207b8d0c5aae1aea2 Mon Sep 17 00:00:00 2001 From: Salman Alshamrani Date: Wed, 31 Dec 2025 12:15:01 -0500 Subject: [PATCH] Allow dynamically configuring dropdown hint text Used for "confine mouse mode" dropdown tooltip text. --- osu.Game/Graphics/UserInterfaceV2/FormDropdown.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/osu.Game/Graphics/UserInterfaceV2/FormDropdown.cs b/osu.Game/Graphics/UserInterfaceV2/FormDropdown.cs index 91ea036ec6..68d8103d91 100644 --- a/osu.Game/Graphics/UserInterfaceV2/FormDropdown.cs +++ b/osu.Game/Graphics/UserInterfaceV2/FormDropdown.cs @@ -30,7 +30,11 @@ namespace osu.Game.Graphics.UserInterfaceV2 /// /// Hint text containing an extended description of this slider bar, displayed in a tooltip when hovering the caption. /// - public LocalisableString HintText { get; init; } + public LocalisableString HintText + { + get => header.HintText; + set => header.HintText = value; + } /// /// The maximum height of the dropdown's menu. @@ -46,7 +50,6 @@ namespace osu.Game.Graphics.UserInterfaceV2 RelativeSizeAxes = Axes.X; header.Caption = Caption; - header.HintText = HintText; } protected override void LoadComplete()