Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ET04
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
ET04
Commits
dfc29d4a
Commit
dfc29d4a
authored
Feb 24, 2021
by
wangxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_1
parent
df20905f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
form.component.html
form/src/app/form/form.component.html
+1
-1
Scene.js
play/assets/tmpGame/script/Scene.js
+6
-5
No files found.
form/src/app/form/form.component.html
View file @
dfc29d4a
...
...
@@ -17,7 +17,7 @@
<button
nz-button
nzType=
"primary"
>
添加选项
</button>
</div>
<div
style=
"width: 300px
"
align=
"center
"
>
<div
style=
"width: 300px
; margin-top: 50px
"
>
<span>
图1:
</span>
<app-upload-image-with-preview
[
picUrl
]="
item
.
pic_url
"
...
...
play/assets/tmpGame/script/Scene.js
View file @
dfc29d4a
...
...
@@ -45,6 +45,7 @@ cc.Class({
_mapScaleMin
:
null
,
// 场景中常用缩放(取大值)
_mapScaleMax
:
null
,
// 场景中常用缩放(取小值)
_cocosScale
:
null
,
// cocos 自缩放 (较少用到)
initSize
()
{
// 注意cc.winSize只有在适配后(修改fitHeight/fitWidth后)才能获取到正确的值,因此使用cc.getFrameSize()来获取初始的屏幕大小
let
screen_size
=
cc
.
view
.
getFrameSize
().
width
/
cc
.
view
.
getFrameSize
().
height
;
...
...
@@ -84,10 +85,11 @@ cc.Class({
},
preloadItem
()
{
this
.
addPreloadImage
();
this
.
addPreloadAudio
();
this
.
addPreloadAnima
();
this
.
preload
();
// this.addPreloadImage();
// this.addPreloadAudio();
// this.addPreloadAnima();
// this.preload();
this
.
initView
();
},
addPreloadImage
()
{
...
...
@@ -120,7 +122,6 @@ cc.Class({
this
.
initData
();
this
.
initAudio
();
this
.
initView
();
// this.initListener();
},
_cantouch
:
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