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
84cac247
Commit
84cac247
authored
Apr 01, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加光旋转
parent
d1a3df08
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
4 deletions
+28
-4
Panel.ts
egret/libs/new_wx/components/Panel.ts
+4
-4
combglight.png
egret/resource/assets/common/combglight.png
+0
-0
default.res.json
egret/resource/default.res.json
+9
-0
BloodSkin.exml
egret/resource/skins/BloodSkin.exml
+2
-0
TurntableSkin.exml
egret/resource/skins/TurntableSkin.exml
+2
-0
BloodPanel.ts
egret/src/panels/BloodPanel.ts
+3
-0
Turntable.ts
egret/src/panels/TurntablePanel/Turntable.ts
+8
-0
No files found.
egret/libs/new_wx/components/Panel.ts
View file @
84cac247
...
...
@@ -5,11 +5,11 @@ export default class Panel extends ComponentBase {
public
onShowAnim
(){
console
.
log
(
'panel height'
,
this
.
height
,
'stage height'
,
this
.
stage
.
stageHeight
,
'pane skin'
,
this
.
skinKey
);
let
targetY
:
number
;
if
(
this
.
skinKey
==
'Turntable'
){
targetY
=
0
;
}
else
{
//
if(this.skinKey=='Turntable'){
//
targetY = 0;
//
}else{
targetY
=
this
.
stage
.
stageHeight
/
2
-
this
.
height
/
2
;
}
//
}
egret
.
Tween
.
get
(
this
).
set
({
y
:
-
200
}).
to
({
y
:
targetY
},
500
,
egret
.
Ease
.
quartOut
);
}
...
...
egret/resource/assets/common/combglight.png
0 → 100644
View file @
84cac247
257 KB
egret/resource/default.res.json
View file @
84cac247
...
...
@@ -239,6 +239,10 @@
{
"keys"
:
"help_blood_1_btn_png,help_blood_1_text_png,help_blood_fail_btn_png,help_blood_fail_text_png,help_blood_fail_text2_png,help_blood_fail_text3_png,help_blood_fail_text4_png,help_blood_success_text_png,help_blood_success_text2_png,help_card_bg_png,help_card_prize_png,help_closebtn1_png,help_invite2_btn_png,help_invite2_btn2_png,help_invite2_text_png,help_invite2_text2_png,help_invite2_text3_png,help_invite2_text4_png,help_invite_bg_png,help_invite_btn1_png,help_invite_fail_btn_png,help_invite_fail_text1_png,help_invite_fail_text2_png,help_invite_fail_text3_png,help_invite_fail_text4_png,help_invite_success_btn_png,help_invite_success_txt_png,help_invite_text_png,help_light_png"
,
"name"
:
"helpGroup"
},
{
"name"
:
"preload"
,
"keys"
:
"combglight_png"
}
],
"resources"
:
[
...
...
@@ -5362,6 +5366,11 @@
"url"
:
"assets/help/help_light.png"
,
"type"
:
"image"
,
"name"
:
"help_light_png"
},
{
"name"
:
"combglight_png"
,
"type"
:
"image"
,
"url"
:
"assets/common/combglight.png"
}
]
}
\ No newline at end of file
egret/resource/skins/BloodSkin.exml
View file @
84cac247
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"BloodSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Image
id=
"combglight"
source=
"combglight_png"
y=
"341.32"
anchorOffsetX=
"375"
anchorOffsetY=
"418"
horizontalCenter=
"0"
/>
<e:Image
id=
"combglight1"
source=
"combglight_png"
y=
"341.32"
anchorOffsetX=
"375"
anchorOffsetY=
"418"
horizontalCenter=
"0"
/>
<e:Image
id=
"bg2"
fillMode=
"clip"
y=
"-75.58"
source=
"blooduanm_png"
horizontalCenter=
"0"
scale9Grid=
"140,498,445,80"
/>
<e:Group
id=
"topinfo"
width=
"750"
height=
"50"
y=
"355.57"
horizontalCenter=
"0"
>
<e:Image
source=
"bloodhert_png"
x=
"293.98"
scaleX=
"0.4"
scaleY=
"0.4"
verticalCenter=
"2.5"
/>
...
...
egret/resource/skins/TurntableSkin.exml
View file @
84cac247
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"LoadingSceneSkin"
width=
"750"
height=
"1624"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Group
id=
"container"
y=
"-83.45"
x=
"-3"
/>
<e:Image
id=
"combglight"
source=
"combglight_png"
y=
"612"
anchorOffsetX=
"375"
anchorOffsetY=
"418"
horizontalCenter=
"0"
/>
<e:Image
id=
"combglight1"
source=
"combglight_png"
y=
"612"
anchorOffsetX=
"375"
anchorOffsetY=
"418"
horizontalCenter=
"0"
/>
<e:Image
source=
"turntabletit_png"
horizontalCenter=
"0"
verticalCenter=
"-661"
/>
<e:Image
scaleX=
"1"
scaleY=
"1"
y=
"35.35"
horizontalCenter=
"41.5"
source=
""
/>
<e:Image
id=
"di"
source=
"turntable_paneldi_png"
scaleX=
"1"
scaleY=
"1"
y=
"194"
width=
"761"
horizontalCenter=
"-5.5"
height=
"883"
/>
...
...
egret/src/panels/BloodPanel.ts
View file @
84cac247
...
...
@@ -140,6 +140,9 @@ export default class BloodPanel extends Panel {
initEvents
()
{
super
.
initEvents
();
egret
.
Tween
.
get
(
this
[
'combglight'
],
{
loop
:
true
}).
to
({
rotation
:
360
},
12000
);
egret
.
Tween
.
get
(
this
[
'combglight1'
],
{
loop
:
true
}).
to
({
rotation
:
-
360
},
12000
);
this
[
'inviteBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTapInvite
,
this
);
this
[
'inviteBtn2'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTapInvite
,
this
);
this
[
'buyBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTapBuy
,
this
);
...
...
egret/src/panels/TurntablePanel/Turntable.ts
View file @
84cac247
...
...
@@ -58,11 +58,19 @@ export default class Turntable extends Panel {
this
[
'btnLabel'
].
text
=
""
;
this
.
initUI
();
}
public
onShowAnim
(){
let
targetY
:
number
;
targetY
=
0
;
egret
.
Tween
.
get
(
this
).
set
({
y
:
-
200
}).
to
({
y
:
targetY
},
500
,
egret
.
Ease
.
quartOut
);
}
rulebtn
;
initEvents
()
{
super
.
initEvents
();
egret
.
Tween
.
get
(
this
[
'combglight'
],
{
loop
:
true
}).
to
({
rotation
:
360
},
6000
);
egret
.
Tween
.
get
(
this
[
'combglight1'
],
{
loop
:
true
}).
to
({
rotation
:
-
360
},
6000
);
if
(
this
.
data
.
onceAgain
)
{
// 再抽一次
return
;
}
...
...
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