fix
This commit is contained in:
@@ -86,8 +86,7 @@ export class PastGirlListPanel extends li_BaseView {
|
||||
// 获取已解锁女孩列表
|
||||
const ids = await this.getUnlockedGirls();
|
||||
|
||||
if (true) {
|
||||
//!ids || ids.length === 0) {
|
||||
if (!ids || ids.length === 0) {
|
||||
this._nodeTab.cleanBg.active = true;
|
||||
} else {
|
||||
this._nodeTab.cleanBg.active = false;
|
||||
|
||||
@@ -9,6 +9,7 @@ import {
|
||||
view,
|
||||
Size,
|
||||
Vec3,
|
||||
EventTouch,
|
||||
} from "cc";
|
||||
import li_BaseView from "db://assets/Scripts/Main/Common/li_BaseView";
|
||||
import ResManager from "db://assets/Scripts/Main/Manager/ResManager";
|
||||
@@ -65,6 +66,12 @@ export class ShowPanel extends li_BaseView {
|
||||
this
|
||||
);
|
||||
}
|
||||
|
||||
// 阻止触摸事件传递,防止拖动画面(特别是Web平台视频超出屏幕时)
|
||||
this.node.on(Node.EventType.TOUCH_START, this.onTouchBlock, this);
|
||||
this.node.on(Node.EventType.TOUCH_MOVE, this.onTouchBlock, this);
|
||||
this.node.on(Node.EventType.TOUCH_END, this.onTouchBlock, this);
|
||||
this.node.on(Node.EventType.TOUCH_CANCEL, this.onTouchBlock, this);
|
||||
}
|
||||
|
||||
onDestroy() {
|
||||
@@ -76,6 +83,22 @@ export class ShowPanel extends li_BaseView {
|
||||
this
|
||||
);
|
||||
}
|
||||
|
||||
// 清理触摸事件监听
|
||||
this.node.off(Node.EventType.TOUCH_START, this.onTouchBlock, this);
|
||||
this.node.off(Node.EventType.TOUCH_MOVE, this.onTouchBlock, this);
|
||||
this.node.off(Node.EventType.TOUCH_END, this.onTouchBlock, this);
|
||||
this.node.off(Node.EventType.TOUCH_CANCEL, this.onTouchBlock, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* 阻止触摸事件传递,防止拖动画面
|
||||
*/
|
||||
private onTouchBlock(event: EventTouch) {
|
||||
// 阻止事件冒泡
|
||||
event.propagationStopped = true;
|
||||
// 阻止浏览器默认行为(如拖动、滚动)
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
protected onClose() {
|
||||
|
||||
@@ -78,23 +78,7 @@ export class DetailImageItem extends Component {
|
||||
base: this,
|
||||
type: this.type,
|
||||
});
|
||||
|
||||
// ViewManager.I.openBundlesView("PopupGirlDetailPanel", {
|
||||
// category: this.category,
|
||||
// resId: this.resId,
|
||||
// girlId: this.girlId,
|
||||
// base: this,
|
||||
// type: this.type,
|
||||
// });
|
||||
}
|
||||
// if (!this.isImage) {
|
||||
// //判断是否已经解锁此资源
|
||||
// } else {
|
||||
// if (this.url) {
|
||||
// ViewManager.I.openBundlesView("ShowPanel", data);
|
||||
// this.base.setVideEnable(false);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -251,6 +235,13 @@ export class DetailImageItem extends Component {
|
||||
ResManager.I.changeRemoteSpriteFrame(this.img, newPath, () => {
|
||||
this.scaleToFillItem();
|
||||
});
|
||||
if (this.isVisible) {
|
||||
this.video.enabled = false;
|
||||
this.videoReady.enabled = true;
|
||||
} else {
|
||||
this.video.enabled = true;
|
||||
this.videoReady.enabled = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"y": 70,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
@@ -112,7 +112,7 @@
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 71.40300000000002,
|
||||
"y": 1.40300000000002,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
@@ -639,7 +639,7 @@
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 81.17100000000005,
|
||||
"y": 10.248000000000047,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
@@ -759,7 +759,7 @@
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 659.375,
|
||||
"y": 660.298,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
@@ -6377,7 +6377,7 @@
|
||||
"_left": 0,
|
||||
"_right": 0,
|
||||
"_top": 0,
|
||||
"_bottom": -980.7719999999999,
|
||||
"_bottom": 24.695999999999913,
|
||||
"_horizontalCenter": 0,
|
||||
"_verticalCenter": 0,
|
||||
"_isAbsLeft": true,
|
||||
@@ -6387,7 +6387,7 @@
|
||||
"_isAbsHorizontalCenter": true,
|
||||
"_isAbsVerticalCenter": true,
|
||||
"_originalWidth": 220,
|
||||
"_originalHeight": 769,
|
||||
"_originalHeight": 1295.9,
|
||||
"_alignMode": 2,
|
||||
"_lockFlags": 1,
|
||||
"_id": ""
|
||||
@@ -6462,7 +6462,7 @@
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 750,
|
||||
"height": 1318.75
|
||||
"height": 1320.596
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
@@ -6607,7 +6607,7 @@
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 750,
|
||||
"height": 1318.75
|
||||
"height": 1320.596
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
@@ -6713,7 +6713,7 @@
|
||||
"_left": 0,
|
||||
"_right": 0,
|
||||
"_top": -20.49600000000018,
|
||||
"_bottom": 141.846,
|
||||
"_bottom": 0,
|
||||
"_horizontalCenter": 0,
|
||||
"_verticalCenter": 0,
|
||||
"_isAbsLeft": true,
|
||||
@@ -7996,7 +7996,7 @@
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 750,
|
||||
"height": 1440.1
|
||||
"height": 1300.1
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
@@ -8133,7 +8133,7 @@
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -333.571,
|
||||
"y": 728.5709999999999,
|
||||
"y": 658.5709999999999,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
@@ -8368,7 +8368,7 @@
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 750,
|
||||
"height": 1600
|
||||
"height": 1460
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
@@ -8398,7 +8398,7 @@
|
||||
"_left": 0,
|
||||
"_right": 0,
|
||||
"_top": 0,
|
||||
"_bottom": 0,
|
||||
"_bottom": 140,
|
||||
"_horizontalCenter": 0,
|
||||
"_verticalCenter": 0,
|
||||
"_isAbsLeft": true,
|
||||
@@ -8410,7 +8410,7 @@
|
||||
"_originalWidth": 100,
|
||||
"_originalHeight": 100,
|
||||
"_alignMode": 2,
|
||||
"_lockFlags": 0,
|
||||
"_lockFlags": 5,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
@@ -8501,8 +8501,6 @@
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "24mSBg+Z9OS5KNS5Yscqr0",
|
||||
"instance": null,
|
||||
"targetOverrides": null
|
||||
"fileId": "24mSBg+Z9OS5KNS5Yscqr0"
|
||||
}
|
||||
]
|
||||
@@ -3798,7 +3798,7 @@
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -1.3539999999999992,
|
||||
"x": 39.04400000000001,
|
||||
"y": 6.597000000000207,
|
||||
"z": 0
|
||||
},
|
||||
@@ -3986,7 +3986,7 @@
|
||||
"__prefab": {
|
||||
"__id__": 166
|
||||
},
|
||||
"languageKey": "themepanel.more",
|
||||
"languageKey": "pastgirllistpanel.title",
|
||||
"defaultText": "",
|
||||
"autoUpdate": true,
|
||||
"_id": ""
|
||||
@@ -4291,7 +4291,7 @@
|
||||
"__prefab": {
|
||||
"__id__": 181
|
||||
},
|
||||
"languageKey": "themepanel.more",
|
||||
"languageKey": "pastgirllistpanel.title",
|
||||
"defaultText": "",
|
||||
"autoUpdate": true,
|
||||
"_id": ""
|
||||
@@ -4712,6 +4712,8 @@
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "a7b/5ywUtCk5yRlgjJ+5Is",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
},
|
||||
{
|
||||
|
||||
@@ -41,10 +41,13 @@
|
||||
},
|
||||
{
|
||||
"__id__": 44
|
||||
},
|
||||
{
|
||||
"__id__": 46
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 46
|
||||
"__id__": 48
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
@@ -1025,6 +1028,24 @@
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "40lQ0ZnINAdq8QH3yyaj4k"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.BlockInputEvents",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 47
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "5cxZdiKi9C6JxdUbLTL2TM"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
|
||||
@@ -1899,7 +1899,7 @@
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -266.118,
|
||||
"x": -237.437,
|
||||
"y": -85.97600000000011,
|
||||
"z": 0
|
||||
},
|
||||
@@ -2236,7 +2236,7 @@
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 158.681979,
|
||||
"width": 185.781979,
|
||||
"height": 50.4
|
||||
},
|
||||
"_anchorPoint": {
|
||||
@@ -2348,8 +2348,6 @@
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "1fB4ecWkhGQ4x6XhJQdNjH",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
},
|
||||
{
|
||||
@@ -2541,7 +2539,7 @@
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 158.681979,
|
||||
"width": 185.781979,
|
||||
"height": 50.4
|
||||
},
|
||||
"_anchorPoint": {
|
||||
@@ -2653,8 +2651,6 @@
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "e8hjJGK2JGVLqu8oxh8EVf",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
},
|
||||
{
|
||||
@@ -2725,7 +2721,7 @@
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -96.91199999999998,
|
||||
"x": -26.052999999999997,
|
||||
"y": -85.97600000000011,
|
||||
"z": 0
|
||||
},
|
||||
@@ -3062,7 +3058,7 @@
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 158.681979,
|
||||
"width": 185.781979,
|
||||
"height": 50.4
|
||||
},
|
||||
"_anchorPoint": {
|
||||
@@ -3367,7 +3363,7 @@
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 158.681979,
|
||||
"width": 185.781979,
|
||||
"height": 50.4
|
||||
},
|
||||
"_anchorPoint": {
|
||||
|
||||
Binary file not shown.
+1
-1
Submodule xchat_cfg updated: 81182e0bb4...cee552a128
Reference in New Issue
Block a user