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
0dd184ed
Commit
0dd184ed
authored
Aug 28, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
7cf5f38b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
8 deletions
+16
-8
ShowOffSkin.exml
egret/resource/skins/ShowOffSkin.exml
+5
-3
getShowOffPic.ts
egret/src/getShowOffPic.ts
+8
-2
MapScene.ts
egret/src/mapScene/MapScene.ts
+3
-3
No files found.
egret/resource/skins/ShowOffSkin.exml
View file @
0dd184ed
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"ShowOffSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Image
source=
"showoff_jpg"
/>
<e:Label
id=
"lvTxt"
text=
"888"
x=
"250"
y=
"284"
anchorOffsetX=
"0"
width=
"179"
anchorOffsetY=
"0"
bold=
"true"
textColor=
"0xec1f09"
textAlign=
"center"
verticalAlign=
"middle"
size=
"106"
/>
<e:Label
id=
"tipsTxt"
text=
"超过了60%的好友"
y=
"403"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
textColor=
"0xEC1F09"
textAlign=
"center"
verticalAlign=
"middle"
size=
"29"
horizontalCenter=
"0"
/>
<e:Group
id=
"pic"
x=
"0"
y=
"0"
>
<e:Image
source=
"showoff_jpg"
x=
"0"
y=
"0"
/>
<e:Label
id=
"lvTxt"
text=
"888"
x=
"250"
y=
"284"
anchorOffsetX=
"0"
width=
"179"
anchorOffsetY=
"0"
bold=
"true"
textColor=
"0xec1f09"
textAlign=
"center"
verticalAlign=
"middle"
size=
"106"
/>
<e:Label
id=
"tipsTxt"
text=
"超过了60%的好友"
y=
"403"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
textColor=
"0xEC1F09"
textAlign=
"center"
verticalAlign=
"middle"
size=
"29"
x=
"259"
/>
</e:Group>
</e:Skin>
\ No newline at end of file
egret/src/getShowOffPic.ts
View file @
0dd184ed
...
...
@@ -4,8 +4,10 @@ import { NetManager } from "../libs/tw/manager/NetManager";
import
{
DataManager
}
from
"../libs/tw/manager/DataManager"
;
import
{
iswx
}
from
"./iswx"
;
import
{
callShareApi
}
from
"./shareCtrl"
;
import
wait
from
"../libs/new_tc/wait"
;
class
ShowOff
extends
ComponentBase
{
pic
;
start
()
{
const
data
=
getHomeData
();
this
[
'lvTxt'
].
text
=
data
.
levels
.
length
;
...
...
@@ -27,7 +29,10 @@ export default async (stage, parent?: egret.DisplayObjectContainer, ) => {
showoff
.
loadSkin
();
showoff
.
start
();
if
(
parent
)
parent
.
addChild
(
showoff
);
const
base64
=
getPrintScreenData
(
showoff
,
0
,
0
,
pic
.
textureWidth
,
stage
.
stageHeight
);
showoff
.
cacheAsBitmap
=
true
;
// stage.once(egret.Event.ENTER_FRAME, () => {
const
base64
=
getPrintScreenData
(
showoff
[
'pic'
],
0
,
0
,
pic
.
textureWidth
,
stage
.
stageHeight
);
NetManager
.
ins
.
imgUrl
((
success
)
=>
{
const
data
=
DataManager
.
ins
.
getData
(
'imgURL'
);
// r(data.data);
...
...
@@ -35,6 +40,7 @@ export default async (stage, parent?: egret.DisplayObjectContainer, ) => {
callShareApi
(
data
.
data
,
1
);
}
},
base64
);
// })
// }, this);
}
egret/src/mapScene/MapScene.ts
View file @
0dd184ed
...
...
@@ -26,9 +26,9 @@ export default class MapScene extends Scene {
async
start
(
data
?)
{
super
.
start
();
//
setTimeout(() => {
//
getShowOffPic(this.stage,this)
// }, 3
000);
setTimeout
(()
=>
{
getShowOffPic
(
this
.
stage
,
this
)
},
2
000
);
this
.
_data
=
data
;
//滚动的背景变黑
this
[
'rectbg'
].
height
=
this
.
stage
.
stageHeight
;
...
...
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