Replaced usages of "shift" with "round" for consistency

This commit is contained in:
Joonas Rikkonen
2017-08-28 17:59:08 +03:00
parent 736de25e6c
commit 729108c7b9
12 changed files with 52 additions and 54 deletions
@@ -114,7 +114,7 @@ namespace Barotrauma
startButton = new GUIButton(new Rectangle(0, 0, 100, 30), "Start",
Alignment.BottomRight, "", bottomPanel[(int)PanelTab.Map]);
startButton.OnClicked = StartShift;
startButton.OnClicked = StartRound;
startButton.Enabled = false;
//---------------------------------------
@@ -520,18 +520,18 @@ namespace Barotrauma
return false;
}
private bool StartShift(GUIButton button, object selection)
private bool StartRound(GUIButton button, object selection)
{
if (GameMain.GameSession.Map.SelectedConnection == null) return false;
GameMain.Instance.ShowLoading(ShiftLoading());
GameMain.Instance.ShowLoading(LoadRound());
return true;
}
private IEnumerable<object> ShiftLoading()
private IEnumerable<object> LoadRound()
{
GameMain.GameSession.StartShift(selectedLevel, true);
GameMain.GameSession.StartRound(selectedLevel, true);
GameMain.GameScreen.Select();
yield return CoroutineStatus.Success;