Merge branch 'master' of https://github.com/Regalis11/Barotrauma
This commit is contained in:
@@ -123,7 +123,7 @@ namespace Barotrauma
|
|||||||
Vector2 mouseSimPos = ConvertUnits.ToSimUnits(cursorPosition);
|
Vector2 mouseSimPos = ConvertUnits.ToSimUnits(cursorPosition);
|
||||||
if (moveCam)
|
if (moveCam)
|
||||||
{
|
{
|
||||||
if (DebugConsole.IsOpen || GUI.PauseMenuOpen || DisableControls ||
|
if (DebugConsole.IsOpen || GUI.PauseMenuOpen || IsUnconscious ||
|
||||||
(GameMain.GameSession?.CrewManager?.CrewCommander != null && GameMain.GameSession.CrewManager.CrewCommander.IsOpen))
|
(GameMain.GameSession?.CrewManager?.CrewCommander != null && GameMain.GameSession.CrewManager.CrewCommander.IsOpen))
|
||||||
{
|
{
|
||||||
if (deltaTime > 0.0f) cam.OffsetAmount = 0.0f;
|
if (deltaTime > 0.0f) cam.OffsetAmount = 0.0f;
|
||||||
|
|||||||
@@ -406,6 +406,7 @@ namespace Barotrauma
|
|||||||
GUIComponent.UpdateMouseOn();
|
GUIComponent.UpdateMouseOn();
|
||||||
|
|
||||||
DebugConsole.Update(this, (float)Timing.Step);
|
DebugConsole.Update(this, (float)Timing.Step);
|
||||||
|
paused = paused || DebugConsole.IsOpen;
|
||||||
|
|
||||||
if (!paused)
|
if (!paused)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -143,23 +143,26 @@ namespace Barotrauma
|
|||||||
{
|
{
|
||||||
timeSinceClick += deltaTime;
|
timeSinceClick += deltaTime;
|
||||||
|
|
||||||
oldMouseState = mouseState;
|
if (GameMain.Instance.IsActive)
|
||||||
mouseState = latestMouseState;
|
|
||||||
UpdateVariable();
|
|
||||||
|
|
||||||
oldKeyboardState = keyboardState;
|
|
||||||
keyboardState = Keyboard.GetState();
|
|
||||||
|
|
||||||
doubleClicked = false;
|
|
||||||
if (LeftButtonClicked())
|
|
||||||
{
|
{
|
||||||
if (timeSinceClick < DoubleClickDelay &&
|
oldMouseState = mouseState;
|
||||||
(mouseState.Position - lastClickPosition).ToVector2().Length() < MaxDoubleClickDistance)
|
mouseState = latestMouseState;
|
||||||
|
UpdateVariable();
|
||||||
|
|
||||||
|
oldKeyboardState = keyboardState;
|
||||||
|
keyboardState = Keyboard.GetState();
|
||||||
|
|
||||||
|
doubleClicked = false;
|
||||||
|
if (LeftButtonClicked())
|
||||||
{
|
{
|
||||||
doubleClicked = true;
|
if (timeSinceClick < DoubleClickDelay &&
|
||||||
|
(mouseState.Position - lastClickPosition).ToVector2().Length() < MaxDoubleClickDistance)
|
||||||
|
{
|
||||||
|
doubleClicked = true;
|
||||||
|
}
|
||||||
|
lastClickPosition = mouseState.Position;
|
||||||
|
timeSinceClick = 0.0;
|
||||||
}
|
}
|
||||||
lastClickPosition = mouseState.Position;
|
|
||||||
timeSinceClick = 0.0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,6 @@ Before downloading the source code, please read the [EULA](EULA.txt).
|
|||||||
### Windows
|
### Windows
|
||||||
- [Visual Studio](https://www.visualstudio.com/vs/community/) with C# 6.0 support (VS 2015 or later recommended)
|
- [Visual Studio](https://www.visualstudio.com/vs/community/) with C# 6.0 support (VS 2015 or later recommended)
|
||||||
### Linux
|
### Linux
|
||||||
- [Mono 5.4](www.mono-project.com)
|
- [Mono 5.4](http://www.mono-project.com)
|
||||||
- [MonoDevelop 6](http://www.monodevelop.com/)
|
- [MonoDevelop 6](http://www.monodevelop.com/)
|
||||||
- *Note: See http://community.monogame.net/t/installing-monogame-3-6-on-linux/8811 to get this version of MonoDevelop if your distro's package distribution suite is outdated.*
|
- *Note: See http://community.monogame.net/t/installing-monogame-3-6-on-linux/8811 to get this version of MonoDevelop if your distro's package distribution suite is outdated.*
|
||||||
|
|||||||
Reference in New Issue
Block a user