(63921aa0d) Implement GetVisibleHulls method.

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:49:11 +03:00
parent 97b6888274
commit af7fcb823d
37 changed files with 386 additions and 548 deletions
@@ -686,6 +686,8 @@ namespace Barotrauma
private GUILayoutGroup subPreviewContainer;
private GUILayoutGroup subPreviewContainer;
private GUIButton loadGameButton;
public Action<Submarine, string, string> StartNewGame;
@@ -9,6 +9,7 @@ namespace Barotrauma
private GUIListBox listBox;
private readonly float scrollSpeed;
public CreditsPlayer(RectTransform rectT, string configFile) : base(null, rectT)
{
var doc = XMLExtensions.TryLoadXml(configFile);
@@ -113,11 +114,6 @@ namespace Barotrauma
}
}
public void Restart()
{
listBox.BarScroll = 0.0f;
}
protected override void Update(float deltaTime)
{
listBox.BarScroll += scrollSpeed / listBox.TotalSize * deltaTime;
@@ -470,7 +470,6 @@ namespace Barotrauma
break;
case Tab.Credits:
titleText.Visible = false;
creditsPlayer.Restart();
break;
}
}