/// <summary> /// Method used to update the upstream readout module controller and to update the readout text field /// </summary> public void UpdateModule() { if (moduleInterface == null) { return; } if (!moduleInterface.IsVisible) { return; } if (!moduleInterface.IsActive && !moduleInterface.AlwaysShow) { return; } if (m_TextModule == null) { return; } moduleInterface.Update(); m_TextModule.OnTextUpdate.Invoke(moduleInterface.ModuleText); }
public void OnUpdate() { panelString.Length = 0; for (int i = 0; i < Modules.Count; i++) { IBasicModule mod = Modules[i]; if (mod == null) { continue; } mod.Update(panelString); if (mod.LineBreak) { panelString.Append("\n"); } else if (i != Modules.Count - 1) { panelString.Append(" "); } } m_ModuleText.OnTextUpdate.Invoke(panelString.ToString()); }