protected override void Init() { base.Init(); instance = this; BackBtn.onClick = OnBackBtn; BtnBattle.onClick = OnBattleBtnClick; BtnLineup.onClick = OnLineupBtnClick; BtnCleanout.onClick = OnCleanoutBtnClick; BtnCleanout5.onClick = OnCleanout5BtnClick; }
void LoadSceneEntry() { GameObject go = Instantiate(Resources.Load("Prefab/UIPanel/SceneEntry")) as GameObject; go.transform.parent = transform; go.transform.localPosition = Vector3.zero; go.transform.localScale = Vector3.one; ActDifficSelect.sceneEnter = go.GetComponent <UISceneEntry>(); UISceneEntry sceneEntry = Control.Show(UIPanleID.SceneEntry) as UISceneEntry; ActDifficSelect.sceneEnter = sceneEntry; }
public void AddRaidsItem(object[] item, object[] other, SceneNode sn) { this.other = null; this.item = new object[null != other ? item.Length + 1 : item.Length]; for (int i = 0; i < item.Length; i++) { this.item[i] = item[i]; } if (null != other) { this.item[this.item.Length - 1] = other; this.other = other; } itemIndex = 0; raidsCount = 0; scrollView.ResetPosition(); ClearItemGrid(); itemPos = new Vector3(-21, 0, 0); InvokeRepeating("ShowItemRaids", 0, 0.5f); sceneNode = sn; if (null == SceneEntry) { SceneEntry = transform.parent.GetComponent <UISceneEntry>(); } raidsBtn.SetState(GUISingleButton.State.Normal); backBtn.isEnabled = false; SetBtnStateCollider(false); if (SceneEntry.type != OpenSourceType.Dungeons) { GameLibrary.eventdList[(sn.bigmap_id - 30000) / 100] -= SceneEntry.CleanoutCount; //SceneEntry.RefreshUI(sn); Control.ShowGUI(UIPanleID.SceneEntry, EnumOpenUIType.DefaultUIOrSecond, false, sn); raidsBtn.isEnabled = GameLibrary.eventdList[(sceneNode.bigmap_id - 30000) / 100] <= 0 ? false : true; } }
public void Init(object info) { sceneEnter = transform.parent.parent.parent.GetComponent <UISceneEntry>(); goodsTips = sceneEnter.goodsTips.gameObject; infos = new int[((int[])info).Length]; for (int i = 0; i < infos.Length; i++) { infos[i] = ((int[])info)[i]; } item = GameLibrary.Instance().ItemStateList[long.Parse(((int[])info)[0].ToString())]; if (item.types == 6) { icon.atlas = ResourceManager.Instance().GetUIAtlas("UIHeroHead"); } ItemData.SetAngleMarking(soulStone, item.types); icon.spriteName = item.icon_name; borderS.spriteName = ItemData.GetFrameByGradeType((GradeType)item.grade); }