mirror of
https://github.com/ppy/osu
synced 2025-02-14 00:57:27 +00:00
Fix some display regressions in ChatConsole.
This commit is contained in:
parent
c0ea061bd4
commit
05031d18ef
@ -13,7 +13,7 @@ using OpenTK;
|
||||
|
||||
namespace osu.Game.Online.Chat.Display
|
||||
{
|
||||
public class ChannelDisplay : FlowContainer
|
||||
public class ChannelDisplay : Container
|
||||
{
|
||||
private readonly Channel channel;
|
||||
private FlowContainer flow;
|
||||
@ -25,7 +25,6 @@ namespace osu.Game.Online.Chat.Display
|
||||
channel.NewMessagesArrived += newMessages;
|
||||
|
||||
RelativeSizeAxes = Axes.Both;
|
||||
Direction = FlowDirection.VerticalOnly;
|
||||
|
||||
Children = new Drawable[]
|
||||
{
|
||||
@ -39,14 +38,12 @@ namespace osu.Game.Online.Chat.Display
|
||||
},
|
||||
new ScrollContainer
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Children = new Drawable[]
|
||||
{
|
||||
flow = new FlowContainer
|
||||
{
|
||||
Direction = FlowDirection.VerticalOnly,
|
||||
RelativeSizeAxes = Axes.X,
|
||||
LayoutEasing = EasingTypes.Out,
|
||||
Spacing = new Vector2(1, 1)
|
||||
}
|
||||
}
|
||||
|
@ -44,19 +44,19 @@ namespace osu.Game.Overlays
|
||||
Anchor = Anchor.BottomLeft;
|
||||
Origin = Anchor.BottomLeft;
|
||||
|
||||
InternalChildren = new Drawable[]
|
||||
AddInternal(new Drawable[]
|
||||
{
|
||||
new Box
|
||||
{
|
||||
Depth = float.MinValue,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Colour = new Color4(0.1f, 0.1f, 0.1f, 0.4f)
|
||||
Colour = new Color4(0.1f, 0.1f, 0.1f, 0.4f),
|
||||
},
|
||||
content = new Container
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
}
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
public override void Load()
|
||||
@ -76,12 +76,6 @@ namespace osu.Game.Overlays
|
||||
//if (api.State != APIAccess.APIState.Online)
|
||||
// return;
|
||||
|
||||
Add(new FlowContainer
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Direction = FlowDirection.VerticalOnly
|
||||
});
|
||||
|
||||
SpriteText loading;
|
||||
Add(loading = new SpriteText
|
||||
{
|
||||
@ -99,9 +93,9 @@ namespace osu.Game.Overlays
|
||||
Scheduler.Add(delegate
|
||||
{
|
||||
loading.FadeOut(100);
|
||||
addChannel(channels.Find(c => c.Name == @"#osu"));
|
||||
});
|
||||
|
||||
addChannel(channels.Find(c => c.Name == @"#osu"));
|
||||
|
||||
//addChannel(channels.Find(c => c.Name == @"#lobby"));
|
||||
//addChannel(channels.Find(c => c.Name == @"#english"));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user