【编队优化】车迟 十绝 增加一键

dev_chengFeng
ZhangBiao 2020-11-18 10:48:35 +08:00
parent 646e3e8061
commit 08657b4ffd
3 changed files with 16 additions and 2 deletions

View File

@ -14,7 +14,12 @@ function this.GetFormationIndex()
return FormationTypeDef.GUILD_CAR_DELEAY
end
--- btn1点击回调事件
function this.On_Btn1_Click()
this.root.SetOneKeyGo()
end
function this.On_Btn2_Click()
if not hadClick then
hadClick = true
if this.root.order>=1 then
@ -51,7 +56,9 @@ end
-- 初始化界面显示
function this.InitView()
this.root.btn_1:SetActive(true)
this.root.btn_1_lab.text = Language[10708]
this.root.btn_1_lab.text = Language[10743]
this.root.btn_2:SetActive(true)
this.root.btn_2_lab.text = Language[10708]
MapManager.isCarbonEnter = false
this.root.formTip:SetActive(false)
local costTip = this.root.costTip

View File

@ -26,10 +26,16 @@ end
function this.InitView()
this.root.btn_1:SetActive(true)
this.root.btn_1_lab.text = Language[10512]
this.root.btn_1_lab.text = Language[10743]
this.root.btn_2:SetActive(true)
this.root.btn_2_lab.text = Language[10512]
end
function this.On_Btn1_Click()
this.root.SetOneKeyGo()
end
function this.On_Btn2_Click()
if this.root.order>=1 then
--保存编队
FormationManager.RefreshFormation(this.root.curFormationIndex, this.root.choosedList,

View File

@ -94,6 +94,7 @@ function this.SingleInfoDataShow(go,data)
sortNumTabs[i] = Util.GetGameObject(go, "SortNum/SortNum ("..i..")")
sortNumTabs[i]:SetActive(false)
end
LogRed("data.rank:"..data.rank)
if data.rank < 4 then
sortNumTabs[data.rank]:SetActive(true)
else