Selecting stairs based on WorldRect in editor, disable input if window not active, disable traveling if no locations are selected
This commit is contained in:
@@ -152,7 +152,7 @@ namespace Barotrauma
|
||||
if (rect.Contains(PlayerInput.MousePosition) && CanBeSelected && Enabled && (MouseOn == null || MouseOn == this || IsParentOf(MouseOn)))
|
||||
{
|
||||
state = ComponentState.Hover;
|
||||
if (PlayerInput.GetMouseState.LeftButton == ButtonState.Pressed)
|
||||
if (PlayerInput.LeftButtonDown())
|
||||
{
|
||||
if (OnPressed != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user