Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
hzlh-beautifulFunFestival-snake-20241222
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
hzlh-beautifulFunFestival-snake-20241222
Commits
896777ff
Commit
896777ff
authored
Dec 25, 2024
by
俞嘉婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 首页引导
parent
5bb55320
Changes
17
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
1766 additions
and
1 deletion
+1766
-1
HomeGuidePanel.meta
...estival-snake-20241222/assets/Bundles/HomeGuidePanel.meta
+1
-0
HomeGuidePanel.prefab
...41222/assets/Bundles/HomeGuidePanel/HomeGuidePanel.prefab
+1356
-0
HomeGuidePanel.prefab.meta
.../assets/Bundles/HomeGuidePanel/HomeGuidePanel.prefab.meta
+13
-0
png.meta
...val-snake-20241222/assets/Bundles/HomeGuidePanel/png.meta
+1
-0
task_btn.png
...e-20241222/assets/Bundles/HomeGuidePanel/png/task_btn.png
+0
-0
task_btn.png.meta
...41222/assets/Bundles/HomeGuidePanel/png/task_btn.png.meta
+134
-0
yinliu_icon.png
...0241222/assets/Bundles/HomeGuidePanel/png/yinliu_icon.png
+0
-0
yinliu_icon.png.meta
...22/assets/Bundles/HomeGuidePanel/png/yinliu_icon.png.meta
+134
-0
HomeGuidePanel.ts
...al-snake-20241222/assets/Scripts/Panels/HomeGuidePanel.ts
+47
-0
HomeGuidePanel.ts.meta
...ake-20241222/assets/Scripts/Panels/HomeGuidePanel.ts.meta
+1
-0
Breath.ts
...al-snake-20241222/assets/Scripts/Scenes/runMain/Breath.ts
+18
-0
Breath.ts.meta
...ake-20241222/assets/Scripts/Scenes/runMain/Breath.ts.meta
+9
-0
PopoverFade.ts
...ake-20241222/assets/Scripts/Scenes/runMain/PopoverFade.ts
+20
-0
PopoverFade.ts.meta
...0241222/assets/Scripts/Scenes/runMain/PopoverFade.ts.meta
+9
-0
runMainPage.ts
...ake-20241222/assets/Scripts/Scenes/runMain/runMainPage.ts
+12
-0
index.do.json
...e-20241222/preview-template/mock/branch_tcs/index.do.json
+1
-1
stepBranchGuide.do.json
...241222/preview-template/mock/main/stepBranchGuide.do.json
+10
-0
No files found.
hzlh-beautifulFunFestival-snake-20241222/assets/Bundles/HomeGuidePanel.meta
0 → 100644
View file @
896777ff
{"ver":"1.2.0","importer":"directory","imported":true,"uuid":"734c4053-d630-4acc-ba0a-b9d7af243bf1","files":[],"subMetas":{},"userData":{"isBundle":true}}
hzlh-beautifulFunFestival-snake-20241222/assets/Bundles/HomeGuidePanel/HomeGuidePanel.prefab
0 → 100644
View file @
896777ff
This diff is collapsed.
Click to expand it.
hzlh-beautifulFunFestival-snake-20241222/assets/Bundles/HomeGuidePanel/HomeGuidePanel.prefab.meta
0 → 100644
View file @
896777ff
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "690de044-72b1-4025-ae01-e3e5572ae719",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "HomeGuidePanel"
}
}
hzlh-beautifulFunFestival-snake-20241222/assets/Bundles/HomeGuidePanel/png.meta
0 → 100644
View file @
896777ff
{"ver":"1.2.0","importer":"directory","imported":true,"uuid":"6ae501bc-d5de-46e5-b27a-02e87f2c7480","files":[],"subMetas":{},"userData":{}}
hzlh-beautifulFunFestival-snake-20241222/assets/Bundles/HomeGuidePanel/png/task_btn.png
0 → 100644
View file @
896777ff
24.8 KB
hzlh-beautifulFunFestival-snake-20241222/assets/Bundles/HomeGuidePanel/png/task_btn.png.meta
0 → 100644
View file @
896777ff
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "3d112ef8-3cf4-4b6a-b138-73ca67ed27b1",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "3d112ef8-3cf4-4b6a-b138-73ca67ed27b1@6c48a",
"displayName": "task_btn",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "3d112ef8-3cf4-4b6a-b138-73ca67ed27b1",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "3d112ef8-3cf4-4b6a-b138-73ca67ed27b1@f9941",
"displayName": "task_btn",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 168,
"height": 149,
"rawWidth": 168,
"rawHeight": 149,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-84,
-74.5,
0,
84,
-74.5,
0,
-84,
74.5,
0,
84,
74.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
149,
168,
149,
0,
0,
168,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-84,
-74.5,
0
],
"maxPos": [
84,
74.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "3d112ef8-3cf4-4b6a-b138-73ca67ed27b1@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "3d112ef8-3cf4-4b6a-b138-73ca67ed27b1@6c48a"
}
}
hzlh-beautifulFunFestival-snake-20241222/assets/Bundles/HomeGuidePanel/png/yinliu_icon.png
0 → 100644
View file @
896777ff
26.7 KB
hzlh-beautifulFunFestival-snake-20241222/assets/Bundles/HomeGuidePanel/png/yinliu_icon.png.meta
0 → 100644
View file @
896777ff
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "23354d6e-9c52-4a61-b037-4036920517bb",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "23354d6e-9c52-4a61-b037-4036920517bb@6c48a",
"displayName": "yinliu_icon",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "23354d6e-9c52-4a61-b037-4036920517bb",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "23354d6e-9c52-4a61-b037-4036920517bb@f9941",
"displayName": "yinliu_icon",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 168,
"height": 149,
"rawWidth": 168,
"rawHeight": 149,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-84,
-74.5,
0,
84,
-74.5,
0,
-84,
74.5,
0,
84,
74.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
149,
168,
149,
0,
0,
168,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-84,
-74.5,
0
],
"maxPos": [
84,
74.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "23354d6e-9c52-4a61-b037-4036920517bb@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "23354d6e-9c52-4a61-b037-4036920517bb@6c48a"
}
}
hzlh-beautifulFunFestival-snake-20241222/assets/Scripts/Panels/HomeGuidePanel.ts
0 → 100644
View file @
896777ff
import
Panel
from
"../../Module/Panel"
;
import
{
_decorator
,
Button
,
Node
}
from
"cc"
;
import
{
observer
}
from
"../store/decorators"
;
import
{
getWebData
,
sendWebNet
,
WebNetName
}
from
"../Utils/WebNet/WebNet"
;
import
{
_asyncThrottle
}
from
"../Utils/Utils"
;
import
{
runMainPage
}
from
"../Scenes/runMain/runMainPage"
;
import
store
from
"../store/store"
;
const
{
ccclass
,
property
}
=
_decorator
;
@
observer
@
ccclass
(
'HomeGuidePanel'
)
export
default
class
HomeGuidePanel
extends
Panel
{
static
bundle
=
"HomeGuidePanel"
;
static
skin
=
"HomeGuidePanel"
;
@
property
(
Node
)
step2Box
:
Node
=
null
;
@
property
(
Node
)
step3Box
:
Node
=
null
;
@
property
(
Node
)
step2ClickArea
:
Node
=
null
;
@
property
(
Node
)
step3ClickArea
:
Node
=
null
;
onLoad
()
{
this
.
step2ClickArea
.
on
(
Button
.
EventType
.
CLICK
,
this
.
stepHandle
);
this
.
step3ClickArea
.
on
(
Button
.
EventType
.
CLICK
,
this
.
endHandle
);
}
async
start
()
{
}
// 下一步
stepHandle
=
_asyncThrottle
(
async
()
=>
{
const
{
success
}
=
await
sendWebNet
(
WebNetName
.
tcs_StepBranchGuide
,
{
branchType
:
store
.
BRANCH_TYPE
})
if
(
success
)
{
this
.
step2Box
.
active
=
false
;
this
.
step3Box
.
active
=
true
;
}
})
// 结束
endHandle
=
_asyncThrottle
(()
=>
{
this
.
hidePanel
();
runMainPage
.
ins
.
getIndex
();
})
}
hzlh-beautifulFunFestival-snake-20241222/assets/Scripts/Panels/HomeGuidePanel.ts.meta
0 → 100644
View file @
896777ff
{"ver":"4.0.24","importer":"typescript","imported":true,"uuid":"09f800d5-c274-4dae-8f6a-b59eff1ab3eb","files":[],"subMetas":{},"userData":{}}
hzlh-beautifulFunFestival-snake-20241222/assets/Scripts/Scenes/runMain/Breath.ts
0 → 100644
View file @
896777ff
import
{
_decorator
,
Component
,
easing
,
tween
,
v3
}
from
'cc'
;
const
{
ccclass
}
=
_decorator
;
@
ccclass
(
'ArrowBreath'
)
export
class
ArrowBreath
extends
Component
{
start
()
{
tween
(
this
.
node
)
.
repeatForever
(
tween
(
this
.
node
)
.
to
(
0.666
,
{
scale
:
v3
(
1.2
,
1.2
,
1.2
)
},
{
easing
:
easing
.
smooth
})
.
to
(
0.666
,
{
scale
:
v3
(
0.95
,
0.95
,
0.95
)
},
{
easing
:
easing
.
smooth
})
)
.
start
();
}
}
hzlh-beautifulFunFestival-snake-20241222/assets/Scripts/Scenes/runMain/Breath.ts.meta
0 → 100644
View file @
896777ff
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "9942b178-1c26-403d-86ee-51f4936db8d1",
"files": [],
"subMetas": {},
"userData": {}
}
hzlh-beautifulFunFestival-snake-20241222/assets/Scripts/Scenes/runMain/PopoverFade.ts
0 → 100644
View file @
896777ff
import
{
_decorator
,
Component
,
easing
,
tween
,
v3
}
from
'cc'
;
const
{
ccclass
}
=
_decorator
;
@
ccclass
(
'PopoverFade'
)
export
class
PopoverFade
extends
Component
{
start
()
{
tween
(
this
.
node
)
.
repeatForever
(
tween
(
this
.
node
)
.
delay
(
5
)
.
to
(
0.666
,
{
scale
:
v3
(
0
,
0
,
0
)
},
{
easing
:
easing
.
smooth
})
.
delay
(
2
)
.
to
(
0.666
,
{
scale
:
v3
(
1
,
1
,
1
)
},
{
easing
:
easing
.
smooth
})
)
.
start
();
}
}
hzlh-beautifulFunFestival-snake-20241222/assets/Scripts/Scenes/runMain/PopoverFade.ts.meta
0 → 100644
View file @
896777ff
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "826d4ad8-5883-4003-85a8-91c2c17e261c",
"files": [],
"subMetas": {},
"userData": {}
}
hzlh-beautifulFunFestival-snake-20241222/assets/Scripts/Scenes/runMain/runMainPage.ts
View file @
896777ff
...
...
@@ -12,6 +12,7 @@ import LimitPanel from '../../Panels/LimitPanel';
import
NotLoginPanel
from
'../../Panels/NotLoginPanel'
;
import
{
VList
}
from
'../VList'
;
import
{
Sprite
}
from
'cc'
;
import
HomeGuidePanel
from
'../../Panels/HomeGuidePanel'
;
const
{
ccclass
,
property
}
=
_decorator
;
@
ccclass
(
'runMainPage'
)
...
...
@@ -43,6 +44,9 @@ export class runMainPage extends Scene {
@
property
(
AudioClip
)
bgMusic
:
AudioClip
=
null
@
property
(
Node
)
guide1
:
Node
=
null
;
private
static
_ins
:
runMainPage
=
null
;
...
...
@@ -67,6 +71,12 @@ export class runMainPage extends Scene {
const
{
success
,
data
}
=
await
sendWebNet
(
WebNetName
.
tcs_Index
);
if
(
success
)
{
this
.
startLab
.
string
=
`剩余次数:
${
data
.
remainJoinNum
||
0
}
`
// 新手引导1
if
(
data
.
alreadyGuide
==
0
)
{
this
.
guide1
.
active
=
true
}
else
if
(
data
.
alreadyGuide
==
1
)
{
showPanel
(
HomeGuidePanel
)
}
if
(
data
.
offlineNewAssist
&&
data
.
offlineNewAssist
>
0
)
{
showToast
(
`一共有
${
data
.
offlineNewAssist
}
位好友助力,快去任务面板领取奖励次数吧~`
)
}
...
...
@@ -138,6 +148,8 @@ export class runMainPage extends Scene {
branchType
:
store
.
BRANCH_TYPE
});
if
(
!
success
)
return
;
console
.
log
(
this
,
this
.
guide1
)
this
.
guide1
.
active
=
false
}
await
store
.
startTCS
()
})
...
...
hzlh-beautifulFunFestival-snake-20241222/preview-template/mock/branch_tcs/index.do.json
View file @
896777ff
...
...
@@ -28,7 +28,7 @@
"rule"
:
"<p>以下是游戏规则:手速要快,点击红包雨。。333。。。。。。。。。。。。。。。。。。。。11111111111111sadasdadadsad5555555557777777777799999999999911111111111111111111111222222222222222222222222222222222222222222222222222222222222222333333333333333333333333333333333333333333333333333333333333311111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222233333333333333333333333333333333333333333333333333333333333331111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222223333333333333333333333333333333333333333333333333333333333333</p><p>以下是游戏规则:手速要快,点击红包雨。。333。。。。。。。。。。。。。。。。。。。。11111111111111sadasdadadsad5555555557777777777799999999999911111111111111111111111222222222222222222222222222222222222222222222222222222222222222333333333333333333333333333333333333333333333333333333333333311111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222233333333333333333333333333333333333333333333333333333333333331111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222223333333333333333333333333333333333333333333333333333333333333</p><p>以下是游戏规则:手速要快,点击红包雨。。333。。。。。。。。。。。。。。。。。。。。11111111111111sadasdadadsad5555555557777777777799999999999911111111111111111111111222222222222222222222222222222222222222222222222222222222222222333333333333333333333333333333333333333333333333333333333333311111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222233333333333333333333333333333333333333333333333333333333333331111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222223333333333333333333333333333333333333333333333333333333333333</p>"
,
"activityStartTime"
:
3
,
"activityEndTime"
:
9
,
"alreadyGuide"
:
1
,
"alreadyGuide"
:
2
,
"totalGuide"
:
2
}
}
\ No newline at end of file
hzlh-beautifulFunFestival-snake-20241222/preview-template/mock/main/stepBranchGuide.do.json
0 → 100644
View file @
896777ff
{
"code"
:
"consequat ad cillum veniam"
,
"message"
:
"non proident ad Ut exercitation"
,
"success"
:
true
,
"data"
:
{
"alreadyGuide"
:
1
,
"totalGuide"
:
3
}
}
\ 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