Update framework; amend ToolbarButton to use padding and Children initialiser.

This commit is contained in:
Dean Herbert
2016-10-12 12:22:19 +09:00
parent cb5e4287e2
commit c0ea061bd4
7 changed files with 52 additions and 88 deletions

View File

@ -47,7 +47,7 @@ namespace osu.Game.Online.Chat.Display
Direction = FlowDirection.VerticalOnly,
RelativeSizeAxes = Axes.X,
LayoutEasing = EasingTypes.Out,
Padding = new Vector2(1, 1)
Spacing = new Vector2(1, 1)
}
}
}

View File

@ -9,6 +9,7 @@ using osu.Framework.Graphics.Drawables;
using osu.Framework.Graphics.Sprites;
using OpenTK;
using OpenTK.Graphics;
using osu.Framework.Graphics.Primitives;
namespace osu.Game.Online.Chat.Display
{
@ -54,10 +55,10 @@ namespace osu.Game.Online.Chat.Display
}
}
},
new PaddingContainer
new Container
{
RelativeSizeAxes = Axes.X,
Padding = new Padding { Left = padding + 10 },
Padding = new MarginPadding { Left = padding + 10 },
Children = new Drawable[]
{
new SpriteText