feat(界面): 添加排行榜界面的打开与关闭功能
- 在 MissionHomeComp 中添加 openRanks 方法以打开排行榜界面 - 在 RanksComp 中添加 closeRanks 方法以关闭排行榜界面 - 调整 ranks.prefab 布局并添加关闭按钮的事件绑定 - 移除 MissionHomeComp 中未使用的页面节点引用和废弃代码
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -37,22 +37,22 @@
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 154
|
||||
"__id__": 157
|
||||
},
|
||||
{
|
||||
"__id__": 156
|
||||
"__id__": 159
|
||||
},
|
||||
{
|
||||
"__id__": 158
|
||||
"__id__": 161
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 160
|
||||
"__id__": 163
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 640,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
@@ -3247,17 +3247,17 @@
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 147
|
||||
"__id__": 150
|
||||
},
|
||||
{
|
||||
"__id__": 149
|
||||
"__id__": 152
|
||||
},
|
||||
{
|
||||
"__id__": 151
|
||||
"__id__": 154
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 153
|
||||
"__id__": 156
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
@@ -3304,10 +3304,13 @@
|
||||
},
|
||||
{
|
||||
"__id__": 144
|
||||
},
|
||||
{
|
||||
"__id__": 146
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 146
|
||||
"__id__": 149
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
@@ -3411,6 +3414,76 @@
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "7d68k5bgtC2Ykasy8w3ODg"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Button",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 141
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 147
|
||||
},
|
||||
"clickEvents": [
|
||||
{
|
||||
"__id__": 148
|
||||
}
|
||||
],
|
||||
"_interactable": true,
|
||||
"_transition": 3,
|
||||
"_normalColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_hoverColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 211,
|
||||
"g": 211,
|
||||
"b": 211,
|
||||
"a": 255
|
||||
},
|
||||
"_pressedColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_disabledColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 124,
|
||||
"g": 124,
|
||||
"b": 124,
|
||||
"a": 255
|
||||
},
|
||||
"_normalSprite": null,
|
||||
"_hoverSprite": null,
|
||||
"_pressedSprite": null,
|
||||
"_disabledSprite": null,
|
||||
"_duration": 0.1,
|
||||
"_zoomScale": 1.2,
|
||||
"_target": null,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "afCUCqD2FJ2ZfriNs8+Exg"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.ClickEvent",
|
||||
"target": {
|
||||
"__id__": 1
|
||||
},
|
||||
"component": "",
|
||||
"_componentId": "9eafef++95DEqB78hMPCmU5",
|
||||
"handler": "closeRanks",
|
||||
"customEventData": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
@@ -3434,7 +3507,7 @@
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 148
|
||||
"__id__": 151
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
@@ -3462,7 +3535,7 @@
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 150
|
||||
"__id__": 153
|
||||
},
|
||||
"_customMaterial": null,
|
||||
"_srcBlendFactor": 2,
|
||||
@@ -3507,7 +3580,7 @@
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 152
|
||||
"__id__": 155
|
||||
},
|
||||
"_alignFlags": 44,
|
||||
"_target": null,
|
||||
@@ -3556,7 +3629,7 @@
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 155
|
||||
"__id__": 158
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
@@ -3584,7 +3657,7 @@
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 157
|
||||
"__id__": 160
|
||||
},
|
||||
"_alignFlags": 45,
|
||||
"_target": null,
|
||||
@@ -3620,7 +3693,7 @@
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 159
|
||||
"__id__": 162
|
||||
},
|
||||
"top1_node": {
|
||||
"__id__": 41
|
||||
@@ -3657,6 +3730,7 @@
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "84hrfbDo1AOq3VROGZvWWt",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": [
|
||||
{
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user