Esempio n. 1
0
 /// <summary>
 /// 显示礼物列表(滚动列表)
 /// </summary>
 void ShowGiftList()
 {
     giftList.ClearCells();
     //giftList.totalCount = uIImpulseComponent.ImpulseGiftGoods.Count;
     giftList.totalCount = uIImpulseComponent.ImpulseGiftGoods.Count;
     giftList.RefillCells();
 }
Esempio n. 2
0
    /// <summary>
    /// 获取许愿奖励配置
    /// </summary>
    private void GetVowData()
    {
        LsSCVowAward.Clear();
        LsSCVowAward.Add(sCVowAward);

        lsVow.ClearCells();
        lsVow.totalCount = LsSCVowAward.Count;
        lsVow.RefillCells();
    }
Esempio n. 3
0
 internal void SetRewards(ManorRegionComponent manorRegionComponent, List <CSWareHouseStruct> awardIds, SCUnlockArea regionUnLockDialogEndSucc)
 {
     this.manorRegionComponent = manorRegionComponent;
     this.awardIds             = awardIds;
     Root2dSceneManager._instance.awardIdsCurrManorRegion = awardIds;
     this.regionUnLockDialogEndSucc = regionUnLockDialogEndSucc;
     scrollReward.ClearCells();
     scrollReward.totalCount = awardIds.Count;
     scrollReward.RefillCells();
 }
Esempio n. 4
0
    /// <summary>
    /// 获取累积奖励配置
    /// </summary>
    private void GetConfigData()
    {
        listSign.Clear();
        var sign = StaticData.configExcel.SignIn;

        foreach (var item in sign)
        {
            listSign.Add(item);
        }

        //无限列表刷新
        ls.ClearCells();
        ls.totalCount = listSign.Count;
        ls.RefillCells();
    }
Esempio n. 5
0
    public void OpenRootPlant(TileComponent tileComponent)
    {
        //打开种植的时候情况列表
        Root2dSceneManager._instance.PlantData.PlantInfo.Clear();
        currClickComponent = tileComponent;
        SetWorldPos(tileComponent, goPlant, TypePointUI.Plant);
        goPlant.SetActive(true);

        var listSeed = StaticData.GetPlantSeeds();

        loopHorizontalScrollRect.ClearCells();
        loopHorizontalScrollRect.totalCount = listSeed.Count;
        //计算适配器初始值
        loopHorizontalScrollRect.GetComponent <UIPlantScrollViewAdapter>().CalcAdapterSizeByCount(listSeed.Count);
        //只有是显示状态刷新才有效
        loopHorizontalScrollRect.RefillCells();
        scrollCameraWhenBoundsOutScreenPlant.PlayCameraAnimWhenOutScreen(goPlant, tileComponent, TypePointUI.Plant);
    }
Esempio n. 6
0
 //好友庄园界面刷新
 /// <summary>
 /// 生成庄园好友列表UI
 /// </summary>
 private void GenerateFriendStealListUI()
 {
     lsFriendStealList.ClearCells();
     lsFriendStealList.totalCount = StaticData.playerInfoData.listFriendStealInfo.Count;
     lsFriendStealList.RefillCells();
 }