protected override void Init() { ItemSkin = transform.Find("item").gameObject; ItemSkin.AddComponent <UDragScroll>(); ItemSkin.AddComponent <GroupItemFunc>(); SetData(100, 100, _arrangement, 0, 0, 0, 20, 3); }
protected override void Init() { ScroRect.movementType = UnityEngine.UI.ScrollRect.MovementType.Clamped; ItemSkin = transform.Find("item").gameObject; ItemSkin.AddComponent <UDragScroll>(); ItemSkin.AddComponent <FullImageItemFunc>(); rectTranEffectImage = this.transform.parent; setMainBtn = UITool.GetUIComponent <Button>(rectTranEffectImage, "setMainbtn"); delete = UITool.GetUIComponent <Button>(rectTranEffectImage, "delete"); effectShareMain = UITool.GetUIComponent <Button>(rectTranEffectImage, "share"); RectTransform arrayPoint = UITool.GetUIComponent <RectTransform>(rectTranEffectImage, "ScrollPoint"); SetData(2048, 1536, arragement); ScroRect.OnScrollDragedStart = OnScrollDragedStart; ScroRect.OnScrollDragedEnd = OnScrollDragedEnd; setMainBtn.onClick.AddListener(OnEffectSetMain); delete.onClick.AddListener(OnEffectDelete); effectShareMain.onClick.AddListener(OnEffectShare); int i = 0; pointDic.Clear(); Image[] Images = arrayPoint.GetComponentsInChildren <Image>(true); foreach (Image item in Images) { if (!pointDic.ContainsValue(item)) { pointDic.Add(i, item); } i++; } currPoint = pointDic[0]; }
protected override void Init() { ItemSkin = transform.Find("item").gameObject; MaterialController = UITool.GetUIComponent <RectTransform>(transform, "Controller"); MaterialController.gameObject.SetActive(true); MaterialController.SetParent(ContentRectTrans.parent); MaterialController.localScale = Vector3.one; materialDelete = UITool.GetUIComponent <Button>(MaterialController, "Delete"); materialDelete.onClick.AddListener(RemoveMaterial); cancelDelete = UITool.GetUIComponent <Image>(MaterialController, "Delete/cancelDelete"); UDragScroll uscr = ItemSkin.AddComponent <UDragScroll>(); uscr.scroRect = ScroRect; ItemSkin.AddComponent <MaterailImageItemFunc>(); specialitem = new MaterialItemData("", "", ""); specialitemBottom = new MaterialItemData("", "", ""); specialitemBottom.special = true; specialitem.special = true; SetData(100, 130, _arrangement, 100, 100, 10, 30, 1); //for (int i = 0; i < 1; i++) //{ // Msgs.Add(new ItemData()); //} //RefreshDisplay(Msgs,false,true); //skinClone.SetActive(false); //Display(Msgs); }
protected override void Init() { ItemSkin = transform.Find("itemPictures").gameObject; ItemSkin.AddComponent <SetMainOfferItemFunc>(); UDragScroll uscr = ItemSkin.AddComponent <UDragScroll>(); uscr.scroRect = ScroRect; SetData(1980, 200, _arrangement, 6, 20); //Display(msgs); }
protected override void Init() { ItemSkin = transform.Find("ImageItemSkin").gameObject; view = ItemSkin.transform.FindChild("GameObject/view").gameObject; UDragScroll uscr = view.AddComponent <UDragScroll>(); uscr.scroRect = ScroRect; ItemSkin.AddComponent <SchemeEffectImageItemFunc>(); SetData(672, 504, _arrangement, 6, 20, 70, 30, 2); }
protected override void Init() { base.Init(); ItemSkin = transform.Find("item").gameObject; ItemSkin.AddComponent <LobbyRoomItemFunction>(); UDragScroll uscr = ItemSkin.AddComponent <UDragScroll>(); uscr.scroRect = ScroRect; SetData(640, 80, arragement, 6, 20, 10, 5); }
protected override void Init() { base.Init(); ItemSkin = transform.Find("item").gameObject; ItemSkin.AddComponent <ProductItemFunction>(); UDragScroll uscr = ItemSkin.AddComponent <UDragScroll>(); uscr.scroRect = ScroRect; SetData(440, 460, _arrangement, 100, 100, 50, 50, 2); }
protected override void Init() { ItemSkin = transform.Find("detailItem").gameObject; ItemSkin.AddComponent <UDragScroll>(); ItemSkin.AddComponent <GoodDetailItemFunc>(); SetData(_cellWidth, _cellHeight, _arrangement, 0, 0, 0, 0, 1); for (int i = 0; i < 20; i++) { msgs.Add(new ItemData()); } Display(msgs); }
protected override void Init() { ItemSkin = transform.Find("itemPictures").gameObject; UDragScroll us = ItemSkin.AddComponent <UDragScroll>(); schemePage.scheme.mask.SetAsLastSibling(); us.scroRect = ScroRect; ItemSkin.AddComponent <GenerateOfferItemFunc>(); SetData(1980, 200, _arrangement, 6, 20); AddDeleteEvent(DeleteAllSelectItem); AddToggleEvent(ToggleOffOrOn); }
protected override void Init() { ItemSkin = transform.Find("itemPictures").gameObject; ItemSkin.AddComponent <UDragScroll>(); ItemSkin.AddComponent <CreateOfferItemFunc>(); SetData(_cellWidth, _cellHeight, _arrangement, _upperLimitIndex, _lowerLimitIndex, _cellWidthSpace, _cellHeightSpace, _maxPerLine); // 测试 for (int i = 0; i < 20; i++) { msgs.Add(new ItemData()); } Display(msgs); }
protected override void Init() { ItemSkin = transform.Find("ManifestItemSkin").gameObject; view = ItemSkin.transform.FindChild("view").gameObject; UDragScroll uscr = view.AddComponent <UDragScroll>(); uscr.scroRect = ScroRect; ItemSkin.AddComponent <SchemeManifestItemFunc>(); specialitem = new ManifestOfferItem("", "", "", "", "", "", 0); specialitem.special = true; SetData(672, 504, _arrangement, 6, 20, 70, 30, 2); // 初始化以后就隐藏 点击清单 在出现 UITool.SetActionFalse(this.gameObject); }
protected override void Init() { ItemSkin = transform.Find("itemModel").gameObject; ItemSkin.AddComponent <OfferModerItemFunc>(); UDragScroll uscr = ItemSkin.AddComponent <UDragScroll>(); uscr.scroRect = ScroRect; SetData(994, 200, _arrangement, _upperLimitIndex, _lowerLimitIndex, _cellWidthSpace, _cellHeightSpace, 2); // 测试 //for (int i = 0; i < 20; i++) //{ // msgs.Add(new ItemData()); //} //Display(msgs); }
protected override void Init() { ItemSkin = transform.Find("itemSkin").gameObject; ItemSkin.AddComponent <EnvironmentItemFunc>(); UDragScroll uscr = ItemSkin.AddComponent <UDragScroll>(); uscr.scroRect = ScroRect; SetData(262, 80, _arrangement, 6, 20, 0, 20); itemList.Add(new EnvironmentItemData("草色青青")); itemList.Add(new EnvironmentItemData("高楼林立")); itemList.Add(new EnvironmentItemData("街道夜色")); itemList.Add(new EnvironmentItemData("无外景")); itemList.Add(new EnvironmentItemData("碧水蓝天")); itemList.Add(new EnvironmentItemData("绵绵小溪")); RefreshDisplay(itemList); }
protected override void Init() { ItemSkin = transform.Find("item").gameObject; viewRect.anchoredPosition = Vector2.right * 20; //controllerAddDelet = UITool.GetUIComponent<RectTransform>(transform, "Controller"); //UITool.SetActionTrue(controllerAddDelet.gameObject); //controllerMove.SetParent(ContentRectTrans); //controllerMove.localScale = Vector3.one; //addItem = UITool.GetUIComponent<Button>(ScrollRectTrans, "Add"); showDelete = UITool.GetUIComponent <Button>(ScrollRectTrans, "Delete"); showDelete.onClick.AddListener(onDeleteCameraView); cancelDelete = UITool.GetUIComponent <Image>(ScrollRectTrans, "Delete/cancelDelete"); UDragScroll uscr = ItemSkin.AddComponent <UDragScroll>(); uscr.scroRect = ScroRect; ItemSkin.AddComponent <CamereViewItemFunc>(); _Arranement = Arrangement.Vertical; SetData(320, 240, _Arranement, 6, 6, 20, 20); viewRect.SetAsFirstSibling(); }