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
247d4654
Commit
247d4654
authored
Nov 06, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of gitlab2.dui88.com:wanghongyuan/xiaoxiaole into dev
parents
a2d28148
fc87f6c6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
44 deletions
+34
-44
hbCutTimeFont.fnt的副本
egret/resource/assets/hbCutTime/hbCutTimeFont.fnt的副本
+0
-14
default.res.json
egret/resource/default.res.json
+6
-1
HbPrizeSkin.exml
egret/resource/skins/HbPrizeSkin.exml
+14
-14
HbGame.ts
egret/src/panels/HongbaoRain/HbGame.ts
+6
-1
HbPrize.ts
egret/src/panels/HongbaoRain/HbPrize.ts
+6
-4
hbRainBaseInfo.json
mock/happyclear/hbRainBaseInfo.json
+2
-10
No files found.
egret/resource/assets/hbCutTime/hbCutTimeFont.fnt的副本
deleted
100644 → 0
View file @
a2d28148
{"file":"hbCutTimeFont.png","frames":{
"0":{"x":116,"y":83,"w":55,"h":81,"offX":0,"offY":0,"sourceW":55,"sourceH":81},
"1":{"x":57,"y":166,"w":55,"h":81,"offX":0,"offY":0,"sourceW":55,"sourceH":81},
"2":{"x":174,"y":0,"w":56,"h":81,"offX":0,"offY":0,"sourceW":56,"sourceH":81},
"3":{"x":58,"y":0,"w":56,"h":81,"offX":0,"offY":0,"sourceW":56,"sourceH":81},
"4":{"x":116,"y":0,"w":56,"h":81,"offX":0,"offY":0,"sourceW":56,"sourceH":81},
"5":{"x":0,"y":0,"w":56,"h":81,"offX":0,"offY":0,"sourceW":56,"sourceH":81},
"6":{"x":0,"y":166,"w":55,"h":81,"offX":0,"offY":0,"sourceW":55,"sourceH":81},
"7":{"x":173,"y":83,"w":55,"h":81,"offX":0,"offY":0,"sourceW":55,"sourceH":81},
"8":{"x":58,"y":83,"w":56,"h":81,"offX":0,"offY":0,"sourceW":56,"sourceH":81},
"9":{"x":0,"y":83,"w":56,"h":81,"offX":0,"offY":0,"sourceW":56,"sourceH":81},
"分":{"x":153,"y":166,"w":36,"h":34,"offX":3,"offY":23,"sourceW":42,"sourceH":81},
"秒":{"x":114,"y":166,"w":37,"h":35,"offX":2,"offY":23,"sourceW":42,"sourceH":81},
"时":{"x":191,"y":166,"w":34,"h":34,"offX":4,"offY":23,"sourceW":42,"sourceH":81}}}
egret/resource/default.res.json
View file @
247d4654
...
...
@@ -177,7 +177,7 @@
"name"
:
"turntableprize"
},
{
"keys"
:
"hbCutTime_bg_png,hbCutTime_btn_disable_png,hbCutTime_btn_enable_png,hbCutTime_cutLine_disable_png,hbCutTime_cutLine_enable_png,hbCutTime_rule_btn_png"
,
"keys"
:
"hbCutTime_bg_png,hbCutTime_btn_disable_png,hbCutTime_btn_enable_png,hbCutTime_cutLine_disable_png,hbCutTime_cutLine_enable_png,hbCutTime_rule_btn_png
,hbCutTime_btn_null_png
"
,
"name"
:
"hbcuttime"
},
{
...
...
@@ -3301,6 +3301,11 @@
"url"
:
"assets/hbRule/hbRule_bg.png"
,
"type"
:
"image"
,
"name"
:
"hbRule_bg_png"
},
{
"url"
:
"assets/hbCutTime/hbCutTime_btn_null.png"
,
"type"
:
"image"
,
"name"
:
"hbCutTime_btn_null_png"
}
]
}
\ No newline at end of file
egret/resource/skins/HbPrizeSkin.exml
View file @
247d4654
...
...
@@ -2,29 +2,29 @@
<e:Skin
class=
"InviteSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Image
y=
"59.5"
source=
"hbPrize_bg_png"
horizontalCenter=
"0"
/>
<e:Image
id=
"img"
width=
"508"
height=
"225"
source=
"{data.url}"
horizontalCenter=
"1"
y=
"424.76
"
/>
<e:Image
id=
"money"
source=
"signprize元宝_png"
y=
"4
23.2"
horizontalCenter=
"1"
scaleX=
"0.8"
scaleY=
"0.8
"
visible=
"false"
/>
<e:Image
id=
"blood"
source=
"singprize体力_png"
y=
"
385.8"
horizontalCenter=
"1
"
visible=
"false"
/>
<e:Group
id=
"numsgroup"
x=
"397.38"
y=
"4
31.4
"
visible=
"false"
>
<e:Image
id=
"img"
width=
"508"
height=
"225"
source=
"{data.url}"
y=
"466.96"
horizontalCenter=
"0
"
/>
<e:Image
id=
"money"
source=
"signprize元宝_png"
y=
"4
65.4"
scaleX=
"0.8"
scaleY=
"0.8"
horizontalCenter=
"0
"
visible=
"false"
/>
<e:Image
id=
"blood"
source=
"singprize体力_png"
y=
"
428"
horizontalCenter=
"0
"
visible=
"false"
/>
<e:Group
id=
"numsgroup"
x=
"397.38"
y=
"4
73.6
"
visible=
"false"
>
<e:Image
id=
"numsbg"
source=
"signprize_numsbg_png"
x=
"0"
y=
"0"
/>
<e:Label
id=
"propnums"
text=
"X8"
size=
"22"
horizontalCenter=
"0"
verticalCenter=
"0"
verticalAlign=
"middle"
textAlign=
"center"
/>
</e:Group>
<e:Image
id=
"prizeImg"
y=
"422.5"
source=
""
horizontalCenter=
"0"
visible=
"false"
/>
<e:Button
id=
"closeBtn"
label=
""
x=
"597"
y=
"284.33"
>
<e:Button
id=
"ok_btn"
label=
""
y=
"826"
anchorOffsetX=
"150"
anchorOffsetY=
"48"
horizontalCenter=
"0"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"closeCommonBtn_png"
source.down=
"closeCommonBtn_png"
source.disabled=
"closeCommonBtn_png"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"hbPrize_btn_png"
source.down=
"hbPrize_btn_png"
source.disabled=
"hbPrize_btn_png"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
</e:Skin>
</e:skinName>
</e:Button>
<e:Button
id=
"
ok_btn"
label=
""
y=
"814"
anchorOffsetX=
"150"
anchorOffsetY=
"48"
horizontalCenter=
"0
"
>
<e:Button
id=
"
closeBtn"
label=
""
x=
"597"
y=
"284.33
"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"
hbPrize_btn_png"
source.down=
"hbPrize_btn_png"
source.disabled=
"hbPrize_b
tn_png"
/>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"
closeCommonBtn_png"
source.down=
"closeCommonBtn_png"
source.disabled=
"closeCommonB
tn_png"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
</e:Skin>
</e:Skin>
</e:skinName>
</e:Button>
<e:Label
text=
"不愧是卓越的手速达人!"
y=
"400"
textColor=
"0xf54500"
fontFamily=
"FZY3JW"
size=
"36"
horizontalCenter=
"0"
/>
<e:Label
id=
"tipLabel"
text=
"一共抢到18个红包"
y=
"350"
textColor=
"0xF54500"
fontFamily=
"FZY3JW"
size=
"36"
horizontalCenter=
"0"
/>
</e:Skin>
\ No newline at end of file
egret/src/panels/HongbaoRain/HbGame.ts
View file @
247d4654
...
...
@@ -7,6 +7,7 @@ import { DataManager } from "../../../libs/tw/manager/DataManager";
import
{
NetName
}
from
"../../../libs/tw/enum/NetName"
;
import
PanelCtrl
from
"../../../libs/new_wx/ctrls/panelCtrl"
;
import
SceneCtrl
from
"../../../libs/new_wx/ctrls/sceneCtrl"
;
import
Utils
from
"../../Utils"
;
/**
* 红包雨主游戏
...
...
@@ -118,7 +119,9 @@ export default class HbGame extends Panel {
if
(
!
data
||
!
data
.
option
||
data
.
categoryType
==
1
)
{
PanelCtrl
.
instance
.
show
(
"HbNoPrize"
,
{
type
:
1
});
}
else
{
PanelCtrl
.
instance
.
show
(
'HbPrize'
,
data
);
let
_data
=
Utils
.
deepClone
(
data
);
_data
.
score
=
this
.
score
;
PanelCtrl
.
instance
.
show
(
'HbPrize'
,
_data
);
}
},
session
,
this
.
score
);
}
...
...
@@ -148,6 +151,8 @@ export default class HbGame extends Panel {
,
tw
=
50
// 缩放中间停留时间 // t1 + tw + t2 = 1000; 1秒
,
t2
=
500
// 缩放第二阶段时间
,
_ease
=
egret
.
Ease
.
quadInOut
;
obj
.
anchorOffsetX
=
196
/
2
;
obj
.
anchorOffsetY
=
377
/
2
;
this
.
readyGroup
.
visible
=
true
;
obj
.
source
=
"hbGame_3_png"
,
obj
.
scaleX
=
obj
.
scaleY
=
_scaleMin
,
obj
.
alpha
=
1
;
egret
.
Tween
.
get
(
obj
).
to
({
scaleX
:
1
,
scaleY
:
1
,
alpha
:
1
},
t1
,
_ease
).
wait
(
tw
).
call
(()
=>
{
...
...
egret/src/panels/HongbaoRain/HbPrize.ts
View file @
247d4654
...
...
@@ -3,16 +3,15 @@ import getHomeData from "../../getHomeData";
import
{
changeMapScene
}
from
"../../startScene/StartScene"
;
import
{
GDispatcher
}
from
"../../../libs/tc/util/GDispatcher"
;
import
PanelCtrl
from
"../../../libs/new_wx/ctrls/panelCtrl"
;
import
SceneCtrl
from
"../../../libs/new_wx/ctrls/sceneCtrl"
;
import
{
NetManager
}
from
"../../../libs/tw/manager/NetManager"
;
import
{
HtmlTextParser
}
from
"../../../libs/new_wx/HtmlTextParser"
;
/**
* 红包雨奖励
*/
export
default
class
HbPrize
extends
Panel
{
public
prizeImg
:
eui
.
Image
;
public
closeBtn
:
eui
.
Button
;
public
ok_btn
:
eui
.
Button
;
public
closeBtn
:
eui
.
Button
;
public
tipLabel
:
eui
.
Label
;
constructor
(
data
)
{
super
();
...
...
@@ -23,6 +22,9 @@ export default class HbPrize extends Panel {
super
.
start
();
this
.
initUI
();
this
.
updateOption
(
this
.
data
.
option
);
let
str
=
`一共抢到<b>
${
this
.
data
.
score
}
</b>个红包`
;
this
.
tipLabel
.
textFlow
=
(
new
HtmlTextParser
).
parser
(
str
);
}
updateOption
(
option
:
any
)
{
...
...
mock/happyclear/hbRainBaseInfo.json
View file @
247d4654
...
...
@@ -3,16 +3,8 @@
"data"
:
{
"canJoin"
:
true
,
"currentRemainTimes"
:
1
,
"currentSession"
:
{
"endTime"
:
157292106000
,
"sessionIndex"
:
1
,
"startTime"
:
157292105000
},
"nextSession"
:
{
"endTime"
:
157292106000
,
"sessionIndex"
:
2
,
"startTime"
:
157292105000
}
"currentSession"
:
null
,
"nextSession"
:
null
},
"desc"
:
"OK"
,
"success"
:
true
,
...
...
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