Commit ea8e1810 authored by 李维's avatar 李维

去掉返回主页按钮

parent 0ceed004
......@@ -96,28 +96,25 @@
"__id__": 118
},
{
"__id__": 123
},
{
"__id__": 134
"__id__": 129
},
{
"__id__": 137
"__id__": 132
},
{
"__id__": 139
"__id__": 134
}
],
"_active": true,
"_components": [
{
"__id__": 141
"__id__": 136
},
{
"__id__": 142
"__id__": 137
},
{
"__id__": 143
"__id__": 138
}
],
"_prefab": null,
......@@ -5394,217 +5391,6 @@
"_N$verticalScrollBar": null,
"_id": "b1jDE78VRJBrNFzcwfIS7E"
},
{
"__type__": "cc.Node",
"_name": "btn_return",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 119
},
{
"__id__": 120
},
{
"__id__": 122
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 128,
"height": 130
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-846,
425,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "29Y0/rXCtNBLzQkNdgy+j4"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 118
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "b657058c-bcb3-456e-894f-6c8fa554dc16"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "77vY7WJ3dOE6TrMv+B3AMf"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 118
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 121
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 118
},
"_id": "3fGEyP6+lCsbQfSxz4x/Lb"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 2
},
"component": "",
"_componentId": "55549iI3O9AioIDjTBmzlAF",
"handler": "exitGame",
"customEventData": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 118
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 50,
"_right": 0,
"_top": 50,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "07o2anWnZAgo3xUHC8xrw2"
},
{
"__type__": "cc.Node",
"_name": "pageButton",
......@@ -5614,10 +5400,10 @@
},
"_children": [
{
"__id__": 124
"__id__": 119
},
{
"__id__": 129
"__id__": 124
}
],
"_active": true,
......@@ -5675,19 +5461,19 @@
"_name": "btn_last",
"_objFlags": 0,
"_parent": {
"__id__": 123
"__id__": 118
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 125
"__id__": 120
},
{
"__id__": 126
"__id__": 121
},
{
"__id__": 128
"__id__": 123
}
],
"_prefab": null,
......@@ -5743,7 +5529,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 124
"__id__": 119
},
"_enabled": true,
"_materials": [
......@@ -5775,7 +5561,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 124
"__id__": 119
},
"_enabled": true,
"_normalMaterial": null,
......@@ -5784,7 +5570,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 127
"__id__": 122
}
],
"_N$interactable": true,
......@@ -5840,7 +5626,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 124
"__id__": 119
},
"_id": "63sqlR0bVEJrqaAhyT+FzF"
},
......@@ -5859,7 +5645,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 124
"__id__": 119
},
"_enabled": true,
"alignMode": 1,
......@@ -5888,19 +5674,19 @@
"_name": "btn_next",
"_objFlags": 0,
"_parent": {
"__id__": 123
"__id__": 118
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 130
"__id__": 125
},
{
"__id__": 131
"__id__": 126
},
{
"__id__": 133
"__id__": 128
}
],
"_prefab": null,
......@@ -5956,7 +5742,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 129
"__id__": 124
},
"_enabled": true,
"_materials": [
......@@ -5988,7 +5774,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 129
"__id__": 124
},
"_enabled": true,
"_normalMaterial": null,
......@@ -5997,7 +5783,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 132
"__id__": 127
}
],
"_N$interactable": true,
......@@ -6053,7 +5839,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 129
"__id__": 124
},
"_id": "3aZJp/FzlONJO+/okrPRip"
},
......@@ -6072,7 +5858,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 129
"__id__": 124
},
"_enabled": true,
"alignMode": 1,
......@@ -6107,10 +5893,10 @@
"_active": true,
"_components": [
{
"__id__": 135
"__id__": 130
},
{
"__id__": 136
"__id__": 131
}
],
"_prefab": null,
......@@ -6166,7 +5952,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 134
"__id__": 129
},
"_enabled": true,
"_materials": [
......@@ -6199,7 +5985,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 134
"__id__": 129
},
"_enabled": true,
"alignMode": 1,
......@@ -6232,7 +6018,7 @@
"_active": false,
"_components": [
{
"__id__": 138
"__id__": 133
}
],
"_prefab": null,
......@@ -6288,7 +6074,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 137
"__id__": 132
},
"_enabled": true,
"_materials": [
......@@ -6326,7 +6112,7 @@
"_active": false,
"_components": [
{
"__id__": 140
"__id__": 135
}
],
"_prefab": null,
......@@ -6382,7 +6168,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 139
"__id__": 134
},
"_enabled": true,
"_materials": [
......@@ -6499,7 +6285,7 @@
"__id__": 38
},
"loadingSprite": {
"__id__": 139
"__id__": 134
},
"noPlayCover": {
"__id__": 32
......
......@@ -419,7 +419,7 @@ export default class VideoPlayerComponent extends cc.Component {
}
start() {
this.node.zIndex = 10000;
// this.node.zIndex = 10000;
let getData = this.getData.bind(this);
if (window && window["courseware"]) {
getData = window["courseware"].getData;
......@@ -578,7 +578,6 @@ export default class VideoPlayerComponent extends cc.Component {
this.videoPlayer.stayOnBottom = true;
cc.find(`Canvas/Controls/fullscreen`).active = !this.isVideoFull;
cc.find(`Canvas/Controls/exitfull`).active = this.isVideoFull;
cc.find(`Canvas/btn_return`).active = !this.isVideoFull;
cc.find(`Canvas/title`).active = !this.isVideoFull;
cc.find('Canvas/pageButton').active = false;
const videoContainer = cc.find('Canvas/video_node');
......@@ -629,7 +628,6 @@ export default class VideoPlayerComponent extends cc.Component {
this.videoPlayer.stayOnBottom = false;
cc.find(`Canvas/Controls/fullscreen`).active = !this.isVideoFull;
cc.find(`Canvas/Controls/exitfull`).active = this.isVideoFull;
cc.find(`Canvas/btn_return`).active = !this.isVideoFull;
cc.find(`Canvas/title`).active = !this.isVideoFull;
cc.find('Canvas/pageButton').active = true;
......@@ -669,16 +667,6 @@ export default class VideoPlayerComponent extends cc.Component {
}
}
exitGame() {
this.data.templateName="JJ_Video_01";
const middleLayer = cc.find('middleLayer')?.getComponent('middleLayer');
if (middleLayer) {
middleLayer.exitGame(this.data, true);
} else {
console.log("==触发返回事件==");
}
}
update(dt: number) {
if (!this._isReadyToPlay) {
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment