修改BUG

onepiece_demo_arena
xiejun 2023-08-30 21:25:36 +08:00
parent f1b9b526c1
commit 87c1193f8b
3 changed files with 826 additions and 67 deletions

View File

@ -73,40 +73,40 @@ function MonsterView:onCreate(go, role, position, root)
self.RoleLiveGOGraphic.AnimationState:SetAnimation(0, "idle", true)
self.RoleLiveGOTran.sizeDelta = Vector2.New(1000, 1000)
--
local combatId = BattleManager.GetCombatIdBySkin(self.role.skill[1],self.skinId)
self.combat = BattleManager.GetSkillCombat(combatId)
self.SkillAttackDisplaceoffset=self.combat.AttackDisplaceoffset
if self.combat.CloseRangeHit~=nil and self.combat.CloseRangeHit~="" then
self.RoleSkillLiveGo=poolManager:LoadLive(self.combat.CloseRangeHit, go.transform.parent, Vector3.one, Vector3.zero)
self.RoleSkillLiveGoTran = self.RoleSkillLiveGo:GetComponent("RectTransform")
self.RoleSkillLiveGoTran:SetParent(self.RoleLiveGO.transform)
self.RoleSkillLiveGoTran.anchoredPosition = Vector2.New(self.outOffset[1], self.outOffset[2])-- * 0.5
self.RoleSkillLiveGoTran.localScale = Vector3.one
self.RoleSkillLiveGoTran.sizeDelta = Vector2.New(1000, 1000)
self.RoleSkillLiveGoGraphic = self.RoleSkillLiveGo:GetComponent("SkeletonGraphic")
self.RoleSkillLiveGoGraphic.AnimationState:SetAnimation(0, "idle", true)
-- local combatId = BattleManager.GetCombatIdBySkin(self.role.skill[1],self.skinId)
-- self.combat = BattleManager.GetSkillCombat(combatId)
-- self.SkillAttackDisplaceoffset=self.combat.AttackDisplaceoffset
-- if self.combat.CloseRangeHit~=nil and self.combat.CloseRangeHit~="" then
-- self.RoleSkillLiveGo=poolManager:LoadLive(self.combat.CloseRangeHit, go.transform.parent, Vector3.one, Vector3.zero)
-- self.RoleSkillLiveGoTran = self.RoleSkillLiveGo:GetComponent("RectTransform")
-- self.RoleSkillLiveGoTran:SetParent(self.RoleLiveGO.transform)
-- self.RoleSkillLiveGoTran.anchoredPosition = Vector2.New(self.outOffset[1], self.outOffset[2])-- * 0.5
-- self.RoleSkillLiveGoTran.localScale = Vector3.one
-- self.RoleSkillLiveGoTran.sizeDelta = Vector2.New(1000, 1000)
-- self.RoleSkillLiveGoGraphic = self.RoleSkillLiveGo:GetComponent("SkeletonGraphic")
-- self.RoleSkillLiveGoGraphic.AnimationState:SetAnimation(0, "idle", true)
end
-- end
local combatId2 = BattleManager.GetCombatIdBySkin(self.role.superSkill[1],self.skinId)
self.combat2 = BattleManager.GetSkillCombat(combatId2)
if self.combat2.CloseRangeHit~=nil and self.combat2.CloseRangeHit~="" then
self.superSkillAttackDisplaceoffset=self.combat2.AttackDisplaceoffset
self.RoleSkillLiveGo2=poolManager:LoadLive(self.combat2.CloseRangeHit, go.transform.parent, Vector3.one, Vector3.zero)
self.RoleSkillLiveGoTran2 = self.RoleSkillLiveGo2:GetComponent("RectTransform")
self.RoleSkillLiveGoTran2:SetParent(self.RoleLiveGO.transform)
-- self.RoleSkillLiveGoTran2.anchoredPosition = Vector2.New(self.outOffset[1], self.outOffset[2])-- * 0.5
self.RoleSkillLiveGoTran2.localPosition = Vector2.New(self.combat2.CloseRangeHitOffset[1], self.combat2.CloseRangeHitOffset[2])-- * 0.5
-- local combatId2 = BattleManager.GetCombatIdBySkin(self.role.superSkill[1],self.skinId)
-- self.combat2 = BattleManager.GetSkillCombat(combatId2)
-- if self.combat2.CloseRangeHit~=nil and self.combat2.CloseRangeHit~="" then
-- self.superSkillAttackDisplaceoffset=self.combat2.AttackDisplaceoffset
-- self.RoleSkillLiveGo2=poolManager:LoadLive(self.combat2.CloseRangeHit, go.transform.parent, Vector3.one, Vector3.zero)
-- self.RoleSkillLiveGoTran2 = self.RoleSkillLiveGo2:GetComponent("RectTransform")
-- self.RoleSkillLiveGoTran2:SetParent(self.RoleLiveGO.transform)
-- -- self.RoleSkillLiveGoTran2.anchoredPosition = Vector2.New(self.outOffset[1], self.outOffset[2])-- * 0.5
-- self.RoleSkillLiveGoTran2.localPosition = Vector2.New(self.combat2.CloseRangeHitOffset[1], self.combat2.CloseRangeHitOffset[2])-- * 0.5
self.RoleSkillLiveGoTran2.localScale = Vector3.one
self.RoleSkillLiveGoTran2.sizeDelta = Vector2.New(1000, 1000)
self.RoleSkillLiveGoGraphic2 = self.RoleSkillLiveGo2:GetComponent("SkeletonGraphic")
-- local t= self.RoleLiveGOGraphic.SkeletonData.animations
self.RoleSkillLiveGoGraphic2.AnimationState:SetAnimation(0, "idle", true)
self.RoleSkillLiveGo2:SetActive(true)
end
-- self.RoleSkillLiveGoTran2.localScale = Vector3.one
-- self.RoleSkillLiveGoTran2.sizeDelta = Vector2.New(1000, 1000)
-- self.RoleSkillLiveGoGraphic2 = self.RoleSkillLiveGo2:GetComponent("SkeletonGraphic")
-- -- local t= self.RoleLiveGOGraphic.SkeletonData.animations
-- self.RoleSkillLiveGoGraphic2.AnimationState:SetAnimation(0, "idle", true)
-- self.RoleSkillLiveGo2:SetActive(true)
-- end
-- casting技能立绘
self.RoleLiveGO2=nil
@ -323,8 +323,8 @@ function MonsterView:onDispose()
self.RoleLiveGOGraphic2.freeze = false
poolManager:UnLoadLive(self.livePath2, self.RoleLiveGO2)
poolManager:UnLoadLive(self.livePath, self.RoleLiveGO)
poolManager:UnLoadLive(self.combat2.CloseRangeHit, self.RoleSkillLiveGo2)
poolManager:UnLoadLive(self.combat.CloseRangeHit, self.RoleSkillLiveGo)
-- poolManager:UnLoadLive(self.combat2.CloseRangeHit, self.RoleSkillLiveGo2)
-- poolManager:UnLoadLive(self.combat.CloseRangeHit, self.RoleSkillLiveGo)
GameObject.DestroyImmediate(self.RoleLiveGO2)
self.RoleLiveGO2 = nil
heroConfig=nil

