Пример #1
0
    public override void Start()
    {
        _model = new ReloadingModel();
        var curRoleVo = GlobalData.FavorabilityMainModel.CurrentRoleVo;

        View.SetInfo(curRoleVo, _model.GetBgImagePath(curRoleVo.Apparel[1]));

        View.CreateClothsAndBackgrounds(_model.GetList(ReloadingListState.Clothing), _model.GetList(ReloadingListState.Backgroud));

        EventDispatcher.AddEventListener <ReloadingVO>(EventConst.ReloadingItemClick, OnReloadingItemClick);
    }
Пример #2
0
    public void ShowHint(ReloadingVO vo, UserFavorabilityVo cur, ReloadingModel model, string bgImage = null)
    {
        _curRole = cur;
        _model   = model;
        var clothHintTxt = _clothHint.GetText("Text");

        if (vo.ItemType == DressUpTypePB.TypeClothes)
        {
            _lastOnClickCloth = vo;
            if (vo.IsGet == false)
            {
                _clothHint.gameObject.Show();
                clothHintTxt.text = I18NManager.Get("Reloading_Hint1", vo.UnlockDesc);
            }
            else
            {
                _clothHint.gameObject.Hide();
                clothHintTxt.text = "";
            }

            PresonBGTexture(vo.ItemId.ToString());
        }

        if (vo.ItemType == DressUpTypePB.TypeBackground)
        {
            _lastOnClickBackground = vo;
            if (vo.IsGet == false)
            {
                _clothHint.gameObject.Show();
                clothHintTxt.text = I18NManager.Get("Reloading_Hint2", vo.UnlockDesc);
            }
            else
            {
                _clothHint.gameObject.Hide();
                clothHintTxt.text = "";
            }

            BGTexture(bgImage);
        }
    }