四灵修改

dev_chengFeng
jiaoyangna 2021-09-01 11:02:07 +08:00
parent 49a4b32138
commit 1245d7635d
2 changed files with 10 additions and 9 deletions

View File

@ -13522,7 +13522,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: -165.1001} m_AnchoredPosition: {x: 0, y: -165.1001}
m_SizeDelta: {x: 0, y: -375.19995} m_SizeDelta: {x: 0, y: -379.9}
m_Pivot: {x: 0.49999997, y: 1} m_Pivot: {x: 0.49999997, y: 1}
--- !u!1 &8938437714082590465 --- !u!1 &8938437714082590465
GameObject: GameObject:
@ -13561,7 +13561,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 3.44, y: 25} m_AnchoredPosition: {x: 3.44, y: 3}
m_SizeDelta: {x: 325.92, y: 126.69} m_SizeDelta: {x: 325.92, y: 126.69}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &8938437714082590474 --- !u!222 &8938437714082590474

View File

@ -37,7 +37,7 @@ function FourElementMonsterCampPanel:InitComponent()
local rootHight = this.grid.transform.rect.height local rootHight = this.grid.transform.rect.height
local width = this.grid.transform.rect.width local width = this.grid.transform.rect.width
this.scrollView = SubUIManager.Open(SubUIConfig.ScrollCycleView,this.grid.transform, this.scrollView = SubUIManager.Open(SubUIConfig.ScrollCycleView,this.grid.transform,
this.pre, nil, Vector2.New(width, rootHight), 1, 1, Vector2.New(40, 10)) this.pre, nil, Vector2.New(width, rootHight), 1, 1, Vector2.New(0, 0))
this.scrollView.moveTween.MomentumAmount = 1 this.scrollView.moveTween.MomentumAmount = 1
this.scrollView.moveTween.Strength = 2 this.scrollView.moveTween.Strength = 2
@ -191,12 +191,13 @@ function this.InitMonsterShow()
local tempData = this.SingleDataShow(go, monsterInfo[index]) local tempData = this.SingleDataShow(go, monsterInfo[index])
this.singledataList[monsterInfo[index].wave] = tempData this.singledataList[monsterInfo[index].wave] = tempData
--this.singlePreList[go] = this.singledataList[monsterInfo[index].wave] --this.singlePreList[go] = this.singledataList[monsterInfo[index].wave]
end,true,true) end,true,true)
if MonsterCampManager.CurOffsetIndex < 0 then this.scrollView:SetIndex(#monsterInfo - curwaves - 1)
this.scrollView:SetIndex((#monsterInfo-trailData.monsterWave-2)) -- if MonsterCampManager.CurOffsetIndex < 0 then
else -- this.scrollView:SetIndex((#monsterInfo-trailData.monsterWave-2))
this.scrollView:SetIndex((#monsterInfo-MonsterCampManager.CurOffsetIndex-2)) -- else
end -- this.scrollView:SetIndex((#monsterInfo-MonsterCampManager.CurOffsetIndex-2))
-- end
end end
--界面关闭时调用(用于子类重写) --界面关闭时调用(用于子类重写)