future 1 vuosi sitten
vanhempi
sitoutus
20532374d8

+ 3 - 3
assets/resources/prefab/copy_scene.prefab → assets/resources/prefab/show_copy_scene.prefab

@@ -1,7 +1,7 @@
 [
   {
     "__type__": "cc.Prefab",
-    "_name": "copy_scene",
+    "_name": "show_copy_scene",
     "_objFlags": 0,
     "__editorExtras__": {},
     "_native": "",
@@ -13,7 +13,7 @@
   },
   {
     "__type__": "cc.Node",
-    "_name": "copy_scene",
+    "_name": "show_copy_scene",
     "_objFlags": 0,
     "__editorExtras__": {},
     "_parent": null,
@@ -1932,7 +1932,7 @@
   },
   {
     "__type__": "cc.CompPrefabInfo",
-    "fileId": "4bd/jRJvZHvZ2mHQq5yOZc"
+    "fileId": "a4EBiLsmBKw4E7Ds9cRLCF"
   },
   {
     "__type__": "cc.PrefabInfo",

+ 1 - 1
assets/resources/prefab/copy_scene.prefab.meta → assets/resources/prefab/show_copy_scene.prefab.meta

@@ -8,6 +8,6 @@
   ],
   "subMetas": {},
   "userData": {
-    "syncNodeName": "copy_scene"
+    "syncNodeName": "show_copy_scene"
   }
 }

+ 2 - 2
assets/script/edit/scene_select_list.ts

@@ -6,7 +6,7 @@ import { ClientEvent } from '../clientEvent';
 import { config } from '../config';
 import { tools } from '../tools';
 import { Attributes } from './Attributes';
-import { copy_scene } from './copy_scene';
+import { show_copy_scene } from './show_copy_scene';
 const { ccclass, property } = _decorator;
 
 @ccclass('scene_select_list')
@@ -83,7 +83,7 @@ export class scene_select_list extends Component {
         let list = this.m_main.control_view.get_bag_data().content;
         let c_data = list[c_index]
         // console.log('c_data=',c_data)
-        tools.show_copy_scene(c_data.scene_diy_name, (scene_name:string, copy_scene_view:copy_scene)=> {          
+        tools.show_copy_scene(c_data.scene_diy_name, (scene_name:string, copy_scene_view:show_copy_scene)=> {  
             let copy_data = JSON.parse(JSON.stringify(c_data))  //深拷贝
             copy_data.scene_diy_name = scene_name
             for(let i=0; i<copy_data.page_list.length; i++) {

+ 2 - 2
assets/script/edit/copy_scene.ts → assets/script/edit/show_copy_scene.ts

@@ -2,8 +2,8 @@ import { _decorator, Component, EditBox, Node } from 'cc';
 import { tools } from '../tools';
 const { ccclass, property } = _decorator;
 
-@ccclass('copy_scene')
-export class copy_scene extends Component {
+@ccclass('show_copy_scene')
+export class show_copy_scene extends Component {
     @property(Node) btn_sure:Node = null;
     @property(Node) btn_cancel:Node = null;
     @property(Node) editBox_scene_name:Node = null;

+ 0 - 0
assets/script/edit/copy_scene.ts.meta → assets/script/edit/show_copy_scene.ts.meta


+ 3 - 3
assets/script/tools.ts

@@ -28,7 +28,7 @@ import { select_sound_list } from './edit/select_sound_list';
 import { select_task_da_guai } from './edit/task/select_task_da_guai';
 import { edit_event_view } from './edit/event/edit_event_view';
 import { tip_type_select } from './edit/tip_type_select';
-import { copy_scene } from './edit/copy_scene';
+import { show_copy_scene } from './edit/show_copy_scene';
 export class tools  {
 
     public static show_dialog(title="是否确定?",sure_callback,cancel_callback=null){
@@ -87,10 +87,10 @@ export class tools  {
     }
 
     public static show_copy_scene(sceneName:string,call) {
-        resources.load("prefab/copy_scene", Prefab, (err, prefab)=> {
+        resources.load("prefab/show_copy_scene", Prefab, (err, prefab)=> {
             let node = instantiate(prefab);
             node.parent = main.g_canvas.node;
-            node.getComponent(copy_scene).initView(sceneName,call)
+            node.getComponent(show_copy_scene).initView(sceneName,call)
         })
     }