少年修仙传客户端代码仓库
client_linchunjie
2018-09-21 edfd535734a7adab6d0f24c863149ed63bcd37c8
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
47
48
49
50
51
52
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
 
namespace Snxxz.UI
{
    public class OpenActivityRankTypeCell : CellView
    {
        [SerializeField] RedpointBehaviour m_Redpoint;
        public RedpointBehaviour redpoint
        {
            get
            {
                return m_Redpoint;
            }
        }
        [SerializeField] Text m_TitleTxt;
        public Text titleTxt
        {
            get
            {
                return m_TitleTxt;
            }
        }
        [SerializeField] Button m_FunctionBtn;
        public Button functionBtn
        {
            get
            {
                return m_FunctionBtn;
            }
        }
        [SerializeField] Image m_FuncIcon;
        public Image functionIcon
        {
            get
            {
                return m_FuncIcon;
            }
        }
        [SerializeField] FunctionButtonConfig m_AlternativeConfig;
        public FunctionButtonConfig alternativeConfig { get { return m_AlternativeConfig; } set { m_AlternativeConfig = value; } }
 
        public void ChangeState(TitleBtnState _state)
        {
            functionIcon.SetSprite(alternativeConfig.GetIconKey(_state));
            m_TitleTxt.color = alternativeConfig.GetFontColor(_state);
            m_TitleTxt.fontSize = alternativeConfig.GetFontSize(_state);
        }
    }
}