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
7dce9413
Commit
7dce9413
authored
Aug 30, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
0e180872
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
4 deletions
+30
-4
NoPrizeSkin.exml
egret/resource/skins/NoPrizeSkin.exml
+1
-1
Prize2Skin.exml
egret/resource/skins/Prize2Skin.exml
+2
-2
PrizeSkin.exml
egret/resource/skins/PrizeSkin.exml
+1
-1
soundCtrl2.ts
egret/src/soundCtrl2.ts
+26
-0
No files found.
egret/resource/skins/NoPrizeSkin.exml
View file @
7dce9413
...
...
@@ -2,7 +2,7 @@
<e:Skin
class=
"NoPrizeSkin"
width=
"750"
height=
"1000"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Image
id=
"light"
source=
"common_prizelight_png"
x=
"374.19"
y=
"329.51"
anchorOffsetX=
"375.76"
anchorOffsetY=
"327.27"
/>
<e:Image
y=
"109.55"
source=
"擦肩而过弹窗 _png"
horizontalCenter=
"0.5"
/>
<e:Button
id=
"closeBtn"
label=
""
x=
"617"
y=
"
323
"
>
<e:Button
id=
"closeBtn"
label=
""
x=
"617"
y=
"
279
"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"closeCommonBtn_png"
source.down=
"closeCommonBtn_png"
source.disabled=
"closeCommonBtn_png"
/>
...
...
egret/resource/skins/Prize2Skin.exml
View file @
7dce9413
...
...
@@ -2,8 +2,8 @@
<e:Skin
class=
"Prize2Skin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<w:Config
id=
"169005181d0"
/>
<e:Image
id=
"light"
source=
"common_prizelight_png"
x=
"374.19"
y=
"329.51"
anchorOffsetX=
"375.76"
anchorOffsetY=
"327.27"
/>
<e:Image
source=
"prizePanelbg_png"
y=
"1
42.96"
horizontalCenter=
"0
"
/>
<e:Button
id=
"closeBtn"
label=
""
x=
"6
08"
y=
"333
"
>
<e:Image
source=
"prizePanelbg_png"
y=
"1
34.96"
horizontalCenter=
"0.5
"
/>
<e:Button
id=
"closeBtn"
label=
""
x=
"6
16"
y=
"307
"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"closeCommonBtn_png"
source.down=
"closeCommonBtn_png"
source.disabled=
"closeCommonBtn_png"
/>
...
...
egret/resource/skins/PrizeSkin.exml
View file @
7dce9413
...
...
@@ -3,7 +3,7 @@
<w:Config
id=
"169005181d0"
/>
<e:Image
id=
"light"
source=
"common_prizelight_png"
x=
"374.19"
y=
"329.51"
anchorOffsetX=
"375.76"
anchorOffsetY=
"327.27"
/>
<e:Image
source=
"prizePanelbg_png"
y=
"136.9"
horizontalCenter=
"0.5"
/>
<e:Button
id=
"closeBtn"
label=
""
x=
"6
08"
y=
"333
"
>
<e:Button
id=
"closeBtn"
label=
""
x=
"6
18"
y=
"311
"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"closeCommonBtn_png"
source.down=
"closeCommonBtn_png"
source.disabled=
"closeCommonBtn_png"
/>
...
...
egret/src/soundCtrl2.ts
0 → 100644
View file @
7dce9413
let
bgOn
=
true
;
let
bgChannel
:
egret
.
SoundChannel
;
let
loading
=
false
;
export
const
toggleGameBg
=
()
=>
{
bgOn
=
!
bgOn
;
if
(
bgChannel
)
{
if
(
!
bgOn
)
{
bgChannel
.
stop
();
bgChannel
=
null
;
}
}
else
{
if
(
bgOn
)
{
playGameBg
();
}
}
}
export
const
playGameBg
=
async
()
=>
{
if
(
bgChannel
)
return
;
if
(
loading
)
return
;
loading
=
true
;
const
bg
=
await
RES
.
getResAsync
(
'playBg_mp3'
);
bgChannel
=
bg
.
play
();
loading
=
false
;
}
\ No newline at end of file
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