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
39fefee6
Commit
39fefee6
authored
Apr 08, 2021
by
zhangjinzhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改奖励图大小
parent
35a8f01c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
PrizePanel.ts
egret/libs/new_wx/components/PrizePanel.ts
+12
-2
PrizeSkin.exml
egret/resource/skins/PrizeSkin.exml
+3
-1
relive.ts
egret/src/playScene/relive.ts
+0
-1
No files found.
egret/libs/new_wx/components/PrizePanel.ts
View file @
39fefee6
...
@@ -12,8 +12,18 @@ export default class PrizePanel extends Panel {
...
@@ -12,8 +12,18 @@ export default class PrizePanel extends Panel {
const
lottery
=
DataManager
.
ins
.
getCustomOrderStatusData
.
lottery
;
const
lottery
=
DataManager
.
ins
.
getCustomOrderStatusData
.
lottery
;
this
.
data
=
lottery
;
this
.
data
=
lottery
;
this
.
data
.
score
=
`本局分数
${
DataManager
.
ins
.
getData
(
'ngameSubmit'
).
data
.
score
}
`
;
this
.
data
.
score
=
`本局分数
${
DataManager
.
ins
.
getData
(
'ngameSubmit'
).
data
.
score
}
`
;
this
.
img
.
width
=
this
.
picBigWidth
;
// let maxheight = 220;
this
.
img
.
height
=
this
.
picBigWidth
/
this
.
bigPicRatio
;
// let imgwid = this.img.width;
// let imghei = this.img.height;
// console.error('图片信息==》',imghei,imgwid,this.img,this.img['$bitmapHeight'],this.img['$bitmapWidth']);
// if(imghei>maxheight){
// imgwid *= 220/imghei;
// imghei = maxheight;
// this.img.width = imgwid;
// this.img.height = imghei;
// }
// this.img.width = this.picBigWidth;
// this.img.height = this.picBigWidth / this.bigPicRatio;
showCustomLog
(
lottery
);
showCustomLog
(
lottery
);
}
}
...
...
egret/resource/skins/PrizeSkin.exml
View file @
39fefee6
...
@@ -18,7 +18,9 @@
...
@@ -18,7 +18,9 @@
</e:Skin>
</e:Skin>
</e:skinName>
</e:skinName>
</e:Button>
</e:Button>
<e:Image
id=
"img"
y=
"529"
touchEnabled=
"true"
source=
"{data.img}"
width=
"512"
height=
"240"
x=
"119"
/>
<e:Group
width=
"511"
height=
"239"
x=
"121"
y=
"530"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
>
<e:Image
id=
"img"
touchEnabled=
"true"
source=
"{data.img}"
scaleX=
"1"
scaleY=
"1"
horizontalCenter=
"0"
verticalCenter=
"0"
fillMode=
"scale"
width=
"370"
height=
"230"
/>
</e:Group>
<e:Label
text=
"{data.name}"
y=
"789"
horizontalCenter=
"0"
width=
"508"
textAlign=
"center"
size=
"28"
textColor=
"0x9f3804"
/>
<e:Label
text=
"{data.name}"
y=
"789"
horizontalCenter=
"0"
width=
"508"
textAlign=
"center"
size=
"28"
textColor=
"0x9f3804"
/>
<e:Label
y=
"360"
horizontalCenter=
"0"
width=
"508"
textAlign=
"center"
size=
"40"
text=
"{data.score}"
textColor=
"0xff3e02"
verticalAlign=
"middle"
/>
<e:Label
y=
"360"
horizontalCenter=
"0"
width=
"508"
textAlign=
"center"
size=
"40"
text=
"{data.score}"
textColor=
"0xff3e02"
verticalAlign=
"middle"
/>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/src/playScene/relive.ts
View file @
39fefee6
...
@@ -18,7 +18,6 @@ export default (cb) => {
...
@@ -18,7 +18,6 @@ export default (cb) => {
},
DataManager
.
ins
.
doJoinPlugDrawData
.
orderId
,
},
DataManager
.
ins
.
doJoinPlugDrawData
.
orderId
,
()
=>
DataManager
.
ins
.
getPlugOrderStatusData
.
result
==
0
()
=>
DataManager
.
ins
.
getPlugOrderStatusData
.
result
==
0
)
)
}
}
},
window
[
'revivePlugId'
],
true
);
},
window
[
'revivePlugId'
],
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