Supercapacitors have much higher max output but smaller capacity, fixed not being able to drag wire nodes in editor, batteries working properly now
This commit is contained in:
@@ -300,7 +300,7 @@ namespace Barotrauma
|
||||
|
||||
if (rect.Contains(PlayerInput.MousePosition))
|
||||
{
|
||||
clicked = PlayerInput.LeftButtonDown();
|
||||
clicked = PlayerInput.LeftButtonHeld();
|
||||
|
||||
color = clicked ? new Color(100, 100, 100) : new Color(250, 250, 250);
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ namespace Barotrauma
|
||||
if (rect.Contains(PlayerInput.MousePosition) && CanBeSelected && Enabled && (MouseOn == null || MouseOn == this || IsParentOf(MouseOn)))
|
||||
{
|
||||
state = ComponentState.Hover;
|
||||
if (PlayerInput.LeftButtonDown())
|
||||
if (PlayerInput.LeftButtonHeld())
|
||||
{
|
||||
if (OnPressed != null)
|
||||
{
|
||||
|
||||
@@ -129,7 +129,7 @@ namespace Barotrauma
|
||||
base.Update(deltaTime);
|
||||
|
||||
if (draggingBar != this) return;
|
||||
if (!PlayerInput.LeftButtonDown()) draggingBar = null;
|
||||
if (!PlayerInput.LeftButtonHeld()) draggingBar = null;
|
||||
|
||||
MoveButton();
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace Barotrauma
|
||||
|
||||
box.State = ComponentState.Hover;
|
||||
|
||||
if (PlayerInput.LeftButtonDown())
|
||||
if (PlayerInput.LeftButtonHeld())
|
||||
{
|
||||
box.State = ComponentState.Selected;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user