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