Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
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
崔立强
db-game-template
Commits
d53c65b4
Commit
d53c65b4
authored
Sep 25, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
dbd89a79
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
Start1Skin.exml
egret/resource/skins/Start1Skin.exml
+5
-5
StartScene1.ts
egret/src/start1/StartScene1.ts
+9
-0
No files found.
egret/resource/skins/Start1Skin.exml
View file @
d53c65b4
...
...
@@ -2,11 +2,11 @@
<e:Skin
class=
"Start1Skin"
width=
"750"
height=
"1624"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<w:Config
id=
"16d391cc18c"
/>
<e:Scroller
id=
"scroll"
width=
"750"
height=
"1
206
"
>
<e:Scroller
id=
"scroll"
width=
"750"
height=
"1
624
"
>
<e:Group>
<e:Group
x=
"0"
y=
"0"
height=
"1539"
width=
"750"
scaleX=
"1"
scaleY=
"1"
>
<e:Image
source=
"startscenebg_jpg"
x=
"0"
y=
"0"
/>
<e:Button
id=
"btn0"
label=
""
x=
"
93.95"
y=
"417.06
"
>
<e:Button
id=
"btn0"
label=
""
x=
"
209.95"
y=
"441.06"
anchorOffsetX=
"116"
anchorOffsetY=
"24
"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"btn_png"
source.down=
"btn_png"
source.disabled=
"btn_png"
/>
...
...
@@ -14,7 +14,7 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Button
id=
"btn1"
label=
""
x=
"
424.78"
y=
"730.42
"
>
<e:Button
id=
"btn1"
label=
""
x=
"
536.78"
y=
"758.42"
anchorOffsetX=
"112"
anchorOffsetY=
"28
"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"btn_png"
source.down=
"btn_png"
source.disabled=
"btn_png"
/>
...
...
@@ -22,7 +22,7 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Button
id=
"btn2"
label=
""
x=
"
93.95"
y=
"1055.23
"
>
<e:Button
id=
"btn2"
label=
""
x=
"
207.95"
y=
"1087.23"
anchorOffsetX=
"114"
anchorOffsetY=
"32
"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"btn_png"
source.down=
"btn_png"
source.disabled=
"btn_png"
/>
...
...
@@ -30,7 +30,7 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Button
id=
"btn3"
label=
""
x=
"
430.22"
y=
"1368.29
"
>
<e:Button
id=
"btn3"
label=
""
x=
"
538.22"
y=
"1394.29"
anchorOffsetX=
"108"
anchorOffsetY=
"26
"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"btn2_png"
source.down=
"btn2_png"
source.disabled=
"btn2_png"
/>
...
...
egret/src/start1/StartScene1.ts
View file @
d53c65b4
...
...
@@ -12,6 +12,15 @@ export default class Start1Scene extends Scene {
this
[
'btn1'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap1
,
this
);
this
[
'btn2'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap2
,
this
);
this
[
'btn3'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap3
,
this
);
[
this
[
'btn0'
],
this
[
'btn1'
],
this
[
'btn2'
],
this
[
'btn3'
]].
forEach
(
btn
=>
{
egret
.
Tween
.
get
(
btn
,{
loop
:
true
})
.
to
({
scaleX
:
1.1
,
scaleY
:
1.1
},
200
)
.
to
({
scaleX
:
1
,
scaleY
:
1
},
200
)
.
to
({
scaleX
:
1.1
,
scaleY
:
1.1
},
200
)
.
to
({
scaleX
:
1
,
scaleY
:
1
},
200
)
.
wait
(
1000
);
});
}
onTap0
(){
...
...
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