private void UpdateLabel() { DisplayLabel.Clear(); DisplayLabel.PushTable(2); AddText("Name", Colors.White); AddText("Value", Colors.White); foreach (string key in DebugInfoList.Keys) { string text = ""; try { text = DebugInfoList[key].InfoFunction.Invoke(); AddText(key, DebugInfoList[key].Color); AddText(text, DebugInfoList[key].Color); } catch (Exception ex) { // Something went wrong MDLog.Debug(LOG_CAT, ex.ToString()); } } DisplayLabel.Pop(); }
private void UpdateLabel() { DisplayLabel.Clear(); DisplayLabel.PushTable(2); foreach (string Category in OnScreenDebugManager.DebugInfoCategoryMap.Keys) { if (OnScreenDebugManager.HiddenCategories.Contains(Category)) { continue; } AddCateogryTitle(Category); Dictionary <string, OnScreenDebugInfo> DebugInfoList = OnScreenDebugManager.DebugInfoCategoryMap[Category]; foreach (string key in DebugInfoList.Keys) { try { string text = DebugInfoList[key].InfoFunction.Invoke(); AddTextCell(key, DebugInfoList[key].Color); AddTextCell(text, DebugInfoList[key].Color); } catch (Exception ex) { // Something went wrong GD.Print(ex.ToString()); } } AddEmptyLine(); } DisplayLabel.Pop(); }