【大闹天宫修改】前端圣物战力 商店节点加妖晶显示
parent
b92d4f01e2
commit
0ba3ebb44d
File diff suppressed because it is too large
Load Diff
|
@ -19,6 +19,10 @@ function this:InitComponent(gameObject)
|
|||
this.sureBtn=Util.GetGameObject(gameObject,"sureBtn")
|
||||
this.sureBtnText=Util.GetGameObject(gameObject,"sureBtn/Text"):GetComponent("Text")
|
||||
this.backBtn=Util.GetGameObject(gameObject,"BackBtn")
|
||||
--
|
||||
this.goldicon = Util.GetGameObject(gameObject,"cny/icon"):GetComponent("Image")
|
||||
this.goldvalue = Util.GetGameObject(gameObject,"cny/value"):GetComponent("Text")
|
||||
-- this.goldBtn = Util.GetGameObject(gameObject,"cny/btn")
|
||||
end
|
||||
|
||||
function this:BindEvent()
|
||||
|
@ -32,6 +36,14 @@ function this:BindEvent()
|
|||
Util.AddClick(this.backBtn, function()
|
||||
this:BtnClickEvent()
|
||||
end)
|
||||
-- Util.AddClick(this.goldBtn, function()
|
||||
-- -- 充值商店
|
||||
-- if not ShopManager.IsActive(SHOP_TYPE.SOUL_STONE_SHOP) then
|
||||
-- PopupTipPanel.ShowTip(Language[10422])
|
||||
-- return
|
||||
-- end
|
||||
-- UIManager.OpenPanel(UIName.MainRechargePanel, 1)
|
||||
-- end)
|
||||
end
|
||||
function this:BtnClickEvent()
|
||||
if type == 3 then
|
||||
|
@ -98,6 +110,8 @@ function this:OnShowPanel()
|
|||
this.SingleItemDataShow2(go, shopInfoList.storeItem[index],curShopData.Id)
|
||||
end)
|
||||
end
|
||||
this.goldicon.sprite = SetIcon(16)
|
||||
this.goldvalue.text = BagManager.GetItemCountById(16)
|
||||
end
|
||||
--半价购买
|
||||
function this.SingleItemDataShow2(go, data,curShopDataId)
|
||||
|
|
|
@ -387,13 +387,16 @@ function this.InitArmData()
|
|||
this.SetCardSingleData(heroListGo[pos],heroId,tonumber(pos), heroData)
|
||||
--战力计算
|
||||
this.CalculateAllHeroPower(heroData,allHeroTeamAddProVal)
|
||||
|
||||
--英雄长按
|
||||
local heroClick=Util.GetGameObject(bgListGo[pos],"DragView"..pos)
|
||||
Util.AddLongPressClick(heroClick, function()
|
||||
UIManager.OpenPanel(UIName.RoleInfoPopup, heroData,nil,this.choosedList,#this.choosedList)
|
||||
end, 0.5)
|
||||
end
|
||||
if this.curFormationIndex == FormationTypeDef.EXPEDITION then-- 远征加圣物战力
|
||||
this.formationPower = math.floor(this.formationPower * (1 + ExpeditionManager.CalculateallHolyWarPower()/10000))
|
||||
-- Log("所有圣物战力万分比 "..ExpeditionManager.CalculateallHolyWarPower())
|
||||
end
|
||||
end
|
||||
|
||||
--设置单个上阵英雄信息
|
||||
|
|
Loading…
Reference in New Issue