public void CheckShouldShowTips(CUIEvent uiEvent)
            {
                if (this.contents.get_Count() > 0)
                {
                    IntimacyRelationView.IntimacyTipsMgr.Ent ent = this.contents.get_Item(this.contents.get_Count() - 1);
                    this.contents.RemoveAt(this.contents.get_Count() - 1);
                    if (ent.ShowType == IntimacyRelationView.IntimacyTipsMgr.EShowType.LevelUpMsgBoxAll)
                    {
                        string text = Singleton <CTextManager> .instance.GetText("RelaLevelUp_Title");

                        string text2 = Singleton <CTextManager> .instance.GetText("RelaLevelUp_ShareText");

                        stUIEventParams param = default(stUIEventParams);
                        param.tag    = (int)ent.state;
                        param.tagStr = ent.name;
                        Singleton <CUIManager> .instance.OpenMessageBoxWithCancel(ent.content, enUIEventID.IntimacyRela_CheckShouldShowTips, enUIEventID.IntimacyRela_ShareLevelUp, param, string.Empty, text2, false, text);
                    }
                    else if (ent.ShowType == IntimacyRelationView.IntimacyTipsMgr.EShowType.ValueUpTips && !string.IsNullOrEmpty(ent.content))
                    {
                        string strContent = string.Format(UT.GetText("Intimacy_UpInfo"), ent.content, this.deltaValue);
                        Singleton <CUIManager> .GetInstance().OpenTips(strContent, false, 1.5f, null, new object[0]);

                        ent.content     = string.Empty;
                        this.deltaValue = 0;
                    }
                }
            }
 private IntimacyRelationView.IntimacyTipsMgr.Ent Find(IntimacyRelationView.IntimacyTipsMgr.EShowType type)
 {
     for (int i = 0; i < this.contents.get_Count(); i++)
     {
         IntimacyRelationView.IntimacyTipsMgr.Ent ent = this.contents.get_Item(i);
         if (ent.ShowType == type)
         {
             return(ent);
         }
     }
     return(null);
 }
 public void RecordPlayerUpValueTips(string otherName, int deltaValue)
 {
     IntimacyRelationView.IntimacyTipsMgr.Ent ent = this.Find(IntimacyRelationView.IntimacyTipsMgr.EShowType.ValueUpTips);
     if (ent == null)
     {
         ent = new IntimacyRelationView.IntimacyTipsMgr.Ent(string.Empty, IntimacyRelationView.IntimacyTipsMgr.EShowType.ValueUpTips, string.Empty, COM_INTIMACY_STATE.COM_INTIMACY_STATE_NULL);
         this.contents.Insert(0, ent);
     }
     if (string.IsNullOrEmpty(ent.content))
     {
         ent.content = string.Format("{0}", otherName);
     }
     else
     {
         ent.content = string.Format("{0}, {1}", ent.content, otherName);
     }
     this.deltaValue = deltaValue;
 }