コード例 #1
0
ファイル: DebugDataManager.cs プロジェクト: zqbb/MxDebug
    private void UpdataDebugCount()
    {
        DebugCountInfo debugCount = new DebugCountInfo();

        debugCount.Count        = dicCurrentData.Count;
        debugCount.LogCount     = logCount;
        debugCount.WarningCount = warningCount;
        debugCount.ErrorCount   = errorCount;
        string msg = JsonUtility.ToJson(debugCount);

        MessageMgr.SendMessageToUIForm(EnumUIFormType.MainUIForm, Define.ON_UPDATE_DEBUG_COUNT, msg);
        MessageMgr.SendMessageToUIForm(EnumUIFormType.AllMsgUIForm, Define.ON_UPDATE_DEBUG_COUNT, msg);
    }
コード例 #2
0
ファイル: AllMsgUIForm.cs プロジェクト: zqbb/MxDebug
 private void OnUpdataDebugCount(DebugCountInfo debugCount)
 {
     mLoopListView.SetListItemCount(debugCount.Count, false);
     if (debugCount.Count < 10)
     {
         scrollbar.value = 0;
     }
     if (scrollbar.value < 0.001f)
     {
         if (!isClickSelection)
         {
             mLoopListView.MovePanelToItemIndex(debugCount.Count, 0);
         }
     }
     else
     {
         isClickSelection = false;
     }
 }
コード例 #3
0
 private void OnUpdataDebugCount(DebugCountInfo debugCount)
 {
     text_LogCount.text     = (debugCount.LogCount < 999) ? debugCount.LogCount.ToString() : "999+";
     text_WarningCount.text = (debugCount.WarningCount < 999) ? debugCount.WarningCount.ToString() : "999+";
     text_ErrorCount.text   = (debugCount.ErrorCount < 999) ? debugCount.ErrorCount.ToString() : "999+";
 }