mirror of
https://github.com/ppy/osu
synced 2025-01-09 23:59:44 +00:00
change marker size and position for ordered list
This commit is contained in:
parent
e6579352f9
commit
cf53a05dfd
@ -50,10 +50,18 @@ namespace osu.Game.Graphics.Containers.Markdown
|
||||
{
|
||||
var marker = parentTextComponent.CreateSpriteText();
|
||||
marker.Text = createTextMarker();
|
||||
marker.Font = OsuFont.GetFont(size: marker.Font.Size / 2);
|
||||
marker.Origin = Anchor.Centre;
|
||||
marker.X = -default_left_padding / 2;
|
||||
marker.Y = marker.Font.Size;
|
||||
|
||||
if (isOrdered)
|
||||
{
|
||||
marker.X = -ordered_left_padding;
|
||||
}
|
||||
else
|
||||
{
|
||||
marker.Font = OsuFont.GetFont(size: marker.Font.Size / 2);
|
||||
marker.Origin = Anchor.Centre;
|
||||
marker.X = -unordered_left_padding / 2;
|
||||
marker.Y = marker.Font.Size;
|
||||
}
|
||||
|
||||
AddInternal(marker);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user