示例#1
0
        public override void createUI(ISkillEvent value, EditorUI p)
        {
            base.createUI(value, p);

            this.ev = value as MoveEvent;

            formItem       = new EditorVector3("偏移:");
            formItem.value = ev.position;

            formItem.addEventListener(EventX.CHANGE, aniHandle);

            ridioGroup = new EditorEnumPopUp();
            ridioGroup.addEventListener(EventX.CHANGE, ridioGroupHandle);
            ridioGroup.selectedIndex = ev.type;


            isInterpolationRidio          = new EditorRadio("是否插值");
            isInterpolationRidio.selected = ev.isInterpolation;
            isInterpolationRidio.addEventListener(EventX.CHANGE, isInterpolationHandle);


            easeType = new EditorEnum("Ease");
            //easeType.value = ev.easeType;
            easeType.addEventListener(EventX.CHANGE, easeTypeHandle);

            isSpeedRidio          = new EditorRadio("是否只按此速度");
            isSpeedRidio.visible  = isInterpolationRidio.selected;
            isSpeedRidio.selected = ev.isSpeed;
            isSpeedRidio.addEventListener(EventX.CHANGE, isSpeedRidioHandle);

            checkCollideRidio          = new EditorRadio("检查碰撞");
            checkCollideRidio.selected = ev.checkCollider;
            checkCollideRidio.addEventListener(EventX.CHANGE, checkCollideRidioHandle);

            resetRidio          = new EditorRadio("播完回复到原位置");
            resetRidio.selected = ev.reback;
            resetRidio.addEventListener(EventX.CHANGE, ridioHandle);

            p.addChild(ridioGroup);
            p.addChild(formItem);
            p.addChild(isInterpolationRidio);
            p.addChild(easeType);
            p.addChild(isSpeedRidio);
            p.addChild(checkCollideRidio);
            if (isInterpolationRidio.selected == false)
            {
                easeType.visible     = false;
                isSpeedRidio.visible = false;
            }


            p.addChild(resetRidio);
        }
示例#2
0
        public override void createUI(ISkillEvent value, EditorUI p)
        {
            base.createUI(value, p);
            this.ev = value as TrigerEvent;

            grouGroup = new EditorEnumPopUp();
            grouGroup.selectedIndex = ev.type;
            grouGroup.addEventListener(EventX.CHANGE, ridioGroupHandle);

            p.addChild(grouGroup);

            if (SkillEventType.DIY.CompareTo(grouGroup.selectedIndex) == 0)
            {
                formItem       = new EditorFormItem("事件:");
                formItem.value = ev.eventType;
                formItem.addEventListener(EventX.CHANGE, effectHandle);

                p.addChild(formItem);
            }
        }