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
1971dc05
Commit
1971dc05
authored
Dec 21, 2018
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
38c92dce
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
17 additions
and
16 deletions
+17
-16
index.html
egret/index.html
+1
-1
BoomPrizeSkin.exml
egret/resource/skins/BoomPrizeSkin.exml
+4
-4
CashBigPrizeSkin.exml
egret/resource/skins/CashBigPrizeSkin.exml
+4
-4
StartSkin.exml
egret/resource/skins/StartSkin.exml
+3
-3
CashBigPrize.ts
egret/src/panels/CashBigPrize.ts
+2
-1
check.ts
egret/src/startScene/check.ts
+1
-1
createItems.ts
egret/src/startScene/createItems.ts
+1
-1
getPlugOrderStatus.json
mock/json/getPlugOrderStatus.json
+1
-1
No files found.
egret/index.html
View file @
1971dc05
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
<script>
<script>
// localStorage.clear();
// localStorage.clear();
localStorage
.
setItem
(
'currentLv'
,
'Gift2'
);
localStorage
.
setItem
(
'currentLv'
,
'Gift2'
);
localStorage
.
setItem
(
'data'
,
JSON
.
stringify
({
"IceCream"
:
3
,
"Donut"
:
3
,
"Egg"
:
3
,
"Candy2"
:
3
,
"Gift2"
:
3
}))
localStorage
.
setItem
(
'data'
,
JSON
.
stringify
({
"IceCream"
:
3
,
"Donut"
:
3
,
"Egg"
:
3
,
"Candy2"
:
3
,
"Gift2"
:
2
}))
window
[
'development'
]
=
true
;
window
[
'development'
]
=
true
;
var
gameId
=
1
;
var
gameId
=
1
;
var
CFG
=
{
var
CFG
=
{
...
...
egret/resource/skins/BoomPrizeSkin.exml
View file @
1971dc05
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"BoomPrizeSkin"
width=
"750"
height=
"1222"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Skin
class=
"BoomPrizeSkin"
width=
"750"
height=
"1222"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Image
source=
"boomprizebg_png"
y=
"
147"
horizontalCenter=
"0
"
/>
<e:Image
source=
"boomprizebg_png"
y=
"
66.69"
horizontalCenter=
"0.5
"
/>
<e:Button
id=
"closeBtn"
label=
""
y=
"
315
"
right=
"53"
>
<e:Button
id=
"closeBtn"
label=
""
y=
"
234.69
"
right=
"53"
>
<e:skinName>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"closeBtn_png"
source.down=
"closeBtn_png"
source.disabled=
"closeBtn_png"
/>
<e:Image
width=
"100%"
height=
"100%"
source=
"closeBtn_png"
source.down=
"closeBtn_png"
source.disabled=
"closeBtn_png"
/>
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
</e:Skin>
</e:Skin>
</e:skinName>
</e:skinName>
</e:Button>
</e:Button>
<e:Button
id=
"useBtn"
label=
""
y=
"
845"
horizontalCenter=
"0
"
>
<e:Button
id=
"useBtn"
label=
""
y=
"
764.69"
horizontalCenter=
"0.5
"
>
<e:skinName>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"getbtn_png"
source.down=
"getbtn_png"
source.disabled=
"getbtn_png"
/>
<e:Image
width=
"100%"
height=
"100%"
source=
"getbtn_png"
source.down=
"getbtn_png"
source.disabled=
"getbtn_png"
/>
...
@@ -18,5 +18,5 @@
...
@@ -18,5 +18,5 @@
</e:skinName>
</e:skinName>
</e:Button>
</e:Button>
<e:Label
text=
"{data.name}"
y=
"810"
horizontalCenter=
"0"
width=
"508"
textAlign=
"center"
size=
"28"
visible=
"false"
/>
<e:Label
text=
"{data.name}"
y=
"810"
horizontalCenter=
"0"
width=
"508"
textAlign=
"center"
size=
"28"
visible=
"false"
/>
<e:Image
id=
"img"
y=
"
567.12"
horizontalCenter=
"3
.5"
touchEnabled=
"true"
source=
"{data.img}"
/>
<e:Image
id=
"img"
y=
"
486.81"
horizontalCenter=
"7
.5"
touchEnabled=
"true"
source=
"{data.img}"
/>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/resource/skins/CashBigPrizeSkin.exml
View file @
1971dc05
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"CashBigPrizeSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Skin
class=
"CashBigPrizeSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Image
source=
"cashbigprizebg_png"
x=
"0"
y=
"-
38
"
/>
<e:Image
source=
"cashbigprizebg_png"
x=
"0"
y=
"-
94
"
/>
<e:Button
id=
"closeBtn"
label=
""
y=
"2
64
"
right=
"55"
>
<e:Button
id=
"closeBtn"
label=
""
y=
"2
08
"
right=
"55"
>
<e:skinName>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Skin
states=
"up,down,disabled"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"closeBtn_png"
source.down=
"closeBtn_png"
source.disabled=
"closeBtn_png"
/>
<e:Image
width=
"100%"
height=
"100%"
source=
"closeBtn_png"
source.down=
"closeBtn_png"
source.disabled=
"closeBtn_png"
/>
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
</e:Skin>
</e:Skin>
</e:skinName>
</e:skinName>
</e:Button>
</e:Button>
<e:Image
id=
"useBtn"
source=
"getbtn2_png"
y=
"8
89
"
horizontalCenter=
"0"
/>
<e:Image
id=
"useBtn"
source=
"getbtn2_png"
y=
"8
33
"
horizontalCenter=
"0"
/>
<e:Label
text=
"{data.name}"
y=
"842"
horizontalCenter=
"0"
width=
"508"
textAlign=
"center"
size=
"28"
visible=
"false"
/>
<e:Label
text=
"{data.name}"
y=
"842"
horizontalCenter=
"0"
width=
"508"
textAlign=
"center"
size=
"28"
visible=
"false"
/>
<e:Image
id=
"img"
y=
"5
58"
horizontalCenter=
"0
"
touchEnabled=
"true"
source=
"{data.img}"
/>
<e:Image
id=
"img"
y=
"5
02"
horizontalCenter=
"11.5
"
touchEnabled=
"true"
source=
"{data.img}"
/>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/resource/skins/StartSkin.exml
View file @
1971dc05
...
@@ -95,7 +95,7 @@
...
@@ -95,7 +95,7 @@
<e:Image
id=
"guild2pic"
source=
"垃圾桶_png"
x=
"15.03"
y=
"1230.06"
touchEnabled=
"false"
visible=
"false"
/>
<e:Image
id=
"guild2pic"
source=
"垃圾桶_png"
x=
"15.03"
y=
"1230.06"
touchEnabled=
"false"
visible=
"false"
/>
<e:Label
id=
"tips"
text=
"点击左右按钮控制跷跷板的方向"
width=
"100%"
size=
"26"
y=
"1122.7"
x=
"0"
textColor=
"0xffffff"
verticalAlign=
"middle"
textAlign=
"center"
visible=
"false"
/>
<e:Label
id=
"tips"
text=
"点击左右按钮控制跷跷板的方向"
width=
"100%"
size=
"26"
y=
"1122.7"
x=
"0"
textColor=
"0xffffff"
verticalAlign=
"middle"
textAlign=
"center"
visible=
"false"
/>
<e:Label
id=
"tips2"
text=
"炸弹放进垃圾桶就安全了哦~"
size=
"26"
y=
"1165.7"
x=
"21"
textColor=
"0xFFFFFF"
verticalAlign=
"middle"
textAlign=
"left"
visible=
"false"
/>
<e:Label
id=
"tips2"
text=
"炸弹放进垃圾桶就安全了哦~"
size=
"26"
y=
"1165.7"
x=
"21"
textColor=
"0xFFFFFF"
verticalAlign=
"middle"
textAlign=
"left"
visible=
"false"
/>
<e:Button
id=
"getitBtn"
label=
""
x=
"
497"
y=
"1149.03
"
visible=
"false"
>
<e:Button
id=
"getitBtn"
label=
""
x=
"
304.5"
y=
"1237.5
"
visible=
"false"
>
<e:skinName>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"getit_png"
source.down=
"getit_png"
source.disabled=
"getit_png"
/>
<e:Image
width=
"100%"
height=
"100%"
source=
"getit_png"
source.down=
"getit_png"
source.disabled=
"getit_png"
/>
...
@@ -113,8 +113,8 @@
...
@@ -113,8 +113,8 @@
</e:skinName>
</e:skinName>
</e:Button>
</e:Button>
<e:Label
id=
"countTxt"
text=
""
width=
"100%"
verticalAlign=
"middle"
textAlign=
"center"
size=
"26"
y=
"1458.67"
textColor=
"0xffd434"
/>
<e:Label
id=
"countTxt"
text=
""
width=
"100%"
verticalAlign=
"middle"
textAlign=
"center"
size=
"26"
y=
"1458.67"
textColor=
"0xffd434"
/>
<e:Image
id=
"toast_failed"
source=
"toast_failed_png"
y=
"1077"
x=
"375.5"
alpha=
"0"
anchorOffsetX=
"256.5"
anchorOffsetY=
"86"
touchEnabled=
"false"
/>
<e:Image
id=
"toast_failed"
source=
"toast_failed_png"
y=
"1077"
x=
"375.5"
alpha=
"0"
anchorOffsetX=
"256.5"
anchorOffsetY=
"86"
touchEnabled=
"false"
locked=
"true"
/>
<e:Image
id=
"toast_success"
source=
"toast_success_png"
y=
"1101"
x=
"375.5"
alpha=
"0"
anchorOffsetX=
"254.5"
anchorOffsetY=
"99"
touchEnabled=
"false"
/>
<e:Image
id=
"toast_success"
source=
"toast_success_png"
y=
"1101"
x=
"375.5"
alpha=
"0"
anchorOffsetX=
"254.5"
anchorOffsetY=
"99"
touchEnabled=
"false"
locked=
"true"
/>
</e:Group>
</e:Group>
<e:Button
id=
"recordBtn"
label=
"奖品记录"
y=
"16"
scaleX=
"1"
scaleY=
"1"
right=
"23"
visible=
"false"
>
<e:Button
id=
"recordBtn"
label=
"奖品记录"
y=
"16"
scaleX=
"1"
scaleY=
"1"
right=
"23"
visible=
"false"
>
<e:skinName>
<e:skinName>
...
...
egret/src/panels/CashBigPrize.ts
View file @
1971dc05
...
@@ -3,6 +3,7 @@ import BoomPrizePanel from "./BoomPrizePanel";
...
@@ -3,6 +3,7 @@ import BoomPrizePanel from "./BoomPrizePanel";
export
default
class
CashBigPrizePanel
extends
BoomPrizePanel
{
export
default
class
CashBigPrizePanel
extends
BoomPrizePanel
{
get
picBigWidth
()
{
return
510
+
30
+
2
0
};
get
picBigWidth
()
{
return
30
0
};
get
skinKey
()
{
return
'CashBigPrize'
}
get
skinKey
()
{
return
'CashBigPrize'
}
get
bigPicRatio
()
{
return
300
/
300
}
}
}
\ No newline at end of file
egret/src/startScene/check.ts
View file @
1971dc05
...
@@ -115,7 +115,7 @@ const check = (_this: StartScene) => {
...
@@ -115,7 +115,7 @@ const check = (_this: StartScene) => {
plugDoJoin
(()
=>
{
plugDoJoin
(()
=>
{
Loading
.
instace
.
hide
();
Loading
.
instace
.
hide
();
if
(
plugIsWinning
())
{
if
(
plugIsWinning
())
{
if
(
DataManager
.
ins
.
getPlugOrderStatusData
.
lottery
.
type
==
LotteryType
.
OBJECT
)
if
(
DataManager
.
ins
.
getPlugOrderStatusData
.
lottery
.
type
==
LotteryType
.
ALIPAY
)
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
CashBigPrize
);
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
CashBigPrize
);
else
else
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
CashPrizePanel
);
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
CashPrizePanel
);
...
...
egret/src/startScene/createItems.ts
View file @
1971dc05
...
@@ -24,7 +24,7 @@ const ontick = () => {
...
@@ -24,7 +24,7 @@ const ontick = () => {
};
};
if
(
pastFrame
>=
frameInterval
)
pastFrame
=
0
;
if
(
pastFrame
>=
frameInterval
)
pastFrame
=
0
;
let
i
=
Math
.
floor
(
Math
.
random
()
*
types
.
length
);
let
i
=
Math
.
floor
(
Math
.
random
()
*
types
.
length
);
if
(
tags
==
0
)
{
i
=
1
;
tags
=
1
;
frameInterval
=
1
2
0
;
}
if
(
tags
==
0
)
{
i
=
1
;
tags
=
1
;
frameInterval
=
1
8
0
;
}
else
if
(
tags
==
1
)
{
i
=
0
;
tags
=
2
;
}
else
if
(
tags
==
1
)
{
i
=
0
;
tags
=
2
;
}
else
if
(
tags
==
2
)
{
else
if
(
tags
==
2
)
{
frameInterval
=
60
;
frameInterval
=
60
;
...
...
mock/json/getPlugOrderStatus.json
View file @
1971dc05
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
"st_info_dpm_img"
:
"{
\"
dpm
\"
:
\"
1.4.1.0
\"
,
\"
consumerId
\"
:1,
\"
domain
\"
:
\"
//activity.m.duiba.com.cn
\"
,
\"
appId
\"
:1,
\"
dcm
\"
:
\"
104.29945.0.0
\"
}"
,
"st_info_dpm_img"
:
"{
\"
dpm
\"
:
\"
1.4.1.0
\"
,
\"
consumerId
\"
:1,
\"
domain
\"
:
\"
//activity.m.duiba.com.cn
\"
,
\"
appId
\"
:1,
\"
dcm
\"
:
\"
104.29945.0.0
\"
}"
,
"tip"
:
"一句话描述"
,
"tip"
:
"一句话描述"
,
"title"
:
"腾讯视频会员8.8折"
,
"title"
:
"腾讯视频会员8.8折"
,
"type"
:
"
luck
y"
,
"type"
:
"
alipa
y"
,
"useBtnText"
:
"马上使用"
,
"useBtnText"
:
"马上使用"
,
"validate"
:
"2019-12-31"
"validate"
:
"2019-12-31"
},
},
...
...
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