Skip to content

Commit

Permalink
Remove unused option from Viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
ZehMatt committed Aug 25, 2024
1 parent c1c9bbd commit 961ad25
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
15 changes: 1 addition & 14 deletions Viewer/FormMain.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions Viewer/FormMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ private void SetConfigValues()
CurrentConfig.GroupSize = (int)inputGroupSize.Value;
CurrentConfig.StartAgentsGrouped = inputStartGrouped.Checked;
CurrentConfig.PauseDuringBloodmoon = inputPauseDuringBloodmoon.Checked;
CurrentConfig.PauseWithoutPlayers = inputPausePlayerless.Checked;

var startChoice = inputStartPosition.SelectedIndex;
if (startChoice != -1)
Expand All @@ -271,7 +270,6 @@ private void SetupConfigChangeHandlers()
inputGroupSize.ValueChanged += (sender, arg) => SetConfigValues();
inputStartGrouped.CheckedChanged += (sender, arg) => SetConfigValues();
inputPauseDuringBloodmoon.CheckedChanged += (sender, arg) => SetConfigValues();
inputPausePlayerless.CheckedChanged += (sender, arg) => SetConfigValues();
inputStartPosition.SelectedIndexChanged += (sender, arg) => SetConfigValues();
inputRespawnPosition.SelectedIndexChanged += (sender, arg) => SetConfigValues();
}
Expand All @@ -287,7 +285,6 @@ private void UpdateConfigFields()
inputMaxAgents.Value = CurrentConfig.MaxAgents;
inputGroupSize.Value = CurrentConfig.GroupSize;
inputStartGrouped.Checked = CurrentConfig.StartAgentsGrouped;
inputPausePlayerless.Checked = CurrentConfig.PauseWithoutPlayers;
inputPauseDuringBloodmoon.Checked = CurrentConfig.PauseDuringBloodmoon;

var spawnChoice = Utils.GetWorldLocationString(CurrentConfig.StartPosition);
Expand Down

0 comments on commit 961ad25

Please sign in to comment.