Commit 3abb34d0 authored by Edwise's avatar Edwise 🍷

ok

parent 4f69388d
No preview for this file type
No preview for this file type
......@@ -124,7 +124,7 @@ export default class ExchangePanel extends Panel {
this.title.text = title[0];
this.introduce.text = `商品介绍:${title[1] || '无'}`;
this.stock.text = `剩余数量:${this.data.stock}`;
this.setNeed();
// this.setNeed();
// this.setBtn();
let key0 = Object.keys(this.data.spMap)[0];
......
......@@ -53,7 +53,7 @@ const seedData = [
},
{
key: 'wheat',
name: '水稻种子',
name: '大米种子',
spId: 'sp_seed_2',
price: 0,
stock: 0,
......
......@@ -98,7 +98,7 @@ export const seedData = {
'sp_seed_2': { // 水稻
key: 'sp_seed_2',
name: 'wheat',
nameLabel: '水稻',
nameLabel: '大米',
total: 0,
item: null,
},
......
......@@ -37,7 +37,7 @@ export let petData = {
},
[CROP_TYPE.WHEAT]: { // 水稻
key: 'wheat',
name: '水稻',
name: '大米',
type: 'plant',
pos: [-25, -135],
propId: 'sp_food_2',
......
......@@ -261,8 +261,8 @@ export default class MainUI extends ComponentBase {
let propIcon = this[`${propData[k].name}Icon`] as eui.Image;
if (data[k] > maxcount) {
textflow = [
{ text: maxcount + "/", style: { textColor: 0xFFFFFF } },
{ text: data[k], style: { textColor: 0xff0000 } },
{ text: data[k]+ "/", style: { textColor: 0xff0000 } },
{ text: maxcount, style: { textColor: 0xFFFFFF} },
];
} else {
textflow = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment