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
8846d02c
Commit
8846d02c
authored
Mar 24, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
da2a36e3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
helpGroup.tmproject
egret/resource/TextureMerger/helpGroup.tmproject
+1
-1
HelpScratchPanel.ts
egret/src/panels/help/HelpScratchPanel.ts
+10
-8
No files found.
egret/resource/TextureMerger/helpGroup.tmproject
View file @
8846d02c
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"helpGroup","version":5,"files":["../assets/help/help_invite2_text4.png","../assets/help/help_invite2_text3.png","../assets/help/help_invite2_text2.png","../assets/help/help_invite2_text.png","../assets/help/help_invite2_btn2.png","../assets/help/help_invite2_btn.png","../assets/help/help_invite_text.png","../assets/help/help_invite_success_txt.png","../assets/help/help_invite_success_btn.png","../assets/help/help_invite_fail_text4.png","../assets/help/help_invite_fail_text3.png","../assets/help/help_invite_fail_text2.png","../assets/help/help_invite_fail_text1.png","../assets/help/help_invite_fail_btn.png","../assets/help/help_invite_btn1.png","../assets/help/help_invite_bg.png","../assets/help/help_closebtn1.png","../assets/help/help_blood_success_text2.png","../assets/help/help_blood_success_text.png","../assets/help/help_blood_fail_text4.png","../assets/help/help_blood_fail_text3.png","../assets/help/help_blood_fail_text2.png","../assets/help/help_blood_fail_text.png","../assets/help/help_blood_fail_btn.png","../assets/help/help_blood_1_text.png","../assets/help/help_blood_1_btn.png"]}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"helpGroup","version":5,"files":["../assets/help/help_invite2_text4.png","../assets/help/help_invite2_text3.png","../assets/help/help_invite2_text2.png","../assets/help/help_invite2_text.png","../assets/help/help_invite2_btn2.png","../assets/help/help_invite2_btn.png","../assets/help/help_invite_text.png","../assets/help/help_invite_success_txt.png","../assets/help/help_invite_success_btn.png","../assets/help/help_invite_fail_text4.png","../assets/help/help_invite_fail_text3.png","../assets/help/help_invite_fail_text2.png","../assets/help/help_invite_fail_text1.png","../assets/help/help_invite_fail_btn.png","../assets/help/help_invite_btn1.png","../assets/help/help_invite_bg.png","../assets/help/help_closebtn1.png","../assets/help/help_blood_success_text2.png","../assets/help/help_blood_success_text.png","../assets/help/help_blood_fail_text4.png","../assets/help/help_blood_fail_text3.png","../assets/help/help_blood_fail_text2.png","../assets/help/help_blood_fail_text.png","../assets/help/help_blood_fail_btn.png","../assets/help/help_blood_1_text.png","../assets/help/help_blood_1_btn.png","../assets/help/help_card_prize.png","../assets/help/help_light.png","../assets/help/help_card_bg.png"]}
\ No newline at end of file
egret/src/panels/help/HelpScratchPanel.ts
View file @
8846d02c
...
...
@@ -46,6 +46,15 @@ export default class HelpScratchPanel extends Panel {
this
[
'txt_standby'
].
visible
=
true
;
this
[
'helpbtn'
].
visible
=
true
;
this
.
myShape
.
graphics
.
beginFill
(
0xff0000
,
0
);
this
.
myShape
.
graphics
.
drawRect
(
this
[
"prizeImg"
].
x
,
this
[
"prizeImg"
].
y
,
this
[
"prizeImg"
].
width
,
this
[
"prizeImg"
].
height
);
this
.
myShape
.
graphics
.
endFill
();
this
.
addChild
(
this
.
myShape
);
this
[
"prizeImg"
].
mask
=
this
.
myShape
;
this
.
myShape
.
graphics
.
lineStyle
(
130
,
0xff0000
,
1
);
this
.
myShape
.
graphics
.
moveTo
(
this
[
"prizeImg"
].
x
-
30
,
this
[
"prizeImg"
].
y
+
this
[
"prizeImg"
].
height
);
this
.
list
=
await
Promise
.
all
([
loadSvga
(
getResPath
()
+
'resource/assets/svgas/scratch_standby.svga'
),
loadSvga
(
getResPath
()
+
'resource/assets/svgas/scratch_success.svga'
),
...
...
@@ -74,14 +83,7 @@ export default class HelpScratchPanel extends Panel {
this
[
'light'
].
visible
=
true
;
});
this
.
myShape
.
graphics
.
beginFill
(
0xff0000
,
0
);
this
.
myShape
.
graphics
.
drawRect
(
this
[
"prizeImg"
].
x
,
this
[
"prizeImg"
].
y
,
this
[
"prizeImg"
].
width
,
this
[
"prizeImg"
].
height
);
this
.
myShape
.
graphics
.
endFill
();
this
.
addChild
(
this
.
myShape
);
this
[
"prizeImg"
].
mask
=
this
.
myShape
;
this
.
myShape
.
graphics
.
lineStyle
(
130
,
0xff0000
,
1
);
this
.
myShape
.
graphics
.
moveTo
(
this
[
"prizeImg"
].
x
-
30
,
this
[
"prizeImg"
].
y
+
this
[
"prizeImg"
].
height
);
// setTimeout(() => {
...
...
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