gm修改器显示修改提交
parent
2d3304e7bd
commit
9fc80d7006
|
@ -1536,6 +1536,7 @@ GoodsTypeDef = {
|
|||
RecruiteTreasure = 16,
|
||||
MeiRiTeHui = 17,
|
||||
chaozhifanli = 18,
|
||||
GMJustBuy =20,
|
||||
HHBG=22,--无限资源阁
|
||||
}
|
||||
|
||||
|
|
|
@ -165,7 +165,11 @@ function GMChangePanel:SingleTask(go,data)
|
|||
name.text=recharge.Name
|
||||
LogError("type=="..recharge.Type.." id=="..recharge.Id)
|
||||
local leftBuyTime=OperatingManager.GetLeftBuyTime(recharge.Type,recharge.Id)
|
||||
num.text="("..leftBuyTime.."/"..recharge.Limit..")"
|
||||
if leftBuyTime==-1 then
|
||||
num.text=""
|
||||
else
|
||||
num.text="("..leftBuyTime.."/"..recharge.Limit..")"
|
||||
end
|
||||
local des=""
|
||||
for i = 1, #data.Price do
|
||||
if itemConfig[data.Price[i][1]] then
|
||||
|
@ -173,8 +177,8 @@ function GMChangePanel:SingleTask(go,data)
|
|||
end
|
||||
end
|
||||
itemDes.text=des
|
||||
Util.SetGray(btn,leftBuyTime<=0)
|
||||
btn:GetComponent("Button").interactable = leftBuyTime>0
|
||||
Util.SetGray(btn,leftBuyTime==0)
|
||||
btn:GetComponent("Button").interactable = leftBuyTime==-1 or leftBuyTime>0
|
||||
Util.AddClick(btn, function()
|
||||
|
||||
local sureFunc=function()
|
||||
|
|
|
@ -974,9 +974,9 @@ function RoleInfoLayout:ShowCostNotEnoughTip()
|
|||
else
|
||||
PopupTipPanel.ShowTip(BagManager.GetItemNameById(costId).."不足无法升级")
|
||||
end
|
||||
if costId==4 then
|
||||
--if costId==4 then
|
||||
UIManager.OpenPanel(UIName.RewardItemSingleShowPopup,4)
|
||||
end
|
||||
--end
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue