gm修改器显示修改
parent
9c478291a2
commit
cd3952af1e
|
@ -169,7 +169,7 @@ function GMChangePanel:SingleTask(go,data)
|
|||
local btnTxt=Util.GetGameObject(go, "btn/Text"):GetComponent("Text")
|
||||
local recharge=rechargeCommodityConfig[data.PackID]
|
||||
local scale=1
|
||||
if recharge then
|
||||
if data.PackID~=0 and recharge then
|
||||
name.text=recharge.Name
|
||||
--LogError("type=="..recharge.Type.." id=="..recharge.Id)
|
||||
local leftBuyTime=OperatingManager.GetLeftBuyTime(recharge.Type,recharge.Id)
|
||||
|
@ -183,6 +183,8 @@ function GMChangePanel:SingleTask(go,data)
|
|||
btnTxt.text="兑换"
|
||||
else
|
||||
name.text=data.Name
|
||||
btn:GetComponent("Button").interactable = true
|
||||
Util.SetGray(btn,false)
|
||||
if data.Id==45 then
|
||||
scale = BattleManager.GetTimeScale()
|
||||
scale = math.floor(scale*10 + 0.5)/10
|
||||
|
|
Loading…
Reference in New Issue