|
@@ -61,7 +61,12 @@ export class QingXiCheAndQvCarEvent {
|
|
|
|
|
|
};
|
|
|
|
|
|
-
|
|
|
+ /**
|
|
|
+ * 当前的模式
|
|
|
+ * 0 - 学习模式,会出现各种提示,进行理解学习
|
|
|
+ * 1 - 考试模式,不会有任何提示,自己想办法完成
|
|
|
+ */
|
|
|
+ this.eventMode = 0;
|
|
|
|
|
|
/**
|
|
|
* 展示3d GUI的次数累加
|
|
@@ -624,7 +629,7 @@ export class QingXiCheAndQvCarEvent {
|
|
|
* txtBottom 底部文本
|
|
|
*/
|
|
|
threeWorldTxt = (positionX, positionY, positionZ, scaling, width, height, txtTop, txtBottom) => {
|
|
|
-
|
|
|
+
|
|
|
let thisClass = this;
|
|
|
let objThreeWorldEventMain = this.objThreeWorldEventMain;
|
|
|
|
|
@@ -634,6 +639,10 @@ export class QingXiCheAndQvCarEvent {
|
|
|
let BABYLON = objThreeWorldEventMain.BABYLON;
|
|
|
let ChengGuangYuanJing = objIframe.ChengGuangYuanJing;
|
|
|
|
|
|
+ if (QingXiCheAndQvCarEvent.find().eventMode == 1) {
|
|
|
+ return thisClass;
|
|
|
+ }
|
|
|
+
|
|
|
thisClass.threeWorldTxtNum += 1;
|
|
|
|
|
|
let code = "addOrUpdate_" + thisClass.threeWorldTxtNum;
|
|
@@ -752,8 +761,11 @@ export class QingXiCheAndQvCarEvent {
|
|
|
objIframeEdit.roleShow(false);
|
|
|
|
|
|
QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
|
|
|
- QingXiCheAdnQvCarEventStep.find().meshVisibility("人物穿衣服", true);
|
|
|
|
|
|
+ if (QingXiCheAndQvCarEvent.find().eventMode == 0) {
|
|
|
+ QingXiCheAdnQvCarEventStep.find().meshVisibility("人物穿衣服", true);
|
|
|
+ }
|
|
|
+
|
|
|
objIframeEdit.cameraVisualAngleGetListNameGpsTo("穿衣服_1");
|
|
|
|
|
|
QingXiCheAndQvCarEvent.find().threeWorldTxt(
|
|
@@ -841,16 +853,21 @@ export class QingXiCheAndQvCarEvent {
|
|
|
thisClass.aroundTheCarPointRecord = {}
|
|
|
|
|
|
QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
|
|
|
- QingXiCheAdnQvCarEventStep.find().meshVisibility("绕车一周", true);
|
|
|
-
|
|
|
- WindowEvent.find().WindowTxtViewOpenEvent(
|
|
|
- "上车前,先绕车一周,观察车辆前后有无障碍物,留意周边行人、车辆动态。"
|
|
|
- );
|
|
|
-
|
|
|
- QingXiCheAndQvCarEvent.find().threeWorldTxt(
|
|
|
- 6.479333078187721, 0, -17.762281446529666, 3, 173, 68 * 2,
|
|
|
- "根据【箭头提示】", "绕车一周"
|
|
|
- );
|
|
|
+
|
|
|
+ if (QingXiCheAndQvCarEvent.find().eventMode == 0) {
|
|
|
+
|
|
|
+ QingXiCheAdnQvCarEventStep.find().meshVisibility("绕车一周", true);
|
|
|
+
|
|
|
+ WindowEvent.find().WindowTxtViewOpenEvent(
|
|
|
+ "上车前,先绕车一周,观察车辆前后有无障碍物,留意周边行人、车辆动态。"
|
|
|
+ );
|
|
|
+
|
|
|
+ QingXiCheAndQvCarEvent.find().threeWorldTxt(
|
|
|
+ 6.479333078187721, 0, -17.762281446529666, 3, 173, 68 * 2,
|
|
|
+ "根据【箭头提示】", "绕车一周"
|
|
|
+ );
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
// 切换到人物的视角
|
|
|
objThreeWorldEventMain.commonBirthplaceUpdate();
|
|
@@ -889,26 +906,31 @@ export class QingXiCheAndQvCarEvent {
|
|
|
objIframeEdit.roleShow(true);
|
|
|
|
|
|
QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
|
|
|
- QingXiCheAdnQvCarEventStep.find().meshVisibility("打开车门进入驾驶室", true);
|
|
|
|
|
|
- // objIframeEdit.cameraVisualAngleGetListNameGpsTo("绕车1");
|
|
|
-
|
|
|
+ if (QingXiCheAndQvCarEvent.find().eventMode == 0) {
|
|
|
|
|
|
- QingXiCheAndQvCarEvent.find().threeWorldTxt(
|
|
|
- 6.898374424678477, 1.7193635674763605, -15.120125554798255, 3, 173, 68 * 2,
|
|
|
- "请点击【车门】", "或者闪烁点进入驾驶室"
|
|
|
- );
|
|
|
-
|
|
|
- WindowEvent.find().WindowTxtViewOpenEvent(
|
|
|
- "确认无异常后,拉开车门,侧身坐入驾驶室。"
|
|
|
- );
|
|
|
+ QingXiCheAdnQvCarEventStep.find().meshVisibility("打开车门进入驾驶室", true);
|
|
|
|
|
|
- WindowEvent.find().WindowVideoRemoveColorOpen(
|
|
|
- QingXiCheAndQvComRes.find().resJson["QingXiChe_13"],
|
|
|
- "top:auto;left:auto;bottom:5%;right:10%;",
|
|
|
- null,
|
|
|
- null
|
|
|
- );
|
|
|
+ // objIframeEdit.cameraVisualAngleGetListNameGpsTo("绕车1");
|
|
|
+
|
|
|
+
|
|
|
+ QingXiCheAndQvCarEvent.find().threeWorldTxt(
|
|
|
+ 6.898374424678477, 1.7193635674763605, -15.120125554798255, 3, 173, 68 * 2,
|
|
|
+ "请点击【车门】", "或者闪烁点进入驾驶室"
|
|
|
+ );
|
|
|
+
|
|
|
+ WindowEvent.find().WindowTxtViewOpenEvent(
|
|
|
+ "确认无异常后,拉开车门,侧身坐入驾驶室。"
|
|
|
+ );
|
|
|
+
|
|
|
+ WindowEvent.find().WindowVideoRemoveColorOpen(
|
|
|
+ QingXiCheAndQvComRes.find().resJson["QingXiChe_13"],
|
|
|
+ "top:auto;left:auto;bottom:5%;right:10%;",
|
|
|
+ null,
|
|
|
+ null
|
|
|
+ );
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
// 初始化重置一些物体的材质
|
|
|
thisClass.carOpen(false);
|
|
@@ -937,25 +959,30 @@ export class QingXiCheAndQvCarEvent {
|
|
|
objIframeEdit.roleShow(false);
|
|
|
|
|
|
QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
|
|
|
- QingXiCheAdnQvCarEventStep.find().meshVisibility("确认手刹已拉起档位是P档然后发动车辆", true);
|
|
|
|
|
|
- // objIframeEdit.cameraVisualAngleGetListNameGpsTo("手刹和空挡");
|
|
|
-
|
|
|
- QingXiCheAndQvCarEvent.find().threeWorldTxt(
|
|
|
- 7.780975679446619, 1.8490524634732883, -14.356639637688614, 3, 173, 68 * 2,
|
|
|
- "点击【E/P开关】", "或者闪烁点切换至P档"
|
|
|
- );
|
|
|
+ if (QingXiCheAndQvCarEvent.find().eventMode == 0) {
|
|
|
|
|
|
- WindowEvent.find().WindowTxtViewOpenEvent(
|
|
|
- "观察驾驶室挡位状态,确认手刹处于拉起状态,挡位状态切换至P挡位置。"
|
|
|
- );
|
|
|
-
|
|
|
- WindowEvent.find().WindowVideoRemoveColorOpen(
|
|
|
- QingXiCheAndQvComRes.find().resJson["QingXiChe_04"],
|
|
|
- "top:auto;left:auto;bottom:5%;right:10%;",
|
|
|
- null,
|
|
|
- null
|
|
|
- );
|
|
|
+ QingXiCheAdnQvCarEventStep.find().meshVisibility("确认手刹已拉起档位是P档然后发动车辆", true);
|
|
|
+
|
|
|
+ // objIframeEdit.cameraVisualAngleGetListNameGpsTo("手刹和空挡");
|
|
|
+
|
|
|
+ QingXiCheAndQvCarEvent.find().threeWorldTxt(
|
|
|
+ 7.780975679446619, 1.8490524634732883, -14.356639637688614, 3, 173, 68 * 2,
|
|
|
+ "点击【E/P开关】", "或者闪烁点切换至P档"
|
|
|
+ );
|
|
|
+
|
|
|
+ WindowEvent.find().WindowTxtViewOpenEvent(
|
|
|
+ "观察驾驶室挡位状态,确认手刹处于拉起状态,挡位状态切换至P挡位置。"
|
|
|
+ );
|
|
|
+
|
|
|
+ WindowEvent.find().WindowVideoRemoveColorOpen(
|
|
|
+ QingXiCheAndQvComRes.find().resJson["QingXiChe_04"],
|
|
|
+ "top:auto;left:auto;bottom:5%;right:10%;",
|
|
|
+ null,
|
|
|
+ null
|
|
|
+ );
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
thisClass.tipsBtnsUpOpenEventCallbackMain(false);
|
|
|
thisClass.tipsBtnsDownOpenEventCallbackMain(false);
|
|
@@ -980,25 +1007,30 @@ export class QingXiCheAndQvCarEvent {
|
|
|
objIframeEdit.roleShow(false);
|
|
|
|
|
|
QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
|
|
|
- QingXiCheAdnQvCarEventStep.find().meshVisibility("发动车辆", true);
|
|
|
|
|
|
- // objIframeEdit.cameraVisualAngleGetListNameGpsTo("手刹和空挡");
|
|
|
-
|
|
|
- QingXiCheAndQvCarEvent.find().threeWorldTxt(
|
|
|
- 7.486950425441158, 1.9525766996220573, -14.371424784753671, 3, 173, 68 * 2,
|
|
|
- "请点击闪烁点", "或者【钥匙】触发"
|
|
|
- );
|
|
|
+ if (QingXiCheAndQvCarEvent.find().eventMode == 0) {
|
|
|
|
|
|
- WindowEvent.find().WindowTxtViewOpenEvent(
|
|
|
- "拧动启动钥匙,发动车辆。"
|
|
|
- );
|
|
|
-
|
|
|
- WindowEvent.find().WindowVideoRemoveColorOpen(
|
|
|
- QingXiCheAndQvComRes.find().resJson["QingXiChe_04"],
|
|
|
- "top:auto;left:auto;bottom:5%;right:10%;",
|
|
|
- null,
|
|
|
- null
|
|
|
- );
|
|
|
+ QingXiCheAdnQvCarEventStep.find().meshVisibility("发动车辆", true);
|
|
|
+
|
|
|
+ // objIframeEdit.cameraVisualAngleGetListNameGpsTo("手刹和空挡");
|
|
|
+
|
|
|
+ QingXiCheAndQvCarEvent.find().threeWorldTxt(
|
|
|
+ 7.486950425441158, 1.9525766996220573, -14.371424784753671, 3, 173, 68 * 2,
|
|
|
+ "请点击闪烁点", "或者【钥匙】触发"
|
|
|
+ );
|
|
|
+
|
|
|
+ WindowEvent.find().WindowTxtViewOpenEvent(
|
|
|
+ "拧动启动钥匙,发动车辆。"
|
|
|
+ );
|
|
|
+
|
|
|
+ WindowEvent.find().WindowVideoRemoveColorOpen(
|
|
|
+ QingXiCheAndQvComRes.find().resJson["QingXiChe_04"],
|
|
|
+ "top:auto;left:auto;bottom:5%;right:10%;",
|
|
|
+ null,
|
|
|
+ null
|
|
|
+ );
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
thisClass.tipsBtnsUpOpenEventCallbackMain(false);
|
|
|
thisClass.tipsBtnsDownOpenEventCallbackMain(false);
|
|
@@ -1366,8 +1398,7 @@ export class QingXiCheAndQvCarEvent {
|
|
|
objIframeEdit.roleShow(true);
|
|
|
|
|
|
QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
|
|
|
- QingXiCheAdnQvCarEventStep.find().meshVisibility("在施工范围放置警示标识", true);
|
|
|
-
|
|
|
+
|
|
|
// objIframeEdit.cameraVisualAngleGetListNameGpsTo("在施工范围放置警示标识1");
|
|
|
|
|
|
QingXiCheAndQvCarEvent.find().threeWorldTxt(
|
|
@@ -1375,16 +1406,21 @@ export class QingXiCheAndQvCarEvent {
|
|
|
"点击安全桩", "或者闪烁点触发"
|
|
|
);
|
|
|
|
|
|
- WindowEvent.find().WindowTxtViewOpenEvent(
|
|
|
- "携带反光锥、警示牌等安全设备,沿施工场地边缘,间隔适当距离摆放。确保警示标识醒目稳固,全方位提醒过往人员注意安全。" + "\n"
|
|
|
- );
|
|
|
+ if (QingXiCheAndQvCarEvent.find().eventMode == 0) {
|
|
|
|
|
|
- WindowEvent.find().WindowVideoRemoveColorOpen(
|
|
|
- QingXiCheAndQvComRes.find().resJson["QingXiChe_16"],
|
|
|
- "top:auto;left:auto;bottom:5%;right:10%;",
|
|
|
- null,
|
|
|
- null
|
|
|
- );
|
|
|
+ QingXiCheAdnQvCarEventStep.find().meshVisibility("在施工范围放置警示标识", true);
|
|
|
+ WindowEvent.find().WindowTxtViewOpenEvent(
|
|
|
+ "携带反光锥、警示牌等安全设备,沿施工场地边缘,间隔适当距离摆放。确保警示标识醒目稳固,全方位提醒过往人员注意安全。" + "\n"
|
|
|
+ );
|
|
|
+
|
|
|
+ WindowEvent.find().WindowVideoRemoveColorOpen(
|
|
|
+ QingXiCheAndQvComRes.find().resJson["QingXiChe_16"],
|
|
|
+ "top:auto;left:auto;bottom:5%;right:10%;",
|
|
|
+ null,
|
|
|
+ null
|
|
|
+ );
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
thisClass.tipsBtnsUpOpenEventCallbackMain(false);
|
|
|
thisClass.tipsBtnsDownOpenEventCallbackMain(false);
|
|
@@ -2371,9 +2407,7 @@ export class QingXiCheAndQvCarEvent {
|
|
|
8.73138515399253, 1.4656407706190033, -16.709522549524163, 3, 173, 68 * 2,
|
|
|
"请点击闪烁点", "或[三通阀]触发"
|
|
|
);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
// 切换到人物的视角
|
|
|
objThreeWorldEventMain.commonBirthplaceUpdate();
|
|
|
objIframeEdit.modelPeopleLook(1);
|