void UpdateFellowInfo_Attr(Fellow fellow) { m_NameLabel.text = fellow.Name; m_CombatValueLabel.text = fellow.GetCombatValue().ToString(); m_TypeLabel.text = FellowTool.GetFellowTypeText(fellow.GetFellowType(), fellow.GetEvolveLevel()); m_BattleLevelLabel.text = fellow.GetCallLevel().ToString(); m_LevelLabel.text = fellow.Level.ToString(); m_ExpLabel.text = StrDictionary.GetClientDictionaryString("#{10316}", fellow.Exp, fellow.GetFellowLevelUpNeedExp()); //m_GrowUpLabel.text = fellow.GrowUp.ToString(); m_AttackLabel.text = fellow.GetAttackValue().ToString(); m_HitLabel.text = fellow.GetHitValue().ToString(); m_CriticalLabel.text = fellow.GetCriticalValue().ToString(); m_GuardLabel.text = fellow.GetGuardValue().ToString(); m_BlessLabel.text = fellow.GetBlessValue().ToString(); if (fellow.GetFellowType() == (int)FELLOWTYPE.BABY) { m_ProCreateLabel.text = fellow.ProcreateCount.ToString(); m_LuckyLabel.text = fellow.Lucky.ToString(); m_BabyAttr.SetActive(true); m_SkillArea.SetActive(false); } else { m_BabyAttr.SetActive(false); m_SkillArea.SetActive(true); } m_ElementPic.spriteName = FellowTool.GetFellowElementPic(fellow.ElementAttr); // m_QualityIcon.spriteName = FellowTool.GetFellowQualityIcon(fellow.Quality); }
private void SetFellowType(Fellow fellow) { if (m_TypeLabel != null) { if (fellow.GetFellowType() == (int)FELLOWTYPE.ALIEN) { m_TypeLabel.text = FellowTool.GetFellowTypeText(fellow.GetFellowType(), fellow.GetEvolveLevel()); } else { m_TypeLabel.text = FellowTool.GetFellowTypeText(fellow.GetFellowType()); } } }
void UpdateFellowInfo_Star(Fellow fellow) { if (fellow.GetFellowType() == (int)FELLOWTYPE.BABY) { m_StarAttr.SetActive(false); m_BabyFellowNotice.SetActive(true); //MoveButtonFun(true); } else { m_StarAttr.SetActive(true); m_BabyFellowNotice.SetActive(false); //MoveButtonFun(false); int nStarCount = fellow.StarLevel > 0 ? ((fellow.StarLevel - 1) % 12) + 1 : 0; for (int i = 0; i < m_StarPic.Length; i++) { if (i < nStarCount) { //m_StarPic[i].spriteName = FellowTool.GetChatFellowStarQualityPic(fellow.StarLevel); //m_StarPic[i].MakePixelPerfect(); // m_StarPic[i].gameObject.SetActive(true); m_StarPic[i].color = ItemTool.GetStarColorRGB(fellow.StarLevel); } else { // m_StarPic[i].gameObject.SetActive(false); m_StarPic[i].color = ItemTool.GetStarColorRGB(fellow.StarLevel - 12); } } } }
public void SetData(Fellow fellow) { sprHead.spriteName = fellow.GetIcon(); sprHeadQuality.spriteName = FellowTool.GetFellowQualityFrame(fellow.Quality); lblName.text = fellow.Name; lblLv.text = fellow.Level.ToString(); sprTalent.spriteName = FellowTool.GetFellowElementPic(fellow.ElementAttr); lblType.text = FellowTool.GetFellowTypeText(fellow.GetFellowType(), fellow.GetEvolveLevel()); if (fellow.IsBabyFellow()) { skillArea.SetActive(false); m_cloneArea.SetActive(true); SetStarState(false); SetCloneInfo(fellow); } else { skillArea.SetActive(true); m_cloneArea.SetActive(false); SetStarState(true); SetSkills(fellow); } UpdateFellowInfo_CurStar(fellow); }
public void OnFellowClick(Fellow fellow) { m_clickFellow = fellow; if (fellow == null) { // cloning item if (m_CurTab == TABCONTENT.TABCONTENT_INFO) { if (m_PartnerFrameLogic_Info != null) { m_PartnerFrameLogic_Info.ShowCloningTips(); } mCurFellowId = GlobeVar.INVALID_GUID; PartnerFrameItemLogic[] bItem = m_PartnerListGrid.GetComponentsInChildren <PartnerFrameItemLogic>(); for (int i = 0; i < bItem.Length; ++i) { bItem[i].UpdateChooseFlag(mCurFellowId); } } return; } if (false == fellow.IsValid()) { return; } mCurFellowId = fellow.Guid; PartnerFrameItemLogic[] aItem = m_PartnerListGrid.GetComponentsInChildren <PartnerFrameItemLogic>(); for (int i = 0; i < aItem.Length; ++i) { aItem[i].UpdateChooseFlag(fellow.Guid); } if (m_CurTab == TABCONTENT.TABCONTENT_INFO) { if (m_PartnerFrameLogic_Info != null) { m_PartnerFrameLogic_Info.UpdateFellowInfo(fellow); if (fellow.GetFellowType() == (int)FELLOWTYPE.BABY && GameManager.gameManager.MissionManager.IsHaveMission(MISSION_ID_BABY_UPGRADE)) { NewPlayerGuide(21); } } } else if (m_CurTab == TABCONTENT.TABCONTENT_DEVELOP) { if (m_PartnerFrameLogic_Develop != null) { m_PartnerFrameLogic_Develop.UpdateFellowInfo(fellow); } } else if (m_CurTab == TABCONTENT.TABCONTENT_SKILL) { if (m_PartnerFrameLogic_Skill != null) { m_PartnerFrameLogic_Skill.UpdateFellowInfo(fellow); } } OnItemClick(fellow); }
public void UpdateFellow_AttrInfo(Fellow fellow) { m_headPic.spriteName = fellow.GetIcon(); m_NameLabel.text = fellow.Name; m_CombatValueLabel.text = fellow.CombatValue.ToString(); if (fellow.GetFellowType() == (int)FELLOWTYPE.ALIEN) { m_TypeLabel.text = FellowTool.GetFellowTypeText(fellow.GetFellowType(), fellow.GetEvolveLevel()); } else { m_TypeLabel.text = FellowTool.GetFellowTypeText(fellow.GetFellowType()); } m_BattleLevelLabel.text = fellow.GetCallLevel().ToString(); m_LevelLabel.text = "LV" + fellow.Level.ToString(); // m_ExpLabel.text = StrDictionary.GetClientDictionaryString("#{10316}", fellow.Exp, fellow.GetFellowLevelUpNeedExp()); // m_GrowUpLabel.text = fellow.GrowUp.ToString(); m_AttackLabel.text = fellow.CombatAttr_Attack.ToString(); m_HitLabel.text = fellow.CombatAttr_Hit.ToString(); m_CriticalLabel.text = fellow.CombatAttr_Critical.ToString(); m_GuardLabel.text = fellow.CombatAttr_Guard.ToString(); m_BlessLabel.text = fellow.CombatAttr_Bless.ToString(); if (fellow.GetFellowType() == (int)FELLOWTYPE.BABY) { m_ProCreateLabel.text = fellow.ProcreateCount.ToString(); m_LuckyLabel.text = fellow.Lucky.ToString(); m_BabyAttr.SetActive(true); } else { m_BabyAttr.SetActive(false); } if (fellow.GetFellowType() == (int)FELLOWTYPE.ADULT || fellow.GetFellowType() == (int)FELLOWTYPE.ALIEN) { m_ElementPic.spriteName = FellowTool.GetFellowElementPic(fellow.ElementAttr); m_ElementAttr.SetActive(true); } else { m_ElementAttr.SetActive(false); } if (fellow.GetFellowType() == (int)FELLOWTYPE.ALIEN) { m_AlienLabel.text = fellow.GetEvolveLevel().ToString(); m_AlienAttr.SetActive(true); } else { m_AlienAttr.SetActive(false); } }
void UpdateFellowInfo_Star(Fellow fellow) { if (fellow.GetFellowType() == (int)FELLOWTYPE.BABY) { m_StarAttr.SetActive(false); } else { TooltipsEquipStar star = m_StarAttr.GetComponent <TooltipsEquipStar>(); star.ShowStar(fellow.StarLevel); m_StarAttr.SetActive(true); } }
public void UpdateFellowInfo(Fellow fellow) { if (fellow == null) { return; } if (fellow.IsValid() == false) { return; } m_AttackLabel.text = fellow.GetAttackValue().ToString(); m_HitLabel.text = fellow.GetHitValue().ToString(); m_CriticalLabel.text = fellow.GetCriticalValue().ToString(); m_GuardLabel.text = fellow.GetGuardValue().ToString(); m_BlessLabel.text = fellow.GetBlessValue().ToString(); m_AttackLabelNext.text = StrDictionary.GetClientDictionaryString("#{11202}", fellow.GetAttackValueByStar(fellow.StarLevel + 1) - fellow.GetAttackValue()); m_HitLabelNext.text = StrDictionary.GetClientDictionaryString("#{11202}", fellow.GetHitValueByStar(fellow.StarLevel + 1) - fellow.GetHitValue()); m_CriticalLabelNext.text = StrDictionary.GetClientDictionaryString("#{11202}", fellow.GetCriticalValueByStar(fellow.StarLevel + 1) - fellow.GetCriticalValue()); m_GuardLabelNext.text = StrDictionary.GetClientDictionaryString("#{11202}", fellow.GetGuardValueByStar(fellow.StarLevel + 1) - fellow.GetGuardValue()); m_BlessLabelNext.text = StrDictionary.GetClientDictionaryString("#{11202}", fellow.GetBlessValueByStar(fellow.StarLevel + 1) - fellow.GetBlessValue()); if (fellow.GetFellowType() == (int)FELLOWTYPE.BABY) { m_StarAttr.SetActive(false); //m_BabyFellowNotice.SetActive(true); } else { UpdateFellowInfo_CurStar(fellow); //UpdateFellowInfo_NextStar(fellow, 0); UpdateFellowInfo_Material(); m_StarAttr.SetActive(true); //m_BabyFellowNotice.SetActive(false); } m_Fellow = fellow; }
void UpdateFellowInfo_Button(Fellow fellow) { switch ((FELLOWTYPE)fellow.GetFellowType()) { case FELLOWTYPE.BABY: { // remove xishui feature //m_XiSuiButton.SetActive(true); m_RebirtheButton.GetComponent <UIImageButton>().isEnabled = false; } break; case FELLOWTYPE.ADULT: { m_XiSuiButton.SetActive(false); m_RebirtheButton.GetComponent <UIImageButton>().isEnabled = true; } break; case FELLOWTYPE.ALIEN: { m_XiSuiButton.SetActive(false); m_RebirtheButton.GetComponent <UIImageButton>().isEnabled = false; } break; default: break; } m_BattleButton.SetActive(!fellow.Called); m_CallBackButton.SetActive(fellow.Called); m_LockButton.SetActive(!fellow.Locked); m_UnLockButton.SetActive(fellow.Locked); }