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

            this.ev = value as CameraShakeEvent;

            slider = new EditorSlider("幅度:");
            slider.setRank(0.1f, 10.0f, 0.1f);
            slider.value = ev.factor;

            slider1 = new EditorSlider("周期:");
            slider1.setRank(0.1f, 10.0f, 1);
            slider1.value = ev.period;

            formItem       = new EditorVector3("偏移:");
            formItem.value = ev.shaderVector;
            formItem.addEventListener(EventX.CHANGE, formHandle);

            slider.addEventListener(EventX.CHANGE, changeHandle);
            slider1.addEventListener(EventX.CHANGE, changeHandle1);

            p.addChild(slider);
            p.addChild(slider1);
            p.addChild(formItem);
        }
예제 #2
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);
        }
예제 #3
0
        public override void createUI(ISkillEvent value, EditorUI p)
        {
            base.createUI(value, p);
            this.ev             = value as FlashShowEvent;
            showToggle          = new EditorRadio("显示:");
            showToggle.selected = ev.isShow;
            showToggle.addEventListener(EventX.CHANGE, skeletonToggleHandle);

            offsetFromItem = new EditorVector3("坐标偏移:");
            offsetFromItem.addEventListener(EventX.CHANGE, offsetHandle);
            offsetFromItem.value     = ev.offset;
            offsetFromItem.visible   = showToggle.selected;
            useTargetToggle          = new EditorRadio("useTarget:");
            useTargetToggle.selected = ev.useTarget;
            useTargetToggle.addEventListener(EventX.CHANGE, useTargetToggleHandle);

            p.addChild(showToggle);
            p.addChild(offsetFromItem);
            p.addChild(useTargetToggle);
        }
예제 #4
0
        public override void createUI(ISkillEvent value, EditorUI p)
        {
            base.createUI(value, p);

            ev = value as CameraMoveEvent;

            formItem       = new EditorVector3("偏移:");
            formItem.value = ev.position;
            formItem.addEventListener(EventX.CHANGE, formHandle);

            checkRadio          = new EditorRadio("获取焦点");
            checkRadio.selected = ev.focusGet;
            checkRadio.addEventListener(EventX.CHANGE, checkRadioHandle);

            if (checkRadio.selected)
            {
                forceRadio          = new EditorRadio("强转");
                forceRadio.selected = ev.forceChange;
                forceRadio.addEventListener(EventX.CHANGE, checkRadioHandle);
            }

            p.addChild(formItem);
            p.addChild(checkRadio);
        }
예제 #5
0
        public override void createUI(ISkillEvent value, EditorUI p)
        {
            base.createUI(value, p);

            this.ev        = value as EffectCreateEvent;
            effectFormItem = new EditorFormItem("特效:");

            effectFormItem.value = ev.effectPath;
            effectFormItem.addEventListener(EventX.CHANGE, effectHandle);
            effectFormItem.searckKey = DataSource.EFFECT;
            p.addChild(effectFormItem);

            skeletonToggle          = new EditorRadio("绑定身体:");
            skeletonToggle.selected = ev.isBindSkeleton;
            skeletonToggle.addEventListener(EventX.CHANGE, skeletonToggleHandle);

            bindOnceToggle          = new EditorRadio("一次性对位而已:");
            bindOnceToggle.selected = ev.isBindOnce;
            bindOnceToggle.addEventListener(EventX.CHANGE, bindOnceToggleHandle);
            bindOnceToggle.visible = ev.isBindSkeleton;

            skeletonFormItem       = new EditorFormItem("骨骼:");
            skeletonFormItem.value = ev.skeletonName;
            skeletonFormItem.addEventListener(EventX.CHANGE, skeletonNameHandle);
            skeletonFormItem.searckKey = DataSource.BONE;
            skeletonFormItem.visible   = ev.isBindSkeleton;
            skeletonFormItem.visible   = skeletonToggle.selected;

            offsetFromItem = new EditorVector3("坐标偏移:");
            offsetFromItem.addEventListener(EventX.CHANGE, offsetHandle);
            offsetFromItem.value = ev.offset;

            rotationFromItem = new EditorVector3("坐标旋转:");
            rotationFromItem.addEventListener(EventX.CHANGE, rotationHandle);
            rotationFromItem.value = ev.offRotation;

            useTargetToggle          = new EditorRadio("useTarget:");
            useTargetToggle.selected = ev.useTarget;
            useTargetToggle.addEventListener(EventX.CHANGE, useTargetToggleHandle);

            isColliderToggle          = new EditorRadio("isCollider:");
            isColliderToggle.selected = ev.isCollider;
            isColliderToggle.addEventListener(EventX.CHANGE, isColliderToggleHandle);


            isUseTargetLayerToggle          = new EditorRadio("useTargetLayer:");
            isUseTargetLayerToggle.selected = ev.useTargetLayer;
            isUseTargetLayerToggle.addEventListener(EventX.CHANGE, isUseTargetLayerHandle);

            particlePlaybackSpeedSlider       = new EditorSlider("SpeedScale:");
            particlePlaybackSpeedSlider.min   = 0.1f;
            particlePlaybackSpeedSlider.max   = 5.0f;
            particlePlaybackSpeedSlider.value = ev.particlePlaybackSpeed;
            particlePlaybackSpeedSlider.addEventListener(EventX.CHANGE, particlePlaybackSpeedHandle);


            p.addChild(skeletonToggle);
            p.addChild(bindOnceToggle);
            p.addChild(skeletonFormItem);
            p.addChild(offsetFromItem);
            p.addChild(rotationFromItem);
            p.addChild(useTargetToggle);
            p.addChild(isColliderToggle);
            p.addChild(isUseTargetLayerToggle);
            p.addChild(particlePlaybackSpeedSlider);
        }