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
1cac815a
Commit
1cac815a
authored
Aug 29, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f380b3f4
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
11 deletions
+13
-11
share2.jpg
egret/resource/assets/share2.jpg
+0
-0
showoff.jpg
egret/resource/assets/showoff.jpg
+0
-0
ShareSkin.exml
egret/resource/skins/ShareSkin.exml
+2
-1
ShowOffSkin.exml
egret/resource/skins/ShowOffSkin.exml
+3
-3
getSharePic.ts
egret/src/getSharePic.ts
+6
-5
BloodPanel.ts
egret/src/panels/BloodPanel.ts
+2
-2
No files found.
egret/resource/assets/share2.jpg
View replaced file @
f380b3f4
View file @
1cac815a
504 KB
|
W:
|
H:
99.3 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/assets/showoff.jpg
View replaced file @
f380b3f4
View file @
1cac815a
144 KB
|
W:
|
H:
51.5 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/skins/ShareSkin.exml
View file @
1cac815a
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"ShareSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Skin
class=
"ShareSkin"
width=
"750"
height=
"1624"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Rect
width=
"750"
height=
"1624"
fillAlpha=
"0.7"
/>
<e:Image
source=
"share2_jpg"
/>
<e:Image
source=
"share2_jpg"
/>
<e:Label
id=
"lvTxt"
text=
"2"
x=
"336.65"
y=
"918.94"
size=
"20"
anchorOffsetX=
"0"
width=
"42.33"
textAlign=
"center"
verticalAlign=
"middle"
textColor=
"0xea2917"
/>
<e:Label
id=
"lvTxt"
text=
"2"
x=
"336.65"
y=
"918.94"
size=
"20"
anchorOffsetX=
"0"
width=
"42.33"
textAlign=
"center"
verticalAlign=
"middle"
textColor=
"0xea2917"
/>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/resource/skins/ShowOffSkin.exml
View file @
1cac815a
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"ShowOffSkin"
width=
"750"
height=
"1
206
"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Skin
class=
"ShowOffSkin"
width=
"750"
height=
"1
624
"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Group
id=
"pic"
x=
"0"
y=
"0"
>
<e:Group
id=
"pic"
x=
"0"
y=
"0"
>
<e:Image
source=
"showoff_jpg"
x=
"0"
y=
"0"
/>
<e:Image
source=
"showoff_jpg"
x=
"0"
y=
"0"
/>
<e:Label
id=
"lvTxt"
text=
"88"
x=
"237.88"
y=
"
284
"
anchorOffsetX=
"0"
width=
"179"
anchorOffsetY=
"0"
bold=
"true"
textColor=
"0xec1f09"
textAlign=
"right"
verticalAlign=
"middle"
size=
"106"
/>
<e:Label
id=
"lvTxt"
text=
"88"
x=
"237.88"
y=
"
308
"
anchorOffsetX=
"0"
width=
"179"
anchorOffsetY=
"0"
bold=
"true"
textColor=
"0xec1f09"
textAlign=
"right"
verticalAlign=
"middle"
size=
"106"
/>
<e:Label
id=
"tipsTxt"
text=
"超过了60%的好友"
y=
"4
03
"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
textColor=
"0xEC1F09"
textAlign=
"center"
verticalAlign=
"middle"
size=
"29"
x=
"259"
/>
<e:Label
id=
"tipsTxt"
text=
"超过了60%的好友"
y=
"4
27
"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
textColor=
"0xEC1F09"
textAlign=
"center"
verticalAlign=
"middle"
size=
"29"
x=
"259"
/>
</e:Group>
</e:Group>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/src/getSharePic.ts
View file @
1cac815a
...
@@ -23,7 +23,7 @@ export default async (parent?: egret.DisplayObjectContainer) => {
...
@@ -23,7 +23,7 @@ export default async (parent?: egret.DisplayObjectContainer) => {
return
getPrintScreenData
(
showoff
,
0
,
0
,
pic
.
textureWidth
,
pic
.
textureHeight
);
return
getPrintScreenData
(
showoff
,
0
,
0
,
pic
.
textureWidth
,
pic
.
textureHeight
);
})
})
}
}
const
img
:
any
=
document
.
getElementById
(
'pic'
);
const
img
:
any
=
document
.
getElementById
(
'pic'
);
img
.
style
.
display
=
'none'
;
img
.
style
.
display
=
'none'
;
export
const
getShareUrl
=
async
(
parent
?:
egret
.
DisplayObjectContainer
)
=>
{
export
const
getShareUrl
=
async
(
parent
?:
egret
.
DisplayObjectContainer
)
=>
{
return
new
Promise
(
async
(
r
)
=>
{
return
new
Promise
(
async
(
r
)
=>
{
...
@@ -32,12 +32,13 @@ export const getShareUrl = async (parent?: egret.DisplayObjectContainer) => {
...
@@ -32,12 +32,13 @@ export const getShareUrl = async (parent?: egret.DisplayObjectContainer) => {
showoff
.
loadSkin
();
showoff
.
loadSkin
();
showoff
.
start
();
showoff
.
start
();
if
(
parent
)
parent
.
addChild
(
showoff
);
if
(
parent
)
parent
.
addChild
(
showoff
);
showoff
.
visible
=
false
;
showoff
.
visible
=
false
;
img
.
style
.
display
=
'block'
;
const
base64
=
getPrintScreenData
(
showoff
,
0
,
0
,
pic
.
textureWidth
,
parent
.
stage
.
stageHeight
);
const
base64
=
getPrintScreenData
(
showoff
,
0
,
0
,
pic
.
textureWidth
,
parent
.
stage
.
stageHeight
);
// NetManager.ins.imgUrl((success) => {
// NetManager.ins.imgUrl((success) => {
// const data = DataManager.ins.getData('imgURL');
// const data = DataManager.ins.getData('imgURL');
img
.
src
=
base64
;
img
.
src
=
base64
;
// r(data);
// r(data);
// }, base64);
// }, base64);
})
})
}
}
\ No newline at end of file
egret/src/panels/BloodPanel.ts
View file @
1cac815a
...
@@ -8,7 +8,7 @@ import wait from "../../libs/new_tc/wait";
...
@@ -8,7 +8,7 @@ import wait from "../../libs/new_tc/wait";
import
{
showShare
}
from
"../shareCtrl"
;
import
{
showShare
}
from
"../shareCtrl"
;
import
{
iswx
}
from
"../iswx"
;
import
{
iswx
}
from
"../iswx"
;
import
getShowOffPic
from
"../getShowOffPic"
;
import
getShowOffPic
from
"../getShowOffPic"
;
import
getSharePic
from
"../getSharePic"
;
import
getSharePic
,
{
getShareUrl
}
from
"../getSharePic"
;
export
default
class
BloodPanel
extends
Panel
{
export
default
class
BloodPanel
extends
Panel
{
start
(
data
)
{
start
(
data
)
{
...
@@ -57,7 +57,7 @@ this['price1Txt'].text = window['price1']
...
@@ -57,7 +57,7 @@ this['price1Txt'].text = window['price1']
onTapInvite
()
{
onTapInvite
()
{
if
(
iswx
())
{
if
(
iswx
())
{
getShare
Pic
(
this
.
stage
);
getShare
Url
(
this
.
stage
);
}
else
}
else
showShare
(
1
);
showShare
(
1
);
NetManager
.
ins
.
clickLog
(
getlogItem
(
4
));
NetManager
.
ins
.
clickLog
(
getlogItem
(
4
));
...
...
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