mirror of
https://github.com/ppy/osu.git
synced 2025-02-19 07:04:15 +08:00
usage of constant and formatting
This commit is contained in:
parent
67806c4247
commit
0e3fb55d5e
@ -19,7 +19,7 @@ namespace osu.Game.Overlays.Chat
|
|||||||
{
|
{
|
||||||
public class ChatTabControl : OsuTabControl<Channel>
|
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;
|
private const float shear_width = 10;
|
||||||
|
|
||||||
|
@ -264,12 +264,13 @@ namespace osu.Game.Overlays
|
|||||||
{
|
{
|
||||||
if (currentChannel == value) return;
|
if (currentChannel == value) return;
|
||||||
|
|
||||||
if(value.Id == CHANNEL_SELECTOR_ID)
|
if (value.Id == CHANNEL_SELECTOR_ID)
|
||||||
{
|
{
|
||||||
//channel selector popout
|
//channel selector popout
|
||||||
currentChannel = value;
|
currentChannel = value;
|
||||||
return;
|
return;
|
||||||
}else if(currentChannel?.Id == CHANNEL_SELECTOR_ID)
|
}
|
||||||
|
else if (currentChannel?.Id == CHANNEL_SELECTOR_ID)
|
||||||
{
|
{
|
||||||
//channel selector popin
|
//channel selector popin
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user