Updating sonar/steering tickboxes to match received network state, graying out disabled tickboxes
This commit is contained in:
@@ -17,7 +17,7 @@ namespace Barotrauma.Items.Components
|
||||
private Vector2 currVelocity;
|
||||
private Vector2 targetVelocity;
|
||||
|
||||
private GUITickBox maintainPosTickBox;
|
||||
private GUITickBox autopilotTickBox, maintainPosTickBox;
|
||||
|
||||
private bool autoPilot;
|
||||
|
||||
@@ -43,8 +43,9 @@ namespace Barotrauma.Items.Components
|
||||
|
||||
autoPilot = value;
|
||||
|
||||
maintainPosTickBox.Enabled = autoPilot;
|
||||
autopilotTickBox.Selected = value;
|
||||
|
||||
maintainPosTickBox.Enabled = autoPilot;
|
||||
|
||||
if (autoPilot)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user