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
dcdfb1dc
Commit
dcdfb1dc
authored
Nov 07, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9bbecf40
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
69 additions
and
5 deletions
+69
-5
index.html
egret/index.html
+1
-1
MainBase.ts
egret/libs/new_wx/MainBase.ts
+2
-0
redbagalert红包任务.png
egret/resource/assets/redbagalert/redbagalert红包任务.png
+0
-0
redbombalert文案.png
egret/resource/assets/redbombalert/redbombalert文案.png
+0
-0
redbomb.svga
egret/resource/assets/svgas/redbomb.svga
+0
-0
default.res.json
egret/resource/default.res.json
+9
-0
default.thm.json
egret/resource/default.thm.json
+1
-0
MapSkin.exml
egret/resource/skins/MapSkin.exml
+2
-2
RedBombAlertSkin.exml
egret/resource/skins/RedBombAlertSkin.exml
+7
-0
MapScene.ts
egret/src/mapScene/MapScene.ts
+1
-1
RedBombAlertPanel.ts
egret/src/panels/RedBombAlertPanel.ts
+45
-0
baseinfo.json
mock/happyclear/baseinfo.json
+1
-1
No files found.
egret/index.html
View file @
dcdfb1dc
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
background-color
:
#000
;
background-color
:
#000
;
background-size
:
100%
;
background-size
:
100%
;
background-position
:
top
;
background-position
:
top
;
background-image
:
url("https://yun.duiba.com.cn/db_games/activity/game/15731
07320
/resource/assets/startScene/startscenebg.jpg")
;
background-image
:
url("https://yun.duiba.com.cn/db_games/activity/game/15731
21232
/resource/assets/startScene/startscenebg.jpg")
;
padding
:
0
;
padding
:
0
;
border
:
0
;
border
:
0
;
margin
:
0
;
margin
:
0
;
...
...
egret/libs/new_wx/MainBase.ts
View file @
dcdfb1dc
...
@@ -69,6 +69,7 @@ import HbGame from "../../src/panels/HongbaoRain/HbGame";
...
@@ -69,6 +69,7 @@ import HbGame from "../../src/panels/HongbaoRain/HbGame";
import
getRedBombAward
from
"../../src/getRedBombAward"
;
import
getRedBombAward
from
"../../src/getRedBombAward"
;
import
BombTipsPanel
from
"../../src/panels/BombTipsPanel"
;
import
BombTipsPanel
from
"../../src/panels/BombTipsPanel"
;
import
RedBombRule
from
"../../src/panels/RedBombRule"
;
import
RedBombRule
from
"../../src/panels/RedBombRule"
;
import
RedBombAlertPanel
from
"../../src/panels/RedBombAlertPanel"
;
export
default
class
MainBase
extends
eui
.
UILayer
{
export
default
class
MainBase
extends
eui
.
UILayer
{
constructor
()
{
constructor
()
{
...
@@ -126,6 +127,7 @@ export default class MainBase extends eui.UILayer {
...
@@ -126,6 +127,7 @@ export default class MainBase extends eui.UILayer {
[
'friend'
,
{
cls
:
FriendPanel
}],
[
'friend'
,
{
cls
:
FriendPanel
}],
[
'ad'
,
{
cls
:
ADPanel
}],
[
'ad'
,
{
cls
:
ADPanel
}],
[
'BombTipsPanel'
,
{
cls
:
BombTipsPanel
}],
[
'BombTipsPanel'
,
{
cls
:
BombTipsPanel
}],
[
'RedBombAlert'
,
{
cls
:
RedBombAlertPanel
}],
[
'RedBombRule'
,
{
cls
:
RedBombRule
}],
[
'RedBombRule'
,
{
cls
:
RedBombRule
}],
];
];
...
...
egret/resource/assets/redbagalert/redbagalert红包任务.png
deleted
100644 → 0
View file @
9bbecf40
88.4 KB
egret/resource/assets/redbombalert/redbombalert文案.png
0 → 100644
View file @
dcdfb1dc
11.8 KB
egret/resource/assets/svgas/redbomb.svga
0 → 100644
View file @
dcdfb1dc
File added
egret/resource/default.res.json
View file @
dcdfb1dc
...
@@ -199,6 +199,10 @@
...
@@ -199,6 +199,10 @@
{
{
"keys"
:
"redbagtips_ele_png,redbagtips_ele1_png,redbagtips_ele2_png,redbagtips_ele3_png,redbagtips_light_png,redbagtips按钮_png,redbagtips活动规则_png,redbagtipsbg_png,redbagtips_ele7_png"
,
"keys"
:
"redbagtips_ele_png,redbagtips_ele1_png,redbagtips_ele2_png,redbagtips_ele3_png,redbagtips_light_png,redbagtips按钮_png,redbagtips活动规则_png,redbagtipsbg_png,redbagtips_ele7_png"
,
"name"
:
"redbombtips"
"name"
:
"redbombtips"
},
{
"name"
:
"preload"
,
"keys"
:
"redbombalert文案_png"
}
}
],
],
"resources"
:
[
"resources"
:
[
...
@@ -3578,6 +3582,11 @@
...
@@ -3578,6 +3582,11 @@
"url"
:
"assets/common/common_prop3.png"
,
"url"
:
"assets/common/common_prop3.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"common_prop3_png"
"name"
:
"common_prop3_png"
},
{
"name"
:
"redbombalert文案_png"
,
"type"
:
"image"
,
"url"
:
"assets/redbombalert/redbombalert文案.png"
}
}
]
]
}
}
\ No newline at end of file
egret/resource/default.thm.json
View file @
dcdfb1dc
...
@@ -57,6 +57,7 @@
...
@@ -57,6 +57,7 @@
"resource/skins/RedBagAlertSkin.exml"
,
"resource/skins/RedBagAlertSkin.exml"
,
"resource/skins/RedBombRuleSkin.exml"
,
"resource/skins/RedBombRuleSkin.exml"
,
"resource/skins/RedBombTipsSkin.exml"
,
"resource/skins/RedBombTipsSkin.exml"
,
"resource/skins/RedBombAlertSkin.exml"
,
"resource/skins/ReliveSkin.exml"
,
"resource/skins/ReliveSkin.exml"
,
"resource/skins/RuleSkin.exml"
,
"resource/skins/RuleSkin.exml"
,
"resource/skins/ScratchItemSkin.exml"
,
"resource/skins/ScratchItemSkin.exml"
,
...
...
egret/resource/skins/MapSkin.exml
View file @
dcdfb1dc
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"MapSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Skin
class=
"MapSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Rect
id=
"rectbg"
width=
"750"
height=
"1206"
visible=
"false"
/>
<e:Rect
id=
"rectbg"
width=
"750"
height=
"1206"
/>
<e:Scroller
id=
"scroll"
width=
"750"
height=
"1624"
x=
"0"
y=
"0"
scrollPolicyH=
"off"
scrollPolicyV=
"on"
locked=
"true"
>
<e:Scroller
id=
"scroll"
width=
"750"
height=
"1624"
x=
"0"
y=
"0"
scrollPolicyH=
"off"
scrollPolicyV=
"on"
locked=
"true"
>
<e:Group
id=
"scrollGroup"
>
<e:Group
id=
"scrollGroup"
>
</e:Group>
</e:Group>
...
@@ -150,7 +150,7 @@
...
@@ -150,7 +150,7 @@
<e:Image
id=
"act2Btn"
source=
"map2红包大作战_png"
x=
"157.76"
y=
"159"
visible=
"false"
/>
<e:Image
id=
"act2Btn"
source=
"map2红包大作战_png"
x=
"157.76"
y=
"159"
visible=
"false"
/>
</e:Group>
</e:Group>
<e:Image
id=
"actsShowBtn"
source=
"map2+_png"
x=
"-7.64"
y=
"5.45"
/>
<e:Image
id=
"actsShowBtn"
source=
"map2+_png"
x=
"-7.64"
y=
"5.45"
/>
<e:Image
source=
"maphot_png"
x=
"91.52"
y=
"15.72"
/>
<e:Image
source=
"maphot_png"
x=
"91.52"
y=
"15.72"
touchEnabled=
"false"
/>
</e:Group>
</e:Group>
<e:Group
id=
"settingsx"
x=
"30"
scaleX=
"1.4"
scaleY=
"1.4"
bottom=
"23"
locked=
"true"
>
<e:Group
id=
"settingsx"
x=
"30"
scaleX=
"1.4"
scaleY=
"1.4"
bottom=
"23"
locked=
"true"
>
<e:Group
id=
"settingGroup"
x=
"2"
y=
"6.08"
visible=
"false"
>
<e:Group
id=
"settingGroup"
x=
"2"
y=
"6.08"
visible=
"false"
>
...
...
egret/resource/skins/RedBombAlertSkin.exml
0 → 100644
View file @
dcdfb1dc
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"RedBombAlertSkin"
width=
"750"
height=
"1624"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Group
id=
"group"
x=
"133"
y=
"417"
>
<e:Image
source=
"redbombalert文案_png"
y=
"0"
x=
"86"
/>
<e:Label
id=
"tips"
text=
"今日还有2个红包在其他关卡等你哦~"
y=
"79"
textColor=
"0xffe9c0"
x=
"0"
/>
</e:Group>
</e:Skin>
\ No newline at end of file
egret/src/mapScene/MapScene.ts
View file @
dcdfb1dc
...
@@ -112,10 +112,10 @@ export default class MapScene extends Scene {
...
@@ -112,10 +112,10 @@ export default class MapScene extends Scene {
async
start
(
data
?)
{
async
start
(
data
?)
{
super
.
start
();
super
.
start
();
// PanelCtrl.instance.show('RedBombAlert');
// NetManager.ins.hc_submit(()=>{
// NetManager.ins.hc_submit(()=>{
// // const submitData = DataManager.ins.getData('hc_submit').data;
// // const submitData = DataManager.ins.getData('hc_submit').data;
// // PanelCtrl.instance.show(ModuleTypes.PRIZE_PANEL,{ level:1, option: submitData.option })
// // PanelCtrl.instance.show(ModuleTypes.PRIZE_PANEL,{ level:1, option: submitData.option })
// PanelCtrl.instance.show('failed');
// },1,1,'','')
// },1,1,'','')
this
.
addIcon
();
// 添加Icon
this
.
addIcon
();
// 添加Icon
...
...
egret/src/panels/RedBombAlertPanel.ts
0 → 100644
View file @
dcdfb1dc
import
Panel
from
"../../libs/new_wx/components/Panel"
;
import
PanelCtrl
from
"../../libs/new_wx/ctrls/panelCtrl"
;
import
SceneCtrl
from
"../../libs/new_wx/ctrls/sceneCtrl"
;
import
{
createEffect1MovieClip
}
from
"../effect/createEffect1"
;
import
RedBombRule
from
"./RedBombRule"
;
import
{
getRedBombTimes
}
from
"../getRedBombAward"
;
import
{
loadSvga
}
from
"../loadSvga"
;
import
getResPath
from
"../../libs/new_tc/getResPath"
;
export
default
class
RedBombAlertPanel
extends
Panel
{
async
start
(
data
)
{
super
.
start
();
this
.
showlog
();
const
times
=
getRedBombTimes
();
this
[
'tips'
].
text
=
`今日还有
${
times
-
1
}
个红包在其他关卡等你哦~`
;
if
(
times
<=
1
)
{
this
[
'tips'
].
text
=
`当日红包任务达成,明日再来~`
;
}
this
[
'group'
].
alpha
=
0
;
loadSvga
(
getResPath
()
+
'resource/assets/svgas/redbomb.svga'
).
then
(
async
(
mv
:
any
)
=>
{
this
.
addChild
(
mv
);
mv
.
once
(
egret
.
Event
.
COMPLETE
,
()
=>
{
mv
.
stop
();
egret
.
Tween
.
get
(
this
[
'group'
]).
to
({
alpha
:
1
},
300
);
},
this
);
});
}
showlog
()
{
}
initEvents
()
{
super
.
initEvents
();
// this['btn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTapInvite, this);
}
onTapInvite
()
{
}
protected
get
closeBtns
():
eui
.
Button
[]
{
return
[
this
[
'closeBtn'
]]
}
get
skinKey
()
{
return
'RedBombAlert'
}
}
\ No newline at end of file
mock/happyclear/baseinfo.json
View file @
dcdfb1dc
{
{
"code"
:
"0000000000"
,
"code"
:
"0000000000"
,
"data"
:
1
,
"data"
:
1
0
,
"desc"
:
"OK"
,
"desc"
:
"OK"
,
"success"
:
true
,
"success"
:
true
,
"timestamp"
:
1572923489898
"timestamp"
:
1572923489898
...
...
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