예제 #1
0
 protected override void Init()
 {
     base.Init();
     instance             = this;
     BackBtn.onClick      = OnBackBtn;
     BtnBattle.onClick    = OnBattleBtnClick;
     BtnLineup.onClick    = OnLineupBtnClick;
     BtnCleanout.onClick  = OnCleanoutBtnClick;
     BtnCleanout5.onClick = OnCleanout5BtnClick;
 }
예제 #2
0
파일: UIActivity.cs 프로젝트: moto2002/moba
    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;
    }
예제 #3
0
    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;
        }
    }
예제 #4
0
파일: MaybeGain.cs 프로젝트: moto2002/moba
    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);
    }