usage of constant and formatting

This commit is contained in:
Jorolf
2017-05-18 17:02:11 +02:00
parent 67806c4247
commit 0e3fb55d5e
2 changed files with 4 additions and 3 deletions

View File

@ -19,7 +19,7 @@ namespace osu.Game.Overlays.Chat
{
public class ChatTabControl : OsuTabControl<Channel>
{
protected override TabItem<Channel> CreateTabItem(Channel value) => value.Id == -1 ? new ChannelTabItem.ChannelSelectorTabItem(value) : new ChannelTabItem(value);
protected override TabItem<Channel> CreateTabItem(Channel value) => value.Id == ChatOverlay.CHANNEL_SELECTOR_ID ? new ChannelTabItem.ChannelSelectorTabItem(value) : new ChannelTabItem(value);
private const float shear_width = 10;