[add] HoldButton 防止跟Button事件衝突

This commit is contained in:
2022-05-02 22:27:29 +08:00
parent d012d3a6a1
commit 4a033f606c
6 changed files with 93 additions and 20 deletions

View File

@@ -78,10 +78,10 @@
"_active": true,
"_components": [
{
"__id__": 17
"__id__": 19
},
{
"__id__": 18
"__id__": 20
}
],
"_prefab": null,
@@ -251,10 +251,13 @@
"__id__": 13
},
{
"__id__": 14
"__id__": 15
},
{
"__id__": 15
"__id__": 16
},
{
"__id__": 18
}
],
"_prefab": null,
@@ -665,7 +668,11 @@
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 0.9,
"clickEvents": [],
"clickEvents": [
{
"__id__": 14
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 1,
@@ -725,6 +732,16 @@
},
"_id": "b1JdTzpetM5Y2+ajB7CgHk"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 5
},
"component": "",
"_componentId": "cf85bcS8qVLQ5grFSK4g1D6",
"handler": "Log",
"customEventData": "5555"
},
{
"__type__": "cc.Sprite",
"_name": "",
@@ -778,7 +795,7 @@
},
"OnInvoke": [
{
"__id__": 16
"__id__": 17
}
],
"_id": "42FPUDXnROx55pRRLBeL22"
@@ -786,12 +803,22 @@
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 6
"__id__": 5
},
"component": "",
"_componentId": "cc.Label",
"handler": "destroy",
"customEventData": "false"
"_componentId": "cf85bcS8qVLQ5grFSK4g1D6",
"handler": "Log",
"customEventData": "6666"
},
{
"__type__": "cf85bcS8qVLQ5grFSK4g1D6",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_id": "59e/1WbXJCBrpkHVzwqEeX"
},
{
"__type__": "cc.Canvas",