| | |
| | | {
|
| | | var activityCell = cell as OpenServerActivityCell;
|
| | | var seconds = fairyLeagueModel.GetBeforeFirstLeagueTime();
|
| | | if (seconds > 0)
|
| | | {
|
| | | activityCell.title.text = UIHelper.ReplaceNewLine(Language.Get("FairyLeagueForcast", TimeUtility.SecondsToHMS(seconds)));
|
| | | }
|
| | | else
|
| | | {
|
| | | activityCell.title.text = Language.Get("FamilyMatchName");
|
| | | }
|
| | | activityCell.title.text = TimeUtility.SecondsToHMS(seconds);
|
| | | activityCell.title.gameObject.SetActive(seconds > 0);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | |
|
| | | private void RefreshOpenActivityCell(OpenServerActivityCell _cell)
|
| | | {
|
| | | var customActivity = m_CustomActivitys.Find((x) =>
|
| | | {
|
| | | return (int)x.activityType == _cell.index;
|
| | | });
|
| | | bool customIcon = !string.IsNullOrEmpty(customActivity.titleIcon);
|
| | |
|
| | | OperationBase operationBase;
|
| | | switch (_cell.index)
|
| | | {
|
| | |
| | | {
|
| | | _cell.title.text = Language.Get("ExpActivity_Text5", (operationBase as OperationMultiExp).GetMultipleCHS());
|
| | | }
|
| | | _cell.title.gameObject.SetActive(!customIcon);
|
| | | _cell.title.color = UIHelper.GetUIColor(TextColType.NavyBrown);
|
| | | break;
|
| | | case 8:
|
| | | if (OperationTimeHepler.Instance.TryGetOperationTime(Operation.MultipRealmPoint, out operationBase))
|
| | | {
|
| | | _cell.title.text = Language.Get("MultipleRealmPoint", Language.Get(StringUtility.Contact("Num_CHS_", (operationBase as OperationMultipleRealmPoint).multiplePractice)));
|
| | | }
|
| | | _cell.title.gameObject.SetActive(!customIcon);
|
| | | _cell.title.color = UIHelper.GetUIColor(TextColType.NavyBrown);
|
| | | break;
|
| | | case 12:
|
| | | var seconds = fairyLeagueModel.GetBeforeFirstLeagueTime();
|
| | | _cell.title.gameObject.SetActive(seconds > 0);
|
| | | if (seconds > 0)
|
| | | {
|
| | | _cell.title.text = UIHelper.ReplaceNewLine(Language.Get("FairyLeagueForcast", TimeUtility.SecondsToHMS(seconds)));
|
| | | }
|
| | | else
|
| | | {
|
| | | _cell.title.text = Language.Get("FamilyMatchName");
|
| | | _cell.title.text = TimeUtility.SecondsToHMS(seconds);
|
| | | _cell.title.color = UIHelper.GetUIColor(TextColType.Green, true);
|
| | | }
|
| | | break;
|
| | | default:
|
| | | _cell.title.gameObject.SetActive(!customIcon);
|
| | | _cell.title.text = Language.Get(StringUtility.Contact("OSActivityTitle_", _cell.index));
|
| | | _cell.title.color = UIHelper.GetUIColor(TextColType.NavyBrown);
|
| | | break;
|
| | | }
|
| | | _cell.order = _cell.index;
|
| | |
| | | _cell.downArrow.gameObject.SetActive(false);
|
| | | _cell.upArrow.gameObject.SetActive(false);
|
| | |
|
| | | var customActivity = m_CustomActivitys.Find((x) =>
|
| | | {
|
| | | return (int)x.activityType == _cell.index;
|
| | | });
|
| | |
|
| | | bool customIcon = !string.IsNullOrEmpty(customActivity.titleIcon);
|
| | | _cell.title.gameObject.SetActive(!customIcon);
|
| | | _cell.titleImage.gameObject.SetActive(customIcon);
|
| | | if (customIcon)
|
| | | {
|