Exemplo n.º 1
0
    private void Awake()
    {
        _propImage   = transform.GetImage("CenterLayout/PropImage");
        _propNameTxt = transform.GetText("PropNameTxt");
        _ownTxt      = transform.GetText("OwnTxt");
        _dropNum     = transform.GetText("DropNum");

        PointerClickListener.Get(gameObject).onClick = go =>
        {
            string tips = PropConst.GetTips(_capsuleDropVo.PropId);
            if (tips != null)
            {
                FlowText.ShowMessage(tips);
            }
        };
    }
Exemplo n.º 2
0
        void Awake()
        {
            _propImage   = transform.Find("CenterLayout/PropImage").GetComponent <Image>();
            _propNameTxt = transform.Find("PropNameTxt").GetComponent <Text>();
            _ownTxt      = transform.Find("OwnTxt").GetComponent <Text>();

            _propNameTxt.text = "";
            _ownTxt.text      = "";

            PointerClickListener.Get(gameObject).onClick = go =>
            {
                string tips = PropConst.GetTips(_dropVo.PropId);
                if (tips != null)
                {
                    FlowText.ShowMessage(tips);
                }
            };
        }
Exemplo n.º 3
0
        public void SetData(List <RecollectionCardDropVo> cards, int propId)
        {
            //  MaskAlpha = 0.5f;
            MaskColor = new Color(0, 0, 0, 0.6f);
            _cards    = cards;


            _cardList.prefabName     = "Recollection/Prefabs/CardPropItem";
            _cardList.poolSize       = 6;
            _cardList.UpdateCallback = ListUpdateCallback;

            _cardList.totalCount = _cards.Count;
            _cardList.RefreshCells();

            _propImage.texture = ResourceManager.Load <Texture>("Prop/" + propId);

            _num.text = I18NManager.Get("Recollection_CardDropPropWindowHaveNum", GlobalData.PropModel.GetUserProp(propId).Num);
            PointerClickListener.Get(_propImage.gameObject).onClick = go =>
            {
                FlowText.ShowMessage(PropConst.GetTips(propId));
            };
        }