1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 09:22:54 +08:00

icons with TextAwesome

This commit is contained in:
n4b3l 2016-12-17 11:57:52 +01:00
parent 590db66b37
commit 376b3df2f8

View File

@ -143,29 +143,29 @@ namespace osu.Game.Screens.Select
new Container new Container
{ {
Margin = new MarginPadding { Top = 20 }, Margin = new MarginPadding { Top = 20 },
//AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
Children = new Drawable[] Children = new Drawable[]
{ {
new Container new Container
{ {
AutoSizeAxes = Axes.Both, Margin = new MarginPadding { Left = 10, Top = 10 },
Children = new[] AutoSizeAxes = Axes.Both,
{ Children = new[] {
new TextAwesome new TextAwesome
{ {
Icon = FontAwesome.fa_square, Icon = FontAwesome.fa_square,
Colour = Color4.Purple, Colour = new Color4(68,17,136,255),
TextSize = 17, TextSize = 17,
Rotation = 45, Rotation = 45,
}, },
new TextAwesome new TextAwesome
{ {
Icon = FontAwesome.fa_clock_o, Icon = FontAwesome.fa_clock_o,
Colour = Color4.Purple, Colour = new Color4(255,221,85,255),
TextSize = 17, TextSize = 14,
} }
} }
}, },
new SpriteText new SpriteText
{ {
Margin = new MarginPadding { Left = 23, Bottom = 3 }, Margin = new MarginPadding { Left = 23, Bottom = 3 },
@ -175,18 +175,25 @@ namespace osu.Game.Screens.Select
TextSize = 17, TextSize = 17,
}, },
new Container new Container
{ {
Margin = new MarginPadding { Left = 100 }, Margin = new MarginPadding { Left = 110, Top = 10 },
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
Children = new[] Children = new[] {
{ new TextAwesome
new Sprite {
{ Icon = FontAwesome.fa_square,
Colour = new Color4(68,17,136,255),
Scale = new Vector2(0.5f, 0.5f), TextSize = 17,
}, Rotation = 45,
} },
}, new TextAwesome
{
Icon = FontAwesome.fa_circle_o,
Colour = new Color4(255,221,85,255),
TextSize = 14,
}
}
},
new SpriteText new SpriteText
{ {
Margin = new MarginPadding { Left = 123, Bottom = 3 }, Margin = new MarginPadding { Left = 123, Bottom = 3 },
@ -196,18 +203,25 @@ namespace osu.Game.Screens.Select
TextSize = 17, TextSize = 17,
}, },
new Container new Container
{ {
Margin = new MarginPadding { Left = 200 }, Margin = new MarginPadding { Left = 210, Top = 10 },
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
Children = new[] Children = new[] {
{ new TextAwesome
new Sprite {
{ Icon = FontAwesome.fa_square,
Colour = new Color4(68,17,136,255),
Scale = new Vector2(0.5f, 0.5f), TextSize = 17,
}, Rotation = 45,
} },
}, new TextAwesome
{
Icon = FontAwesome.fa_dot_circle_o,
Colour = new Color4(255,221,85,255),
TextSize = 14,
}
}
},
new SpriteText new SpriteText
{ {
Margin = new MarginPadding { Left = 223, Bottom = 3 }, Margin = new MarginPadding { Left = 223, Bottom = 3 },
@ -217,18 +231,25 @@ namespace osu.Game.Screens.Select
TextSize = 17, TextSize = 17,
}, },
new Container new Container
{ {
Margin = new MarginPadding { Left = 300 }, Margin = new MarginPadding { Left = 310, Top = 10 },
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
Children = new[] Children = new[] {
{ new TextAwesome
new Sprite {
{ Icon = FontAwesome.fa_square,
Colour = new Color4(68,17,136,255),
Scale = new Vector2(0.5f, 0.5f), TextSize = 17,
}, Rotation = 45,
} },
}, new TextAwesome
{
Icon = FontAwesome.fa_circle_o,
Colour = new Color4(255,221,85,255),
TextSize = 14,
}
}
},
new SpriteText new SpriteText
{ {
Margin = new MarginPadding { Left = 323, Bottom = 3 }, Margin = new MarginPadding { Left = 323, Bottom = 3 },