internal void SyncUi() { ElsUiPanel.ToggleStages(_stage.CurrentStage); if (_vcfroot.INTERFACE.LstgActivationType.ToLower().Equals("euro")) { ElsUiPanel.SetEuro(true); } else { ElsUiPanel.SetEuro(false); } ElsUiPanel.SetUiDesc(_prefix + CurrentPrmPattern.ToString().PadLeft(3, '0'), ExtraEnum.PRML.ToString()); ElsUiPanel.SetUiDesc(_prefix + CurrentSecPattern.ToString().PadLeft(3, '0'), ExtraEnum.SECL.ToString()); ElsUiPanel.SetUiDesc(_prefix + CurrentWrnPattern.ToString().PadLeft(3, '0'), ExtraEnum.WRNL.ToString()); ElsUiPanel.ToggleUiBtnState(prmLights, "PRML"); ElsUiPanel.ToggleUiBtnState(secLights, "SECL"); ElsUiPanel.ToggleUiBtnState(wrnLights, "WRNL"); ElsUiPanel.ToggleUiBtnState(crsLights, "CRS"); if (_extras.SCL != null) { ElsUiPanel.ToggleUiBtnState(_extras.SCL.TurnedOn, "SCL"); } if (_extras.TDL != null) { ElsUiPanel.ToggleUiBtnState(_extras.TDL.TurnedOn, "TDL"); } }
internal void SyncUi() { ElsUiPanel.ToggleStages(_stage.CurrentStage); if (Vcfroot.INTERFACE.LstgActivationType.ToLower().Equals("euro")) { ElsUiPanel.SetEuro(true); } else { ElsUiPanel.SetEuro(false); } if (_extras.PrimaryLights == null) { ElsUiPanel.SetUiDesc("--", ExtraEnum.PRML.ToString()); ElsUiPanel.ToggleUiBtnState(false, "PRML"); ElsUiPanel.ToggleUiBtnState(false, "CRS"); } else { ElsUiPanel.SetUiDesc(_prefix + CurrentPrmPattern.ToString().PadLeft(3, '0'), ExtraEnum.PRML.ToString()); ElsUiPanel.ToggleUiBtnState(prmLights, "PRML"); } if (_extras.SecondaryLights == null) { ElsUiPanel.SetUiDesc("--", ExtraEnum.SECL.ToString()); ElsUiPanel.ToggleUiBtnState(false, "SECL"); } else { ElsUiPanel.SetUiDesc(_prefix + CurrentSecPattern.ToString().PadLeft(3, '0'), ExtraEnum.SECL.ToString()); ElsUiPanel.ToggleUiBtnState(secLights, "SECL"); } if (_extras.WarningLights == null) { ElsUiPanel.SetUiDesc("--", ExtraEnum.WRNL.ToString()); ElsUiPanel.ToggleUiBtnState(false, "WRNL"); } else { ElsUiPanel.SetUiDesc(_prefix + CurrentSecPattern.ToString().PadLeft(3, '0'), ExtraEnum.WRNL.ToString()); ElsUiPanel.ToggleUiBtnState(wrnLights, "WRNL"); } if (Scene != null) { ElsUiPanel.ToggleUiBtnState(Scene.TurnedOn, "SCL"); } if (SpotLight != null) { ElsUiPanel.ToggleUiBtnState(SpotLight.TurnedOn, "TDL"); } }