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
b3d28c98
Commit
b3d28c98
authored
Dec 25, 2024
by
俞嘉婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 分享蒙层
parent
76c5640a
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1368 additions
and
409 deletions
+1368
-409
TaskPanel.prefab
...-snake-20241222/assets/Bundles/TaskPanel/TaskPanel.prefab
+274
-196
UIMgr.ts
...eautifulFunFestival-snake-20241222/assets/Module/UIMgr.ts
+14
-0
ShareCenter.ts
...lFunFestival-snake-20241222/assets/Scripts/ShareCenter.ts
+11
-11
UICanvas.prefab
...ulFunFestival-snake-20241222/assets/Start/UICanvas.prefab
+920
-189
share_guide.png
...nFestival-snake-20241222/assets/Start/png/share_guide.png
+0
-0
share_guide.png.meta
...ival-snake-20241222/assets/Start/png/share_guide.png.meta
+134
-0
index.html
...fulFunFestival-snake-20241222/build/web-mobile/index.html
+15
-13
No files found.
hzlh-beautifulFunFestival-snake-20241222/assets/Bundles/TaskPanel/TaskPanel.prefab
View file @
b3d28c98
This diff is collapsed.
Click to expand it.
hzlh-beautifulFunFestival-snake-20241222/assets/Module/UIMgr.ts
View file @
b3d28c98
...
...
@@ -69,6 +69,9 @@ export class UIMgr {
this
.
waiting
=
this
.
uiCanvas
.
getChildByName
(
"Waiting"
);
this
.
share
=
this
.
uiCanvas
.
getChildByName
(
"Share"
);
this
.
share
.
on
(
Node
.
EventType
.
TOUCH_END
,
this
.
hideShare
,
this
);
this
.
panel
=
this
.
uiCanvas
.
getChildByName
(
"Panel"
);
this
.
panelMask
=
this
.
panel
.
getChildByName
(
"mask"
);
...
...
@@ -384,4 +387,15 @@ export class UIMgr {
/********* Waiting *********/
/********* Share *********/
share
:
Node
;
showShare
()
{
this
.
share
.
active
=
true
;
}
hideShare
()
{
this
.
share
.
active
=
false
;
}
}
hzlh-beautifulFunFestival-snake-20241222/assets/Scripts/ShareCenter.ts
View file @
b3d28c98
...
...
@@ -32,17 +32,17 @@ export default class ShareCenter {
url
=
url
+
'&inviteCode='
+
data
?.
inviteCode
;
}
const
inviteInfo
=
shareInfo
.
filter
(
item
=>
item
.
type
==
type
)[
0
]
// TODO 要不要投微信端?
// if (isWeChat()) {
// if (needHelp) showShareGuide('点击右上角分享');
//
onUpdateShare({
//
title: inviteInfo?.title,
//
content: inviteInfo?.content,
//
url: url,
//
thumbnail: inviteInfo?.thumbnail,
//
});
//
return;
//
}
if
(
this
.
isWeChat
())
{
UIMgr
.
ins
.
showShare
();
// FISH_TODO
//
onUpdateShare({
//
title: inviteInfo?.title,
//
content: inviteInfo?.content,
//
url: url,
//
thumbnail: inviteInfo?.thumbnail,
//
});
return
;
}
console
.
info
({
title
:
inviteInfo
?.
title
,
content
:
inviteInfo
?.
content
,
...
...
hzlh-beautifulFunFestival-snake-20241222/assets/Start/UICanvas.prefab
View file @
b3d28c98
This diff is collapsed.
Click to expand it.
hzlh-beautifulFunFestival-snake-20241222/assets/Start/png/share_guide.png
0 → 100644
View file @
b3d28c98
4.08 KB
hzlh-beautifulFunFestival-snake-20241222/assets/Start/png/share_guide.png.meta
0 → 100644
View file @
b3d28c98
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "afb52640-178c-4038-8acd-a8792536bbfa",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "afb52640-178c-4038-8acd-a8792536bbfa@6c48a",
"displayName": "share_guide",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "afb52640-178c-4038-8acd-a8792536bbfa",
"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": "afb52640-178c-4038-8acd-a8792536bbfa@f9941",
"displayName": "share_guide",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 470,
"height": 350,
"rawWidth": 470,
"rawHeight": 350,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-235,
-175,
0,
235,
-175,
0,
-235,
175,
0,
235,
175,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
350,
470,
350,
0,
0,
470,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-235,
-175,
0
],
"maxPos": [
235,
175,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "afb52640-178c-4038-8acd-a8792536bbfa@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "afb52640-178c-4038-8acd-a8792536bbfa@6c48a"
}
}
hzlh-beautifulFunFestival-snake-20241222/build/web-mobile/index.html
View file @
b3d28c98
...
...
@@ -33,8 +33,10 @@
<!--<link rel="apple-touch-icon" href=".png" />-->
<!--<link rel="apple-touch-icon-precomposed" href=".png" />-->
<script
src=
"//yun.duiba.com.cn/js-libs/rem/1.1.3/rem.min.js"
></script>
<!-- 杭州银行sdk文件 -->
<script
src=
"https://yun.duiba.com.cn/polaris/HZBank241209.750241063621ccec7147ce1760be526bbd6619b8.js"
></script>
<script
type=
"text/javascript"
src=
"//yun.duiba.com.cn/polaris/mfs_ios_compatible.493edcebd8faac35cc87ffedebf9cc64cc10f74e.js"
></script>
<script
type=
"text/javascript"
src=
"//yun.duiba.com.cn/polaris/mfs_common.6f1f2157acb0f6e2687cbf905de5a87c6a4c71c3.js"
></script>
<script
type=
"text/javascript"
src=
"//yun.duiba.com.cn/polaris/mfs_oauth.98b042d60a897e0c7616cbf0d22226d381e0c2dd.js"
></script>
<script
type=
"text/javascript"
src=
"https://res.wx.qq.com/open/js/jweixin-1.6.0.js"
></script>
<style>
html
{
-ms-touch-action
:
none
;
...
...
@@ -104,12 +106,12 @@
}
</style>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
4694891689
/src/assets/plugin/zepto.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
4694891689
/src/assets/plugin/declare-process.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
4694891689
/src/assets/plugin/SVGA.Lite.v2.1.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
4694891689
/src/assets/plugin/jszip.min.v3.10.1.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
4694891689
/style.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
4694891689
/custom.css"
/>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
5085111830
/src/assets/plugin/zepto.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
5085111830
/src/assets/plugin/declare-process.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
5085111830
/src/assets/plugin/SVGA.Lite.v2.1.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
5085111830
/src/assets/plugin/jszip.min.v3.10.1.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
5085111830
/style.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
5085111830
/custom.css"
/>
<!-- <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/libs/eruda.min.js"></script>-->
<!-- <script>eruda.init()</script>-->
...
...
@@ -123,20 +125,20 @@
</div>
<!-- Polyfills bundle. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
4694891689
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
5085111830
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<!-- SystemJS support. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
4694891689
/src/system.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
5085111830
/src/system.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"https://yun.duiba.com.cn/aurora/assets/03cc8b25df7f900745f5db17effa0eccc2ae724e.js"
></script>
<!-- Import map -->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/173
4694891689
/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/173
5085111830
/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<script
type=
"systemjs-importmap"
charset=
"utf-8"
>
{
"imports"
:{
"cc"
:
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
4694891689
/cocos-js/cc.js"
}}
{
"imports"
:{
"cc"
:
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
5085111830
/cocos-js/cc.js"
}}
</script>
<script>
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/173
4694891689
/index.js'
).
catch
(
function
(
err
)
{
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/173
5085111830
/index.js'
).
catch
(
function
(
err
)
{
console
.
error
(
err
);
})
</script>
...
...
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