【内存优化】幸运转盘报错
parent
2a6f81e8cf
commit
4ac1c8ce76
|
@ -332,16 +332,16 @@ function this.GetRefreshItemNum()
|
|||
end
|
||||
|
||||
---获取探宝1/多次按钮信息 1探宝类型
|
||||
function this.GetTreasureBtnInfo(treasureType)
|
||||
function this.GetTreasureBtnInfo(spLoader, treasureType)
|
||||
if treasureType==TreasureType.Lucky then
|
||||
local oneData={1,this.dialRewardSettingConfig[1].CostItem[2][4]}--1探宝次数 2消耗道具数量
|
||||
local moreData={this.dialRewardSettingConfig[1].ExtractingTime,this.dialRewardSettingConfig[1].MultipleCostItem[2][4]}
|
||||
local icon=SetIcon(this.spLoader, 60)
|
||||
local icon = SetIcon(spLoader, 60)
|
||||
return oneData,moreData,icon
|
||||
elseif treasureType==TreasureType.Advanced then
|
||||
local oneData={1,this.dialRewardSettingConfig[2].CostItem[2][4]}
|
||||
local moreData={this.dialRewardSettingConfig[2].ExtractingTime,this.dialRewardSettingConfig[2].MultipleCostItem[2][4]}
|
||||
local icon=SetIcon(this.spLoader, 61)
|
||||
local icon = SetIcon(spLoader, 61)
|
||||
return oneData,moreData,icon
|
||||
end
|
||||
end
|
||||
|
|
|
@ -275,7 +275,7 @@ function this.SwitchTreasureType(treasureType)
|
|||
--设置需要材料显示
|
||||
this.SetPropShow(60,treasureType)
|
||||
--探宝按钮显示
|
||||
local oneData,moreData,icon=LuckyTurnTableManager.GetTreasureBtnInfo(treasureType)
|
||||
local oneData,moreData,icon=LuckyTurnTableManager.GetTreasureBtnInfo(this.spLoader, treasureType)
|
||||
this.SetTreasureBtnShow(oneData,moreData,icon)
|
||||
--探宝泉预览
|
||||
Util.AddOnceClick(this.propBtn,function()
|
||||
|
@ -387,7 +387,7 @@ function this.SwitchTreasureType(treasureType)
|
|||
this.SetPropShow(61,treasureType)
|
||||
|
||||
--探宝按钮显示
|
||||
local oneData,moreData,icon=LuckyTurnTableManager.GetTreasureBtnInfo(treasureType)
|
||||
local oneData,moreData,icon=LuckyTurnTableManager.GetTreasureBtnInfo(this.spLoader, treasureType)
|
||||
this.SetTreasureBtnShow(oneData,moreData,icon)
|
||||
--探宝泉预览
|
||||
Util.AddOnceClick(this.propBtn,function()
|
||||
|
|
Loading…
Reference in New Issue