1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 09:42:57 +08:00

Merge pull request #2832 from ThePyrotechnic/TextLengthLimit

Add some default LengthLimit to OsuTextBox
This commit is contained in:
Dan Balasescu 2019-05-15 19:37:14 +09:00 committed by GitHub
commit 8ab2c2f033
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,6 +30,7 @@ namespace osu.Game.Graphics.UserInterface
Height = 40;
TextContainer.Height = 0.5f;
CornerRadius = 5;
LengthLimit = 1000;
Current.DisabledChanged += disabled => { Alpha = disabled ? 0.3f : 1; };
}