mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 16:03:01 +08:00
Better boolean naming
This commit is contained in:
parent
270ab5c987
commit
66f816692f
@ -192,11 +192,11 @@ namespace osu.Game.Overlays
|
|||||||
}
|
}
|
||||||
|
|
||||||
private double startDragChatHeight;
|
private double startDragChatHeight;
|
||||||
private bool canBeDragged;
|
private bool canBeResized;
|
||||||
|
|
||||||
protected override bool OnDragStart(InputState state)
|
protected override bool OnDragStart(InputState state)
|
||||||
{
|
{
|
||||||
canBeDragged = tabsArea.IsHovered;
|
canBeResized = tabsArea.IsHovered;
|
||||||
|
|
||||||
if (!channelTabs.IsHovered)
|
if (!channelTabs.IsHovered)
|
||||||
return base.OnDragStart(state);
|
return base.OnDragStart(state);
|
||||||
@ -207,7 +207,7 @@ namespace osu.Game.Overlays
|
|||||||
|
|
||||||
protected override bool OnDrag(InputState state)
|
protected override bool OnDrag(InputState state)
|
||||||
{
|
{
|
||||||
if (canBeDragged)
|
if (canBeResized)
|
||||||
{
|
{
|
||||||
Trace.Assert(state.Mouse.PositionMouseDown != null);
|
Trace.Assert(state.Mouse.PositionMouseDown != null);
|
||||||
|
|
||||||
@ -220,7 +220,7 @@ namespace osu.Game.Overlays
|
|||||||
|
|
||||||
protected override bool OnDragEnd(InputState state)
|
protected override bool OnDragEnd(InputState state)
|
||||||
{
|
{
|
||||||
canBeDragged = false;
|
canBeResized = false;
|
||||||
return base.OnDragEnd(state);
|
return base.OnDragEnd(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user