大闹天宫背景 大闹天宫女例会比例 公会技能更新战力调整位置

zhangqiang 2020-08-29 16:15:41 +08:00
parent 8b27411fd8
commit 220a8f216e
6 changed files with 7 additions and 6 deletions

View File

@ -61,7 +61,7 @@ function ExpeditionMainPanel:InitComponent()
--self.mask = Util.GetGameObject(self.parent, "mask")
--self.mask:SetActive(false)
npc = NameManager.roleSex == ROLE_SEX.BOY and "live2d_npc_map" or "live2d_npc_map_nv"
local scale = NameManager.roleSex == ROLE_SEX.BOY and Vector3.one * 0.26 or Vector3.one * 0.26
local scale = NameManager.roleSex == ROLE_SEX.BOY and Vector3.one * 0.26 or Vector3.one * 0.16
self.liveNode = poolManager:LoadLive(npc, Util.GetTransform(self.parent, "playerLive"), scale, Vector3.zero)
SkeletonGraphic = self.liveNode:GetComponent("SkeletonGraphic")
if SkeletonGraphic then

View File

@ -133,7 +133,7 @@ end
--设置单个上阵英雄信息
function this.SetCardSingleData(o,monsterId, _pos)
o.transform.parent:GetComponent("Image").sprite=Util.LoadSprite("t_biandui.xuanzhongkuang")
o.transform.parent:GetComponent("Image").sprite=Util.LoadSprite("bd_xinkapaifan")
local heroConfig = ConfigManager.GetConfigData(ConfigName.HeroConfig, monsterId.heroTid)
local bg=Util.GetGameObject(o,"Bg1"):GetComponent("Image")
local fg=Util.GetGameObject(o,"Bg2"):GetComponent("Image")

View File

@ -206,7 +206,7 @@ function this:OnOpen(_panelType,...)
panelType = _panelType
if panelType == FORMATION_TYPE.EXPEDITION then
for k,v in pairs(bgListGo) do
v:GetComponent("Image").sprite = Util.LoadSprite("t_biandui.xuanzhongkuang")
v:GetComponent("Image").sprite = Util.LoadSprite("bd_xinkapaifan")
this.line:GetComponent("RectTransform").sizeDelta = Vector2.New(294.2,439.48)
end
else

View File

@ -46,7 +46,7 @@ function this.SetSkillDataLv(_Profession,_id,_lv)
allGuildSkillData[_Profession][_id].level = _lv
allGuildSkillData[_Profession][_id].config = ConfigManager.TryGetConfigDataByThreeKey(ConfigName.GuildTechnology,"Profession",_Profession,"TechId",_id,"Level",_lv)
--更新英雄战力属性
HeroManager.UpdateHeroPowerProfession(_Profession)--也许会卡
-- HeroManager.UpdateHeroPowerProfession(_Profession)--也许会卡
end
end
--重置一种类型的公会技能数据

View File

@ -248,6 +248,7 @@ end
--界面关闭时调用(用于子类重写)
function GuildSkillUpLvPopup:OnClose()
tabRedPotList = {}
HeroManager.UpdateHeroPowerProfession()--也许会卡
end
--界面销毁时调用(用于子类重写)

View File

@ -778,10 +778,10 @@ function this.UpdateHeroPower()
end
function this.UpdateHeroPowerProfession(_Profession)
for _, v in pairs(heroDatas) do
if v.heroConfig.Profession == _Profession then
-- if v.heroConfig.Profession == _Profession then
-- LogGreen("v.dynamicId "..v.dynamicId)
v.warPower = this.CalculateHeroAllProValList(1, v.dynamicId, false)[HeroProType.WarPower]
end
-- end
end
end
--获取同一类型的技能