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
b17cb180
Commit
b17cb180
authored
May 13, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地图优化暂存
parent
d9240176
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
Main2Skin.exml
egret/resource/skins/Main2Skin.exml
+1
-1
MapRpeatPart.ts
egret/src/mapScene/MapRpeatPart.ts
+6
-5
No files found.
egret/resource/skins/Main2Skin.exml
View file @
b17cb180
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
</e:Group>
</e:Group>
<e:Image
id=
"settingBtn"
y=
"1"
source=
"setting_png"
horizontalCenter=
"0"
/>
<e:Image
id=
"settingBtn"
y=
"1"
source=
"setting_png"
horizontalCenter=
"0"
/>
</e:Group>
</e:Group>
<e:Group
id=
"redrainbg"
width=
"750"
height=
"1624"
>
<e:Group
id=
"redrainbg"
width=
"750"
height=
"1624"
visible=
"false"
>
<e:Image
source=
"redrainbg_jpg"
/>
<e:Image
source=
"redrainbg_jpg"
/>
<e:Label
id=
"tips"
text=
"正在加载中,请稍后"
y=
"826.33"
textColor=
"0x244B00"
horizontalCenter=
"0"
size=
"24"
visible=
"false"
/>
<e:Label
id=
"tips"
text=
"正在加载中,请稍后"
y=
"826.33"
textColor=
"0x244B00"
horizontalCenter=
"0"
size=
"24"
visible=
"false"
/>
<e:Label
id=
"percentTxt"
text=
"63%"
y=
"943.33"
textColor=
"0x244B00"
horizontalCenter=
"0.5"
/>
<e:Label
id=
"percentTxt"
text=
"63%"
y=
"943.33"
textColor=
"0x244B00"
horizontalCenter=
"0.5"
/>
...
...
egret/src/mapScene/MapRpeatPart.ts
View file @
b17cb180
...
@@ -9,14 +9,15 @@ export default class MapRpeatPart extends ComponentBase {
...
@@ -9,14 +9,15 @@ export default class MapRpeatPart extends ComponentBase {
static
LEVEL_NUMS
=
22
;
static
LEVEL_NUMS
=
22
;
private
_index
;
private
_index
;
private
_topHeight
;
private
_topHeight
;
constructor
(
i
,
topHeight
)
{
//
constructor(i,topHeight) {
super
();
//
super();
this
.
_index
=
i
;
//
this._index = i;
this
.
_topHeight
=
topHeight
;
//
this._topHeight=topHeight;
}
//
}
start
()
{
start
()
{
super
.
start
();
super
.
start
();
return
;
for
(
let
i
=
0
;
i
<
MapRpeatPart
.
LEVEL_NUMS
;
i
++
)
{
for
(
let
i
=
0
;
i
<
MapRpeatPart
.
LEVEL_NUMS
;
i
++
)
{
const
levelOrder
=
MapTopPart
.
LEVEL_NUMS
+
this
.
_index
*
MapRpeatPart
.
LEVEL_NUMS
+
i
+
1
;
const
levelOrder
=
MapTopPart
.
LEVEL_NUMS
+
this
.
_index
*
MapRpeatPart
.
LEVEL_NUMS
+
i
+
1
;
this
.
getTxt
(
i
).
text
=
levelOrder
+
''
;
this
.
getTxt
(
i
).
text
=
levelOrder
+
''
;
...
...
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