mirror of
https://github.com/ppy/osu.git
synced 2025-03-20 07:17:31 +08:00
add truncation to base class
This commit is contained in:
parent
c6d4ce0f8a
commit
df8d4d8966
@ -102,6 +102,8 @@ namespace osu.Game.Overlays.Chat.Tabs
|
||||
Anchor = Anchor.CentreLeft,
|
||||
Text = value.ToString(),
|
||||
Font = OsuFont.GetFont(size: 18, weight: FontWeight.Bold)
|
||||
Width = 115f,
|
||||
Truncate = true,
|
||||
},
|
||||
CloseButton = new TabCloseButton
|
||||
{
|
||||
|
@ -65,6 +65,8 @@ namespace osu.Game.Overlays.Chat.Tabs
|
||||
|
||||
Text.X = ChatOverlay.TAB_AREA_HEIGHT;
|
||||
TextBold.X = ChatOverlay.TAB_AREA_HEIGHT;
|
||||
|
||||
Text.Width = 100f;
|
||||
}
|
||||
|
||||
protected override bool ShowCloseOnHover => false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user