Exemple #1
0
 private void Update()
 {
     if (msgQueue.Count != 0)
     {
         MessageMgr.SendMessageToUIForm(EnumUIFormType.MainUIForm, Define.ON_ADD_DEBUG_DATA, msgQueue.Dequeue());
     }
 }
Exemple #2
0
 private void OnClickButton()
 {
     UserModel.SelectionIndex = index;
     MessageMgr.SendMessage(Define.GLOBAL_MESSAGE_TYPE, Define.ON_SELECTION_MSG, debugData.ID);
     UIManager.Instance.OpenUIForms(EnumUIFormType.SelectMsgUIForm);
     MessageMgr.SendMessageToUIForm(EnumUIFormType.SelectMsgUIForm, "Info", debugData.Condition + "\n" + debugData.StackTrace);
 }
Exemple #3
0
    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);
    }
Exemple #4
0
    private void AddLatestMsg(string key, string Content, LogType type)
    {
        int tempIndex = GetIndexByKey(key);

        if (tempIndex == -1)
        {
            return;
        }

        LatestMsgInfo latestMsgInfo = new LatestMsgInfo();

        latestMsgInfo.Index   = tempIndex;
        latestMsgInfo.Type    = type;
        latestMsgInfo.Content = Content;

        UIManager.Instance.OpenUIForms(EnumUIFormType.LatestMsgUIForm);
        MessageMgr.SendMessageToUIForm(EnumUIFormType.LatestMsgUIForm, "LatestMsgInfo", JsonUtility.ToJson(latestMsgInfo));
    }
Exemple #5
0
    private void OnClickMsg()
    {
        if (latestMsgInfo == null)
        {
            return;
        }

        DebugData debugData = DebugDataManager.Instance.GetDataByIndex(latestMsgInfo.Index);

        if (debugData == null)
        {
            return;
        }

        UserModel.SelectionIndex = latestMsgInfo.Index;
        UIManager.Instance.OpenUIForms(EnumUIFormType.SelectMsgUIForm);

        MessageMgr.SendMessageToUIForm(EnumUIFormType.SelectMsgUIForm, "Info", debugData.Condition + "\n" + debugData.StackTrace);
        MessageMgr.SendMessageToUIForm(EnumUIFormType.AllMsgUIForm, Define.ON_ALL_MSG_UI_MOVE_TO_INDEX, latestMsgInfo.Index);
        MessageMgr.SendMessage(Define.GLOBAL_MESSAGE_TYPE, Define.ON_SELECTION_MSG, debugData.ID);
    }