Beispiel #1
0
    public void OnCellForItems(ScrollGridCell itemCell)
    {
        BuildBedBean        itemData = listBedData[itemCell.index];
        ItemGameHotelBedCpt itemCpt  = itemCell.GetComponent <ItemGameHotelBedCpt>();

        itemCpt.SetData(itemData);
    }
    public void OnCellForItem(ScrollGridCell itemCell)
    {
        ModelInfoBean          modelInfo = listModelData[itemCell.index];
        UIItemForBuleprintList itemCpt   = itemCell.GetComponent <UIItemForBuleprintList>();

        itemCpt.SetData(modelInfo);
    }
Beispiel #3
0
    /// <summary>
    /// 单个数据回调
    /// </summary>
    /// <param name="itemCell"></param>
    public void OnCellForItem(ScrollGridCell itemCell)
    {
        UIViewItemContainer viewItemContainer = itemCell.GetComponent <UIViewItemContainer>();
        ItemsBean           itemsData         = blockBoxData.items[itemCell.index];

        viewItemContainer.SetData(UIViewItemContainer.ContainerType.Box, itemsData, itemCell.index);
    }
Beispiel #4
0
    public void OnCellForItem(ScrollGridCell itemCell)
    {
        ItemMiniGameCookingSelectMenuCpt itemCpt = itemCell.GetComponent <ItemMiniGameCookingSelectMenuCpt>();
        MenuOwnBean itemData = listOwnMenu[itemCell.index];

        itemCpt.SetData(itemData, InnFoodHandler.Instance.manager.GetFoodDataById(itemData.menuId));
    }
Beispiel #5
0
    public void OnCellForItem(ScrollGridCell itemCell)
    {
        ItemTownCandidateCpt itemCpt  = itemCell.GetComponent <ItemTownCandidateCpt>();
        CharacterBean        itemData = listData[itemCell.index];

        itemCpt.SetData(itemData);
    }
    public void OnCellForItem(ScrollGridCell itemCell)
    {
        ModelPartInfoBean      partInfo = listPartInfoData[itemCell.index];
        UIItemForWarehouseList itemCpt  = itemCell.GetComponent <UIItemForWarehouseList>();

        itemCpt.SetData(partInfo, userModelData);
    }
    /// <summary>
    /// 数据显示
    /// </summary>
    /// <param name="scrollGridCell"></param>
    public void OnCellForInfiniteTowers(ScrollGridCell scrollGridCell)
    {
        ItemMountainInfiniteTowersCpt itemCpt            = scrollGridCell.GetComponent <ItemMountainInfiniteTowersCpt>();
        UserInfiniteTowersBean        userInfiniteTowers = listData[scrollGridCell.index];

        itemCpt.SetData(userInfiniteTowers);
    }
    /// <summary>
    /// 单个数据回调
    /// </summary>
    /// <param name="itemCell"></param>
    public void OnCellForItem(ScrollGridCell itemCell)
    {
        UserDataBean        userData          = GameDataHandler.Instance.manager.GetUserData();
        UIViewItemContainer viewItemContainer = itemCell.GetComponent <UIViewItemContainer>();
        ItemsBean           itemsData         = userData.GetItemsFromBackpack(itemCell.index);

        viewItemContainer.SetData(UIViewItemContainer.ContainerType.Backpack, itemsData, itemCell.index);
    }
Beispiel #9
0
    public void OnCellForItem(ScrollGridCell itemCell)
    {
        CharacterFavorabilityBean characterFavorability = listFavorabilityData[itemCell.index];
        CharacterBean             characterData         = NpcInfoHandler.Instance.manager.GetCharacterDataById(characterFavorability.characterId);
        ItemGameFavorabilityCpt   itemFavorability      = itemCell.GetComponent <ItemGameFavorabilityCpt>();

        itemFavorability.SetData(characterFavorability, characterData);
    }
Beispiel #10
0
    public void OnCellForItem(ScrollGridCell itemCell)
    {
        CharacterBean         characterData = listData[itemCell.index];
        ItemGameAttendanceCpt workerItem    = itemCell.GetComponent <ItemGameAttendanceCpt>();

        workerItem.SetData(characterData);
        workerItem.SetCallBack(this);
    }
Beispiel #11
0
    public void OnCellForItems(ScrollGridCell itemCell)
    {
        int                      index       = itemCell.index;
        ItemBean                 itemBean    = listItemData[index];
        ItemsInfoBean            itemInfo    = GameItemsHandler.Instance.manager.GetItemsById(itemBean.itemId);
        ItemGameBackpackEquipCpt backpackCpt = itemCell.GetComponent <ItemGameBackpackEquipCpt>();

        backpackCpt.SetData(characterData, itemInfo, itemBean);
    }
Beispiel #12
0
    public void OnCellForFoodItems(ScrollGridCell itemCell)
    {
        int          index    = itemCell.index;
        MenuOwnBean  itemData = listMenu[index];
        MenuInfoBean menuInfo = InnFoodHandler.Instance.manager.GetFoodDataById(itemData.menuId);

        ItemGameMenuFoodCpt foodCpt = itemCell.GetComponent <ItemGameMenuFoodCpt>();

        foodCpt.SetData(itemData, menuInfo);
    }
    public void OnCellForItems(ScrollGridCell itemCell)
    {
        ItemBean                itemData     = listItemData[itemCell.index];
        ItemsInfoBean           itemsInfo    = GameItemsHandler.Instance.manager.GetItemsById(itemData.itemId);
        ItemGameBackpackPickCpt itemBackpack = itemCell.GetComponent <ItemGameBackpackPickCpt>();

        itemBackpack.SetCallBack(this);
        itemBackpack.SetData(itemsInfo, itemData);
        itemBackpack.SetSelectionType(itemSelectionType);
    }
Beispiel #14
0
    /// <summary>
    /// 列表Item回调
    /// </summary>
    /// <param name="itemCell"></param>
    public void OnCellForItem(ScrollGridCell itemCell)
    {
        CharacterBean     characterData = listCharacterData[itemCell.index];
        ItemGameWorkerCpt workerItem    = itemCell.GetComponent <ItemGameWorkerCpt>();

        if (workerItem != null)
        {
            workerItem.SetData(characterData);
        }
    }
Beispiel #15
0
    /// <summary>
    /// 单个数据回调
    /// </summary>
    /// <param name="itemCell"></param>
    public void OnCellForItem(ScrollGridCell itemCell)
    {
        UIViewItemContainer viewItemContainer = itemCell.GetComponent <UIViewItemContainer>();
        ItemsInfoBean       itemsInfo         = listItemsInfo[itemCell.index];
        ItemsBean           itemsData         = new ItemsBean();

        itemsData.itemId = itemsInfo.id;
        itemsData.number = int.MaxValue;
        viewItemContainer.SetData(UIViewItemContainer.ContainerType.God, itemsData, itemCell.index);
    }
    /// <summary>
    /// 单个数据
    /// </summary>
    /// <param name="itemView"></param>
    public void OnCellForItemSynthesis(ScrollGridCell itemView)
    {
        UIViewSynthesisItem itemSynthesis = itemView.GetComponent <UIViewSynthesisItem>();
        //item数据
        ItemsSynthesisBean itemData = listSynthesisData[itemView.index];
        //是否选中当前
        bool isSelect = (itemView.index == indexSelect ? true : false);

        //设置数据
        itemSynthesis.SetData(itemData, itemView.index, isSelect);
    }
Beispiel #17
0
    public void OnCellForItem(ScrollGridCell itemCell)
    {
        ItemSettleCpt itemSettle = itemCell.GetComponent <ItemSettleCpt>();
        ItemData      itemData   = listData[itemCell.index];

        if (itemData.type == 1)
        {
            itemSettle.SetData(itemData.icon, itemData.name, itemData.state, itemData.moneyL, itemData.moneyM, itemData.moneyS);
        }
        else
        {
            itemSettle.SetData(itemData.content, itemData.icon, itemData.name, itemData.colorContent);
        }
    }
Beispiel #18
0
    /// <summary>
    /// 列表回调
    /// </summary>
    /// <param name="cell"></param>
    public void OnCellForItem(ScrollGridCell cell)
    {
        ItemTownBeautySalonCpt itemTownBeautySalon = cell.GetComponent <ItemTownBeautySalonCpt>();
        GameDataBean           gameData            = GameDataHandler.Instance.manager.GetGameData();
        bool isLock = false;
        //获取美颜庄老板的好感
        CharacterFavorabilityBean characterFavorability = gameData.GetCharacterFavorability(130011);
        int   level        = characterFavorability.GetFavorabilityLevel();
        float unlockNumber = (listSelectData.Count / 6f) * (level + 1);

        if (cell.index < unlockNumber)
        {
            isLock = false;
        }
        else
        {
            isLock = true;
        }

        itemTownBeautySalon.SetData(bodyType, listSelectData[cell.index], isLock);
        itemTownBeautySalon.SetCallBack(this);
    }
Beispiel #19
0
    /// <summary>
    /// 监听
    /// </summary>
    /// <param name="itemCell"></param>
    public void OnCellForFamilyList(ScrollGridCell itemCell)
    {
        ItemGameFamilyCpt itemCpt = itemCell.GetComponent <ItemGameFamilyCpt>();

        itemCpt.SetData(listFamilyData[itemCell.index]);
    }