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
20fc3aef
Commit
20fc3aef
authored
Dec 20, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
7238854e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
RedBombAlertSkin.exml
egret/resource/skins/RedBombAlertSkin.exml
+1
-1
MainScene.ts
egret/src/mainScene/MainScene.ts
+5
-3
No files found.
egret/resource/skins/RedBombAlertSkin.exml
View file @
20fc3aef
...
...
@@ -8,7 +8,7 @@
<e:Image
source=
"redAlert_btn_png"
y=
"0"
x=
"0"
/>
<e:Label
id=
"btnLabel"
text=
"愉快收下"
y=
"30"
size=
"38"
stroke=
"2"
strokeColor=
"0x2f7df9"
fontFamily=
"FZY3JW"
x=
"103"
/>
</e:Group>
<e:Group
id=
"numsgroup"
x=
"410"
y=
"2
65.6
"
scaleX=
"1.5"
scaleY=
"1.5"
visible=
"false"
>
<e:Group
id=
"numsgroup"
x=
"410"
y=
"2
75
"
scaleX=
"1.5"
scaleY=
"1.5"
visible=
"false"
>
<e:Image
id=
"numsbg"
source=
"signprize_numsbg_png"
x=
"0"
y=
"0"
scaleX=
"1"
scaleY=
"1"
/>
<e:Label
id=
"propnums"
text=
"X8"
size=
"22"
horizontalCenter=
"0"
verticalCenter=
"0"
verticalAlign=
"middle"
textAlign=
"center"
/>
</e:Group>
...
...
egret/src/mainScene/MainScene.ts
View file @
20fc3aef
...
...
@@ -117,6 +117,7 @@ const redBombPanelName = "RedBombAlert";
const
fesChapterData
:
number
[]
=
[];
for
(
let
i
=
1
;
i
<
227
;
i
++
)
{
/// TODO 测试
if
(
i
==
25
||
i
==
44
)
continue
;
fesChapterData
.
push
(
i
);
}
...
...
@@ -719,13 +720,14 @@ export default class MainScene extends Scene {
// }
// }
}
//初始化节日元素
initFestivalEle
():
boolean
{
//添加节日元素,条件可能会变
if
(
fesChapterData
.
indexOf
(
this
.
chapter
>>
0
)
>
-
1
&&
/// TODO 测试
fesChapterData
.
indexOf
(
this
.
chapter
>>
0
)
>
-
1
&&
getRedBombTimes
()
&&
// Math.random() > 0.5 && /// TODO 测试
Math
.
random
()
>
0.4
&&
this
.
lattices
[
festivalIndex
]
&&
//格子必须有
(
Tool
.
judgeSetFesEle
(
this
.
lattices
[
festivalIndex
])
||
!
this
.
lattices
[
festivalIndex
].
element
)
//没有元素也行
)
{
...
...
@@ -743,7 +745,7 @@ export default class MainScene extends Scene {
ele
.
y
=
p
[
1
];
this
.
elementContainer
.
addChild
(
ele
);
this
.
lattices
[
festivalIndex
].
element
=
ele
;
Tool
.
removeEle
(
festivalIndex
,
this
.
emptys
);
Tool
.
removeEle
(
festivalIndex
,
this
.
emptys
);
}
//动画,然后恢复this.enableMouseEvt(true);
let
ani
:
FesRedBombShowAni
=
Pool
.
takeOut
(
RecoverName
.
FESREDBOMBSHOW_ANI
)
...
...
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