Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NJ_NongChang
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
NJ_NongChang
Commits
515d256b
Commit
515d256b
authored
Jan 15, 2024
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
俄语化
parent
a3244ed3
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
262 additions
and
58 deletions
+262
-58
NJ_NongChang.fire
assets/NJ_NongChang/scene/NJ_NongChang.fire
+150
-53
NJ_NongChang.ts
assets/NJ_NongChang/scene/NJ_NongChang.ts
+40
-5
language_NJ_NongChang.ts
assets/NJ_NongChang/script/language_NJ_NongChang.ts
+27
-0
language_NJ_NongChang.ts.meta
assets/NJ_NongChang/script/language_NJ_NongChang.ts.meta
+9
-0
text_games_ru.png
assets/NJ_NongChang/textures/text_games_ru.png
+0
-0
text_games_ru.png.meta
assets/NJ_NongChang/textures/text_games_ru.png.meta
+36
-0
No files found.
assets/NJ_NongChang/scene/NJ_NongChang.fire
View file @
515d256b
...
...
@@ -84,22 +84,22 @@
"__id__": 362
},
{
"__id__": 37
4
"__id__": 37
6
},
{
"__id__": 38
2
"__id__": 38
4
}
],
"_active": true,
"_components": [
{
"__id__": 38
6
"__id__": 38
8
},
{
"__id__": 38
7
"__id__": 38
9
},
{
"__id__": 3
88
"__id__": 3
90
}
],
"_prefab": null,
...
...
@@ -6509,7 +6509,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "
077ujWeh5Hq7RuTW6AKfl2
"
"_id": "
6fAnd1G5VBarwqvBsZk6kZ
"
},
{
"__type__": "cc.Label",
...
...
@@ -6544,7 +6544,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "
36G9uB1XpD7qtkXM3sXndy
"
"_id": "
5aoTl7dqpFypxgkh0L7HXf
"
},
{
"__type__": "cc.LabelOutline",
...
...
@@ -6562,7 +6562,7 @@
"a": 255
},
"_width": 3,
"_id": "
a5PNGusDZJI72FdYfaiX4I
"
"_id": "
2e5d9lL5hIJKCX53ZY5ViJ
"
},
{
"__type__": "cc.RichText",
...
...
@@ -6717,7 +6717,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "
0ay3v9goFHzpMGcViVB+xs
"
"_id": "
9em53BDBBKjLJUYhQXKzLF
"
},
{
"__type__": "cc.Label",
...
...
@@ -6752,7 +6752,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "
07mwWPyUdGtJyaxEwpPDBp
"
"_id": "
17JvzYSoVKdIhNsrioHwHg
"
},
{
"__type__": "cc.LabelOutline",
...
...
@@ -6770,7 +6770,7 @@
"a": 255
},
"_width": 7,
"_id": "
c9QlPl/qlMAq0g2Z9Wu705
"
"_id": "
8ajkQyY8ZIArS3LgBojVXq
"
},
{
"__type__": "cc.RichText",
...
...
@@ -9863,7 +9863,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "
85I9ea4TZLzpmz+D96wGCp
"
"_id": "
0dH6//iDNCd67thzECEdXK
"
},
{
"__type__": "cc.Label",
...
...
@@ -9898,7 +9898,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "c
fW/QF0g1KB4oSZnMzImH5
"
"_id": "c
1fiSbYB5EkKIRWU7MB951
"
},
{
"__type__": "cc.LabelOutline",
...
...
@@ -9916,7 +9916,7 @@
"a": 255
},
"_width": 7,
"_id": "
1fsTTABltH3oy5eSYv5AQ+
"
"_id": "
3axmuSzCFFybKSqyWaru9B
"
},
{
"__type__": "cc.RichText",
...
...
@@ -10071,7 +10071,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "
8daFK3mJtOyIjbnVLBCTHb
"
"_id": "
77Q9r7qCBEja2W8vP1M1AE
"
},
{
"__type__": "cc.Label",
...
...
@@ -10106,7 +10106,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "
c2wkbRRc1K7pPbCSYz1+rs
"
"_id": "
eavClJeUxC4aFsIXaN5aSM
"
},
{
"__type__": "cc.LabelOutline",
...
...
@@ -10124,7 +10124,7 @@
"a": 255
},
"_width": 3,
"_id": "
95g9d2MyBB54dhw54Kf1VD
"
"_id": "
7bPJVeM0BBpb8qpFp+t7jX
"
},
{
"__type__": "cc.RichText",
...
...
@@ -13217,7 +13217,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "
a6PUStVmdM0rcKp7N6RHGl
"
"_id": "
05uefnPc9Ph55xXRO/n85/
"
},
{
"__type__": "cc.Label",
...
...
@@ -13252,7 +13252,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "
1bz/6M2JBGkamBfPxcJS3j
"
"_id": "
45xNBnNL1EY6gyU/Qbs3qk
"
},
{
"__type__": "cc.LabelOutline",
...
...
@@ -13270,7 +13270,7 @@
"a": 255
},
"_width": 7,
"_id": "
0bB40/4eJFH541p6A6iJ4S
"
"_id": "
61VirVBtFFcYpzbbe2RnOU
"
},
{
"__type__": "cc.RichText",
...
...
@@ -13425,7 +13425,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "
aeWy3TQU1HYaMsDS/ZUROe
"
"_id": "
5cqC0BuOJJnKmg+HyEkSlm
"
},
{
"__type__": "cc.Label",
...
...
@@ -13460,7 +13460,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "
c64MTJKzJMT4fWe08Fg3Vm
"
"_id": "
197KsMiLpB+JI+R9Z68MDJ
"
},
{
"__type__": "cc.LabelOutline",
...
...
@@ -13478,7 +13478,7 @@
"a": 255
},
"_width": 3,
"_id": "
7aG5J4tZ1Ica20JAl+j2PZ
"
"_id": "
8854nKvi1Il6nQxjFj1oKx
"
},
{
"__type__": "cc.RichText",
...
...
@@ -16768,7 +16768,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "
a8VdYWD4pJGa/KjJgISa3u
"
"_id": "
25OlwoLbZPsqjk7EFJDXgX
"
},
{
"__type__": "cc.Label",
...
...
@@ -16803,7 +16803,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "
b3w1dGAPxL66BKHQpEPKzl
"
"_id": "
a6/ovv5uRDL4URcT6C+H/T
"
},
{
"__type__": "cc.LabelOutline",
...
...
@@ -16821,7 +16821,7 @@
"a": 255
},
"_width": 7,
"_id": "5
4Sll7XWBCFIBjTpU+yUNL
"
"_id": "5
c5d20Zt5AT7PEvaZLXStn
"
},
{
"__type__": "cc.RichText",
...
...
@@ -16976,7 +16976,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "
61y5AngANIrYHJt9lHL60h
"
"_id": "
9e8wsutzNDaYIr9WIEjJe3
"
},
{
"__type__": "cc.Label",
...
...
@@ -17011,7 +17011,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "
8eqBw5aCBL5LPvbikDOdb1
"
"_id": "
d5/9782aFFoJCk8SjdgOiu
"
},
{
"__type__": "cc.LabelOutline",
...
...
@@ -17029,7 +17029,7 @@
"a": 255
},
"_width": 3,
"_id": "
e8Dbf7anhI9I2d5r5RUuaT
"
"_id": "
dbvMHhtWBDmbT/W5hmenNM
"
},
{
"__type__": "cc.RichText",
...
...
@@ -17429,18 +17429,21 @@
},
{
"__id__": 369
},
{
"__id__": 371
}
],
"_active": true,
"_components": [
{
"__id__": 37
1
"__id__": 37
3
},
{
"__id__": 37
2
"__id__": 37
4
},
{
"__id__": 37
3
"__id__": 37
5
}
],
"_prefab": null,
...
...
@@ -17795,7 +17798,7 @@
"__id__": 362
},
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
{
"__id__": 370
...
...
@@ -17881,6 +17884,100 @@
"_atlas": null,
"_id": "985gcoUJtFEYksJoc1chAy"
},
{
"__type__": "cc.Node",
"_name": "textImg_ru",
"_objFlags": 0,
"_parent": {
"__id__": 362
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 372
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 82,
"height": 38
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
1.83,
-57.615,
0,
0,
0,
0,
1,
1.2,
1.2,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "d6Dt7u96NIiJ/NcoS2d5NV"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 371
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "39396090-dbcf-41d2-bef8-1addf81592ec"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "aaKcvXbA5LE5BGDuTiibad"
},
{
"__type__": "cc.Sprite",
"_name": "",
...
...
@@ -18017,22 +18114,22 @@
},
"_children": [
{
"__id__": 37
5
"__id__": 37
7
},
{
"__id__": 37
7
"__id__": 37
9
}
],
"_active": true,
"_components": [
{
"__id__": 3
79
"__id__": 3
81
},
{
"__id__": 38
0
"__id__": 38
2
},
{
"__id__": 38
1
"__id__": 38
3
}
],
"_prefab": null,
...
...
@@ -18088,13 +18185,13 @@
"_name": "New Label",
"_objFlags": 0,
"_parent": {
"__id__": 37
4
"__id__": 37
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 37
6
"__id__": 37
8
}
],
"_prefab": null,
...
...
@@ -18150,7 +18247,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
5
"__id__": 37
7
},
"_enabled": true,
"_materials": [
...
...
@@ -18185,13 +18282,13 @@
"_name": "New Label",
"_objFlags": 0,
"_parent": {
"__id__": 37
4
"__id__": 37
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
78
"__id__": 3
80
}
],
"_prefab": null,
...
...
@@ -18247,7 +18344,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
7
"__id__": 37
9
},
"_enabled": true,
"_materials": [
...
...
@@ -18282,7 +18379,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
4
"__id__": 37
6
},
"_enabled": true,
"_materials": [
...
...
@@ -18314,7 +18411,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
4
"__id__": 37
6
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -18341,7 +18438,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
4
"__id__": 37
6
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -18415,13 +18512,13 @@
"_active": true,
"_components": [
{
"__id__": 38
3
"__id__": 38
5
},
{
"__id__": 38
4
"__id__": 38
6
},
{
"__id__": 38
5
"__id__": 38
7
}
],
"_prefab": null,
...
...
@@ -18477,7 +18574,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
2
"__id__": 38
4
},
"_enabled": true,
"_materials": [
...
...
@@ -18509,7 +18606,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
2
"__id__": 38
4
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -18536,7 +18633,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
2
"__id__": 38
4
},
"_enabled": true,
"_normalMaterial": null,
...
...
assets/NJ_NongChang/scene/NJ_NongChang.ts
View file @
515d256b
import
{
asyncCallNetworkApiGet
,
asyncCallNetworkApiPost
,
asyncDelay
,
buttonOnClick
,
jumpToCourseWare
,
onHomeworkFinish
,
seekChildByName
}
from
"
../script/util
"
;
import
{
MyCocosSceneComponent
}
from
"
../script/MyCocosSceneComponent
"
;
import
{
lang
as
languageString
,
langConfig
}
from
"
../script/language_NJ_NongChang
"
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
...
...
@@ -71,6 +72,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
orgId
=
507
;
localLanguage
=
"
zh-cn
"
async
onLoadEnd
()
{
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
if
(
middleLayer
)
{
...
...
@@ -83,6 +85,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
await
this
.
initData
();
await
this
.
initView
();
this
.
localization
();
this
.
initListener
();
// 播放背景音乐
...
...
@@ -128,6 +131,38 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
}
// 本地化
localization
()
{
const
_middleLayer
=
cc
.
find
(
'
middleLayer
'
);
if
(
!
_middleLayer
){
console
.
log
(
"
未检测到中间层,或中间层不支持getLocalLanguage, 使用默认语言
"
)
this
.
setMoreGamesIcon
(
null
);
return
}
const
middleLayer
=
_middleLayer
.
getComponent
(
'
middleLayer
'
)
if
(
!
middleLayer
||
!
middleLayer
.
getLocalLanguage
)
{
console
.
log
(
"
未检测到中间层,或中间层不支持getLocalLanguage, 使用默认语言
"
)
this
.
setMoreGamesIcon
(
null
);
return
}
this
.
localLanguage
=
middleLayer
.
getLocalLanguage
();
this
.
setMoreGamesIcon
(
this
.
localLanguage
);
}
// 小游戏字体
setMoreGamesIcon
(
lang
)
{
if
(
lang
==
"
ru-ru
"
)
{
cc
.
find
(
"
Canvas/game/textImg
"
).
active
=
false
;
cc
.
find
(
"
Canvas/game/textImg_ru
"
).
active
=
true
;
}
else
{
cc
.
find
(
"
Canvas/game/textImg
"
).
active
=
true
;
cc
.
find
(
"
Canvas/game/textImg_ru
"
).
active
=
false
;
}
}
changeNodeGray
(
node
)
{
if
(
!
node
)
{
return
;
...
...
@@ -171,11 +206,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
const
middleLayerComponent
=
middleLayer
.
getComponent
(
'
middleLayer
'
);
if
(
!
row
)
{
middleLayerComponent
.
showTips
(
"
未解锁 [101]
"
);
middleLayerComponent
.
showTips
(
languageString
[
this
.
localLanguage
].
msg_unlock
);
return
;
}
if
(
row
.
locked
)
{
middleLayerComponent
.
showTips
(
"
为了保障拼读达人的学习效果,请按顺序学习哦!
"
);
middleLayerComponent
.
showTips
(
languageString
[
this
.
localLanguage
].
msg_need_finish_pre
);
return
;
}
if
(
i
==
0
)
{
...
...
@@ -195,7 +230,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
this
.
orgId
==
507
)
{
const
guideRow
=
res
.
rows
.
find
(
row
=>
row
.
name
==
'
指读索引
'
);
if
(
!
guideRow
)
{
middleLayerComponent
.
showTips
(
"
未配置‘指读索引’
"
);
middleLayerComponent
.
showTips
(
languageString
[
this
.
localLanguage
].
msg_no_config_002
);
return
;
}
middleLayerComponent
.
setData
(
'
NJ_game_select
'
,
{
...
...
@@ -207,7 +242,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
jumpToCourseWare
(
guideRow
.
id
);
}
else
{
if
(
res
.
rows
.
length
==
0
)
{
middleLayerComponent
.
showTips
(
"
未制作
"
);
middleLayerComponent
.
showTips
(
languageString
[
this
.
localLanguage
].
msg_no_config_001
);
return
;
}
middleLayerComponent
.
setData
(
'
NJ_game_select
'
,
{
...
...
@@ -228,7 +263,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
middleLayer
)
{
const
middleLayerComponent
=
middleLayer
.
getComponent
(
'
middleLayer
'
);
if
(
!
this
.
moreGameFolder
)
{
middleLayerComponent
.
showTips
(
"
未解锁 [101]
"
);
middleLayerComponent
.
showTips
(
languageString
[
this
.
localLanguage
].
msg_unlock
);
return
;
}
middleLayerComponent
.
setData
(
'
NJ_MoreGames
'
,
{
...
...
assets/NJ_NongChang/script/language_NJ_NongChang.ts
0 → 100644
View file @
515d256b
export
const
lang
=
{
"
zh-cn
"
:
{
"
msg_need_login
"
:
"
需要登录后才能使用,去登录吗?
"
,
"
msg_unlock
"
:
"
未解锁 [101]
"
,
"
msg_app_update_restart
"
:
"
应用程序已更新,请退出程序重新打开!
"
,
"
msg_need_finish_pre
"
:
"
为了保障拼读达人的学习效果,请按顺序学习哦!
"
,
"
msg_no_config_001
"
:
"
未制作
"
,
"
msg_no_config_002
"
:
"
未配置‘指读索引’
"
,
},
"
ru-ru
"
:
{
"
msg_need_login
"
:
"
Чтобы использовать его, вам необходимо войти в систему. Хотите войти?
"
,
"
msg_unlock
"
:
"
Не разблокировано [101]
"
,
"
msg_app_update_restart
"
:
"
Приложение обновлено, пожалуйста, выйдите из программы и откройте ее заново!
"
,
"
msg_need_finish_pre
"
:
"
Чтобы обеспечить эффект обучения мастеров правописания, пожалуйста, учитесь по порядку!
"
,
"
msg_no_config_001
"
:
"
Не производится
"
,
"
msg_no_config_002
"
:
"
Не настроено — относится к индексу чтения
"
,
},
}
export
const
langConfig
=
{
"
zh-cn
"
:
{
},
"
ru-ru
"
:
{
}
}
\ No newline at end of file
assets/NJ_NongChang/script/language_NJ_NongChang.ts.meta
0 → 100644
View file @
515d256b
{
"ver": "1.0.8",
"uuid": "116af01e-b02a-4be1-a992-c111f6b0b4ab",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
assets/NJ_NongChang/textures/text_games_ru.png
0 → 100644
View file @
515d256b
2.05 KB
assets/NJ_NongChang/textures/text_games_ru.png.meta
0 → 100644
View file @
515d256b
{
"ver": "2.3.5",
"uuid": "03a5f455-3791-4ede-93be-c5930790ee8d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 82,
"height": 52,
"platformSettings": {},
"subMetas": {
"text_games_ru": {
"ver": "1.0.4",
"uuid": "39396090-dbcf-41d2-bef8-1addf81592ec",
"rawTextureUuid": "03a5f455-3791-4ede-93be-c5930790ee8d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 7,
"width": 82,
"height": 38,
"rawWidth": 82,
"rawHeight": 52,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment