少年修仙传客户端代码仓库
client_Zxw
2018-09-11 639aaa1e2ee1fc1a8876ddc242f5e21f8f1d4e74
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//--------------------------------------------------------
//    [Author]:           第二世界
//    [  Date ]:           Tuesday, September 11, 2018
//--------------------------------------------------------
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using TableConfig;
//功能开启类型2
namespace Snxxz.UI {
 
    public class FeaturesType2:MonoBehaviour {
        [SerializeField] Text m_FunctionalLevel;//功能等级
        [SerializeField] Text m_FunctionName;//功能名
        [SerializeField] Image m_FeaturesTypeIcon;//功能图标
        [SerializeField] GameObject m_ImageSelected;
        [SerializeField] Button m_Button;
        [SerializeField] GameObject m_DefaultBar;
        [SerializeField] GameObject m_SelectedBar;
        public GameObject ImageSelected
        {
            get { return m_ImageSelected; }
            set { m_ImageSelected = value; }
        }
        public Button Button
        {
            get { return m_Button; }
            set { m_Button = value; }
        }
 
        public void GetTheFeatureID(int funcId)
        {
            var functionForecastConfig = Config.Instance.Get<FunctionForecastConfig>(funcId);
            if (functionForecastConfig == null)
            {
                return;
            }
            m_FunctionName.text = functionForecastConfig.FuncName;
            m_FunctionalLevel.text = functionForecastConfig.DisplayLevel.ToString();
            m_FeaturesTypeIcon.SetSprite(functionForecastConfig.FuncIconKey);
        }
 
 
    }
 
}