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
3abb34d0
Commit
3abb34d0
authored
May 19, 2021
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ok
parent
4f69388d
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
6 additions
and
6 deletions
+6
-6
.DS_Store
egret/.DS_Store
+0
-0
.DS_Store
egret/resource/.DS_Store
+0
-0
.DS_Store
egret/resource/assets/.DS_Store
+0
-0
.DS_Store
egret/resource/assets/warehouse_panel/.DS_Store
+0
-0
ExchangePanel.ts
egret/src/Panels/ExchangePanel.ts
+1
-1
ShopPanel.ts
egret/src/Panels/ShopPanel.ts
+1
-1
WareHousePanel.ts
egret/src/Panels/WareHousePanel.ts
+1
-1
Const.ts
egret/src/Scenes/MainScene/Const.ts
+1
-1
MainUI.ts
egret/src/Scenes/MainScene/MainUI.ts
+2
-2
No files found.
egret/.DS_Store
View file @
3abb34d0
No preview for this file type
egret/resource/.DS_Store
View file @
3abb34d0
No preview for this file type
egret/resource/assets/.DS_Store
View file @
3abb34d0
No preview for this file type
egret/resource/assets/warehouse_panel/.DS_Store
View file @
3abb34d0
No preview for this file type
egret/src/Panels/ExchangePanel.ts
View file @
3abb34d0
...
@@ -124,7 +124,7 @@ export default class ExchangePanel extends Panel {
...
@@ -124,7 +124,7 @@ export default class ExchangePanel extends Panel {
this
.
title
.
text
=
title
[
0
];
this
.
title
.
text
=
title
[
0
];
this
.
introduce
.
text
=
`商品介绍:
${
title
[
1
]
||
'无'
}
`
;
this
.
introduce
.
text
=
`商品介绍:
${
title
[
1
]
||
'无'
}
`
;
this
.
stock
.
text
=
`剩余数量:
${
this
.
data
.
stock
}
`
;
this
.
stock
.
text
=
`剩余数量:
${
this
.
data
.
stock
}
`
;
this
.
setNeed
();
//
this.setNeed();
// this.setBtn();
// this.setBtn();
let
key0
=
Object
.
keys
(
this
.
data
.
spMap
)[
0
];
let
key0
=
Object
.
keys
(
this
.
data
.
spMap
)[
0
];
...
...
egret/src/Panels/ShopPanel.ts
View file @
3abb34d0
...
@@ -53,7 +53,7 @@ const seedData = [
...
@@ -53,7 +53,7 @@ const seedData = [
},
},
{
{
key
:
'wheat'
,
key
:
'wheat'
,
name
:
'
水稻
种子'
,
name
:
'
大米
种子'
,
spId
:
'sp_seed_2'
,
spId
:
'sp_seed_2'
,
price
:
0
,
price
:
0
,
stock
:
0
,
stock
:
0
,
...
...
egret/src/Panels/WareHousePanel.ts
View file @
3abb34d0
...
@@ -98,7 +98,7 @@ export const seedData = {
...
@@ -98,7 +98,7 @@ export const seedData = {
'sp_seed_2'
:
{
// 水稻
'sp_seed_2'
:
{
// 水稻
key
:
'sp_seed_2'
,
key
:
'sp_seed_2'
,
name
:
'wheat'
,
name
:
'wheat'
,
nameLabel
:
'
水稻
'
,
nameLabel
:
'
大米
'
,
total
:
0
,
total
:
0
,
item
:
null
,
item
:
null
,
},
},
...
...
egret/src/Scenes/MainScene/Const.ts
View file @
3abb34d0
...
@@ -37,7 +37,7 @@ export let petData = {
...
@@ -37,7 +37,7 @@ export let petData = {
},
},
[
CROP_TYPE
.
WHEAT
]:
{
// 水稻
[
CROP_TYPE
.
WHEAT
]:
{
// 水稻
key
:
'wheat'
,
key
:
'wheat'
,
name
:
'
水稻
'
,
name
:
'
大米
'
,
type
:
'plant'
,
type
:
'plant'
,
pos
:
[
-
25
,
-
135
],
pos
:
[
-
25
,
-
135
],
propId
:
'sp_food_2'
,
propId
:
'sp_food_2'
,
...
...
egret/src/Scenes/MainScene/MainUI.ts
View file @
3abb34d0
...
@@ -261,8 +261,8 @@ export default class MainUI extends ComponentBase {
...
@@ -261,8 +261,8 @@ export default class MainUI extends ComponentBase {
let
propIcon
=
this
[
`
${
propData
[
k
].
name
}
Icon`
]
as
eui
.
Image
;
let
propIcon
=
this
[
`
${
propData
[
k
].
name
}
Icon`
]
as
eui
.
Image
;
if
(
data
[
k
]
>
maxcount
)
{
if
(
data
[
k
]
>
maxcount
)
{
textflow
=
[
textflow
=
[
{
text
:
maxcount
+
"/"
,
style
:
{
textColor
:
0xFFFFFF
}
},
{
text
:
data
[
k
]
+
"/"
,
style
:
{
textColor
:
0xff0000
}
},
{
text
:
data
[
k
],
style
:
{
textColor
:
0xff0000
}
},
{
text
:
maxcount
,
style
:
{
textColor
:
0xFFFFFF
}
},
];
];
}
else
{
}
else
{
textflow
=
[
textflow
=
[
...
...
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