6340 【前端】【2.0】境界改版开发单(修改境界表现)
| | |
| | | [SerializeField] UIEffect m_EffectBoss;
|
| | | [SerializeField] UIEffect m_EffectBase;
|
| | | [SerializeField] UIEffect m_EffectCover;
|
| | | [SerializeField] UIEffect m_EffectBossWord;
|
| | |
|
| | | [SerializeField, Header("小境界升级特效时长")] float m_NormalLevelUpEffectTime = 1.5f;
|
| | | [SerializeField, Header("大境界升级特效时长")] float m_SpecialLevelUpEffectTime = 4.5f;
|
| | |
| | | {
|
| | | isPlayingBossEffect = true;
|
| | | m_EffectBoss.Play();
|
| | | m_EffectBossWord.Play();
|
| | | Animator animator = null;
|
| | | if (m_EffectBoss.target != null)
|
| | | {
|
| | |
| | |
|
| | | void DisplayBase()
|
| | | {
|
| | | var config = RealmConfig.Get(realmLevel - 1);
|
| | | var config = RealmConfig.Get(realmLevel);
|
| | | var fightPower = PlayerDatas.Instance.baseData.FightPoint;
|
| | | var satisfy = fightPower >= config.FightPower;
|
| | | var label = UIHelper.AppendColor(satisfy ? TextColType.LightGreen : TextColType.Red, fightPower.ToString());
|
| | |
| | |
|
| | | void DisplayBoss()
|
| | | {
|
| | | var config = RealmConfig.Get(realmLevel - 1);
|
| | | var config = RealmConfig.Get(realmLevel);
|
| | | m_RawBoss.gameObject.SetActive(true);
|
| | | UI3DModelExhibition.Instance.ShowNPC(m_RawBoss, new UI3DNPCExhibitionData()
|
| | | {
|
| | |
| | | public void DisplayBoss(int realmLevel)
|
| | | {
|
| | | var config = RealmConfig.Get(realmLevel + 1);
|
| | | var label = UIHelper.GetRealmColorByLv(realmLevel, StringUtility.Contact("[", config.Name, "]"));
|
| | | var label = UIHelper.GetRealmColorByLv(realmLevel + 1, StringUtility.Contact("[", config.Name, "]"));
|
| | | m_Condition.text = Language.Get("RealmConditionBoss", label);
|
| | | var progress = model.isBossPass ? 1 : 0;
|
| | | m_Progress.text = StringUtility.Contact(progress, "/", 1);
|
| | |
| | | void DisplayRealmBoss()
|
| | | {
|
| | | m_ContainerBoss.gameObject.SetActive(true);
|
| | | m_RealmHeartMagic.Display(model.selectRealm);
|
| | | var realmLevel = PlayerDatas.Instance.baseData.realmLevel;
|
| | | m_RealmHeartMagic.Display(realmLevel);
|
| | | }
|
| | |
|
| | | void HideRealmBoss()
|
| | |
| | | m_RealmLevelUp.Display(model.selectRealm);
|
| | | }
|
| | |
|
| | | m_GotoBoss.gameObject.SetActive(model.displayRealmLevel == model.selectRealm - 1 &&
|
| | | model.SatisfyChallengeBoss(model.selectRealm - 1));
|
| | | m_GotoBoss.gameObject.SetActive(model.SatisfyChallengeBoss(model.displayRealmLevel));
|
| | | }
|
| | |
|
| | | void DisplayRealmBrief()
|
| | |
| | | {
|
| | | return string.Empty;
|
| | | }
|
| | | switch (config.Quality)
|
| | | {
|
| | | case 1:
|
| | | return StringUtility.Contact("<color=#", bright ? "686868" : "f7f7f7", ">", config.Name, "</color>");
|
| | | case 2:
|
| | | return StringUtility.Contact("<color=#", bright ? "08d00a" : "08d00a", ">", config.Name, "</color>");
|
| | | case 3:
|
| | | return StringUtility.Contact("<color=#", bright ? "006be3" : "31cefb", ">", config.Name, "</color>");
|
| | | case 4:
|
| | | return StringUtility.Contact("<color=#", bright ? "da48d5" : "ec4bf6", ">", config.Name, "</color>");
|
| | | case 5:
|
| | | return StringUtility.Contact("<color=#", bright ? "ff6701" : "f8983b", ">", config.Name, "</color>");
|
| | | case 6:
|
| | | return StringUtility.Contact("<color=#", bright ? "ff0303" : "ff0101", ">", config.Name, "</color>");
|
| | | case 7:
|
| | | return StringUtility.Contact("<color=#", bright ? "f6408d" : "ff7c7c", ">", config.Name, "</color>");
|
| | | case 8:
|
| | | return StringUtility.Contact("<color=#", bright ? "bb8800" : "ffde00", ">", config.Name, "</color>");
|
| | | case 9:
|
| | | return StringUtility.Contact("<color=#", bright ? "ff0303" : "ff0101", ">", config.Name, "</color>");
|
| | | default:
|
| | | return config.Name;
|
| | | }
|
| | | return GetRealmColorByLv(realmLv, config.Name, bright);
|
| | | }
|
| | |
|
| | | public static string GetRealmColorByLv(int realmLv, string msg, bool bright = false)
|
| | |
| | | switch (config.Quality)
|
| | | {
|
| | | case 1:
|
| | | return StringUtility.Contact("<color=#", bright ? "686868" : "f7f7f7", ">", msg, "</color>");
|
| | | return StringUtility.Contact("<color=#", bright ? "666666" : "dddddd", ">", msg, "</color>");
|
| | | case 2:
|
| | | return StringUtility.Contact("<color=#", bright ? "08d00a" : "08d00a", ">", msg, "</color>");
|
| | | return StringUtility.Contact("<color=#", bright ? "00b337" : "66ff00", ">", msg, "</color>");
|
| | | case 3:
|
| | | return StringUtility.Contact("<color=#", bright ? "006be3" : "31cefb", ">", msg, "</color>");
|
| | | return StringUtility.Contact("<color=#", bright ? "0066ff" : "00c6ff", ">", msg, "</color>");
|
| | | case 4:
|
| | | return StringUtility.Contact("<color=#", bright ? "da48d5" : "ec4bf6", ">", msg, "</color>");
|
| | | return StringUtility.Contact("<color=#", bright ? "ff00f6" : "f000ff", ">", msg, "</color>");
|
| | | case 5:
|
| | | return StringUtility.Contact("<color=#", bright ? "ff6701" : "f8983b", ">", msg, "</color>");
|
| | | return StringUtility.Contact("<color=#", bright ? "ff6600" : "ff9000", ">", msg, "</color>");
|
| | | case 6:
|
| | | return StringUtility.Contact("<color=#", bright ? "ff0303" : "ff0101", ">", msg, "</color>");
|
| | | case 7:
|
| | | return StringUtility.Contact("<color=#", bright ? "f6408d" : "ff7c7c", ">", msg, "</color>");
|
| | | case 8:
|
| | | return StringUtility.Contact("<color=#", bright ? "bb8800" : "ffde00", ">", msg, "</color>");
|
| | | case 9:
|
| | | return StringUtility.Contact("<color=#", bright ? "ff0303" : "ff0101", ">", msg, "</color>");
|
| | | return StringUtility.Contact("<color=#", bright ? "ff0000" : "ff0000", ">", msg, "</color>");
|
| | | default:
|
| | | return msg;
|
| | | }
|