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
af18ae1a
Commit
af18ae1a
authored
Apr 02, 2020
by
邱旭
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab2.dui88.com/wanghongyuan/xiaoxiaole
into dev
parents
7bfd0ae3
994e22eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
11 deletions
+15
-11
BloodSkin.exml
egret/resource/skins/BloodSkin.exml
+6
-6
BloodPanel.ts
egret/src/panels/BloodPanel.ts
+9
-5
No files found.
egret/resource/skins/BloodSkin.exml
View file @
af18ae1a
...
...
@@ -24,7 +24,7 @@
<e:Group
id=
"selbox"
width=
"531"
y=
"427.37"
horizontalCenter=
"6.5"
>
<e:Group
id=
"zhuanpan"
width=
"531"
height=
"121"
scaleX=
"1"
scaleY=
"1"
horizontalCenter=
"0"
top=
"0"
>
<e:Group
id=
"zhuanpan"
width=
"531"
height=
"121"
scaleX=
"1"
scaleY=
"1"
horizontalCenter=
"0"
top=
"0"
visible=
"false"
>
<e:Image
source=
"itembg_png"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
<e:Image
source=
"bloodhert_png"
x=
"12"
verticalCenter=
"6.5"
/>
<e:Label
text=
"+1"
x=
"38"
y=
"48.6"
size=
"24"
fontFamily=
"FZY3JW"
/>
...
...
@@ -38,7 +38,7 @@
</e:skinName>
</e:Button>
</e:Group>
<e:Group
id=
"yuanbao"
width=
"531"
height=
"121"
scaleX=
"1"
scaleY=
"1"
y=
"141"
>
<e:Group
id=
"yuanbao"
width=
"531"
height=
"121"
scaleX=
"1"
scaleY=
"1"
>
<e:Image
source=
"itembg_png"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
<e:Image
source=
"bloodhert_png"
x=
"12"
verticalCenter=
"6.5"
/>
<e:Label
text=
"+1"
x=
"38"
y=
"48.6"
size=
"24"
fontFamily=
"FZY3JW"
/>
...
...
@@ -53,7 +53,7 @@
</e:skinName>
</e:Button>
</e:Group>
<e:Group
id=
"fenxiang"
width=
"531"
height=
"121"
scaleX=
"1"
scaleY=
"1"
y=
"
282
"
>
<e:Group
id=
"fenxiang"
width=
"531"
height=
"121"
scaleX=
"1"
scaleY=
"1"
y=
"
141
"
>
<e:Image
source=
"itembg_png"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
<e:Image
source=
"bloodhert_png"
x=
"12"
verticalCenter=
"6.5"
/>
<e:Label
text=
"+1"
x=
"38"
y=
"48.6"
size=
"24"
fontFamily=
"FZY3JW"
/>
...
...
@@ -77,9 +77,9 @@
</e:Button>
</e:Group>
</e:Group>
<e:Group
id=
"botinfo"
width=
"750"
height=
"170"
y=
"
846.45
"
horizontalCenter=
"0"
>
<e:Image
id=
"countheart"
source=
"bloodhert_png"
x=
"257.3"
scaleX=
"0.4"
scaleY=
"0.4"
y=
"11"
/>
<e:Label
id=
"countdownTxt"
text=
"恢复 : 00 : 32 : 41"
size=
"24"
width=
"509"
verticalAlign=
"middle"
textAlign=
"left"
x=
"298.02"
scaleX=
"1"
scaleY=
"1"
y=
"13"
textColor=
"0xc17343"
fontFamily=
"FZY3JW"
bold=
"false"
/>
<e:Group
id=
"botinfo"
width=
"750"
height=
"170"
y=
"
633
"
horizontalCenter=
"0"
>
<e:Image
id=
"countheart"
source=
"bloodhert_png"
x=
"257.3"
scaleX=
"0.4"
scaleY=
"0.4"
y=
"11"
visible=
"false"
/>
<e:Label
id=
"countdownTxt"
text=
"恢复 : 00 : 32 : 41"
size=
"24"
width=
"509"
verticalAlign=
"middle"
textAlign=
"left"
x=
"298.02"
scaleX=
"1"
scaleY=
"1"
y=
"13"
textColor=
"0xc17343"
fontFamily=
"FZY3JW"
bold=
"false"
visible=
"false"
/>
<e:Button
id=
"resumeBtn"
label=
""
y=
"50"
horizontalCenter=
"0"
x=
"189"
scaleX=
"1"
scaleY=
"1"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
...
...
egret/src/panels/BloodPanel.ts
View file @
af18ae1a
...
...
@@ -18,6 +18,7 @@ import { DataManager } from "../../libs/tw/manager/DataManager";
import
{
loadSvga
}
from
"../loadSvga"
;
import
getResPath
from
"../../libs/new_tc/getResPath"
;
import
setGlow
from
"../setGlow"
;
import
{
NetName
}
from
"../../libs/tw/enum/NetName"
;
export
default
class
BloodPanel
extends
Panel
{
//修改,暂时只能根据接口获取
...
...
@@ -41,12 +42,15 @@ export default class BloodPanel extends Panel {
}
//切换显示状态,todo
NetManager
.
ins
.
getConfigInfo
((
s
,
res
)
=>
{
console
.
log
(
"收到获取是否展示转盘"
,
s
,
res
);
// NetManager.ins.getConfigInfo((s,res)=>{
let
config
=
DataManager
.
ins
.
getData
(
NetName
.
GET_CONFIG
).
data
;
let
luckyDrawConf
=
config
&&
config
.
luckyDrawConf
;
// console.log("收到获取是否展示转盘",s,res);
//是否显示抽奖得体力
var
showcj
:
boolean
=
false
;
if
(
res
&&
res
.
data
&&
res
.
data
.
luckyDrawConf
&&
res
.
data
.
luckyDrawConf
.
enable
){
var
bloodadd
=
res
.
data
.
luckyDrawConf
.
prizeList
.
filter
(
item
=>
item
.
categoryType
==
2
);
if
(
luckyDrawConf
&&
luckyDrawConf
.
enable
){
var
bloodadd
=
luckyDrawConf
.
prizeList
.
filter
(
item
=>
item
.
categoryType
==
2
);
if
(
bloodadd
.
length
>
0
){
showcj
=
true
;
}
...
...
@@ -94,7 +98,7 @@ export default class BloodPanel extends Panel {
}
this
[
"bg2"
].
height
=
bgheight
;
this
[
"botinfo"
].
y
=
bgheight
-
cutheight
-
75
-
40
;
})
//
})
this
[
'price1Txt'
].
text
=
`
${
window
[
'price1'
]}
个元宝=1个体力值`
;
this
[
'resumeBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
gotoNextLevel
();
...
...
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