// public void ProcessResultOfAIDI() { Result.Clear(); // if (OffsetParam.IsAddToDetection) { OffsetParam.CalculateRegion(); if (!OffsetParam.IsResultOK) { Result.Add(ETypeOfNg.OFFSET); } } // if (DefectParam.IsAddToDetection) { DefectParam.CalculateRegion(); if (!DefectParam.IsResultOK) { Result.Add(ETypeOfNg.DEFECT); } } // if (OverageParam.IsAddToDetection) { OverageParam.CalculateRegion(); if (!OverageParam.IsResultOK) { Result.Add(ETypeOfNg.OVERAGE); } } // if (TipParam.IsAddToDetection) { TipParam.CalculateRegion(); if (!TipParam.IsResultOK) { Result.Add(ETypeOfNg.TIP); } } // if (BadConnectionParam.IsAddToDetection) { BadConnectionParam.CalculateRegion(); if (!BadConnectionParam.IsResultOK) { Result.Add(ETypeOfNg.BADCONNECTION); } } // if (0 == Result.Count) { Result.Add(ETypeOfNg.OK); } return; }
/// <summary> /// 初始化,UITip /// </summary> public virtual void Init() { this.m_Trans = base.transform; WidgetFactory.FindAllUIObjects(this.m_Trans, this, ref this.m_dicId2UIObject); foreach (var current in this.m_dicId2UIObject.Values) { current.parent = this; current.ParentDlg = this.ParentDlg; string strKey = string.Format("{0}#{1}", this.CachedGameObject.name, current.CachedGameObject.name); string tip = Singleton <UITipConfigMgr> .singleton.GetTip(strKey);//UI提示字符串 if (!string.IsNullOrEmpty(tip)) { TipParam tipParam = null; string[] array = tip.Split(new char[] { '#' }); if (array.Length == 1) { tipParam = new TipParam(); tipParam.TipType = EnumTipType.eTipType_Common; tipParam.Tip = array[0]; } else if (array.Length == 2) { tipParam = new TitleTipParam { TipType = EnumTipType.eTipType_Title, Title = array[0], Tip = array[1] }; } current.TipParam = tipParam; } if (!current.IsInited) { current.Init(); } } }