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
0272412f
Commit
0272412f
authored
Nov 06, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
664b3826
Changes
16
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
122 additions
and
3 deletions
+122
-3
MainBase.ts
egret/libs/new_wx/MainBase.ts
+2
-0
panelCtrl.ts
egret/libs/new_wx/ctrls/panelCtrl.ts
+1
-1
redbagtips_ele.png
egret/resource/assets/redbombtips/redbagtips_ele.png
+0
-0
redbagtips_ele1.png
egret/resource/assets/redbombtips/redbagtips_ele1.png
+0
-0
redbagtips_ele2.png
egret/resource/assets/redbombtips/redbagtips_ele2.png
+0
-0
redbagtips_ele3.png
egret/resource/assets/redbombtips/redbagtips_ele3.png
+0
-0
redbagtips_ele7.png
egret/resource/assets/redbombtips/redbagtips_ele7.png
+0
-0
redbagtips_light.png
egret/resource/assets/redbombtips/redbagtips_light.png
+0
-0
redbagtipsbg.png
egret/resource/assets/redbombtips/redbagtipsbg.png
+0
-0
redbagtips按钮.png
egret/resource/assets/redbombtips/redbagtips按钮.png
+0
-0
redbagtips活动规则.png
egret/resource/assets/redbombtips/redbagtips活动规则.png
+0
-0
default.res.json
egret/resource/default.res.json
+49
-0
default.thm.json
egret/resource/default.thm.json
+1
-0
RedBombTipsSkin.exml
egret/resource/skins/RedBombTipsSkin.exml
+17
-1
MapScene.ts
egret/src/mapScene/MapScene.ts
+1
-1
BombTipsPanel.ts
egret/src/panels/BombTipsPanel.ts
+51
-0
No files found.
egret/libs/new_wx/MainBase.ts
View file @
0272412f
...
@@ -67,6 +67,7 @@ import HbPrize from "../../src/panels/HongbaoRain/HbPrize";
...
@@ -67,6 +67,7 @@ import HbPrize from "../../src/panels/HongbaoRain/HbPrize";
import
HbNoPrize
from
"../../src/panels/HongbaoRain/HbNoPrize"
;
import
HbNoPrize
from
"../../src/panels/HongbaoRain/HbNoPrize"
;
import
HbGame
from
"../../src/panels/HongbaoRain/HbGame"
;
import
HbGame
from
"../../src/panels/HongbaoRain/HbGame"
;
import
getRedBombAward
from
"../../src/getRedBombAward"
;
import
getRedBombAward
from
"../../src/getRedBombAward"
;
import
BombTipsPanel
from
"../../src/panels/BombTipsPanel"
;
export
default
class
MainBase
extends
eui
.
UILayer
{
export
default
class
MainBase
extends
eui
.
UILayer
{
constructor
()
{
constructor
()
{
...
@@ -123,6 +124,7 @@ export default class MainBase extends eui.UILayer {
...
@@ -123,6 +124,7 @@ export default class MainBase extends eui.UILayer {
[
'HbGame'
,
{
cls
:
HbGame
}],
[
'HbGame'
,
{
cls
:
HbGame
}],
[
'friend'
,
{
cls
:
FriendPanel
}],
[
'friend'
,
{
cls
:
FriendPanel
}],
[
'ad'
,
{
cls
:
ADPanel
}],
[
'ad'
,
{
cls
:
ADPanel
}],
[
'BombTipsPanel'
,
{
cls
:
BombTipsPanel
}],
];
];
const
scenes
=
[
const
scenes
=
[
...
...
egret/libs/new_wx/ctrls/panelCtrl.ts
View file @
0272412f
...
@@ -33,7 +33,7 @@ export default class PanelCtrl {
...
@@ -33,7 +33,7 @@ export default class PanelCtrl {
}
}
private
_parent
:
egret
.
Sprite
;
private
_parent
:
egret
.
Sprite
;
private
_mask
:
egret
.
Sprite
;
_mask
:
egret
.
Sprite
;
static
_instance
:
PanelCtrl
;
static
_instance
:
PanelCtrl
;
static
get
instance
()
{
static
get
instance
()
{
return
PanelCtrl
.
_instance
||
(
PanelCtrl
.
_instance
=
new
PanelCtrl
())
return
PanelCtrl
.
_instance
||
(
PanelCtrl
.
_instance
=
new
PanelCtrl
())
...
...
egret/resource/assets/redb
ag
tips/redbagtips_ele.png
→
egret/resource/assets/redb
omb
tips/redbagtips_ele.png
View file @
0272412f
File moved
egret/resource/assets/redb
ag
tips/redbagtips_ele1.png
→
egret/resource/assets/redb
omb
tips/redbagtips_ele1.png
View file @
0272412f
File moved
egret/resource/assets/redb
ag
tips/redbagtips_ele2.png
→
egret/resource/assets/redb
omb
tips/redbagtips_ele2.png
View file @
0272412f
File moved
egret/resource/assets/redb
ag
tips/redbagtips_ele3.png
→
egret/resource/assets/redb
omb
tips/redbagtips_ele3.png
View file @
0272412f
File moved
egret/resource/assets/redbombtips/redbagtips_ele7.png
0 → 100644
View file @
0272412f
121 KB
egret/resource/assets/redb
ag
tips/redbagtips_light.png
→
egret/resource/assets/redb
omb
tips/redbagtips_light.png
View file @
0272412f
File moved
egret/resource/assets/redbombtips/redbagtipsbg.png
0 → 100644
View file @
0272412f
34.8 KB
egret/resource/assets/redb
ag
tips/redbagtips按钮.png
→
egret/resource/assets/redb
omb
tips/redbagtips按钮.png
View file @
0272412f
File moved
egret/resource/assets/redb
ag
tips/redbagtips活动规则.png
→
egret/resource/assets/redb
omb
tips/redbagtips活动规则.png
View file @
0272412f
File moved
egret/resource/default.res.json
View file @
0272412f
...
@@ -195,6 +195,10 @@
...
@@ -195,6 +195,10 @@
{
{
"keys"
:
"hbRule_bg_png"
,
"keys"
:
"hbRule_bg_png"
,
"name"
:
"hbrule"
"name"
:
"hbrule"
},
{
"name"
:
"preload"
,
"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"
}
}
],
],
"resources"
:
[
"resources"
:
[
...
@@ -3282,6 +3286,51 @@
...
@@ -3282,6 +3286,51 @@
"url"
:
"assets/hbCutTime/hbCutTime_btn_null.png"
,
"url"
:
"assets/hbCutTime/hbCutTime_btn_null.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"hbCutTime_btn_null_png"
"name"
:
"hbCutTime_btn_null_png"
},
{
"name"
:
"redbagtips_ele_png"
,
"type"
:
"image"
,
"url"
:
"assets/redbombtips/redbagtips_ele.png"
},
{
"name"
:
"redbagtips_ele1_png"
,
"type"
:
"image"
,
"url"
:
"assets/redbombtips/redbagtips_ele1.png"
},
{
"name"
:
"redbagtips_ele2_png"
,
"type"
:
"image"
,
"url"
:
"assets/redbombtips/redbagtips_ele2.png"
},
{
"name"
:
"redbagtips_ele3_png"
,
"type"
:
"image"
,
"url"
:
"assets/redbombtips/redbagtips_ele3.png"
},
{
"name"
:
"redbagtips_light_png"
,
"type"
:
"image"
,
"url"
:
"assets/redbombtips/redbagtips_light.png"
},
{
"name"
:
"redbagtips按钮_png"
,
"type"
:
"image"
,
"url"
:
"assets/redbombtips/redbagtips按钮.png"
},
{
"name"
:
"redbagtips活动规则_png"
,
"type"
:
"image"
,
"url"
:
"assets/redbombtips/redbagtips活动规则.png"
},
{
"name"
:
"redbagtipsbg_png"
,
"type"
:
"image"
,
"url"
:
"assets/redbombtips/redbagtipsbg.png"
},
{
"name"
:
"redbagtips_ele7_png"
,
"type"
:
"image"
,
"url"
:
"assets/redbombtips/redbagtips_ele7.png"
}
}
]
]
}
}
\ No newline at end of file
egret/resource/default.thm.json
View file @
0272412f
...
@@ -78,6 +78,7 @@
...
@@ -78,6 +78,7 @@
"resource/skins/TaskSkin.exml"
,
"resource/skins/TaskSkin.exml"
,
"resource/skins/Toast2Skin.exml"
,
"resource/skins/Toast2Skin.exml"
,
"resource/skins/ToastSkin.exml"
,
"resource/skins/ToastSkin.exml"
,
"resource/skins/RedBombTipsSkin.exml"
,
"resource/skins/TurnRuleSkin.exml"
,
"resource/skins/TurnRuleSkin.exml"
,
"resource/skins/TurntableNoPrizeSkin.exml"
,
"resource/skins/TurntableNoPrizeSkin.exml"
,
"resource/skins/TurntablePrize2Skin.exml"
,
"resource/skins/TurntablePrize2Skin.exml"
,
...
...
egret/resource/skins/RedBombTipsSkin.exml
View file @
0272412f
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"RedBombTipsSkin"
width=
"400"
height=
"300"
xmlns:e=
"http://ns.egret.com/eui"
>
<e:Skin
class=
"RedBombTipsSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Image
id=
"light"
source=
"redbagtips_light_png"
y=
"459"
horizontalCenter=
"0.5"
anchorOffsetX=
"348"
anchorOffsetY=
"358"
/>
<e:Image
id=
"bg"
source=
"redbagtipsbg_png"
y=
"32"
horizontalCenter=
"0"
/>
<e:Image
id=
"ele1"
source=
"redbagtips_ele3_png"
x=
"574"
y=
"332"
/>
<e:Image
id=
"ele2"
source=
"redbagtips_ele2_png"
x=
"554"
y=
"264"
/>
<e:Image
id=
"ele3"
source=
"redbagtips_ele1_png"
x=
"160"
y=
"56"
/>
<e:Image
id=
"ele4"
source=
"redbagtips_ele_png"
x=
"134"
y=
"490"
/>
<e:Image
id=
"redbag"
source=
"redbagtips_ele7_png"
y=
"432"
x=
"376"
anchorOffsetX=
"192"
anchorOffsetY=
"108"
/>
<e:Image
id=
"rulebtn"
source=
"redbagtips活动规则_png"
y=
"814"
horizontalCenter=
"0.5"
/>
<e:Button
id=
"btn"
label=
""
y=
"692"
horizontalCenter=
"0"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"redbagtips按钮_png"
source.down=
"redbagtips按钮_png"
source.disabled=
"redbagtips按钮_png"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
</e:Skin>
</e:skinName>
</e:Button>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/src/mapScene/MapScene.ts
View file @
0272412f
...
@@ -544,7 +544,7 @@ export default class MapScene extends Scene {
...
@@ -544,7 +544,7 @@ export default class MapScene extends Scene {
localStorage
.
setItem
(
'activityguide'
,
'1'
);
localStorage
.
setItem
(
'activityguide'
,
'1'
);
}
}
onTap_act2btn
()
{
onTap_act2btn
()
{
PanelCtrl
.
instance
.
show
(
"
HbCutTime
"
);
PanelCtrl
.
instance
.
show
(
"
BombTipsPanel
"
);
this
.
onTap_actsShowBtn
();
this
.
onTap_actsShowBtn
();
}
}
...
...
egret/src/panels/BombTipsPanel.ts
0 → 100644
View file @
0272412f
import
Panel
from
"../../libs/new_wx/components/Panel"
;
import
PanelCtrl
from
"../../libs/new_wx/ctrls/panelCtrl"
;
export
default
class
BombTipsPanel
extends
Panel
{
start
(
data
)
{
super
.
start
();
this
.
showlog
();
egret
.
Tween
.
get
(
this
[
'light'
],
{
loop
:
true
}).
to
({
rotation
:
360
},
8000
);
egret
.
Tween
.
get
(
this
[
'ele2'
],
{
loop
:
true
}).
to
({
x
:
this
[
'ele2'
].
x
+
30
,
y
:
this
[
'ele2'
].
y
-
30
},
1000
)
.
to
({
x
:
this
[
'ele2'
].
x
,
y
:
this
[
'ele2'
].
y
},
1000
);
egret
.
Tween
.
get
(
this
[
'ele1'
],
{
loop
:
true
}).
to
({
x
:
this
[
'ele1'
].
x
+
30
,
y
:
this
[
'ele1'
].
y
-
30
},
1000
)
.
to
({
x
:
this
[
'ele1'
].
x
,
y
:
this
[
'ele1'
].
y
},
1000
);
egret
.
Tween
.
get
(
this
[
'ele3'
],
{
loop
:
true
}).
to
({
x
:
this
[
'ele3'
].
x
-
30
,
y
:
this
[
'ele3'
].
y
-
30
},
1000
)
.
to
({
x
:
this
[
'ele3'
].
x
,
y
:
this
[
'ele3'
].
y
},
1000
);
egret
.
Tween
.
get
(
this
[
'ele4'
],
{
loop
:
true
}).
to
({
x
:
this
[
'ele4'
].
x
-
30
,
y
:
this
[
'ele4'
].
y
+
30
},
1000
)
.
to
({
x
:
this
[
'ele4'
].
x
,
y
:
this
[
'ele4'
].
y
},
1000
);
}
showlog
()
{
}
initEvents
()
{
super
.
initEvents
();
this
[
'btn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTapInvite
,
this
)
}
onTapInvite
()
{
const
eles
=
[
'btn'
,
'rulebtn'
,
'bg'
,
'ele1'
,
'ele2'
,
'ele3'
,
'ele4'
,
'light'
];
const
dur
=
500
;
eles
.
forEach
((
e
,
index
)
=>
{
// if (index == 0)
// egret.Tween.get(this[e]).to({ alpha: 0 }, dur).call(() => {
// });
// else
egret
.
Tween
.
get
(
this
[
e
]).
to
({
alpha
:
0
},
dur
);
});
const
mask
=
PanelCtrl
.
instance
.
_mask
;
egret
.
Tween
.
get
(
mask
).
to
({
alpha
:
0
},
dur
);
egret
.
Tween
.
get
(
this
[
'redbag'
]).
to
({
scaleX
:
0.7
,
scaleY
:
0.7
},
200
)
.
to
({
scaleX
:
1.5
,
scaleY
:
1.5
,
alpha
:
0
},
200
);
//隐藏之后mask恢复alpha
}
protected
get
closeBtns
():
eui
.
Button
[]
{
return
[
this
[
'closeBtn'
]]
}
get
skinKey
()
{
return
'RedBombTips'
}
}
\ 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