Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NGT_02
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
NGT_02
Commits
17316161
Commit
17316161
authored
Mar 03, 2022
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test:
parent
d9ae55eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
view.js
assets/NGT_02/script/common/view.js
+4
-4
No files found.
assets/NGT_02/script/common/view.js
View file @
17316161
...
@@ -53,10 +53,10 @@ cc.Class({
...
@@ -53,10 +53,10 @@ cc.Class({
var
h
=
canvaSize
.
height
/
1280
;
var
h
=
canvaSize
.
height
/
1280
;
this
.
MaxSize
=
w
/
h
>
1
?
w
/
h
:
h
/
w
;
this
.
MaxSize
=
w
/
h
>
1
?
w
/
h
:
h
/
w
;
this
.
setUIMax
(
this
.
MaxSize
);
//
this.setUIMax(this.MaxSize);
this
.
settopUI
(
this
.
MaxSize
);
//
this.settopUI(this.MaxSize);
this
.
setBgScale
();
//
this.setBgScale();
this
.
setUiPositon
();
//
this.setUiPositon();
var
scene
=
cc
.
director
.
getScene
();
var
scene
=
cc
.
director
.
getScene
();
var
list
=
scene
.
getComponentsInChildren
(
cc
.
Widget
);
var
list
=
scene
.
getComponentsInChildren
(
cc
.
Widget
);
...
...
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