View File

@ -251,7 +251,7 @@ end
function QiJieShiLianPanel:SetTopBar()
local text = self.qijieData.curRank > 0 and self.qijieData.curRank or "未上榜"
local text2 = self.qijieData.curScore >= 0 and self.qijieData.curScore or "0"
self.info.text = string.format( "本周排名:%s 本周积分:%s",text,text2)
self.info.text = string.format( "<color=#F7F8F8>本周排名:</color>%s <color=#F7F8F8>本周积分:</color>%s",text,text2)
self.name.text = string.format( "%s·%s层",self.configData.Chapter,self.configData.Stage)
end
@ -263,7 +263,7 @@ function QiJieShiLianPanel:SetBottomBar()
local text = Util.GetGameObject(self.goalList[i],"Text"):GetComponent("Text")
local image = Util.GetGameObject(self.goalList[i],"Image"):GetComponent("Image")
local state = QiJieShiLianManager.CheckGoalIsFinish(self.configData.ConditionValue[i][1],text)--检测是否完成此条目(顺便设置文字)
local imgname = state and "q_qjsl_wfzjm_yjh" or "q_qjsl_wfzjm_wjh"
local imgname = state and "UI_hz_qj_04" or "UI_hz_qj_05"
image.sprite = self.spLoader:LoadSprite(imgname)
end