| | |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using UnityEngine.UI; |
| | | |
| | | namespace Snxxz.UI |
| | | { |
| | | public class OpenServerActivityCell : CellView |
| | | { |
| | | [SerializeField] RedpointBehaviour m_Redpoint; |
| | | public RedpointBehaviour redpoint |
| | | { |
| | | get |
| | | { |
| | | return m_Redpoint; |
| | | } |
| | | } |
| | | [SerializeField] Button m_FuncBtn; |
| | | public Button funcBtn |
| | | { |
| | | get |
| | | { |
| | | return m_FuncBtn; |
| | | } |
| | | } |
| | | [SerializeField] FunctionButtonConfig m_AlternativeConfig; |
| | | public FunctionButtonConfig alternativeConfig { get { return m_AlternativeConfig; } set { m_AlternativeConfig = value; } } |
| | | [SerializeField] Image m_Icon; |
| | | [SerializeField] Text m_Title; |
| | | public Text title { get { return m_Title; } } |
| | | [SerializeField] Image m_Arrow; |
| | | public Image arrow { get { return m_Arrow; } } |
| | | private int m_Order = 0; |
| | | public int order { get { return m_Order; } set { m_Order = value; } } |
| | | |
| | | public void ChangeState(TitleBtnState _state) |
| | | { |
| | | m_Icon.SetSprite(alternativeConfig.GetIconKey(_state)); |
| | | m_Title.color = alternativeConfig.GetFontColor(_state); |
| | | m_Title.fontSize = alternativeConfig.GetFontSize(_state); |
| | | } |
| | | } |
| | | } |
| | | |
| | | using System.Collections;
|
| | | using System.Collections.Generic;
|
| | | using UnityEngine;
|
| | | using UnityEngine.UI;
|
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class OpenServerActivityCell : CellView
|
| | | {
|
| | | [SerializeField] RedpointBehaviour m_Redpoint;
|
| | | public RedpointBehaviour redpoint
|
| | | {
|
| | | get
|
| | | {
|
| | | return m_Redpoint;
|
| | | }
|
| | | }
|
| | | [SerializeField] Button m_FuncBtn;
|
| | | public Button funcBtn
|
| | | {
|
| | | get
|
| | | {
|
| | | return m_FuncBtn;
|
| | | }
|
| | | }
|
| | | [SerializeField] FunctionButtonConfig m_AlternativeConfig;
|
| | | public FunctionButtonConfig alternativeConfig { get { return m_AlternativeConfig; } set { m_AlternativeConfig = value; } }
|
| | | [SerializeField] Image m_Icon;
|
| | | [SerializeField] Text m_Title;
|
| | | public Text title { get { return m_Title; } }
|
| | | [SerializeField] Image m_DownArrow;
|
| | | public Image downArrow { get { return m_DownArrow; } }
|
| | | [SerializeField] Image m_UpArrow;
|
| | | public Image upArrow { get { return m_UpArrow; } }
|
| | |
|
| | | private int m_Order = 0;
|
| | | public int order { get { return m_Order; } set { m_Order = value; } }
|
| | |
|
| | | public void ChangeState(TitleBtnState _state)
|
| | | {
|
| | | m_Icon.SetSprite(alternativeConfig.GetIconKey(_state));
|
| | | m_Title.color = alternativeConfig.GetFontColor(_state);
|
| | | m_Title.fontSize = alternativeConfig.GetFontSize(_state);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|