Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Sbox_tracingLetters
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
Sbox_tracingLetters
Commits
ee489dd3
Commit
ee489dd3
authored
Jan 14, 2021
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adajst restart buton pos
parent
7b0873bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
n_xuan1.fire
play/assets/tmpGame/scene/n_xuan1.fire
+5
-5
n_xuan1.js
play/assets/tmpGame/scene/n_xuan1.js
+12
-0
No files found.
play/assets/tmpGame/scene/n_xuan1.fire
View file @
ee489dd3
...
...
@@ -186,7 +186,7 @@
"array": [
0,
0,
285.1253325490923
,
361.9986187818954
,
0,
0,
0,
...
...
@@ -5221,7 +5221,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "
08cOjV0iJCA73Cizz81YTU
"
"_id": "
35dGJsFRRO3IqzWWXtnNzA
"
},
{
"__type__": "cc.Label",
...
...
@@ -5257,7 +5257,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "
e1zPG5mjlIJpknQD4F5sa9
"
"_id": "
88lpZGxa1PwZMyMXVkpOEW
"
},
{
"__type__": "cc.PrivateNode",
...
...
@@ -5320,7 +5320,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "
dfY4hkLlJEto3jPLoSQQRk
"
"_id": "
b2RXCeOL9EP6R9acGAHYig
"
},
{
"__type__": "cc.Label",
...
...
@@ -5356,7 +5356,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "
451sBcHvhHAYCyBowKnXCt
"
"_id": "
0cWlolPsVBUoeQ7Fq3yXcs
"
},
{
"__type__": "cc.RichText",
...
...
play/assets/tmpGame/scene/n_xuan1.js
View file @
ee489dd3
...
...
@@ -333,6 +333,11 @@ cc.Class({
}
},
repositionButton
()
{
const
btn_restart
=
cc
.
find
(
'
Canvas/buttons/btn_restart
'
);
btn_restart
.
y
=
-
cc
.
winSize
.
height
/
2
+
80
},
initListeners
()
{
const
btnSwitch
=
cc
.
find
(
'
Canvas/LetterPicturePage/BtnSwitch
'
);
const
changeToBig
=
cc
.
find
(
'
Canvas/LetterPicturePage/BtnSwitch/ChangeToBig
'
);
...
...
@@ -342,6 +347,13 @@ cc.Class({
const
pictureWordSmallBg
=
cc
.
find
(
'
Canvas/LetterPicturePage/PictureWordSmallBg
'
);
const
pictureWordBigBg
=
cc
.
find
(
'
Canvas/LetterPicturePage/PictureWordBigBg
'
);
const
btn_restart
=
cc
.
find
(
'
Canvas/buttons/btn_restart
'
);
this
.
repositionButton
();
let
that
=
this
cc
.
view
.
setResizeCallback
(
function
()
{
// console.log("sizeChange");
this
.
repositionButton
();
});
btn_restart
.
on
(
'
click
'
,
async
()
=>
{
if
(
!
this
.
_enableRestart
)
{
...
...
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