From aca8e46eaa78eb882f7de69e27de2eabf9a8a432 Mon Sep 17 00:00:00 2001 From: panw Date: Tue, 28 Apr 2026 16:36:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=81=A2=E5=A4=8D=E5=A4=9A=E8=AF=AD?= =?UTF-8?q?=E8=A8=80=E5=8C=85=E5=8A=A0=E8=BD=BD=E4=BB=A5=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E6=B8=B8=E6=88=8F=E6=9C=AC=E5=9C=B0=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 之前多语言包加载被注释掉,导致游戏无法正确加载本地化资源。现在取消注释以恢复多语言功能,确保玩家能看到正确语言的游戏内容。 --- assets/resources/gui/role_controller.prefab | 585 ++++++++++---------- assets/resources/language/json/zh.json | 4 +- assets/script/game/initialize/Initialize.ts | 2 +- 3 files changed, 308 insertions(+), 283 deletions(-) diff --git a/assets/resources/gui/role_controller.prefab b/assets/resources/gui/role_controller.prefab index 8cc46134..994543ab 100644 --- a/assets/resources/gui/role_controller.prefab +++ b/assets/resources/gui/role_controller.prefab @@ -25,26 +25,26 @@ "__id__": 916 }, { - "__id__": 1180 + "__id__": 1182 }, { - "__id__": 1189 + "__id__": 1191 } ], "_active": true, "_components": [ - { - "__id__": 1235 - }, { "__id__": 1237 }, { "__id__": 1239 + }, + { + "__id__": 1241 } ], "_prefab": { - "__id__": 1241 + "__id__": 1243 }, "_lpos": { "__type__": "cc.Vec3", @@ -19115,23 +19115,23 @@ "__id__": 925 }, { - "__id__": 1156 + "__id__": 1158 } ], "_active": true, "_components": [ - { - "__id__": 1173 - }, { "__id__": 1175 }, { "__id__": 1177 + }, + { + "__id__": 1179 } ], "_prefab": { - "__id__": 1179 + "__id__": 1181 }, "_lpos": { "__type__": "cc.Vec3", @@ -19359,26 +19359,26 @@ "__id__": 1008 }, { - "__id__": 1055 + "__id__": 1057 }, { - "__id__": 1102 + "__id__": 1104 } ], "_active": true, "_components": [ - { - "__id__": 1149 - }, { "__id__": 1151 }, { "__id__": 1153 + }, + { + "__id__": 1155 } ], "_prefab": { - "__id__": 1155 + "__id__": 1157 }, "_lpos": { "__type__": "cc.Vec3", @@ -21351,14 +21351,14 @@ "_active": true, "_components": [ { - "__id__": 1049 + "__id__": 1051 }, { - "__id__": 1051 + "__id__": 1053 } ], "_prefab": { - "__id__": 1054 + "__id__": 1056 }, "_lpos": { "__type__": "cc.Vec3", @@ -22057,14 +22057,14 @@ "_active": true, "_components": [ { - "__id__": 1044 + "__id__": 1046 }, { - "__id__": 1046 + "__id__": 1048 } ], "_prefab": { - "__id__": 1048 + "__id__": 1050 }, "_lpos": { "__type__": "cc.Vec3", @@ -22111,10 +22111,13 @@ }, { "__id__": 1041 + }, + { + "__id__": 1043 } ], "_prefab": { - "__id__": 1043 + "__id__": 1045 }, "_lpos": { "__type__": "cc.Vec3", @@ -22159,7 +22162,7 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 64, + "width": 85.6943359375, "height": 54.4 }, "_anchorPoint": { @@ -22195,7 +22198,7 @@ "b": 255, "a": 255 }, - "_string": "英雄", + "_string": "heros", "_horizontalAlign": 1, "_verticalAlign": 1, "_actualFontSize": 30, @@ -22241,6 +22244,26 @@ "__type__": "cc.CompPrefabInfo", "fileId": "251UfC66xAqoFDCit2Belf" }, + { + "__type__": "110c8vEd5NEPL/N9meGQnaX", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1038 + }, + "_enabled": true, + "__prefab": { + "__id__": 1044 + }, + "_params": [], + "_dataID": "heros", + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "3fUYSl+YpK5p3YCuKBlmwU" + }, { "__type__": "cc.PrefabInfo", "root": { @@ -22264,7 +22287,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 1045 + "__id__": 1047 }, "_contentSize": { "__type__": "cc.Size", @@ -22292,7 +22315,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 1047 + "__id__": 1049 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -22353,7 +22376,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 1050 + "__id__": 1052 }, "_contentSize": { "__type__": "cc.Size", @@ -22381,11 +22404,11 @@ }, "_enabled": true, "__prefab": { - "__id__": 1052 + "__id__": 1054 }, "clickEvents": [ { - "__id__": 1053 + "__id__": 1055 } ], "_interactable": true, @@ -22464,26 +22487,26 @@ }, "_children": [ { - "__id__": 1056 + "__id__": 1058 }, { - "__id__": 1064 + "__id__": 1066 }, { - "__id__": 1084 + "__id__": 1086 } ], "_active": true, "_components": [ { - "__id__": 1096 + "__id__": 1098 }, { - "__id__": 1098 + "__id__": 1100 } ], "_prefab": { - "__id__": 1101 + "__id__": 1103 }, "_lpos": { "__type__": "cc.Vec3", @@ -22520,23 +22543,23 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1055 + "__id__": 1057 }, "_children": [], "_active": false, "_components": [ - { - "__id__": 1057 - }, { "__id__": 1059 }, { "__id__": 1061 + }, + { + "__id__": 1063 } ], "_prefab": { - "__id__": 1063 + "__id__": 1065 }, "_lpos": { "__type__": "cc.Vec3", @@ -22573,11 +22596,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1056 + "__id__": 1058 }, "_enabled": true, "__prefab": { - "__id__": 1058 + "__id__": 1060 }, "_contentSize": { "__type__": "cc.Size", @@ -22601,11 +22624,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1056 + "__id__": 1058 }, "_enabled": true, "__prefab": { - "__id__": 1060 + "__id__": 1062 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -22646,11 +22669,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1056 + "__id__": 1058 }, "_enabled": true, "__prefab": { - "__id__": 1062 + "__id__": 1064 }, "_alignFlags": 45, "_target": null, @@ -22695,30 +22718,30 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1055 + "__id__": 1057 }, "_children": [ { - "__id__": 1065 + "__id__": 1067 }, { - "__id__": 1071 + "__id__": 1073 } ], "_active": false, "_components": [ - { - "__id__": 1077 - }, { "__id__": 1079 }, { "__id__": 1081 + }, + { + "__id__": 1083 } ], "_prefab": { - "__id__": 1083 + "__id__": 1085 }, "_lpos": { "__type__": "cc.Vec3", @@ -22755,20 +22778,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1064 + "__id__": 1066 }, "_children": [], "_active": true, "_components": [ { - "__id__": 1066 + "__id__": 1068 }, { - "__id__": 1068 + "__id__": 1070 } ], "_prefab": { - "__id__": 1070 + "__id__": 1072 }, "_lpos": { "__type__": "cc.Vec3", @@ -22805,11 +22828,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1065 + "__id__": 1067 }, "_enabled": true, "__prefab": { - "__id__": 1067 + "__id__": 1069 }, "_contentSize": { "__type__": "cc.Size", @@ -22833,11 +22856,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1065 + "__id__": 1067 }, "_enabled": true, "__prefab": { - "__id__": 1069 + "__id__": 1071 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -22891,20 +22914,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1064 + "__id__": 1066 }, "_children": [], "_active": true, "_components": [ { - "__id__": 1072 + "__id__": 1074 }, { - "__id__": 1074 + "__id__": 1076 } ], "_prefab": { - "__id__": 1076 + "__id__": 1078 }, "_lpos": { "__type__": "cc.Vec3", @@ -22941,11 +22964,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1071 + "__id__": 1073 }, "_enabled": true, "__prefab": { - "__id__": 1073 + "__id__": 1075 }, "_contentSize": { "__type__": "cc.Size", @@ -22969,11 +22992,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1071 + "__id__": 1073 }, "_enabled": true, "__prefab": { - "__id__": 1075 + "__id__": 1077 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -23050,11 +23073,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1064 + "__id__": 1066 }, "_enabled": true, "__prefab": { - "__id__": 1078 + "__id__": 1080 }, "_contentSize": { "__type__": "cc.Size", @@ -23078,11 +23101,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1064 + "__id__": 1066 }, "_enabled": true, "__prefab": { - "__id__": 1080 + "__id__": 1082 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -23123,11 +23146,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1064 + "__id__": 1066 }, "_enabled": true, "__prefab": { - "__id__": 1082 + "__id__": 1084 }, "_alignFlags": 45, "_target": null, @@ -23172,24 +23195,24 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1055 + "__id__": 1057 }, "_children": [ { - "__id__": 1085 + "__id__": 1087 } ], "_active": true, "_components": [ { - "__id__": 1091 + "__id__": 1093 }, { - "__id__": 1093 + "__id__": 1095 } ], "_prefab": { - "__id__": 1095 + "__id__": 1097 }, "_lpos": { "__type__": "cc.Vec3", @@ -23226,20 +23249,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1084 + "__id__": 1086 }, "_children": [], "_active": true, "_components": [ { - "__id__": 1086 + "__id__": 1088 }, { - "__id__": 1088 + "__id__": 1090 } ], "_prefab": { - "__id__": 1090 + "__id__": 1092 }, "_lpos": { "__type__": "cc.Vec3", @@ -23276,11 +23299,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1085 + "__id__": 1087 }, "_enabled": true, "__prefab": { - "__id__": 1087 + "__id__": 1089 }, "_contentSize": { "__type__": "cc.Size", @@ -23304,11 +23327,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1085 + "__id__": 1087 }, "_enabled": true, "__prefab": { - "__id__": 1089 + "__id__": 1091 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -23385,11 +23408,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1084 + "__id__": 1086 }, "_enabled": true, "__prefab": { - "__id__": 1092 + "__id__": 1094 }, "_contentSize": { "__type__": "cc.Size", @@ -23413,11 +23436,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1084 + "__id__": 1086 }, "_enabled": true, "__prefab": { - "__id__": 1094 + "__id__": 1096 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -23471,11 +23494,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1055 + "__id__": 1057 }, "_enabled": true, "__prefab": { - "__id__": 1097 + "__id__": 1099 }, "_contentSize": { "__type__": "cc.Size", @@ -23499,15 +23522,15 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1055 + "__id__": 1057 }, "_enabled": true, "__prefab": { - "__id__": 1099 + "__id__": 1101 }, "clickEvents": [ { - "__id__": 1100 + "__id__": 1102 } ], "_interactable": true, @@ -23586,26 +23609,26 @@ }, "_children": [ { - "__id__": 1103 + "__id__": 1105 }, { - "__id__": 1111 + "__id__": 1113 }, { - "__id__": 1131 + "__id__": 1133 } ], "_active": true, "_components": [ { - "__id__": 1143 + "__id__": 1145 }, { - "__id__": 1145 + "__id__": 1147 } ], "_prefab": { - "__id__": 1148 + "__id__": 1150 }, "_lpos": { "__type__": "cc.Vec3", @@ -23642,23 +23665,23 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1102 + "__id__": 1104 }, "_children": [], "_active": false, "_components": [ - { - "__id__": 1104 - }, { "__id__": 1106 }, { "__id__": 1108 + }, + { + "__id__": 1110 } ], "_prefab": { - "__id__": 1110 + "__id__": 1112 }, "_lpos": { "__type__": "cc.Vec3", @@ -23695,11 +23718,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1103 + "__id__": 1105 }, "_enabled": true, "__prefab": { - "__id__": 1105 + "__id__": 1107 }, "_contentSize": { "__type__": "cc.Size", @@ -23723,11 +23746,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1103 + "__id__": 1105 }, "_enabled": true, "__prefab": { - "__id__": 1107 + "__id__": 1109 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -23768,11 +23791,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1103 + "__id__": 1105 }, "_enabled": true, "__prefab": { - "__id__": 1109 + "__id__": 1111 }, "_alignFlags": 45, "_target": null, @@ -23817,30 +23840,30 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1102 + "__id__": 1104 }, "_children": [ { - "__id__": 1112 + "__id__": 1114 }, { - "__id__": 1118 + "__id__": 1120 } ], "_active": false, "_components": [ - { - "__id__": 1124 - }, { "__id__": 1126 }, { "__id__": 1128 + }, + { + "__id__": 1130 } ], "_prefab": { - "__id__": 1130 + "__id__": 1132 }, "_lpos": { "__type__": "cc.Vec3", @@ -23877,20 +23900,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1111 + "__id__": 1113 }, "_children": [], "_active": true, "_components": [ { - "__id__": 1113 + "__id__": 1115 }, { - "__id__": 1115 + "__id__": 1117 } ], "_prefab": { - "__id__": 1117 + "__id__": 1119 }, "_lpos": { "__type__": "cc.Vec3", @@ -23927,11 +23950,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1112 + "__id__": 1114 }, "_enabled": true, "__prefab": { - "__id__": 1114 + "__id__": 1116 }, "_contentSize": { "__type__": "cc.Size", @@ -23955,11 +23978,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1112 + "__id__": 1114 }, "_enabled": true, "__prefab": { - "__id__": 1116 + "__id__": 1118 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -24013,20 +24036,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1111 + "__id__": 1113 }, "_children": [], "_active": true, "_components": [ { - "__id__": 1119 + "__id__": 1121 }, { - "__id__": 1121 + "__id__": 1123 } ], "_prefab": { - "__id__": 1123 + "__id__": 1125 }, "_lpos": { "__type__": "cc.Vec3", @@ -24063,11 +24086,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1118 + "__id__": 1120 }, "_enabled": true, "__prefab": { - "__id__": 1120 + "__id__": 1122 }, "_contentSize": { "__type__": "cc.Size", @@ -24091,11 +24114,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1118 + "__id__": 1120 }, "_enabled": true, "__prefab": { - "__id__": 1122 + "__id__": 1124 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -24172,11 +24195,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1111 + "__id__": 1113 }, "_enabled": true, "__prefab": { - "__id__": 1125 + "__id__": 1127 }, "_contentSize": { "__type__": "cc.Size", @@ -24200,11 +24223,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1111 + "__id__": 1113 }, "_enabled": true, "__prefab": { - "__id__": 1127 + "__id__": 1129 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -24245,11 +24268,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1111 + "__id__": 1113 }, "_enabled": true, "__prefab": { - "__id__": 1129 + "__id__": 1131 }, "_alignFlags": 45, "_target": null, @@ -24294,24 +24317,24 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1102 + "__id__": 1104 }, "_children": [ { - "__id__": 1132 + "__id__": 1134 } ], "_active": true, "_components": [ { - "__id__": 1138 + "__id__": 1140 }, { - "__id__": 1140 + "__id__": 1142 } ], "_prefab": { - "__id__": 1142 + "__id__": 1144 }, "_lpos": { "__type__": "cc.Vec3", @@ -24348,20 +24371,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1131 + "__id__": 1133 }, "_children": [], "_active": true, "_components": [ { - "__id__": 1133 + "__id__": 1135 }, { - "__id__": 1135 + "__id__": 1137 } ], "_prefab": { - "__id__": 1137 + "__id__": 1139 }, "_lpos": { "__type__": "cc.Vec3", @@ -24398,11 +24421,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1132 + "__id__": 1134 }, "_enabled": true, "__prefab": { - "__id__": 1134 + "__id__": 1136 }, "_contentSize": { "__type__": "cc.Size", @@ -24426,11 +24449,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1132 + "__id__": 1134 }, "_enabled": true, "__prefab": { - "__id__": 1136 + "__id__": 1138 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -24507,11 +24530,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1131 + "__id__": 1133 }, "_enabled": true, "__prefab": { - "__id__": 1139 + "__id__": 1141 }, "_contentSize": { "__type__": "cc.Size", @@ -24535,11 +24558,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1131 + "__id__": 1133 }, "_enabled": true, "__prefab": { - "__id__": 1141 + "__id__": 1143 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -24596,11 +24619,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1102 + "__id__": 1104 }, "_enabled": true, "__prefab": { - "__id__": 1144 + "__id__": 1146 }, "_contentSize": { "__type__": "cc.Size", @@ -24624,15 +24647,15 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1102 + "__id__": 1104 }, "_enabled": true, "__prefab": { - "__id__": 1146 + "__id__": 1148 }, "clickEvents": [ { - "__id__": 1147 + "__id__": 1149 } ], "_interactable": true, @@ -24711,7 +24734,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 1150 + "__id__": 1152 }, "_contentSize": { "__type__": "cc.Size", @@ -24739,7 +24762,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 1152 + "__id__": 1154 }, "_alignFlags": 44, "_target": null, @@ -24775,7 +24798,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 1154 + "__id__": 1156 }, "_resizeMode": 1, "_layoutType": 1, @@ -24826,23 +24849,23 @@ }, "_children": [ { - "__id__": 1157 + "__id__": 1159 } ], "_active": true, "_components": [ - { - "__id__": 1165 - }, { "__id__": 1167 }, { - "__id__": 1170 + "__id__": 1169 + }, + { + "__id__": 1172 } ], "_prefab": { - "__id__": 1172 + "__id__": 1174 }, "_lpos": { "__type__": "cc.Vec3", @@ -24879,23 +24902,23 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1156 + "__id__": 1158 }, "_children": [], "_active": true, "_components": [ - { - "__id__": 1158 - }, { "__id__": 1160 }, { "__id__": 1162 + }, + { + "__id__": 1164 } ], "_prefab": { - "__id__": 1164 + "__id__": 1166 }, "_lpos": { "__type__": "cc.Vec3", @@ -24932,11 +24955,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1157 + "__id__": 1159 }, "_enabled": true, "__prefab": { - "__id__": 1159 + "__id__": 1161 }, "_contentSize": { "__type__": "cc.Size", @@ -24960,11 +24983,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1157 + "__id__": 1159 }, "_enabled": true, "__prefab": { - "__id__": 1161 + "__id__": 1163 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -25008,11 +25031,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1157 + "__id__": 1159 }, "_enabled": true, "__prefab": { - "__id__": 1163 + "__id__": 1165 }, "_alignFlags": 45, "_target": null, @@ -25057,11 +25080,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1156 + "__id__": 1158 }, "_enabled": true, "__prefab": { - "__id__": 1166 + "__id__": 1168 }, "_contentSize": { "__type__": "cc.Size", @@ -25085,15 +25108,15 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1156 + "__id__": 1158 }, "_enabled": true, "__prefab": { - "__id__": 1168 + "__id__": 1170 }, "clickEvents": [ { - "__id__": 1169 + "__id__": 1171 } ], "_interactable": true, @@ -25155,11 +25178,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1156 + "__id__": 1158 }, "_enabled": true, "__prefab": { - "__id__": 1171 + "__id__": 1173 }, "_alignFlags": 4, "_target": null, @@ -25208,7 +25231,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 1174 + "__id__": 1176 }, "_contentSize": { "__type__": "cc.Size", @@ -25236,7 +25259,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 1176 + "__id__": 1178 }, "_alignFlags": 21, "_target": null, @@ -25272,7 +25295,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 1178 + "__id__": 1180 }, "home_btn": { "__id__": 967 @@ -25281,7 +25304,7 @@ "__id__": 926 }, "rank_btn": { - "__id__": 1055 + "__id__": 1057 }, "_id": "" }, @@ -25309,14 +25332,14 @@ "__id__": 1 }, "_prefab": { - "__id__": 1181 + "__id__": 1183 }, "__editorExtras__": {} }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 1180 + "__id__": 1182 }, "asset": { "__uuid__": "26bff847-cd29-48a5-bbfa-c3e2dbda688d", @@ -25324,7 +25347,7 @@ }, "fileId": "5a9CMsVQhKP5Y+UJfTKPbx", "instance": { - "__id__": 1182 + "__id__": 1184 }, "targetOverrides": null }, @@ -25337,20 +25360,20 @@ "mountedChildren": [], "mountedComponents": [], "propertyOverrides": [ - { - "__id__": 1183 - }, { "__id__": 1185 }, - { - "__id__": 1186 - }, { "__id__": 1187 }, { "__id__": 1188 + }, + { + "__id__": 1189 + }, + { + "__id__": 1190 } ], "removedComponents": [] @@ -25358,7 +25381,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 1184 + "__id__": 1186 }, "propertyPath": [ "_name" @@ -25374,7 +25397,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 1184 + "__id__": 1186 }, "propertyPath": [ "_lpos" @@ -25389,7 +25412,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 1184 + "__id__": 1186 }, "propertyPath": [ "_lrot" @@ -25405,7 +25428,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 1184 + "__id__": 1186 }, "propertyPath": [ "_euler" @@ -25420,7 +25443,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 1184 + "__id__": 1186 }, "propertyPath": [ "_active" @@ -25437,23 +25460,23 @@ }, "_children": [ { - "__id__": 1190 + "__id__": 1192 } ], "_active": false, "_components": [ - { - "__id__": 1228 - }, { "__id__": 1230 }, { "__id__": 1232 + }, + { + "__id__": 1234 } ], "_prefab": { - "__id__": 1234 + "__id__": 1236 }, "_lpos": { "__type__": "cc.Vec3", @@ -25490,18 +25513,15 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1189 + "__id__": 1191 }, "_children": [ { - "__id__": 1191 + "__id__": 1193 } ], "_active": true, "_components": [ - { - "__id__": 1219 - }, { "__id__": 1221 }, @@ -25510,10 +25530,13 @@ }, { "__id__": 1225 + }, + { + "__id__": 1227 } ], "_prefab": { - "__id__": 1227 + "__id__": 1229 }, "_lpos": { "__type__": "cc.Vec3", @@ -25550,27 +25573,27 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1190 + "__id__": 1192 }, "_children": [ { - "__id__": 1192 + "__id__": 1194 }, { - "__id__": 1200 + "__id__": 1202 }, { - "__id__": 1206 + "__id__": 1208 } ], "_active": true, "_components": [ { - "__id__": 1216 + "__id__": 1218 } ], "_prefab": { - "__id__": 1218 + "__id__": 1220 }, "_lpos": { "__type__": "cc.Vec3", @@ -25607,23 +25630,23 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1191 + "__id__": 1193 }, "_children": [], "_active": true, "_components": [ - { - "__id__": 1193 - }, { "__id__": 1195 }, { "__id__": 1197 + }, + { + "__id__": 1199 } ], "_prefab": { - "__id__": 1199 + "__id__": 1201 }, "_lpos": { "__type__": "cc.Vec3", @@ -25660,11 +25683,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1192 + "__id__": 1194 }, "_enabled": true, "__prefab": { - "__id__": 1194 + "__id__": 1196 }, "_contentSize": { "__type__": "cc.Size", @@ -25688,11 +25711,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1192 + "__id__": 1194 }, "_enabled": true, "__prefab": { - "__id__": 1196 + "__id__": 1198 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -25736,11 +25759,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1192 + "__id__": 1194 }, "_enabled": true, "__prefab": { - "__id__": 1198 + "__id__": 1200 }, "_alignFlags": 40, "_target": null, @@ -25785,20 +25808,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1191 + "__id__": 1193 }, "_children": [], "_active": true, "_components": [ { - "__id__": 1201 + "__id__": 1203 }, { - "__id__": 1203 + "__id__": 1205 } ], "_prefab": { - "__id__": 1205 + "__id__": 1207 }, "_lpos": { "__type__": "cc.Vec3", @@ -25835,11 +25858,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1200 + "__id__": 1202 }, "_enabled": true, "__prefab": { - "__id__": 1202 + "__id__": 1204 }, "_contentSize": { "__type__": "cc.Size", @@ -25863,11 +25886,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1200 + "__id__": 1202 }, "_enabled": true, "__prefab": { - "__id__": 1204 + "__id__": 1206 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -25924,14 +25947,11 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1191 + "__id__": 1193 }, "_children": [], "_active": true, "_components": [ - { - "__id__": 1207 - }, { "__id__": 1209 }, @@ -25940,10 +25960,13 @@ }, { "__id__": 1213 + }, + { + "__id__": 1215 } ], "_prefab": { - "__id__": 1215 + "__id__": 1217 }, "_lpos": { "__type__": "cc.Vec3", @@ -25980,11 +26003,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1206 + "__id__": 1208 }, "_enabled": true, "__prefab": { - "__id__": 1208 + "__id__": 1210 }, "_contentSize": { "__type__": "cc.Size", @@ -26008,11 +26031,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1206 + "__id__": 1208 }, "_enabled": true, "__prefab": { - "__id__": 1210 + "__id__": 1212 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -26076,11 +26099,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1206 + "__id__": 1208 }, "_enabled": true, "__prefab": { - "__id__": 1212 + "__id__": 1214 }, "_alignFlags": 10, "_target": null, @@ -26112,11 +26135,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1206 + "__id__": 1208 }, "_enabled": true, "__prefab": { - "__id__": 1214 + "__id__": 1216 }, "templateMode": true, "watchPath": "data.data.gold", @@ -26149,11 +26172,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1191 + "__id__": 1193 }, "_enabled": true, "__prefab": { - "__id__": 1217 + "__id__": 1219 }, "_contentSize": { "__type__": "cc.Size", @@ -26190,11 +26213,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1190 + "__id__": 1192 }, "_enabled": true, "__prefab": { - "__id__": 1220 + "__id__": 1222 }, "_contentSize": { "__type__": "cc.Size", @@ -26218,11 +26241,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1190 + "__id__": 1192 }, "_enabled": true, "__prefab": { - "__id__": 1222 + "__id__": 1224 }, "_alignFlags": 8, "_target": null, @@ -26254,11 +26277,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1190 + "__id__": 1192 }, "_enabled": true, "__prefab": { - "__id__": 1224 + "__id__": 1226 }, "_resizeMode": 0, "_layoutType": 1, @@ -26292,11 +26315,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1190 + "__id__": 1192 }, "_enabled": true, "__prefab": { - "__id__": 1226 + "__id__": 1228 }, "_alignFlags": 40, "_target": null, @@ -26341,11 +26364,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1189 + "__id__": 1191 }, "_enabled": true, "__prefab": { - "__id__": 1229 + "__id__": 1231 }, "_contentSize": { "__type__": "cc.Size", @@ -26369,11 +26392,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1189 + "__id__": 1191 }, "_enabled": true, "__prefab": { - "__id__": 1231 + "__id__": 1233 }, "_alignFlags": 17, "_target": null, @@ -26405,11 +26428,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1189 + "__id__": 1191 }, "_enabled": true, "__prefab": { - "__id__": 1233 + "__id__": 1235 }, "_id": "" }, @@ -26440,7 +26463,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 1236 + "__id__": 1238 }, "_contentSize": { "__type__": "cc.Size", @@ -26468,7 +26491,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 1238 + "__id__": 1240 }, "_alignFlags": 45, "_target": null, @@ -26504,7 +26527,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 1240 + "__id__": 1242 }, "debugMode": false, "_id": "" @@ -26526,7 +26549,7 @@ "targetOverrides": [], "nestedPrefabInstanceRoots": [ { - "__id__": 1180 + "__id__": 1182 }, { "__id__": 805 diff --git a/assets/resources/language/json/zh.json b/assets/resources/language/json/zh.json index 138716c1..5ae73058 100644 --- a/assets/resources/language/json/zh.json +++ b/assets/resources/language/json/zh.json @@ -20,5 +20,7 @@ "role_hp": "生命", "role_power": "力量", "role_physical": "体质", - "role_agile": "敏捷" + "role_agile": "敏捷", + "heros": "体质" + } \ No newline at end of file diff --git a/assets/script/game/initialize/Initialize.ts b/assets/script/game/initialize/Initialize.ts index 93981bdf..85e69a9c 100644 --- a/assets/script/game/initialize/Initialize.ts +++ b/assets/script/game/initialize/Initialize.ts @@ -30,7 +30,7 @@ export class Initialize extends ecs.Entity { // 加载自定义资 this.loadCustom(queue); // 加载多语言包 - // this.loadLanguage(queue); + this.loadLanguage(queue); // 加载公共资源 this.loadCommon(queue); // 加载游戏内容加载进度提示界面