Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
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
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
wildfirecode13
xiaoxiaole
Commits
462aba26
Commit
462aba26
authored
Aug 14, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
检查stageHeight的null问题1
parent
d4a07c7a
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9 additions
and
2 deletions
+9
-2
Panel.ts
egret/libs/new_wx/components/Panel.ts
+1
-0
Scene.ts
egret/libs/new_wx/components/Scene.ts
+1
-0
H52Scene.ts
egret/src/H52Scene.ts
+1
-0
getFriendSharePic.ts
egret/src/getFriendSharePic.ts
+2
-1
getSharePic.ts
egret/src/getSharePic.ts
+1
-0
getShowOffPic.ts
egret/src/getShowOffPic.ts
+1
-1
shareCtrl.ts
egret/src/shareCtrl.ts
+1
-0
shareCtrl3.ts
egret/src/shareCtrl3.ts
+1
-0
No files found.
egret/libs/new_wx/components/Panel.ts
View file @
462aba26
...
...
@@ -3,6 +3,7 @@ import ComponentBase from "./ComponentBase";
export
default
class
Panel
extends
ComponentBase
{
public
onShowAnim
(){
console
.
log
(
"test==Panel"
);
console
.
log
(
'panel height'
,
this
.
height
,
'stage height'
,
this
.
stage
.
stageHeight
,
'pane skin'
,
this
.
skinKey
);
let
targetY
:
number
;
// if(this.skinKey=='Turntable'){
...
...
egret/libs/new_wx/components/Scene.ts
View file @
462aba26
...
...
@@ -7,6 +7,7 @@ export default class Scene extends ComponentBase {
start
(
data
?)
{
super
.
start
(
data
);
console
.
log
(
"test==Scene"
);
this
.
height
=
this
.
stage
.
stageHeight
;
this
.
playAnimation
();
}
...
...
egret/src/H52Scene.ts
View file @
462aba26
...
...
@@ -10,6 +10,7 @@ export default class H52Scene extends Scene {
async
start
(
data
?)
{
NetManager
.
ins
.
showLog
(
getlogItem
(
51
));
super
.
start
();
// console.log("test==getH52");
this
[
'group'
].
y
=
(
this
.
stage
.
stageHeight
-
1624
)
/
2
// this.height=this.stage.stageHeight;
// this['rulebtn'].addEventListener(egret.TouchEvent.TOUCH_TAP,()=>{
...
...
egret/src/getFriendSharePic.ts
View file @
462aba26
...
...
@@ -27,9 +27,9 @@ export const getFriendShareUrl = async (parent?: egret.DisplayObjectContainer,ra
const
showoff
=
new
FriendWxShare
();
showoff
.
loadSkin
();
showoff
.
start
(
rank
);
console
.
log
(
"test==getFriendShare"
);
if
(
parent
)
{
parent
.
addChild
(
showoff
);
showoff
.
y
=
showoff
.
stage
.
stageHeight
/
2
-
showoff
.
height
/
2
;
};
...
...
@@ -37,6 +37,7 @@ export const getFriendShareUrl = async (parent?: egret.DisplayObjectContainer,ra
img
.
style
.
display
=
'block'
;
Loading
.
instace
.
show
();
setTimeout
(()
=>
{
console
.
log
(
"test==getFriendShare1"
);
const
base64
=
getPrintScreenData
(
showoff
,
0
,
(
showoff
.
height
-
showoff
.
stage
.
stageHeight
)
/
2
,
pic
.
textureWidth
,
parent
.
stage
.
stageHeight
);
img
.
src
=
base64
;
Loading
.
instace
.
hide
();
...
...
egret/src/getSharePic.ts
View file @
462aba26
...
...
@@ -34,6 +34,7 @@ export const getShareUrl = async (parent?: egret.DisplayObjectContainer) => {
if
(
parent
)
parent
.
addChild
(
showoff
);
showoff
.
visible
=
false
;
img
.
style
.
display
=
'block'
;
// console.log("test==getSharePic");
const
base64
=
getPrintScreenData
(
showoff
,
0
,
0
,
pic
.
textureWidth
,
parent
.
stage
.
stageHeight
);
// NetManager.ins.imgUrl((success) => {
// const data = DataManager.ins.getData('imgURL');
...
...
egret/src/getShowOffPic.ts
View file @
462aba26
...
...
@@ -26,7 +26,7 @@ export default async (stage, parent?: egret.DisplayObjectContainer, ) => {
showoff
.
start
();
if
(
parent
)
parent
.
addChild
(
showoff
);
showoff
.
visible
=
false
;
// console.log("test==getShowOff");
const
base64
=
getPrintScreenData
(
showoff
[
'pic'
],
0
,
0
,
pic
.
textureWidth
,
stage
.
stageHeight
);
img
.
style
.
display
=
'block'
;
// NetManager.ins.imgUrl((success) => {
...
...
egret/src/shareCtrl.ts
View file @
462aba26
...
...
@@ -21,6 +21,7 @@ class Share2 extends ComponentBase {
start
()
{
this
.
once
(
egret
.
TouchEvent
.
ADDED_TO_STAGE
,
()
=>
{
// console.log("test==shareCtrl");
this
.
height
=
this
.
stage
.
stageHeight
;
},
this
);
...
...
egret/src/shareCtrl3.ts
View file @
462aba26
...
...
@@ -20,6 +20,7 @@ class Share3 extends ComponentBase {
this
[
'avatar'
].
source
=
user
.
avatar
;
this
[
'nameTxt'
].
text
=
getNick
(
user
.
nickname
);
this
.
once
(
egret
.
TouchEvent
.
ADDED_TO_STAGE
,
()
=>
{
// console.log("test==getFriendShare3");
this
.
height
=
this
.
stage
.
stageHeight
;
},
this
);
...
...
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