public void UF_DrawInfo(Rect rect) { MsgLoger logger = Debugger.UF_GetInstance().logger; UF_SetColor(m_CurrentTag); GUILayout.TextArea(logger.UF_GetTagMessage(m_CurrentTag), GUILayout.Width(rect.width - 3)); GUI.color = Color.white; }
private void UF_DrawTagMsgButton(string tag, MsgLoger logger) { UF_SetColor(tag); if (GUILayout.Button(string.Format("{0} ({1})", tag, logger.UF_GetTagCount(tag)), GUILayout.Height(40))) { m_CurrentTag = tag; } GUILayout.Space(10); }
void UF_DrawWinEnter(int id) { MsgLoger logger = Debugger.UF_GetInstance().logger; GUILayout.Label( string.Format("<color=white>L:{0}</color> <color=yellow>W:{1}</color> <color=red>E:{2}</color>", logger.UF_GetTagCount(Debugger.TAG_LOG), logger.UF_GetTagCount(Debugger.TAG_WARN), logger.UF_GetTagCount(Debugger.TAG_ERROR))); if (GUILayout.Button("Console", GUILayout.Width(100), GUILayout.Height(80))) { m_ViewBoardTag = ViewBoardTag.OUTPUT; } GUI.DragWindow(); }
public void UF_DrawDetail(Rect rect) { MsgLoger logger = Debugger.UF_GetInstance().logger; UF_DrawTagMsgButton(Debugger.TAG_LOG, logger); UF_DrawTagMsgButton(Debugger.TAG_WARN, logger); UF_DrawTagMsgButton(Debugger.TAG_ERROR, logger); UF_DrawTagMsgButton(Debugger.TAG_EXCEPTION, logger); foreach (string tag in logger.Tags) { if (tag == Debugger.TAG_LOG || tag == Debugger.TAG_WARN || tag == Debugger.TAG_ERROR || tag == Debugger.TAG_EXCEPTION) { continue; } UF_DrawTagMsgButton(tag, logger); } GUI.color = Color.white; if (GUILayout.Button("Clear", GUILayout.Height(40))) { logger.UF_ClearMessage(); } }