Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
DG_FAF
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
DG_FAF
Commits
1fab9d5d
Commit
1fab9d5d
authored
Mar 05, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加游戏页排序题
parent
307fca3e
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
4333 additions
and
1473 deletions
+4333
-1473
SortWords.meta
assets/DG_FAF/prefabs/SortWords.meta
+12
-0
SortWords.prefab
assets/DG_FAF/prefabs/SortWords/SortWords.prefab
+1292
-0
SortWords.prefab.meta
assets/DG_FAF/prefabs/SortWords/SortWords.prefab.meta
+8
-0
SortWords_DG_FAF.js
assets/DG_FAF/prefabs/SortWords/SortWords_DG_FAF.js
+109
-0
SortWords_DG_FAF.js.meta
assets/DG_FAF/prefabs/SortWords/SortWords_DG_FAF.js.meta
+9
-0
textures.meta
assets/DG_FAF/prefabs/SortWords/textures.meta
+12
-0
icon_input_ok.png
assets/DG_FAF/prefabs/SortWords/textures/icon_input_ok.png
+0
-0
icon_input_ok.png.meta
.../DG_FAF/prefabs/SortWords/textures/icon_input_ok.png.meta
+36
-0
icon_input_return.png
...s/DG_FAF/prefabs/SortWords/textures/icon_input_return.png
+0
-0
icon_input_return.png.meta
...FAF/prefabs/SortWords/textures/icon_input_return.png.meta
+36
-0
mask_bg.png
assets/DG_FAF/prefabs/SortWords/textures/mask_bg.png
+0
-0
mask_bg.png.meta
assets/DG_FAF/prefabs/SortWords/textures/mask_bg.png.meta
+36
-0
DG_FAF.fire
assets/DG_FAF/scene/DG_FAF.fire
+2759
-1473
DG_FAF.ts
assets/DG_FAF/scene/DG_FAF.ts
+24
-0
No files found.
assets/DG_FAF/prefabs/SortWords.meta
0 → 100644
View file @
1fab9d5d
{
"ver": "1.1.2",
"uuid": "c7844bce-f7f3-4440-950c-3b060af41edd",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
assets/DG_FAF/prefabs/SortWords/SortWords.prefab
0 → 100644
View file @
1fab9d5d
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "SortWords",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 6
},
{
"__id__": 20
}
],
"_active": true,
"_components": [
{
"__id__": 32
},
{
"__id__": 33
}
],
"_prefab": {
"__id__": 34
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height": 1200
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
960,
600,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "mask",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
},
{
"__id__": 4
}
],
"_prefab": {
"__id__": 5
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 3840,
"height": 2160
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "cda8c593-abed-4137-af06-fe4e79a2fdf6"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.BlockInputEvents",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "e2d8086f-75f8-4d44-a894-88c1e26bb42c"
},
"fileId": "48uGwjKcpIbYAZFTD5vgQI",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "mainContainer",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 7
},
{
"__id__": 11
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 19
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "selected",
"_objFlags": 0,
"_parent": {
"__id__": 6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 8
},
{
"__id__": 9
}
],
"_prefab": {
"__id__": 10
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1200,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
150,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 2,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 150,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 300,
"height": 200
},
"_resize": 1,
"_N$layoutType": 1,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 20,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": false,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "e2d8086f-75f8-4d44-a894-88c1e26bb42c"
},
"fileId": "cfR977+qtDr7Ab2NdWK6Dl",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "options",
"_objFlags": 0,
"_parent": {
"__id__": 6
},
"_children": [
{
"__id__": 12
}
],
"_active": true,
"_components": [
{
"__id__": 16
},
{
"__id__": 17
}
],
"_prefab": {
"__id__": 18
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": -100,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-150,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "word",
"_objFlags": 0,
"_parent": {
"__id__": 11
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 13
},
{
"__id__": 14
}
],
"_prefab": {
"__id__": 15
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 128.03,
"height": 80.64
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-114.01499999999999,
9.68,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "How",
"_N$string": "How",
"_fontSize": 64,
"_lineHeight": 64,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "e2d8086f-75f8-4d44-a894-88c1e26bb42c"
},
"fileId": "57lSeOzBhGn5s/5lvuFRyx",
"sync": false
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 2,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": -150,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": -100,
"height": 100
},
"_resize": 1,
"_N$layoutType": 1,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 100,
"_N$spacingY": 50,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": false,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "e2d8086f-75f8-4d44-a894-88c1e26bb42c"
},
"fileId": "0479vsC3VLR7Y+47tFGori",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "e2d8086f-75f8-4d44-a894-88c1e26bb42c"
},
"fileId": "32vHqp4F9KjLwoJkc/lk1L",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "buttons",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 21
},
{
"__id__": 25
}
],
"_active": true,
"_components": [
{
"__id__": 29
},
{
"__id__": 30
}
],
"_prefab": {
"__id__": 31
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 329,
"height": 200
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
695.5,
-450,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "return",
"_objFlags": 0,
"_parent": {
"__id__": 20
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 22
},
{
"__id__": 23
}
],
"_prefab": {
"__id__": 24
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 114,
"height": 115
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-107.5,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "d9f5a0ac-32d2-4656-9f94-7d6d8cd0ab0e"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "e2d8086f-75f8-4d44-a894-88c1e26bb42c"
},
"fileId": "0aDGnoXp9ATLo4c+pcnatE",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "ok",
"_objFlags": 0,
"_parent": {
"__id__": 20
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 26
},
{
"__id__": 27
}
],
"_prefab": {
"__id__": 28
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 115,
"height": 115
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
107,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "c3616ea2-7570-41eb-9505-2b0478de27d4"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "e2d8086f-75f8-4d44-a894-88c1e26bb42c"
},
"fileId": "43G8Q8gFpKjbLm157Q2xq/",
"sync": false
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 329,
"height": 200
},
"_resize": 1,
"_N$layoutType": 1,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 100,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": false,
"_id": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 36,
"_left": 0,
"_right": 100,
"_top": 0,
"_bottom": 50,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "e2d8086f-75f8-4d44-a894-88c1e26bb42c"
},
"fileId": "89VyHwTytAC6AinFDyOHU0",
"sync": false
},
{
"__type__": "89907GfylNMkLp77uzHsWqF",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_id": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "e2d8086f-75f8-4d44-a894-88c1e26bb42c"
},
"fileId": "",
"sync": false
}
]
\ No newline at end of file
assets/DG_FAF/prefabs/SortWords/SortWords.prefab.meta
0 → 100644
View file @
1fab9d5d
{
"ver": "1.2.9",
"uuid": "e2d8086f-75f8-4d44-a894-88c1e26bb42c",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
assets/DG_FAF/prefabs/SortWords/SortWords_DG_FAF.js
0 → 100644
View file @
1fab9d5d
// Learn cc.Class:
// - https://docs.cocos.com/creator/manual/en/scripting/class.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
cc
.
Class
({
extends
:
cc
.
Component
,
properties
:
{
// foo: {
// // ATTRIBUTES:
// default: null, // The default value will be used only when the component attaching
// // to a node for the first time
// type: cc.SpriteFrame, // optional, default is typeof default
// serializable: true, // optional, default is true
// },
// bar: {
// get () {
// return this._bar;
// },
// set (value) {
// this._bar = value;
// }
// },
},
// LIFE-CYCLE CALLBACKS:
// onLoad () {},
currentInputIndex
:
0
,
start
()
{
this
.
initEventListener
();
},
initEventListener
()
{
const
returnBtn
=
cc
.
find
(
"
buttons/return
"
,
this
.
node
);
returnBtn
.
on
(
"
click
"
,
()
=>
{
this
.
node
.
emit
(
"
onCancel
"
);
this
.
hide
();
})
const
okBtn
=
cc
.
find
(
"
buttons/ok
"
,
this
.
node
);
okBtn
.
on
(
"
click
"
,
()
=>
{
const
selectedContainer
=
cc
.
find
(
"
mainContainer/selected
"
,
this
.
node
);
const
allData
=
[];
selectedContainer
.
children
.
forEach
(
child
=>
{
allData
.
push
(
child
.
myData
)
})
this
.
node
.
emit
(
"
onEnter
"
,
allData
);
this
.
hide
();
})
this
.
node
.
on
(
"
show
"
,
options
=>
{
this
.
show
(
options
);
})
},
show
(
options
)
{
this
.
node
.
opacity
=
0
;
this
.
node
.
x
=
0
;
this
.
node
.
y
=
0
;
this
.
node
.
active
=
true
;
const
template
=
cc
.
find
(
"
mainContainer/options/word
"
,
this
.
node
);
const
optionsContainer
=
cc
.
find
(
"
mainContainer/options
"
,
this
.
node
);
const
selectedContainer
=
cc
.
find
(
"
mainContainer/selected
"
,
this
.
node
);
options
.
forEach
(
item
=>
{
const
newWord
=
cc
.
instantiate
(
template
);
newWord
.
getComponent
(
cc
.
Label
).
string
=
item
.
word
;
newWord
.
active
=
true
;
newWord
.
myData
=
{
selected
:
false
,
currentIndex
:
-
1
,
option
:
item
,
};
optionsContainer
.
addChild
(
newWord
);
newWord
.
on
(
"
click
"
,
()
=>
{
if
(
newWord
.
selected
)
{
selectedContainer
.
removeChild
(
newWord
)
optionsContainer
.
addChild
(
newWord
)
newWord
.
myData
.
selected
=
false
;
ewWord
.
myData
.
currentIndex
=
-
1
;
}
else
{
optionsContainer
.
removeChild
(
newWord
)
selectedContainer
.
addChild
(
newWord
)
newWord
.
myData
.
selected
=
true
;
newWord
.
myData
.
currentIndex
=
this
.
currentInputIndex
++
;
}
})
});
cc
.
tween
(
this
.
node
).
to
(
0.1
,
{
opacity
:
255
}).
call
(()
=>
{
}).
start
();
},
hide
()
{
this
.
node
.
opacity
=
255
;
cc
.
tween
(
this
.
node
).
to
(
0.1
,
{
opacity
:
0
}).
call
(()
=>
{
this
.
node
.
x
=
5000
;
this
.
node
.
active
=
false
;
}).
start
();
}
// update (dt) {},
});
assets/DG_FAF/prefabs/SortWords/SortWords_DG_FAF.js.meta
0 → 100644
View file @
1fab9d5d
{
"ver": "1.0.8",
"uuid": "8990719f-ca53-4c90-ba7b-eeecc7b16a85",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
assets/DG_FAF/prefabs/SortWords/textures.meta
0 → 100644
View file @
1fab9d5d
{
"ver": "1.1.2",
"uuid": "45b9b2fc-e28e-4620-a813-94820f1317cb",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
assets/DG_FAF/prefabs/SortWords/textures/icon_input_ok.png
0 → 100644
View file @
1fab9d5d
3.3 KB
assets/DG_FAF/prefabs/SortWords/textures/icon_input_ok.png.meta
0 → 100644
View file @
1fab9d5d
{
"ver": "2.3.5",
"uuid": "1b41aab3-f2ca-48cb-a597-17bce5707713",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 120,
"height": 120,
"platformSettings": {},
"subMetas": {
"icon_input_ok": {
"ver": "1.0.4",
"uuid": "c3616ea2-7570-41eb-9505-2b0478de27d4",
"rawTextureUuid": "1b41aab3-f2ca-48cb-a597-17bce5707713",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0.5,
"offsetY": -0.5,
"trimX": 3,
"trimY": 3,
"width": 115,
"height": 115,
"rawWidth": 120,
"rawHeight": 120,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/DG_FAF/prefabs/SortWords/textures/icon_input_return.png
0 → 100644
View file @
1fab9d5d
3.51 KB
assets/DG_FAF/prefabs/SortWords/textures/icon_input_return.png.meta
0 → 100644
View file @
1fab9d5d
{
"ver": "2.3.5",
"uuid": "91d71f77-d7a4-4a2d-8acf-335b27c7c50d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 120,
"height": 120,
"platformSettings": {},
"subMetas": {
"icon_input_return": {
"ver": "1.0.4",
"uuid": "d9f5a0ac-32d2-4656-9f94-7d6d8cd0ab0e",
"rawTextureUuid": "91d71f77-d7a4-4a2d-8acf-335b27c7c50d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -0.5,
"trimX": 3,
"trimY": 3,
"width": 114,
"height": 115,
"rawWidth": 120,
"rawHeight": 120,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/DG_FAF/prefabs/SortWords/textures/mask_bg.png
0 → 100644
View file @
1fab9d5d
1.12 KB
assets/DG_FAF/prefabs/SortWords/textures/mask_bg.png.meta
0 → 100644
View file @
1fab9d5d
{
"ver": "2.3.5",
"uuid": "50fccd09-97c0-44fa-8139-44e924feda54",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 3840,
"height": 2160,
"platformSettings": {},
"subMetas": {
"mask_bg": {
"ver": "1.0.4",
"uuid": "cda8c593-abed-4137-af06-fe4e79a2fdf6",
"rawTextureUuid": "50fccd09-97c0-44fa-8139-44e924feda54",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 3840,
"height": 2160,
"rawWidth": 3840,
"rawHeight": 2160,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/DG_FAF/scene/DG_FAF.fire
View file @
1fab9d5d
This source diff could not be displayed because it is too large. You can
view the blob
instead.
assets/DG_FAF/scene/DG_FAF.ts
View file @
1fab9d5d
...
...
@@ -31,6 +31,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
@
property
({
type
:
cc
.
Node
,
displayName
:
"
键盘
"
})
keyboard
:
cc
.
Node
=
null
;
@
property
({
type
:
cc
.
Node
,
displayName
:
"
文字排序
"
})
sortWords
:
cc
.
Node
=
null
;
@
property
({
type
:
cc
.
Node
,
displayName
:
"
选择窗
"
})
selectModal
:
cc
.
Node
=
null
;
...
...
@@ -61,6 +64,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
initScorePanel
();
this
.
initActionButton
();
this
.
initScoreShow
();
setTimeout
(()
=>
{
this
.
sortWords
.
emit
(
"
show
"
,
[
{
word
:
"
Fine
"
},
{
word
:
"
thank
"
},
{
word
:
"
you
"
}
])
},
1000
);
}
// 初始化屏幕储存
...
...
@@ -98,6 +107,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
currentInputTarget
=
null
;
onSelectedCallback
=
null
;
onKeyboardEnterCallback
=
null
;
onSortWordsEndCallback
=
null
;
initEventListener
()
{
// 注册键盘输入确定时间
this
.
keyboard
.
on
(
"
onEnter
"
,
(
text
)
=>
{
...
...
@@ -120,6 +130,20 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
currentInputTarget
=
null
;
}
})
this
.
sortWords
.
on
(
"
onEnter
"
,
(
e
)
=>
{
this
.
onSortWordsEndCallback
&&
this
.
onSortWordsEndCallback
(
this
.
currentInputTarget
,
e
)
if
(
this
.
currentInputTarget
)
{
this
.
currentInputTarget
=
null
;
}
})
this
.
sortWords
.
on
(
"
onCancel
"
,
(
e
)
=>
{
this
.
onSortWordsEndCallback
&&
this
.
onSortWordsEndCallback
(
this
.
currentInputTarget
,
e
)
if
(
this
.
currentInputTarget
)
{
this
.
currentInputTarget
=
null
;
}
})
}
// 初始化头部和底部图片
...
...
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