人生啊人生 1 lună în urmă
părinte
comite
851bdacc2a

+ 5 - 0
src/components/ThreeWorldEventQingXiCheAndQv/event/store/QingXiCheAndQvProcessEventStore.js

@@ -21,6 +21,11 @@ export const QingXiCheAndQvProcessEventStore = defineStore('QingXiCheAndQvProces
                 "name" : "仿真模拟",
             },
 
+            {
+                "note" : "人物换装(点击人物或者闪烁点触发)",
+                "name" : "人物换装",
+            },
+
             {
                 "note" : "打开车门进入驾驶室",
                 "name" : "打开车门进入驾驶室",

+ 9 - 1
src/components/ThreeWorldEventQingXiCheAndQv/js/QingXiCheAdnQvCarEventStep.js

@@ -566,7 +566,7 @@ export class QingXiCheAdnQvCarEventStep {
                 ];
 
                 break;
-
+            
             case "打开车门进入驾驶室":
 
                 meshList = [
@@ -575,6 +575,14 @@ export class QingXiCheAdnQvCarEventStep {
 
                 break;
 
+            case "人物穿衣服":
+
+                meshList = [
+                    "exhibition_html_1754357772363_hua_",
+                ];
+
+                break;
+
             case "确认手刹已拉起档位是P档然后发动车辆":
 
                 meshList = [

+ 48 - 0
src/components/ThreeWorldEventQingXiCheAndQv/js/QingXiCheAndQvCarEvent.js

@@ -240,6 +240,11 @@ export class QingXiCheAndQvCarEvent {
             //     thisClass.work_7();
             //     break;
 
+            // 人物换装
+            case '人物换装':
+                thisClass.work_new_0();
+                break;
+
             // 打开车门进入驾驶室
             case '打开车门进入驾驶室':
                 thisClass.work_new_1();
@@ -546,6 +551,49 @@ export class QingXiCheAndQvCarEvent {
         
     }
     
+    /**
+     * 人物换装
+     */
+    work_new_0 = function() {
+        
+        let thisClass = this;
+        let objThreeWorldEventMain = this.objThreeWorldEventMain;
+
+        let objIframeEdit = objThreeWorldEventMain.objIframeEdit;
+        let objIframe = objThreeWorldEventMain.objIframe;
+        let objScene = objThreeWorldEventMain.objScene;
+        let BABYLON = objThreeWorldEventMain.BABYLON;
+        let ChengGuangYuanJing = objIframe.ChengGuangYuanJing;
+        
+        objIframeEdit.modelPeopleLook(3);
+        objIframeEdit.roleShow(false);
+
+        QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
+        QingXiCheAdnQvCarEventStep.find().meshVisibility("人物穿衣服", true);
+
+        objIframeEdit.cameraVisualAngleGetListNameGpsTo("人物穿衣服");
+        
+        // WindowEvent.find().WindowTxtViewOpenEvent(
+        //     "上车前,先绕车一周,观察车辆前后有无障碍物,留意周边行人、车辆动态。" + "\n"
+        //     + "确认无异常后,拉开车门,侧身坐入驾驶室。"
+            
+        // );
+
+        // WindowEvent.find().WindowVideoRemoveColorOpen(
+        //     QingXiCheAndQvComRes.find().resJson["QingXiChe_13"],
+        //     "top:auto;left:auto;bottom:5%;right:10%;",
+        //     null,
+        //     null
+        // );
+
+        // // 初始化重置一些物体的材质
+        // thisClass.carOpen(false);
+        // thisClass.carShuangShanOpen(false);
+        
+        thisClass.tipsBtnsUpOpenEventCallbackMain(false);
+        thisClass.tipsBtnsDownOpenEventCallbackMain(false);
+        
+    }
 
     /**
      * 打开车门进入驾驶室