Unstable v0.15.17.0 (Hex is out of town edition)

This commit is contained in:
Juan Pablo Arce
2021-12-03 13:31:10 -03:00
parent cd5c8f3e13
commit 617d9ede88
245 changed files with 8088 additions and 5842 deletions
@@ -79,6 +79,8 @@ namespace Barotrauma
public bool AllowMouseWheelScroll { get; set; } = true;
public bool AllowArrowKeyScroll { get; set; } = true;
/// <summary>
/// Scrolls the list smoothly
/// </summary>
@@ -1254,10 +1256,16 @@ namespace Barotrauma
switch (key)
{
case Keys.Down:
SelectNext();
if (!isHorizontal && AllowArrowKeyScroll) { SelectNext(); }
break;
case Keys.Up:
SelectPrevious();
if (!isHorizontal && AllowArrowKeyScroll) { SelectPrevious(); }
break;
case Keys.Left:
if (isHorizontal && AllowArrowKeyScroll) { SelectPrevious(); }
break;
case Keys.Right:
if (isHorizontal && AllowArrowKeyScroll) { SelectNext(); }
break;
case Keys.Enter:
case Keys.Space: