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
56aea6af
Commit
56aea6af
authored
Aug 22, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of gitlab2.dui88.com:wanghongyuan/xiaoxiaole into dev
parents
572856cc
ef0fb2f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
MainScene.ts
egret/src/mainScene/MainScene.ts
+10
-4
ScoreProgress.ts
egret/src/something/uis/ScoreProgress.ts
+2
-0
No files found.
egret/src/mainScene/MainScene.ts
View file @
56aea6af
...
...
@@ -88,7 +88,7 @@ export default class MainScene extends Scene {
exposure
chapterData
:
ChapterData
;
//关数
chapter
:
number
chapter
:
number
//所有的格子数组
lattices
:
Lattice
[];
//最后一行的行数
...
...
@@ -2026,14 +2026,20 @@ export default class MainScene extends Scene {
Loading
.
instace
.
show
();
NetManager
.
ins
.
hc_submit
((
s
,
data
)
=>
{
if
(
s
)
{
//提交成功后捞结果
NetManager
.
ins
.
getOrderStatus
((
s
)
=>
{
Loading
.
instace
.
hide
();
playSound
(
SoundType
.
sucess
);
if
(
s
)
{
//区分奖品,待写
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
PRIZE_PANEL
);
//区分奖品
if
(
DataManager
.
ins
.
getCustomOrderStatusData
.
lottery
)
{
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
PRIZE_PANEL
,
{
starCount
:
this
.
scoreProgress
.
starCount
});
}
else
{
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
NO_PRIZE_PANEL
,
{
starCount
:
this
.
scoreProgress
.
starCount
});
}
}
else
{
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
NO_PRIZE_PANEL
);
//失败直接显示未中奖
}
},
DataManager
.
ins
.
getData
(
"hc_doJoin"
).
data
,
...
...
egret/src/something/uis/ScoreProgress.ts
View file @
56aea6af
...
...
@@ -50,6 +50,7 @@ export class ScoreProgress {
this
.
starCount
=
3
;
};
}
//是否超过2星
else
if
(
value
>=
this
.
starScores
[
1
])
{
scale
=
(
value
-
this
.
starScores
[
1
])
/
(
this
.
starScores
[
2
]
-
this
.
starScores
[
1
]);
w
=
(
595
-
522
)
*
scale
+
522
;
...
...
@@ -58,6 +59,7 @@ export class ScoreProgress {
this
.
starCount
=
2
;
};
}
//是否超过1星
else
if
(
value
>=
this
.
starScores
[
0
])
{
scale
=
(
value
-
this
.
starScores
[
0
])
/
(
this
.
starScores
[
1
]
-
this
.
starScores
[
0
]);
w
=
(
522
-
446
)
*
scale
+
446
;
...
...
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