|
@@ -59,12 +59,12 @@ export default class Reward extends cc.Component {
|
|
|
start() {
|
|
start() {
|
|
|
/** 盖子 */
|
|
/** 盖子 */
|
|
|
this.initLid();
|
|
this.initLid();
|
|
|
|
|
+ gData.reward.init_cash_style = true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
update(dt) {
|
|
update(dt) {
|
|
|
if (gData.reward.init_cash_style) {
|
|
if (gData.reward.init_cash_style) {
|
|
|
this.initCashOutStyle();
|
|
this.initCashOutStyle();
|
|
|
- return;
|
|
|
|
|
}
|
|
}
|
|
|
if (gData.reward.adData) {
|
|
if (gData.reward.adData) {
|
|
|
// 展示奖励
|
|
// 展示奖励
|
|
@@ -110,7 +110,7 @@ export default class Reward extends cc.Component {
|
|
|
let cash_data = gData.redBagCash.getItemDataByIndex(cash_bar);
|
|
let cash_data = gData.redBagCash.getItemDataByIndex(cash_bar);
|
|
|
if (!cash_data) return;
|
|
if (!cash_data) return;
|
|
|
|
|
|
|
|
- this.lbl_cash.string = cash_data.money + '元';
|
|
|
|
|
|
|
+ this.lbl_cash.string = cash_data.money / 100 + '元';
|
|
|
this.lbl_cash_out.string = gData.gameData.gameData.redMoney + '/' + cash_data.type_value;
|
|
this.lbl_cash_out.string = gData.gameData.gameData.redMoney + '/' + cash_data.type_value;
|
|
|
this.spr_cash_out.fillRange = gData.gameData.gameData.redMoney / cash_data.type_value;
|
|
this.spr_cash_out.fillRange = gData.gameData.gameData.redMoney / cash_data.type_value;
|
|
|
}
|
|
}
|