void RefreshStoreHouse(NDictionary data = null) { //update cap label capLabel.text = string.Format("仓库容量:{0}/{1}", itemPackage.GetRousourceTotalCap(), sanctuaryPackage.GetStoreHouseCap()); //refresh tableview tableView.TableChange(); }
void InitView() { NBuildingInfo info = sanctuarytPackage.GetBuildingInfo(selecttionBuilding.BuildingID); var buildingDataMap = ConfigDataStatic.GetConfigDataTable("BUILDING"); BUILDING buildingData = buildingDataMap[info.configID] as BUILDING; int level = sanctuarytPackage.GetBulidingLevelByConfigID(info.configID); titleLabel.text = string.Format("{0} Lv.{1}", buildingData.BldgName, level); contentLable.text = buildingData.BldgInfo; //render 3d model string prefabName = buildingData.PrefabName; if (!string.IsNullOrEmpty(prefabName)) { NDictionary data = new NDictionary(); prefabName = prefabName.Substring(0, prefabName.IndexOf(".")); GameObject prefab = Resources.Load <GameObject>("Prefabs/Building/" + prefabName); if (prefab != null) { data.Add("model", prefab); modelGo = FacadeSingleton.Instance.InvokeService("OpenSubRenderer", ConstVal.Service_Sanctuary, data) as GameObject; } } //get attribute data int count = sanctuarytPackage.GetBuildingAttribute(selecttionBuilding, level); tableView.DataCount = count; tableView.TableChange(); }
void InitView() { dynamicPackage.CalculateVisibleEvent(); tableView.DataCount = dynamicPackage.GetVisibleEventList().Count; tableView.TableChange(); StartCoroutine(DateCoroutine()); }
void ShowEventIcon(NDictionary data = null) { DynamicPackage dynamicPackage = FacadeSingleton.Instance.RetrieveData(ConstVal.Package_Dynamic) as DynamicPackage; dynamicPackage.CalculateBuff(); tableView.DataCount = dynamicPackage.GetBuffList().Count; tableView.TableChange(); }
void InitView() { NItemInfo info = itemPackage.GetSelectionItem(); ITEM_RES configData = itemPackage.GetItemDataByConfigID(info.configID); nameLabel.text = configData.MinName; numLabel.text = info.number.ToString(); descLabel.text = configData.Desc; iconSprite.spriteName = configData.IconName; if (configData.IfAvailable == 1) { ShowEffect(configData.Id); } else { tableView.DataCount = 0; tableView.TableChange(); } }
void RefreshView() { tableView.DataCount = mailPackage.GetMailList().Count; tableView.TableChange(); }
void ShowUpgradeEffect(NBuildingInfo info) { sanctuaryPackage.CalculateBuildingUpgradeEffect(info.building, sanctuaryPackage.GetBulidingLevelByConfigID(info.configID)); tableView.DataCount = sanctuaryPackage.GetBuildingUpgradeEffect().Count; tableView.TableChange(); }
void ShowGroup() { tableView.DataCount = dynamicPackage.GetGroupInfoList().Count; tableView.TableChange(); }
void ShowCost(BUILDING configData) { sanctuaryPackage.CalculateBuildingCost(configData.Id); tableView.DataCount = sanctuaryPackage.GetBuildingCostList().Count; tableView.TableChange(); }
void RefreshView(NDictionary data = null) { tableView.TableChange(); RefreshItemInfo(); RefreshResinfo(); }
void InitView() { tableView.DataCount = costResInfoList.Count; print("DataCount = " + costResInfoList.Count); tableView.TableChange(); }