Beispiel #1
0
        public override void onShowed()
        {
            if (uiData != null)
            {
                itemdata = (a3_BagItemData)uiData[0];
                tip_type = (runestone_tipstype)uiData[1];
            }
            btn_sell.gameObject.SetActive(false);
            btn_dress.gameObject.SetActive(false);
            btn_out.gameObject.SetActive(false);
            btn_decompose.gameObject.SetActive(false);
            btn_down.gameObject.SetActive(false);
            getGameObjectByPath("info/noMask").SetActive(true);
            getGameObjectByPath("info/Mask").SetActive(true);
            switch (tip_type)
            {
            case runestone_tipstype.bag_tip:
                btn_sell.gameObject.SetActive(true);
                btn_dress.gameObject.SetActive(true);
                btn_decompose.gameObject.SetActive(true);
                break;

            case runestone_tipstype.compose_tips:
                btn_decompose.gameObject.SetActive(true);
                break;

            case runestone_tipstype.dress_tip:
                btn_dress.gameObject.SetActive(true);
                btn_decompose.gameObject.SetActive(true);
                break;

            case runestone_tipstype.decompose_tip:
                btn_out.gameObject.SetActive(true);
                break;

            case runestone_tipstype.dressdown_tip:
                btn_down.gameObject.SetActive(true);
                getGameObjectByPath("info/noMask").SetActive(false);
                getGameObjectByPath("info/Mask").SetActive(false);

                break;

            default:
                break;
            }
            infos();
            this.gameObject.transform.SetAsLastSibling();
        }
Beispiel #2
0
        public override void onShowed()
        {
            bool flag = this.uiData != null;

            if (flag)
            {
                this.itemdata = (a3_BagItemData)this.uiData[0];
                this.tip_type = (runestone_tipstype)this.uiData[1];
            }
            this.btn_sell.gameObject.SetActive(false);
            this.btn_dress.gameObject.SetActive(false);
            this.btn_out.gameObject.SetActive(false);
            this.btn_decompose.gameObject.SetActive(false);
            this.btn_down.gameObject.SetActive(false);
            base.getGameObjectByPath("info/noMask").SetActive(true);
            base.getGameObjectByPath("info/Mask").SetActive(true);
            switch (this.tip_type)
            {
            case runestone_tipstype.bag_tip:
                this.btn_sell.gameObject.SetActive(true);
                this.btn_dress.gameObject.SetActive(true);
                this.btn_decompose.gameObject.SetActive(true);
                break;

            case runestone_tipstype.compose_tips:
                this.btn_decompose.gameObject.SetActive(true);
                break;

            case runestone_tipstype.dress_tip:
                this.btn_dress.gameObject.SetActive(true);
                this.btn_decompose.gameObject.SetActive(true);
                break;

            case runestone_tipstype.decompose_tip:
                this.btn_out.gameObject.SetActive(true);
                break;

            case runestone_tipstype.dressdown_tip:
                this.btn_down.gameObject.SetActive(true);
                base.getGameObjectByPath("info/noMask").SetActive(false);
                base.getGameObjectByPath("info/Mask").SetActive(false);
                break;
            }
            this.infos();
            base.gameObject.transform.SetAsLastSibling();
        }