OutputComponent/Slot1501_EditMode.js
2022-03-31 08:58:55 +08:00

51 lines
1.3 KiB
JavaScript

let packageName = "slot1501-polygon";
let fs = require("fire-fs");
let path = require('fire-path');
let ActionEnum = cc.Enum({
None: "None",
Scale: "Scale",
Blink: "Blink",
Shake: "Shake",
FadeIn: "FadeIn",
FadeOut: "FadeOut",
Move: "Move",
});
Vue.component('dialog-inspector', {
template: `
<div>
<ui-prop name="選擇模式" tooltip="現在要幹嘛">
<ui-select class="flex-1" v-value="target.Type.value">
<option value=1>Create Wall</option>
<option value=2>Create Nail</option>
<option value=3>New Wall</option>
<option value=4>Set Wall</option>
<option value=5>Set Nail</option>
</ui-select>
</ui-prop>
</div>
<div style="text-align:left">
<ui-button class="blue" @confirm="onBtnClickPreview">Preview</ui-button>
</div>
`,
props: {
target: {
twoWay: true,
type: Object,
}
},
methods: {
onBtnClickPreview() {
let time = new Date().getTime();
Editor.Ipc.sendToPanel('scene', 'scene:set-property', {
id: this.target.uuid.value,
path: "preview",
type: "String",
value: time,
});
},
}
});