| | |
| | |
|
| | | [SerializeField] Text m_FunctionalLevel;//功能等级 |
| | | [SerializeField] Text m_FunctionName;//功能名 |
| | | [SerializeField] Image m_FeaturesTypeIcon;//功能图标 |
| | | [SerializeField] ImageEx m_FeaturesTypeIcon;//功能图标 |
| | | [SerializeField] GameObject m_ImageSelected; |
| | | [SerializeField] Button m_Button; |
| | | |
| | | [SerializeField] GameObject m_Img_Done; |
| | | [SerializeField] ImageEx m_DisplayIcon; |
| | | public GameObject ImageSelected
|
| | | {
|
| | | get { return m_ImageSelected; }
|
| | |
| | | m_FunctionName.text = functionForecastConfig.FuncName;
|
| | | m_FunctionalLevel.text = functionForecastConfig.DisplayLevel.ToString();
|
| | | m_FeaturesTypeIcon.SetSprite(functionForecastConfig.FuncIconKey);
|
| | | if (PlayerDatas.Instance.baseData.LV >= functionForecastConfig.DisplayLevel)
|
| | | {
|
| | | m_FunctionalLevel.color = new Color(141,220,17);
|
| | | }
|
| | | else
|
| | | {
|
| | | m_FunctionalLevel.color = new Color(255, 244, 205);
|
| | | }
|
| | | if (FuncOpen.Instance.IsFuncOpen(funcId))
|
| | | {
|
| | | m_Img_Done.SetActive(true);
|
| | | m_FeaturesTypeIcon.gray = false;
|
| | | m_DisplayIcon.gray = false;
|
| | | m_FunctionName.color = new Color(255,244,205);
|
| | | }
|
| | | else
|
| | | {
|
| | | m_Img_Done.SetActive(false);
|
| | | m_FeaturesTypeIcon.gray = true;
|
| | | m_DisplayIcon.gray = true;
|
| | | m_FunctionName.color = new Color(220, 220, 220);
|
| | | }
|
| | | } |
| | | } |
| | | |