コード例 #1
0
            public void AddRelaLevelUpMsgBox(string otherName, int newLevel, COM_INTIMACY_STATE state)
            {
                RelationConfig relaTextCfg = Singleton <CFriendContoller> .instance.model.FRData.GetRelaTextCfg(state);

                if (relaTextCfg == null)
                {
                    return;
                }
                string levelDescStr = IntimacyRelationViewUT.GetLevelDescStr(newLevel);
                string text         = Singleton <CTextManager> .instance.GetText("RelaLevelUp_Info");

                string content = string.Format(text, new object[]
                {
                    otherName,
                    relaTextCfg.IntimRela_Type,
                    levelDescStr,
                    levelDescStr,
                    relaTextCfg.IntimRela_Type
                });

                this.contents.Add(new IntimacyRelationView.IntimacyTipsMgr.Ent(content, IntimacyRelationView.IntimacyTipsMgr.EShowType.LevelUpMsgBoxAll, otherName, state));
            }