DESKTOP-RH64908\Administrator 2026-02-13 11:51:12 +08:00
parent 27ea910ac1
commit b5b11921e2
4 changed files with 11 additions and 10 deletions

View File

@ -66,7 +66,7 @@ function EnemyView:onCreate(go, role, position, root, isBoss, enemyId)
self.livePath = GetResourcePath(live)
self.livePath2 = GetResourcePath(HeroConfig[role.roleData.roleId].Painting)
self.play_liveScale = RoleConfig[roleId].play_liveScale
self.play_liveScale = RoleConfig[roleId].play_liveScale* 0.4
self.enemy_liveScale = RoleConfig[roleId].enemy_liveScale
self.offset = RoleConfig[roleId].offset
self.outOffset = RoleConfig[roleId].enemy_offset
@ -163,6 +163,7 @@ function EnemyView:onCreate(go, role, position, root, isBoss, enemyId)
self.RoleLiveGO2.transform:SetParent(self.RootPanel.enemySkillCastRoot.transform)
self.RoleLiveGO2:GetComponent("RectTransform").anchoredPosition = Vector2.New(self.outOffset[1],
self.outOffset[2] + 400)
LogError("painting==" .. self.livePath2.."======"..self.play_liveScale)
self.RoleLiveGO2.transform.localScale = Vector3.one * self.play_liveScale --* 2
self.RoleLiveGO2:SetActive(false)
local toward = 0
@ -503,7 +504,7 @@ function EnemyView:OnShowHintText(_ArtFontType)
end
end
function EnemyView:OnSkillPlay(type)
function EnemyView:OnSkillPlay(type,combat)
-- local name="attack"
-- if type and type==1 then
-- name="skill"
@ -512,7 +513,7 @@ function EnemyView:OnSkillPlay(type)
local name = "Attack"
local humanname = "Attack"
if type and type == 2 then
humanname = "Skill_01"
humanname = combat.AniName
end
self:PlaySpineAnim(self.RoleLiveGOGraphic, 0, humanname, false)

View File

@ -63,7 +63,7 @@ if role.sex == ROLE_SEX.BOY then
self.icon.gameObject:SetActive(false)
end
if role.roleData.id == 20100 then
self.play_liveScale = self.config.play_liveScale
self.play_liveScale = self.config.play_liveScale* 0.4
self.enemy_liveScale = self.config.enemy_liveScale
self.offset = self.config.offset
self.outOffset = self.config.enemy_offset

View File

@ -79,7 +79,7 @@ function PlayerView:onCreate(go, role, position, root)
-- self.livePath2=GetResourcePath(HeroConfig[role.roleData.roleId].Painting)
-- end
end
self.play_liveScale = RoleConfig[roleId].play_liveScale
self.play_liveScale = RoleConfig[roleId].play_liveScale* 0.4
self.enemy_liveScale = RoleConfig[roleId].enemy_liveScale
self.offset = RoleConfig[roleId].offset
self.outOffset = RoleConfig[roleId].enemy_offset
@ -216,7 +216,7 @@ function PlayerView:onCreate(go, role, position, root)
-- self.liveRender.gameObject:SetActive(true)
-- self.liveRender.material:SetInt("_IsMask", 1)
-- casting技能立绘
LogRed("painting==" .. self.livePath2)
LogError("painting==" .. self.livePath2.."======"..self.play_liveScale)
self.RoleLiveGO2 = poolManager:LoadLive(self.livePath2, go.transform.parent, Vector3.one, Vector3.zero)
self.RoleLiveGO2.transform:SetParent(self.RootPanel.mySkillCastRoot.transform)
self.RoleLiveGO2.transform.localScale = Vector3.one * self.play_liveScale -- * 0.75--* 1.5
@ -588,7 +588,7 @@ function PlayerView:OnSkillPlay(type, combat)
local humanname = "Attack"
local name = "Attack"
if type ~= 0 then
humanname = "Skill_01"
humanname = combat.AniName
end
LogError("type========================================" .. type)

View File

@ -52,7 +52,7 @@ function RoleView:onCreate(go, role, position, root)
self.DamageTextTable={}
if role.roleData.roleId > 10000 then
self.livePath = GetResourcePath(HeroConfig[role.roleData.roleId].Live)
self.play_liveScale = RoleConfig[role.roleData.roleId].play_liveScale
self.play_liveScale = RoleConfig[role.roleData.roleId].play_liveScale* 0.4
self.enemy_liveScale = RoleConfig[role.roleData.roleId].enemy_liveScale
self.offset = RoleConfig[role.roleData.roleId].offset
self.outOffset = RoleConfig[role.roleData.roleId].enemy_offset
@ -132,7 +132,7 @@ function RoleView:onCreate(go, role, position, root)
self.liveRender.transform.anchoredPosition = Vector3.zero--Vector2.New(self.offset[1], self.offset[2])
self.liveRender.gameObject:SetActive(true)
self.liveRender.material:SetInt("_IsMask", 1)
LogError("painting========"..self.enemy_liveScale)
self.RoleLiveGO2.transform:SetParent(self.RootPanel.mySkillCastRoot.transform)
self.RoleLiveGO2.transform.localScale = Vector3.one * self.enemy_liveScale -- * 0.75--* 1.5
self.RoleLiveGO2.transform.anchoredPosition = Vector2.New(self.outOffset[1], self.outOffset[2] - 300)
@ -159,7 +159,7 @@ function RoleView:onCreate(go, role, position, root)
self.RoleLiveGO:GetComponent("RectTransform").anchoredPosition = Vector2.New(self.outOffset[1], self.outOffset[2])-- * 0.5
self.RoleLiveGO.transform.localScale = Vector3.one * self.enemy_liveScale --* 0.75
self.RoleLiveGO:SetActive(true)
LogError("painting========"..self.enemy_liveScale)
self.RoleLiveGO2.transform:SetParent(self.RootPanel.enemySkillCastRoot.transform)
self.RoleLiveGO2:GetComponent("RectTransform").anchoredPosition = Vector2.New(self.outOffset[1], self.outOffset[2] + 400)
self.RoleLiveGO2.transform.localScale = Vector3.one * self.enemy_liveScale --* 2